Documentation Sweet Pricing API

PUT / apps / :appId / nextplan

This endpoint will upgrade to Sweet Pricing Pro, or downgrade to Sweet Pricing Lite. The plan will update instantly or at the next billing date.

URL

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

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
id Number

ID of the plan to switch to.

{
	"id": 1
}

200

Field Type Description
id Number

ID of the plan.

isLite Boolean

True if Sweet Pricing Lite.

isPro Boolean

True if Sweet Pricing Pro.

isDynamic Boolean

True if Sweet Pricing Dynamic.

{
	"id": 1,
	"isLite": true,
	"isPro": false,
	"isDynamic": false
}

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.