Skip to content

Create card top up

POST/admin/v1/stores/{store_id}/shipping-balance/top-ups
  • payments:manage
  • Idempotency-Key supported

Top up by card: answers the page to pay on; the balance is credited once the payment is confirmed.

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

  • amountobjectrequired

    In the store's currency, 10 to 100 000.

  • return_urlstringrequired

    The admin page to come back to after paying.

Returns

201 The pending top-up and where to pay.

Errors

  • 409Card top-ups aren't available.
  • 422validation_failedValidation failed.