Payouts
Retrieve Payout
Retrieve a payout by ID.
GET
/
admin
/
payouts
/
{id}
curl 'http://localhost:9000/admin/payouts/pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \
-H 'Authorization: Bearer <token>'
const { payout } = await client.admin.payouts.$id.query({
$id: "pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
})
{
"payout": {
"id": "pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
"display_id": 42,
"amount": 1250,
"currency_code": "usd",
"status": "completed",
"data": null,
"account": { "id": "pacc_01HXYZ", "status": "active" },
"seller": { "id": "sel_01HXYZ", "name": "Acme Store", "handle": "acme-store" }
}
}
Returns a single payout with its payout account and seller details.
Path parameters
Query parameters
Response
Show properties
Show properties
Why the payout is
on_hold, failed or aborted: a PayoutStatusReason code such as order_not_ready or provider_error. The details behind it are in data.status_detail.curl 'http://localhost:9000/admin/payouts/pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \
-H 'Authorization: Bearer <token>'
const { payout } = await client.admin.payouts.$id.query({
$id: "pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
})
{
"payout": {
"id": "pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
"display_id": 42,
"amount": 1250,
"currency_code": "usd",
"status": "completed",
"data": null,
"account": { "id": "pacc_01HXYZ", "status": "active" },
"seller": { "id": "sel_01HXYZ", "name": "Acme Store", "handle": "acme-store" }
}
}
⌘I
curl 'http://localhost:9000/admin/payouts/pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \
-H 'Authorization: Bearer <token>'
const { payout } = await client.admin.payouts.$id.query({
$id: "pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
})
{
"payout": {
"id": "pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
"display_id": 42,
"amount": 1250,
"currency_code": "usd",
"status": "completed",
"data": null,
"account": { "id": "pacc_01HXYZ", "status": "active" },
"seller": { "id": "sel_01HXYZ", "name": "Acme Store", "handle": "acme-store" }
}
}