Skip to content

Delete Delivery Zone ​

Use this endpoint to permanently delete an existing delivery zone by its ID.

Endpoint ​

DELETE /v1/delivery-zones/{id}

Path parameterTypeDescription
idstringUnique identifier of the delivery zone to delete.

Headers ​

json
{
  "Authorization": "Bearer JWT_TOKEN",
  "X-MerchantApiKey": "MERCHANT_API_KEY"
}

Example request ​

javascript
fetch('https://api.shopsynch.com/v1/delivery-zones/67a6261a320f3f7368dfec99', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer JWT_TOKEN',
    'X-MerchantApiKey': 'MERCHANT_API_KEY'
  }
})
  .then(response => response.json())
  .then(data => console.log(data));

Response 200 ​

json
{
  "status": true,
  "message": "Delivery zone deleted successfully",
  "data": null
}

Error responses ​

StatusMessage
404Delivery zone not found
401Unauthorized

Build with joy