List payees
const url = 'https://pay.example.com/v1/payees';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://pay.example.com/v1/payees \ --header 'Authorization: Bearer <token>'Every payee registered in the admin console (active or not), oldest first, for splits[].payee_ref /
payee_id. Recipients named by address (the split whitelist off) are not listed. Requires orders:read.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Payees
object
object
Your reference, for splits[].payee_ref.
The primary payee (takes the remainder and sends refunds).
Only active payees can be split to.
Examplegenerated
{ "data": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "ref": "example", "name": "example", "is_primary": true, "active": true } ]}unauthorized: no Authorization: Bearer header, or an unknown or revoked key.
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "unauthorized" }}insufficient_scope: the key lacks the operation’s scope.
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "insufficient_scope" }}