Skip to main content
POST
Void a payment

Authorizations

Authorization
string
header
required

An API key from Settings, API keys. It starts with rc_live_.

Path Parameters

id
string
required

The adoption's ID.

paymentId
string
required

The payment's ID.

Body

application/json
reason
string
required

Why it is voided.

Response

The payment, and the adoption's money now.

payment
object
required

One line of an adoption's ledger. A payment is never deleted: a mistake is voided, with a reason, and stays.

amounts
object
required

The money on an adoption, in whole cents, worked out from the ledger each time it is read.