Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • holder_kindenumrequired

    payment_account or driver.

    • payment_account
    • carrier
    • shipping_balance
    • driver
  • holder_idstringrequired
  • amountintegerrequired

    What arrived, in minor units.

  • paid_ondaterequired

    YYYY-MM-DD, not after today.

  • currencystring · or null

    When the holder holds several currencies.

  • feesinteger

    What the holder kept, in minor units.

  • referencestring · or null
  • notestring · or null

Returns

201 The payout.

Errors

  • 403forbiddenMissing permission.
  • 404not_foundNo such holder.
  • 422validation_failedInvalid payout.