I m using API of purchase order and I m using purchase order API but it wont allow me to add the line item product to purchase order
Questions for Veeqo Support
1. Main Issue: "When creating a purchase order via the API (
POST /purchase_orders
), the purchase order is created successfully but the
purchase_order_line_items_attributes
are being silently ignored. The response shows
product_variants_count: 0
and
purchase_order_product_variants: []
even though we’re sending valid line items in the request."
Are there any validation requirements for line items that aren’t documented? The API returns 200 OK but doesn’t add the items or return any error messages.
-
Does the product variant need specific configuration before it can be added to a purchase order? For example:
-
Must it have a minimum reorder level set?
-
Must it have existing reorder rules?
-
Are there any product status requirements?
-
-
Is there a specific order of operations required? We’ve tried:
-
Creating PO with line items in one request
-
Updating the variant with supplier info first, then creating PO
-
Using PUT to update an existing PO with line items
-
-
Is there a working example of creating a purchase order with line items via the API that we can reference?