API Docs
Home
Home
Developer GuideAPI
StatusWebhooks
Developer GuideAPI
StatusWebhooks
  1. Shipment Inbound
  • Config
    • List Pickup Address
      GET
    • List Box Dimension
      GET
    • List vendor
      GET
    • List store
      GET
  • Online Product
    • Options
      • List category
      • List brand
    • Create Single Product
      POST
    • Create Product From Product Inventory
      POST
    • List product
      GET
    • Product detail
      GET
  • Product Inventory
    • Options
      • List Outbound Strategy
      • List Product Type
      • List Material
      • List Storage Method
    • List product inventory
      GET
    • Product inventory detail
      GET
    • Create single inventory product
      POST
  • Order
    • Shipping Service
      • Preview shipping prices
        • List shipping service
        • List available courier
      • List available courier from order
      • List shipping service of courier
    • Create order B2C
      POST
    • Create order B2B
      POST
    • List order
      GET
    • Order detail
      GET
    • Cancel order
      PATCH
  • Shipment
    • Create shipment auto
      POST
    • [Retail][Ship by self] Create shipment with item
      POST
    • Cancel shipment
      PATCH
    • List shipment
      GET
    • Shipment detail
      GET
    • List shipment of order
      GET
  • Shipment Inbound
    • Create shipment inbound
      POST
    • Cancel shipment inbound
      PATCH
    • List shipment inbound
      GET
    • Shipment inbound detail
      GET
    • Shipment inbound items
      GET
  • Order Return
    • List return order
    • Return order detail
    • Create return order
    • Cancel Return Order
  • Courier
    • List courier service integrated
    • List courier operate
    • List courier integrated
  • Address Directory
    • Province
    • District
    • Ward
  1. Shipment Inbound

Cancel shipment inbound

PATCH
/api/v1/public/shipments/inbound/update-status/{{inbound_id}}
This API updates the status of a specific inbound shipment. Setting the status to 700 will cancel the shipment.
URL Path Parameter:
{{inbound_id}} (integer) — ID of the inbound shipment you want to cancel.
status: 700 → means "Canceled"
Important Considerations:
Ensure the shipment is in a valid state for cancellation (not completed, already processed, or canceled).
Only authorized users should have permission to perform this action.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH '/api/v1/public/shipments/inbound/update-status/{{inbound_id}}' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{

"status": 700

}'
Response Response Example
200 - Success
{
  "status_code": 200,
  "data": {
    "shipment_inbound_id": 1363,
    "status": 700
  },
  "error": false,
  "error_code": null,
  "log_id": null,
  "messages": "",
  "total": 1
}

Request

Header Params
Authorization
string 
required
Default:
{{your_api_key_here}}
Body Params application/json
status
integer 
required
status: 700 → means "Canceled"
Examples

Responses

🟢200OK
application/json
Body
status_code
integer 
optional
HTTP status code (200 = success)
data
object 
optional
shipment_inbound_id
integer 
optional
The ID of the shipment that was updated
status
integer 
optional
The new status (700 = canceled)
error
boolean 
optional
Indicates whether an error occurred (false = success)
error_code
string 
optional
log_id
string 
optional
messages
string 
optional
total
integer 
optional
Usually indicates the number of records affected (1 = one shipment updated)
🟠400Bad Request
Previous
Create shipment inbound
Next
List shipment inbound
Built with