Create Purchase Order

Function

To create purchase order
建立進貨單

URL

POST API_DOMAIN/v1/pos/purchase_orders

Request Parameters

ParameterTypeDescriptionExample
purchase_order.type
  • Required
Stringtype of PurchaseOrder
purchase
return
purchase
purchase_order.scheduled_timeDateTimePurchase Order Scheduled Arrival Date2018-01-10T06:33:45.231+00:00
purchase_order.actual_timeDateTimePurchase Order Completed Date2018-01-10T06:33:45.231+00:00
purchase_order.other_feeFloatPurchase Order Other Fee111
purchase_order.noteStringPurchase Order Remarksremark
purchase_order.issuer_idStringPurchase Order Issuer ID6095098351f9cf003e6768fe
purchase_order.executor_idStringPurchase Order Executor ID6095098351f9cf003e6768fe
purchase_order.channel_id
  • Required
StringPurchase Order Channel ID6095098351f9cf003e6768fe
purchase_order.items
  • Required
Array<PurchaseOrderItem>Purchase Order Products
ParameterTypeDescriptionExample
item.product_idStringProduct ID6095098351f9cf003e6768fe
item.variation_idStringVariation ID6095098351f9cf003e6768fe
item.total_quantityIntegerTotal Quantity1
item.current_quantityIntegerCurrent Quantity1
item.supplier_idStringProduct Supplier ID
If supplier is set in Product, then this field will be set to product's supplier ID
6095098351f9cf003e6768fe
item.purchase_priceFloatIf 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


Did this page help you?