Get a customer's balance
What a customer owes you and has paid, with one row for each currency they have been sold in. A customer with no sales has no rows. Every invoiced figure is net of the credit notes issued against those invoices.
apiKeyAuthorizationBearer <token>An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.
id*stringSuccess
application/json- response
Success
data*array<>curl -X GET "https://example.com/v1/customers/cus_01K6XJ4Q8ZT3M9R5V2B7WDHNCA/balance"{ "data": [ { "currency": "USD", "uninvoiced": 2878, "open": 2878, "overdue": 0, "paid": 2878, "credited": 0, "credit": 0 } ]}Revoke a credit note link DELETE
The public link stops working at once. A credit note with no link also answers 204: there is nothing to revoke. Sharing again afterwards mints a different token; the old one stays dead for good.
Record a payment POST
Records money received from this customer. Applied to the invoices you name, each for the amount you give it, in that order, or else to their oldest open invoices in the same currency, each in full. Anything left over stays as credit on the customer's account. ResellerHQ does not collect payment from your customers: you take the money however you already do, and record it here. Send an Idempotency-Key header so a retry can never record the payment twice.