Cancel Order#
Cancels a pending order on DIDWW side. It is used to cancel an order that has not yet been completed and is in pending status. It will also remove DID numbers in this order.
Request#
HTTP Method: DELETE
URI Path: /v3/orders/{id}
URI Query Parameters#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
id |
|
Yes |
Unique ID identifier of the Order. |
Example#
http
1DELETE /v3/orders/1b3ac4b7-315c-4416-afb8-24d8e7c4ec0c HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Authorization: Bearer [access token]
curl
1curl -i -X DELETE https://api.didww.com/v3/orders/1b3ac4b7-315c-4416-afb8-24d8e7c4ec0c -H "Accept: application/vnd.api+json" -H "Content-Type: application/vnd.api+json" -H "Authorization: Bearer [access token]"
response
1HTTP/1.1 204 No Content
2Content-Type: application/vnd.api+json
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
422 |
No |
Validation Error Object. The Order cannot be canceled. |
401 |
No |
|
403 |
No |
The customer is in read-only mode. Also returned when the access token carries the |
429 |
No |
The request budget of the account for the current window is spent ( |