curl -X GET \
'https://api.appcharge.com/components/v1/product' \
-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/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://images.pexels.com/images/product2.png",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix2.png",
"productImageExternalUrl": "https://images.pexels.com/images/product2.png"
}
]
Products
Get All Products
Retrieves a list of all products.
GET
/
components
/
v1
/
product
curl -X GET \
'https://api.appcharge.com/components/v1/product' \
-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/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://images.pexels.com/images/product2.png",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix2.png",
"productImageExternalUrl": "https://images.pexels.com/images/product2.png"
}
]
curl -X GET \
'https://api.appcharge.com/components/v1/product' \
-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/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://images.pexels.com/images/product2.png",
"productPrefixImageUrl": "https://media.appcharge.com/product-prefix2.png",
"productImageExternalUrl": "https://images.pexels.com/images/product2.png"
}
]
Was this page helpful?
