GET
/
components
/
v1
/
product
/
{externalId}
cURL
curl --request GET \
  --url https://api-sandbox.appcharge.com/components/v1/product/{externalId} \
  --header 'x-publisher-token: <api-key>'
{
  "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",
  "productImageUrl": "https://cdn.appcharge.com/507f1f77bcf86cd799439015_product.png",
  "productPrefixImageUrl": "https://cdn.appcharge.com/507f1f77bcf86cd799439015_prefix.png",
  "productImageExternalUrl": "https://example.com/images/gold_coins.png"
}

Authorizations

x-publisher-token
string
header
required

Publisher token, as displayed in the Publisher Dashboard.

Path Parameters

externalId
string
required

External ID that you defined.

Example:

"gold_coins_pack"

Response

200
application/json

Product details retrieved successfully.

The response is of type object.