Skip to content

Decide account requests

POST/admin/v1/stores/{store_id}/customers/account-requests
  • customers:write
  • Idempotency-Key supported

Approve or decline accounts waiting for approval, 1–100 at a time. Approving enables the account and emails the customer a link to sign in; declining removes the request, keeps the customer without an account and sends nothing. Customers no longer waiting are skipped.

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

  • customer_idsarray of stringsrequired
  • decisionenumrequired

    Approve or decline.

    • approve
    • decline

Returns

200 Decided.

Errors

  • 403forbiddenMissing permission.
  • 422validation_failedNo customers, or more than 100.