Stores
Remove a store
Remove one of your redemption locations. It no longer appears in your list and can no longer be sent as store_id.
DELETE
https://afropin.com/api/v1/brand/stores/{store_id}
HMAC-signed request with a unique Idempotency-Key header. Authentication
With an SDK
PHP
$afropin->brand->stores->delete($storeId, $params)Node.js
afropin.brand.stores.delete(storeId, params)Python
afropin.brand.stores.delete(store_id, params)Java
afropin.brand().stores().delete(storeId, params)Path parameters
retail
uuid
Required
The location id. It must be one of your redemption locations in the mode of your API key.
This request takes no body. Past redemptions keep the store_id they were made with.
Response 200
{
"ok": true,
"data": null
}
Errors
Failed requests return a stable code with a translated message. Branch on code, never on the message.
403
wrong_account_type
Your account type cannot use this endpoint
404
redemption_location_not_found
No store of yours has this id
{
"ok": false,
"error": {
"code": "redemption_location_not_found",
"message": "No store of yours has this id",
"fields": null
}
}
All error codes →