Documentation Sweet Pricing API

GET / productgroups / :productGroupId / products

This endpoint gets a list of all products in an in-app store. The product detail returned is similar to that from GET /products/:productId.

URL

https://api.sweetpricing.com/v1.0/productgroups/:productGroupId/products

Header

Field Type Description
Authorization String

Header of form api-key <API key>

Authorization: api-key <API Key>

Parameters

Field Type Description
:productGroupId Number

Product group ID

200

Field Type Description
products Object[]
products.id Number

Product ID

products.productGroupId Number

ID of the product group it belongs to.

products.name String

Product name

products.defaultPricePoint Object
products.defaultPricePoint.id Number

Default Price Point ID

products.defaultPricePoint.sku String

SKU Product ID.

products.defaultPricePoint.multiplier Number

Multiplier for subscriptions

{
	"products": [{
		"id": 1,
		"productgroupId": 1,
		"name": "20 coins",
		"defaultPricePoint": {
			"id": 1,
			"multiplier": 1
		}
	}]
}

401

Name Description
401

You are not authenticated to perform the request.

403

Name Description
403

You are not allowed to view/modify this resource.

404

Name Description
404

Resource not found.