Delete Shipping Address
Permanently deletes one shipping address of a company. Send the company ID in the URL and the address ID in the id query parameter.
HTTP Request
- URL:
/shippingAddress/{companyId}?id={addressId} - Method:
DELETE - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_WRITE_COMPANY
Path Parameters
| Parameter | Type | Description |
|---|---|---|
companyId | String | The ID of the company that owns the address. |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | The ID of the shipping address to delete. Required. |
cURL Example
curl --location --request DELETE '<BASE_URL>/shippingAddress/66b9b3b166169eecd60e5ba8?id=66d0f6973560dad7cf821e9a' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The request was processed successfully.
- 400 Bad Request: The access token is missing or invalid, or an ID is not valid.
Sample JSON Response
{
"success": true,
"message": "Shipping Address deleted Successfully"
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the request succeeded. |
message | String | Result message. |
Notes
- This action cannot be undone.
- You can also delete any address by its ID with Delete Address.