Remove a store
Remove a purchase location. Past transactions keep their store_id.
DELETE
https://afropin.com/api/v1/reseller/stores/{store_id}
HMAC-signed request with a unique Idempotency-Key header. Authentication
With an SDK
PHP
$afropin->reseller->stores->delete($storeId, $params)Node.js
afropin.reseller.stores.delete(storeId, params)Python
afropin.reseller.stores.delete(store_id, params)Java
afropin.reseller().stores().delete(storeId, params)Path parameters
retail
uuid
Required
The location id. It must belong to your account and to the mode of your API key. The request has no body.
A deleted location can no longer be used as
store_id and disappears from Your stores. To pause a location instead, update it with status: false.Request
DELETE /api/v1/reseller/stores/9f1c2e7a-4b22-4c10-9a3e-7d2f1b6c8a90
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
purchase_location_not_found
No store of yours has this id
{
"ok": false,
"error": {
"code": "purchase_location_not_found",
"message": "No store of yours has this id",
"fields": null
}
}
All error codes →