POST
Upsert a payment

Authorizations

Authorization
string
header
required

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

Body

application/json
partyId
string<uuid>
required
amount
integer
required
Required range: 0 <= x <= 1000000000
currency
string
required
Required string length: 3
chargedAt
string | null
required
externalId
string
required

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

Required string length: 1 - 200
Example:

"sub_8812"

description
string | null
Required string length: 1 - 120
amountRefunded
integer
Required range: 0 <= x <= 1000000000

Response

The payment

message
string
required
Example:

"Payment upserted"

metaData
object
required
data
object
required