1. PO
Onflow Open API
  • Getting Started
  • Overall logic
  • Error code
  • API
    • Config
      • Get Warehouse
      • Get Brand
      • Get Province
      • Get District
      • Get Ward
      • Upload file
    • Product
      • Create Product
      • Assign Product
      • Get Product List
      • Get Product Detail
      • Get Stock
      • Deactivate Product
    • PO
      • Create PO
        POST
      • Get PO List
        GET
      • Get PO Bill
        GET
      • Get PO Detail
        GET
      • Get PO Inspection Detail
        GET
      • Cancel PO
        PUT
    • Shipment
      • B2C Shipment
        • Create B2C Shipment
        • Get B2C Shipment List
        • Get B2C Shipment Detail
        • Cancel B2C Shipment
      • B2C Return shipment
        • Create Return B2C Shipment
        • Get Return B2C Shipment List
        • Get Return B2C Shipment Detail
        • Cancel Return B2C Shipment
  • Webhook
    • Shipment
      • Updated Shipment Status
    • Return
      • Updated Return Status
    • PO
      • Updated PO Status
    • Stock
      • Updated Stock
  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' \
--header 'Content-Type: application/json'
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-27 02:34:51
Previous
Get PO Inspection Detail
Next
Create B2C Shipment
Built with