Skip to main content
POST
Error

Required Scopes

capi:write - Write access to Customer API resources

Authorizations

Authorization
string
header
required

Supertab OAuth2 flow for CAPI. See Authentication.

Headers

x-api-version
string<date>
default:9999-01-01

The version of the Customer API you are using.

x-supertab-client-id
string<tagged_id>
required

Your Client ID with Supertab. Used to identify the website on which Customer is making a Purchase.

Examples:

"live_client.4df706b5-297a-49c5-a4cd-2a10eca12ff9"

"test_client.4df706b5-297a-49c5-a4cd-2a10eca12ff9"

Body

application/json
offering_id
string<tagged_id>
required
Example:

"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9"

currency_code
string
required
Required string length: 3
metadata
Metadata · object

Response

Successful Response

purchase
Purchase · object | null
required

Purchase created as a result of purchasing this offering.

A null value means no purchase was created, see action_required_details for the reason.

action_required
boolean
required

Determines if further interaction with the customer required on Supertab in order to complete this purchase.

Most commonly this will be when Supertab required a customer to make a payment before continuing.

action_required_details
ActionRequiredDetails · object | null
required

Details of what to do next to complete pending purchases