Skip to main content
GET
/
components
/
v1
/
product
cURL
curl --request GET \
  --url https://api-sandbox.appcharge.com/components/v1/product \
  --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://media.appcharge.com/product1.png",
    "productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
  },
  {
    "id": "507f1f77bcf86cd799439016",
    "name": "Premium Product",
    "displayName": "Premium Product",
    "publisherProductId": "premium_product",
    "type": "Time",
    "description": "premium product access.",
    "prefix": "Get",
    "suffix": "days",
    "textFontColorHex": "#d4af37",
    "productImageUrl": "https://media.appcharge.com/product2.png",
    "productPrefixImageUrl": "https://media.appcharge.com/product-prefix2.png",
    "productImageExternalUrl": "https://images.pexels.com/images/product2.png"
  }
]
[
  {
    "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://media.appcharge.com/product1.png",
    "productPrefixImageUrl": "https://media.appcharge.com/product-prefix1.png"
  },
  {
    "id": "507f1f77bcf86cd799439016",
    "name": "Premium Product",
    "displayName": "Premium Product",
    "publisherProductId": "premium_product",
    "type": "Time",
    "description": "premium product access.",
    "prefix": "Get",
    "suffix": "days",
    "textFontColorHex": "#d4af37",
    "productImageUrl": "https://media.appcharge.com/product2.png",
    "productPrefixImageUrl": "https://media.appcharge.com/product-prefix2.png",
    "productImageExternalUrl": "https://images.pexels.com/images/product2.png"
  }
]

Authorizations

x-publisher-token
string
header
required

Publisher token, as displayed in the Publisher Dashboard.

Response

200 - application/json

Products retrieved successfully.

getAllProductResponse
object[]