SwiftPOD
  1. Api
SwiftPOD
  • Api
    • Webhook
      • List Webhooks
      • Subscribe to Webhook
      • Unsubcribe to webhook
      • Webhook Notification - Order Status Change Example
      • Webhook Notification - Tracking Number Example
      • Webhook Notification - In Transit and Delivered Status Example
      • Webhook Notification - Stock Status Change Example
    • Orders
      GET
    • Create Order
      POST
    • Create Multiple Orders
      POST
    • Get Order
      GET
    • Update Order
      PUT
    • Update Order Status
      PUT
    • Cancel Order
      POST
    • Catalogs
      GET
  • Changelog
  1. Api

Cancel Order

POST
/v1/orders/{id}/cancel
You can only cancel the order if it's in Draft, New Order or In Production status.

Request

Path Params
id
string 
required
Swiftpod Order ID

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.swiftpod.com/v1/orders//cancel'

Responses

🟢200Cancel Order
application/json
Body
status
boolean 
required
message
string 
required
Example
{
  "status": true,
  "message": "Order cancelled successfully"
}
Previous
Update Order Status
Next
Catalogs
Built with