Skip to main content

Cancel Shipment API:

Description: Cancels a shipment

Basic Information

NAMEDETAILS
Usage:Mandatory
URL:https://api.rapidshyp.com/rapidshyp/apis/v1/b2b/orders/b2b_ext_shipment_cancel
Request Type:POST
Scheme:HTTPS
Header (content-type):application/json
Header (rapidshyp-token):API-Key

Curl


curl --location 'https://api.rapidshyp.com/rapidshyp/apis/v1/b2b/orders/b2b_ext_shipment_cancel'
--header 'rapidshyp-token: <API_KEY>'
--header 'Content-Type: application/json'
--data '{
"shipment_id": "1111111"
}'

Request Parameters:


ParameterRequiredRemarkValidation
shipment_idYesShipment IDActive shipment

Response:

JSON

{
"status": "SUCCESS",
"remarks": "Shipment cancelled successfully."
}