Documentation Sweet Pricing API

POST / productgroups / :productGroupId / products

This endpoint creates a new product within an in-app store. For example, if you have a store called 'Coins', you can create a product called '100 coins'.

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.

Body

Field Type Description
name String

Product's name.

Size: ..255

defaultPricePoint Object
defaultPricePoint.sku String

SKU Product ID.

defaultPricePoint.multiplier Number

Multiplier for subscriptions

{
	"name": "10 coins",
	"defaultPricePoint": {
		"sku": "TenCoinsSKU",
		"multiplier": 1
	}
}

200

Field Type Description
id Number

ID of the product.

productgroupId Number

ID of the product group.

name String

Product's name.

Size: ..255

defaultPricePoint Object

Object

defaultPricePoint.id Number

ID of the default price point.

defaultPricePoint.sku String

SKU Product ID.

defaultPricePoint.multiplier Number

Multiplier for subscriptions.

{
	"id": 1,
	"productgroupId": 1,
	"name": "My New Product",
	"defaultPricePoint": {
		"id": 1,
	 	"sku": "TenCoinsSKU",
		"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.