1. PO
Onflow Open API
  • Getting Started
  • API
    • Config
      • Get Warehouse
      • Get Brand
      • Upload file
    • Product
      • Create Product
      • Assign Product
      • Get Product List
      • Get Product Detail
      • Delete Product
      • Get Stock
    • PO
      • Get PO List
        GET
      • Create PO
        POST
      • Cancel PO
        PUT
    • Shipment
      • B2C shipment
        • Get B2C Shipment
        • Create B2C Shipment
          • Create B2C Shipment
        • Cancel B2C Shipment
          • Cancel B2C Shipment
  1. PO

Cancel PO

PUT
/api/v1/purchase-orders/{po_code}/cancel
This API used to cancel PO. PO can only be canceled when it is in TRANSIT status. At this stage, PO status = CANCELLED.

Request

Path Params

Header Params

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/v1/purchase-orders//cancel' \
--header 'Authorization: {{token}}' \
--header 'Accept-Language: vi'
Response Response Example
{
    "data": {
        "po_code": "OAPO232716061",
        "success": true
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.3",
    "error_detail": null
}
Modified at 2026-03-06 01:36:21
Previous
Create PO
Next
Create B2C Shipment
Built with