Skip to main content
POST
Typescript (SDK)

Body Parameters

Response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string
default:2.3.0
required

Body

application/json
entity_id
string
required

The ID of the entity.

customer_id
string

The ID of the customer to create the entity for.

Response

200 - application/json

OK

id
string | null
required

The unique identifier of the entity

name
string | null
required

The name of the entity

created_at
number
required

Unix timestamp when the entity was created

env
enum<string>
required

The environment (sandbox/live)

Available options:
sandbox,
live
subscriptions
object[]
required
purchases
object[]
required
balances
object
required
flags
object
required
customer_id
string | null

The customer ID this entity belongs to

feature_id
string | null

The feature ID this entity belongs to

billing_controls
object

Billing controls for the entity.

invoices
object[]

Invoices for this entity (only included when expand=invoices)