Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer YOUR_API_KEY.

Headers

Idempotency-Key
string
required

Required. A unique value per purchase, 8 to 255 visible characters. Reuse it only to retry the same request; the retry returns the first answer with idempotentReplay: true and charges nothing. A declined card is an answer too: the retry replays the decline, so once the card is fixed, try again with a new key.

Required string length: 8 - 255

Body

application/json

The customer and the sub-accounts.

stripeCustomerId
string
required

A customer on your connected Stripe account.

Pattern: ^cus_[A-Za-z0-9]{6,}$
locationIds
string[]
required

The sub-accounts to link, up to 50, each named once. Nothing else is linked.

Required array length: 1 - 50 elements
Minimum string length: 1
{key}
any

Response

Every named sub-account is linked.

success
boolean
required
Example:

true

data
object
required
idempotentReplay
boolean

Present, and true, when this answer is a replay of an earlier request with the same Idempotency-Key.