Documentation Sweet Pricing API

POST / products / :productId / pricepoints

This endpoint creates a new product ID, as configured in Google Developer Console or iTunes Connect, associated with an existing in-app product.

Once you have setup your product in Sweet Pricing, you can add alternative product IDs using this endpoint. Each product has one or more product IDs associated with it. For example, you might have a product called '100 coins' and you might sell:

  • '100 coins at $0.99' with product ID 'com.sweetpricing.coins.100coins.99'; and
  • '100 coins at $1.99' with product ID 'com.sweetpricing.coins.100coins.199'.

You need to set up these product IDs in both Google Developer Console or iTunes Connect, and Sweet Pricing. The product ID will then become available to use in your pricing models.

URL

https://api.sweetpricing.com/v1.0/products/:productId/pricepoints

Header

Field Type Description
Authorization String

Header of form api-key <API key>

Authorization: api-key <API Key>

Parameters

Field Type Description
:productId Number

Product ID.

Body

Field Type Description
sku String

SKU Product ID.

multiplier Number

Multiplier for subscriptions.

{
	"sku": "TenCoinsSKU",
	"multiplier": 1
}

200

Field Type Description
id Number

ID of the price point.

sku String

SKU Product ID.

multiplier Number

Multiplier for subscriptions.

{
	"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.