Purchase order API

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.

  1. 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?

  2. 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

  3. Is there a working example of creating a purchase order with line items via the API that we can reference?

Hey @zeeshankhan,

Unfortunately, we do not support creating purchase orders through the API as it is not a documented endpoint in our API docs.

I would suggest that you contact Veeqo Support via the support messenger in the Veeqo app or contacting helpme@support.veeqo.com as we would be able to submit a feature request on your behalf to support this endpoint.

Let me know if you have any further questions,
Alex - Veeqo