Skip to main content
PATCH
Update Shipment
The PATCH request is used to partially update an existing entity by the given id. This means:
  • Only the fields provided in the request body will be updated.
  • Fields not provided in the request body will remain unchanged.
  • The request is idempotent, meaning multiple identical PATCH requests will always result in the same final state.

Authorizations

X-API-Key
string
header
required

API Key for authentication

Path Parameters

id
string
required

Shipment ID

Body

application/json

Shipment

name
string
Maximum string length: 255
Example:

"Standard Delivery"

shipment_items
object[]

If the key is passed as [], the items will be removed.

id
string
Maximum string length: 255
Example:

"01f5d171-d3e3-4b2b-bd57-0727194b5bed"

order_id
string
Maximum string length: 255
Example:

"ORD-2024-001"

status
enum<string>
default:active
Available options:
active,
inactive
Example:

"active"

shipment_status
enum<string>
Available options:
shipped,
created
Example:

"shipped"

tracking_info
object
updated_at
string
Example:

"2024-03-10T14:30:00Z"

remark
string
Maximum string length: 255
Example:

"Door to Door"

note
string
Example:

"Handle with care"

invoice_id
string

Optional link to an invoice

Example:

"01f5d171-d3e3-4b2b-bd57-0727194b5bed"

Response

Created

data
object