curl -X DELETE \
'https://api.appcharge.com/components/v1/product/gold_coins_100' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
{
"id": "507f1f77bcf86cd799439015",
"name": "Gold Coins Pack",
"displayName": "Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"description": "A pack of 100 gold coins.",
"prefix": "Get",
"suffix": "coins",
"textFontColorHex": "#f5c518",
"productImageId": "507f1f77bcf86cd799439011",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
}
Products
Delete Product
Deletes a product.
DELETE
/
components
/
v1
/
product
/
{externalId}
curl -X DELETE \
'https://api.appcharge.com/components/v1/product/gold_coins_100' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
{
"id": "507f1f77bcf86cd799439015",
"name": "Gold Coins Pack",
"displayName": "Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"description": "A pack of 100 gold coins.",
"prefix": "Get",
"suffix": "coins",
"textFontColorHex": "#f5c518",
"productImageId": "507f1f77bcf86cd799439011",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
}
curl -X DELETE \
'https://api.appcharge.com/components/v1/product/gold_coins_100' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
{
"id": "507f1f77bcf86cd799439015",
"name": "Gold Coins Pack",
"displayName": "Gold Coins",
"publisherProductId": "gold_coins_100",
"type": "Quantity",
"description": "A pack of 100 gold coins.",
"prefix": "Get",
"suffix": "coins",
"textFontColorHex": "#f5c518",
"productImageId": "507f1f77bcf86cd799439011",
"productImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
}
Authorizations
Response
Product deleted successfully.
Was this page helpful?
