Documentation Sweet Pricing API

POST / apps / :appId / productgroups

This endpoint creates a new in-app store associated with an app. In-app stores contain groups of related products, e.g. 'Coins' or 'Subscriptions'.

URL

https://api.sweetpricing.com/v1.0/apps/:appId/productgroups

Header

Field Type Description
Authorization String

Header of form api-key <API key>

Authorization: api-key <API Key>

Parameters

Field Type Description
:appId Number

App ID.

Body

Field Type Description
name String

Product group name.

Size: ..255

{
	"name": "Gold Coins"
}

200

Field Type Description
id Number

ID of the product group.

appId Number

ID of the app.

name String

Product group name.

Size: ..255

{
	"id": 1,
	"appId": 1,
	"name": "Gold Coins"
}

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.