---
title: "POST /openapi/{version}/shipping/shipment-orders/cancel/"
method: POST
path: "/openapi/{version}/shipping/shipment-orders/cancel/"
tags: ["Shipping (Separate Service)"]
---

# POST /openapi/{version}/shipping/shipment-orders/cancel/

`POST /openapi/{version}/shipping/shipment-orders/cancel/`

## Request

- Base URL: `https://base_url`
- URL: `https://base_url/openapi/{version}/shipping/shipment-orders/cancel/`
- Auth: none declared

Cancel a shipment order by its ID.

## Path parameters

- `version` string, required

## Request body

- ShipmentOrderCancel
  - `id` integer, required
  - `cancel_reason` string, required
  - `success` boolean, required
  - `message` string, required

## Response `200`

Successfully cancelled the shipment order

- EnvelopedResponse
  - `success` boolean
  - `data` unknown
  - `message` string, required

## Other responses

- `400`: Bad Request - Invalid input.
- `401`: Unauthorized - Invalid or expired credentials.
- `403`: Forbidden - You do not have permission to access this resource.
- `404`: Not Found - The requested resource does not exist.
- `500`: Internal Server Error - Unexpected error occurred.

---

[API](https://skmtc.dev/golocad/apis/locad-api.md) - [All operations](https://skmtc.dev/golocad/apis/locad-api/llms.txt) - [OpenAPI document](https://skmtc.dev/golocad/apis/locad-api/revisions/428200f33a81?raw)
