payments.upsert

string
required
The CRM’s id for the customer, from contacts.upsert or contacts.resolve.
string
required
Your billing system’s id. Send it again, with amountRefunded, when money goes back.
number
required
Minor units charged.
number
Minor units given back. 0 when omitted.
string
required
Three letters, such as USD.
string
required
ISO 8601.
string
What it was for.
Returns the payment, with the CRM’s id.

payments.delete

string
required
The CRM’s id, from payments.upsert.
One from a connected Stripe account cannot be deleted here: it belongs to Stripe.