
Add balancePOST
OpenStock Docs
POST
/
api/customer-balance-api/customers/add-balancecustomer_balance_api100 requests / hourCredits a customer’s store balance. Customers that do not exist yet are created.
Authorization#
AuthorizationBearer <token>In: header. A store API key starting with sk_ that has the customer_balance_api permission.
Request body#
application/json
emailrequiredstringCustomer email address.
amountrequirednumberPositive amount to add.
reasonstringShown in the customer’s transaction history. Default: "API balance addition"
metadataobjectStored with the transaction.
Responses#
- 200Balance updated.
- 400Invalid email or amount.
- 409The balance changed while updating. Retry the request.
- 401Missing, malformed, disabled or expired API key.
- 429The hourly limit for this key was reached.