Create Purchase Order

Function

To create purchase order
建立進貨單

URL

POST <<api_domain>>/v1/pos/purchase_orders

Request Parameters

Parameter

Type

Description

Example

purchase_order.type

  • Required

String

type of PurchaseOrder
purchase
return

purchase

purchase_order.scheduled_time

DateTime

Purchase Order Scheduled Arrival Date

2018-01-10T06:33:45.231+00:00

purchase_order.actual_time

DateTime

Purchase Order Completed Date

2018-01-10T06:33:45.231+00:00

purchase_order.other_fee

Float

Purchase Order Other Fee

111

purchase_order.note

String

Purchase Order Remarks

remark

purchase_order.issuer_id

String

Purchase Order Issuer ID

6095098351f9cf003e6768fe

purchase_order.executor_id

String

Purchase Order Executor ID

6095098351f9cf003e6768fe

purchase_order.channel_id

  • Required

String

Purchase Order Channel ID

6095098351f9cf003e6768fe

purchase_order.items

  • Required

Array<PurchaseOrderItem>

Purchase Order Products

Parameter

Type

Description

Example

item.product_id

String

Product ID

6095098351f9cf003e6768fe

item.variation_id

String

Variation ID

6095098351f9cf003e6768fe

item.total_quantity

Integer

Total Quantity

1

item.current_quantity

Integer

Current Quantity

1

item.supplier_id

String

Product Supplier ID
If supplier is set in Product, then this field will be set to product's supplier ID

6095098351f9cf003e6768fe

item.purchase_price

Float

If the type of the purchase order is return, it means refund
If the type of the purchase order is purchase, it means purchase price

111

Request Example

Response Body