Cancel Shipment API:
Description: Cancels a shipment
Basic Information
| NAME | DETAILS |
|---|---|
| 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:
| Parameter | Required | Remark | Validation |
|---|---|---|---|
| shipment_id | Yes | Shipment ID | Active shipment |
Response:
JSON
{
"status": "SUCCESS",
"remarks": "Shipment cancelled successfully."
}