SET Crypto API Suite · Cash out to a bank
List payment references
GET/v1/payment_references
Lists your payment references, newest first. Filter by customer, state, Cash-Out Address or the Cash-Out payment that settled a reference.
Query parameters
customerstring- A customer's id: only that customer's references (exact match).
state"open" | "matched" | "underpaid" | "overpaid" | "expired" | "canceled"- Only references in this state. Any other value answers 400
state_invalid. cashOutAddressstring- A Cash-Out Address id: only references on that address (exact match).
cashOutPaymentstring- A Cash-Out payment's id: the reference that payment settles (exact match).
limitstring- 1 to 100; 50 by default (any other value is 50).
createdBeforestring- The last answer's
nextCreatedBefore, passed back unchanged; or an ISO 8601 time (rows created before it).
Notes
- Needs a key with the
readscope. - Payment references are for platform accounts, for reads as well as writes: a business (merchant) account's key gets 403
payment_references_platform_only. - A list does not expire overdue references; reading one with
GET /v1/payment_references/{id}, or SET's scheduled pass, does. - The example was made with a sandbox key.
- This example is a recorded run of SET's own code (wallet release
e9b03447) with a sandbox key; ids and times are that run's.
Errors
403 payment_references_platform_only400 created_before_invalid400 state_invalid