1. Cancel Orders
  • Authentication API
    • Generate API Token
      POST
  • Create Orders
    • Create Order
      POST
  • Cancel Orders
    • Cancel Order
      PUT
  • Shipping Label
    • Download Shipping Label
      POST
    • Shipping Label Configurations
      GET
    • Update Shipping Label Configurations
      PUT
  • Shipment Tracking
    • Tracking
      GET
  • Couriers
    • Courier Partners
      GET
  • NDR
    • Reattempt NDR
      PUT
  • Pickup Addresses
    • Pickup Hub ids
      GET
    • Create Pickup Hub Id
      POST
    • Pickup Hub Id
      DELETE
  • Shipping Rates
    • Get Shipping Rate (Retail)
      GET
  1. Cancel Orders

Cancel Order

PUT
https://api.sharkship.in/v1/b2c/order
This endpoint allows you to cancel an order. The request should include a JSON payload in the raw request body type with an array of order IDs of orders which are to be cancelled.

Request Body#

order_ids (array of strings): The IDs of the orders to be cancelled.

Response#

The response will include a message indicating the status of the request.

Example#

{"message":""}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.sharkship.in/v1/b2c/order' \
--header 'move_to: CANCELLED' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "order_ids": [
    "string"
  ]
}'
Response Response Example
{
    "message": "CANCELLED"
}
Modified at 2026-06-16 10:11:15
Previous
Cancel Orders
Next
Shipping Label
Built with