Record money payout
POST
/ admin/ v1/ stores/ {store_id}/ money/ payouts- money:read
- Idempotency-Key supported
Record that a payment provider or a driver paid the store: what arrived and what it kept. Carriers' payouts come from their statements and the shipping balance's are withdrawals. and payments:manage.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
holder_kindenumrequiredpayment_accountordriver.- payment_account
- carrier
- shipping_balance
- driver
holder_idstringrequiredamountintegerrequiredWhat arrived, in minor units.
paid_ondaterequiredYYYY-MM-DD, not after today.currencystring · or nullWhen the holder holds several currencies.
feesintegerWhat the holder kept, in minor units.
referencestring · or nullnotestring · or null
Returns
201 The payout.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNo such holder. - 422
validation_failedInvalid payout.