Delete Location
Soft-deletes a Location by setting its status to DELETED and recording the deletion timestamp. A Location can only be deleted if its status is ACTIVE. If the Location is IN_USE (bound to a charge), it must be unbound first. Requires Idempotency-Key header.
Path Parameters
- Type: string Format: uuididrequired
Unique identifier of the location to delete
Headers
- Type: stringx
-branch requiredBranch of the location owner account
- Type: stringx
-account -number requiredNumber of the location owner account
- Type: stringIdempotency
- Key requiredUnique idempotency key
Responses
- 204
Location deleted successfully
- application/json
- application/json
- application/json
- application/json
Request Example for delete/loc/{id}
curl http://localhost/loc/2a8cbd7d-0c7b-4a69-a1e1-4a19e8b7a2aa \
--request DELETE \
--header 'x-branch: ' \
--header 'x-account-number: ' \
--header 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
No Body