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_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
customer_idsarray of stringsrequireddecisionenumrequiredApprove or decline.
- approve
- decline
Returns
200 Decided.
Errors
- 403
forbiddenMissing permission. - 422
validation_failedNo customers, or more than 100.