Create Purchase Order
Create a new purchase order with line items and lots.
Authorization
api_key In: header
Request Body
application/json
ShipOS API input for creating purchase orders. Team is derived from the API key.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/shipos/purchase-orders" \ -H "Content-Type: application/json" \ -d '{ "warehouse_id": "string", "purchase_order_line_items": [ { "product_id": "string", "ordered_quantity": 0.1, "item_price": 0.1 } ] }'{ "purchase_order_number": "string", "receiving_started_at": "2019-08-24T14:15:22Z", "shipped_at": "2019-08-24T14:15:22Z", "expected_at": "2019-08-24T14:15:22Z", "shipping": 0.1, "discount": 0.1, "name": "string", "tracking_number": "string", "inventory_status": "UNRECEIVED", "order_status": "PENDING", "warehouse_note": "string", "warehouse_name": "string", "warehouse_id": "string", "vendor_name": "string", "vendor_id": "string", "merchant_team_name": "string", "merchant_team_id": "string", "fulfiller_team_name": "string", "fulfiller_team_id": "string", "currency": "string", "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "id": "string", "total_price": 0.1, "total_accepted": 0.1, "total_ordered": 0.1, "purchase_order_line_items": [ { "uom_multiplier_to_eaches": 0, "uom_label": "string", "uom_profile_id": "string", "purchase_order_id": "string", "product_first_article_inspection_completed_at": "2019-08-24T14:15:22Z", "image_url": "string", "name": "string", "sku": "string", "product_id": "string", "item_price": 0.1, "sell_ahead": 0.1, "manufacturer_sku": "string", "accepted_quantity": 0.1, "ordered_quantity": 0.1, "location_name": "string", "location_id": "string", "inventory_status": "UNRECEIVED", "order": 0.1, "ordered_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "id": "string", "purchase_order_line_item_lots": [ { "purchase_order_line_item_id": "string", "location_name": "string", "location_id": "string", "expiration_date": "2019-08-24T14:15:22Z", "lot_code": "string", "accepted_quantity": 0.1, "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "id": "string" } ], "purchase_order_line_item_rejections": [ { "purchase_order_line_item_id": "string", "note": "string", "reason": "string", "quantity": 0.1, "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "id": "string", "attachments": [ { "file_thumbnail_url": "string", "file_url": "string", "file_name": "string", "file_id": "string", "purchase_order_line_item_rejection_id": "string", "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "id": "string" } ] } ], "attachments": [ { "file_thumbnail_url": "string", "file_url": "string", "file_name": "string", "file_id": "string", "purchase_order_line_item_id": "string", "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "id": "string" } ] } ]}