Skip to main content

PurchaseOrderFinishedGoodsPOST

Request body for creating a Finished Goods (item) Purchase Order. Requires packaging_details. Line items use product/item references (entity_type item).

lines object[]required

Purchase Order Line information (finished goods only; ProductItem or LinkedProduct).

Possible values: >= 1

  • Array [
  • oneOf

    Order Line information

    unit_costnumber<double>

    Cost Amount

    unit_cost_currency_codeCostCurrencyCodenullable

    Cost Currency Code. Possible values: See full list here

    Possible values: <= 3 characters

    Example: USD
    shipment_termShipmentTerm

    Shipment terms

    Possible values: <= 255 characters

    Example: DDP
    additional_attributes object[]nullable

    Additional custom attributes associated with the entity

    fieldTypestring

    The type of the attribute (str, num, dte, etc)

  • Array [
  • keystringrequired

    The identifier of the attribute

    Possible values: <= 255 characters

    value objectrequired
    oneOf
    string
  • ]
  • item ProductItem

    Product Item data

    custom_idstringrequired

    Custom Identifier for the Product referred

    Possible values: <= 255 characters

    Example: item_123
    entity_typestringrequired

    Possible values: [item]

    style_idstring

    Possible values: <= 255 characters

    style_namestring

    Possible values: <= 255 characters

    product_categorystring

    The Product Category ID

    Possible values: <= 255 characters

    product_linestring

    The Product Line ID

    Possible values: <= 32 characters

    departmentstringnullable

    The Department ID

    Possible values: <= 255 characters

    classstringnullable

    The Class ID

    Possible values: <= 255 characters

    brandstring

    The Brand ID

    Possible values: <= 255 characters

    colorstringrequired

    Color of the product

    Possible values: <= 255 characters

    sizestringrequired

    Size of the product

    Possible values: <= 255 characters

  • ]
  • total_quantityintegernullable

    Total quantity of the purchase order, must be non negative

    Example: 100
    total_quantity_uom_codestringnullable

    Unit of measure code for the total quantity. Possible values: See full list here

    Possible values: <= 30 characters

    Example: pc
    data_provider_custom_idstringnullable

    Local Custom ID of the organization that owns item references in this PO

    Possible values: <= 255 characters

    Example: data_provider_1
    custom_idstringnullable

    Original purchase order number stored in client's system

    Possible values: <= 255 characters

    Example: opo_1
    uidstringrequired

    Also called po_id. Unique identifier of the purchase order

    Possible values: <= 255 characters

    Example: abc-def-123-456
    created_atstring<date-time>required

    Creation date of the purchase order

    Example: 2025-12-15T10:01:10.693888Z
    issue_datestring<date>nullable

    The date the Purchase Order was issued (PO Issue Date). It is stored in the same field as created_date. When issue_date is provided, even as null, it takes priority over created_date. created_date is used only when issue_date is omitted. On update, if the resulting date is null or omitted the previously stored value is cleared.

    Example: 2023-02-10
    created_datestring<date>nullabledeprecated

    Deprecated, use issue_date. Used only when issue_date is omitted.

    Example: 2023-02-10
    client_idstringnullable

    Local Custom ID of the Brand/Retailer organization of the purchase order

    Possible values: <= 255 characters

    Example: client_1
    updated_atstring<date-time>required

    Last updated date of the purchase order

    Example: 2025-12-15T10:01:10.693897Z
    updated_datestring<date-time>nullable

    The last updated date from the client system of the Purchase Order

    Example: 2019-02-20T06:37:18Z
    commit_idstringnullable

    Commit ID of the purchase order

    Possible values: <= 255 characters

    Example: commit_id_1
    commit_po_sequencestringnullable

    Commit PO sequence of the purchase order

    Possible values: <= 255 characters

    Example: commit_po_sequence_1
    delivery_datestring<date>nullable

    Delivery date or shipment start date of the purchase order

    Example: 2021-05-23
    event_namestringnullable

    Name of the corresponding event in the client's system

    Possible values: <= 255 characters

    Example: Event 1
    factory_custom_idstringnullable

    Local Custom ID of the Factory organization of the purchase order

    Possible values: <= 255 characters

    Example: factory_1
    in_store_datestring<date-time>nullable

    In store date of the purchase order

    Example: 2021-06-01T00:00:00Z
    po_numberstringrequired

    Purchase order number to be stored in Inspectorio

    Possible values: non-empty and <= 255 characters

    Example: po_1
    po_sourcestringnullable

    Indicate the source of materials (produced by domestic vendors or imported from vendors outside the country)

    Possible values: <= 255 characters

    Example: domestic
    po_statusstringnullable

    Status of the purchase order. Accepts the string value "canceled" or a JSON null value to clear the status.

    Possible values: [canceled, null]

    Example: canceled
    po_typestringnullable

    Purchase order type in a pre-configured list

    Possible values: non-empty and <= 80 characters

    Example: po_type_1
    share_to_idsstring[]nullable

    Local Custom IDs of the shared organizations of the purchase order

    Possible values: <= 255 characters

    Example: ["sub_org_1"]
    ship_end_datestring<date-time>nullable

    Shipment end date of the purchase order

    Example: 2021-05-30T00:00:00Z
    confirmation_datestring<date>nullable

    Confirmation date of the purchase order

    Example: 2025-12-15
    approval_datestring<date>nullable

    Approval date of the purchase order

    Example: 2025-12-20
    vendor_custom_idstringrequired

    Local Custom ID of the Supplier organization of the purchase order

    Possible values: non-empty and <= 255 characters

    Example: vendor_1
    total_costnumber<double>nullable

    Cost Amount

    total_cost_currency_codeCostCurrencyCodenullable

    Cost Currency Code. Possible values: See full list here

    Possible values: <= 3 characters

    Example: USD
    packaging_details object[]required

    Packaging details information (required for Finished Goods PO).

  • Array [
  • oneOf

    Assortment of Multiple Products

    carton_quantityintegerrequired

    Possible values: >= 1

    packaging_type stringrequired

    Possible values: [assortment, solid]

    assortment_idstringrequired

    Possible values: <= 255 characters

    items AssortmentPackagedProduct[]
  • Array [
  • custom_idstringrequired

    Custom Identifier for the Product referred

    Possible values: <= 255 characters

    Example: item_123
    entity_typestringrequired

    Possible values: [item]

    case_pack_quantityintegerrequired

    Number of units in a Carton

    Possible values: >= 1

    quantity_uom_codestringnullable

    Unit of measure code for quantity (required when entity_type is material). Possible values: See full list here

    Possible values: <= 255 characters

    Example: m
  • ]
  • ship_to_regionQuantityBreakdownShipToRegion

    Ship To Region. Only allowed when the PO has quantity_breakdown true.

    Possible values: <= 255 characters

    Example: CB8
    ship_to_locationQuantityBreakdownShipToLocation

    Ship To Location. Only allowed when the PO has quantity_breakdown true.

    Possible values: <= 255 characters

    Example: OSDE
    delivery_periodQuantityBreakdownDeliveryPeriod

    Delivery Period. Only allowed when the PO has quantity_breakdown true.

    Possible values: <= 255 characters

    Example: 2612
  • ]
  • quantity_breakdownboolean

    Break solid quantities down by Ship To Region, Ship To Location and Delivery Period. When true, every solid item must carry quantities and every assortment must carry at least one of ship_to_region, ship_to_location or delivery_period. When false or omitted, those fields are rejected. On update, omitting the flag keeps the stored value, and a PO saved with true cannot be set back to false.

    Default value: false
    additionalAttributes object[]nullable

    Additional custom attributes associated with the entity

  • Array [
  • keystringrequired

    The identifier of the attribute

    Possible values: <= 255 characters

    value objectrequired
    oneOf
    string
  • ]
  • PurchaseOrderFinishedGoodsPOST
    {
    "packaging_details": [
    {
    "carton_quantity": 0,
    "packaging_type": "assortment",
    "assortment_id": "string",
    "items": [
    {
    "custom_id": "item_123",
    "entity_type": "item",
    "case_pack_quantity": 0,
    "quantity_uom_code": "m"
    }
    ],
    "ship_to_region": "CB8",
    "ship_to_location": "OSDE",
    "delivery_period": "2612"
    },
    {
    "carton_quantity": 0,
    "assortment_id": "string",
    "items": [
    {
    "custom_id": "item_123",
    "entity_type": "item",
    "case_pack_quantity": 0,
    "quantity_uom_code": "m"
    }
    ],
    "ship_to_region": "CB8",
    "ship_to_location": "OSDE",
    "delivery_period": "2612",
    "item": {
    "custom_id": "item_123",
    "entity_type": "item",
    "case_pack_quantity": 0,
    "quantity_uom_code": "m",
    "quantity": 0,
    "quantities": [
    {
    "ship_to_region": "CB8",
    "ship_to_location": "OSDE",
    "delivery_period": "2612",
    "quantity": 61
    }
    ]
    }
    },
    {
    "carton_quantity": 0,
    "packaging_type": "solid",
    "item": {
    "custom_id": "item_123",
    "entity_type": "item",
    "case_pack_quantity": 0,
    "quantity_uom_code": "m",
    "quantity": 0,
    "quantities": [
    {
    "ship_to_region": "CB8",
    "ship_to_location": "OSDE",
    "delivery_period": "2612",
    "quantity": 61
    }
    ]
    }
    }
    ],
    "quantity_breakdown": false,
    "lines": [
    {
    "item": {
    "custom_id": "item_123",
    "entity_type": "item",
    "style_id": "string",
    "style_name": "string",
    "product_category": "string",
    "product_line": "string",
    "department": "string",
    "class": "string",
    "brand": "string",
    "color": "string",
    "size": "string"
    },
    "unit_cost": 0,
    "unit_cost_currency_code": "USD",
    "shipment_term": "DDP",
    "additional_attributes": [
    {
    "key": "string",
    "value": "string"
    }
    ]
    },
    {
    "item": {
    "custom_id": "item_123",
    "entity_type": "item"
    },
    "unit_cost": 0,
    "unit_cost_currency_code": "USD",
    "shipment_term": "DDP",
    "additional_attributes": [
    {
    "key": "string",
    "value": "string"
    }
    ]
    }
    ],
    "additionalAttributes": [
    {
    "key": "string",
    "value": "string"
    }
    ],
    "total_quantity": 100,
    "total_quantity_uom_code": "pc",
    "data_provider_custom_id": "data_provider_1",
    "custom_id": "opo_1",
    "uid": "abc-def-123-456",
    "created_at": "2025-12-15T10:01:10.693888Z",
    "issue_date": "2023-02-10",
    "client_id": "client_1",
    "updated_at": "2025-12-15T10:01:10.693897Z",
    "updated_date": "2019-02-20T06:37:18Z",
    "commit_id": "commit_id_1",
    "commit_po_sequence": "commit_po_sequence_1",
    "delivery_date": "2021-05-23",
    "event_name": "Event 1",
    "factory_custom_id": "factory_1",
    "in_store_date": "2021-06-01T00:00:00Z",
    "po_number": "po_1",
    "po_source": "domestic",
    "po_status": "canceled",
    "po_type": "po_type_1",
    "share_to_ids": [
    "sub_org_1"
    ],
    "ship_end_date": "2021-05-30T00:00:00Z",
    "confirmation_date": "2025-12-15",
    "approval_date": "2025-12-20",
    "vendor_custom_id": "vendor_1",
    "total_cost": 0,
    "total_cost_currency_code": "USD"
    }