Onflow Open API
    • Getting Started
    • Status & Shipment Logic Overview
    • 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
        • Get PO List
        • Get PO Bill
        • Get PO Detail
        • Get PO Inspection Detail
        • Cancel PO
      • 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

    Error code

    1. General#

    error_codemessage enmessage vi
    BAD_REQUESTBad request-
    UNAUTHORIZEDInvalid access token-
    FORBIDDENUser does not have access permission-
    NOT_FOUNDResource not foundKhông tìm thấy tài nguyên
    METHOD_NOT_ALLOWEDMethod not allowedPhương thức không được hỗ trợ
    REQUEST_TIMEOUTRequest timeout-
    INVALID_PAYLOADInvalid request payload-
    INTERNAL_SERVER_ERRORInternal server error-
    PRODUCTS_BY_OASIN_NOT_FOUNDThe OASIN codes {oasin_list} do not exist-
    PRODUCTS_NOT_MAPPED_IN_WAREHOUSEThe OASIN codes {oasin_list} are not mapped to this warehouse codeMã sản phẩm {oasin_list} chưa được gắn với mã kho yêu cầu
    PRODUCTS_INACTIVEThe OASIN codes {oasin_list} must be in ACTIVE status to perform this actionMã sản phẩm {oasin_list} phải ở trạng thái ACTIVE để thực hiện thao tác này
    UNAUTHORIZEDInvalid token header. No credentials provided.Token không hợp lệ. Bạn chưa cung cấp thông tin xác thực.
    UNAUTHORIZEDInvalid token. User key not found.Token không hợp lệ. Mã xác thực không được tìm thấy.

    2. Product#

    error_codemessage enmessage vi
    DUPLICATE_BARCODEBarcode already exists within the same businessMã vạch đã tồn tại trong cùng doanh nghiệp
    ALREADY_EXISTSSKU already exists within the same businessSKU đã tồn tại trong cùng doanh nghiệp
    NOT_FOUNDBrand not foundKhông tìm thấy thương hiệu
    PRODUCT_NOT_FOUNDProduct not foundKhông tìm thấy sản phẩm
    PRODUCT_STATUS_NOT_NEWProduct must be in NEW status to perform this actionSản phẩm phải ở trạng thái NEW để thực hiện thao tác này
    PRODUCT_WAREHOUSE_CONFLICTProduct is already mapped with this warehouseSản phẩm đã được gán với kho này
    PRODUCT_CANNOT_ASSIGN_TO_WAREHOUSEProduct cannot be assigned to warehouse because its status is not allowedKhông thể gán sản phẩm vào kho vì trạng thái không được phép
    PRODUCT_NOT_IN_WAREHOUSEProduct does not exist in the specified warehouseSản phẩm không tồn tại trong kho được chỉ định

    3. PO#

    error_codemessage enmessage vi
    DUPLICATE_PACKAGE_CODEDuplicate package code values are not allowed within the same POKhông được trùng giá trị mã kiện trong cùng một PO
    DUPLICATE_OASIN_IN_ITEMSDuplicate product values are not allowed within the same packageKhông được trùng giá trị sản phẩm trong cùng một kiện hàng
    PURCHASE_ORDER_ALREADY_EXISTSmerchant_po_reference already exists within the same businessmerchant_po_reference đã tồn tại
    PURCHASE_ORDER_NOT_FOUNDPurchase order not foundKhông tìm thấy PO
    PURCHASE_ORDER_STATUS_NOT_TRANSITPurchase order must be in TRANSIT status to perform this actionPurchase order phải ở trạng thái TRANSIT để thực hiện thao tác này
    PURCHASE_ORDER_STATUS_NOT_COMPLETEDPurchase order must be in COMPLETED status to perform this actionPurchase order phải ở trạng thái COMPLETED để thực hiện thao tác này
    PURCHASE_ORDER_ALREADY_EXISTSPurchase order already existsPurchase order đã tồn tại
    Modified at 2026-04-02 10:27:24
    Previous
    Status & Shipment Logic Overview
    Next
    Get Warehouse
    Built with