POST
Upsert a subscription

Authorizations

Authorization
string
header
required

A key from Settings → API keys. It starts with gd_key_.

Body

application/json
partyId
string<uuid>
required
description
string
required
Required string length: 1 - 120
payingPerMonth
integer
required
Required range: 0 <= x <= 100000000
currency
string
required
Required string length: 3
externalId
string
required

Your billing system's id. The same id updates the same one.

Required string length: 1 - 200
Example:

"sub_8812"

startedAt
string | null
endedAt
string | null
trialEndsAt
string | null

Response

The subscription

message
string
required
Example:

"Subscription upserted"

metaData
object
required
data
object
required