# Purchase order API

**URL:** https://developer-forum.veeqo.com/t/purchase-order-api/1671
**Category:** API Queries (How To)
**Created:** [January 26, 2026, 3:40pm UTC](https://developer-forum.veeqo.com/t/purchase-order-api/1671 "2026-01-26T15:40:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zeeshankhan](https://avatars.discourse-cdn.com/v4/letter/z/FF9900/32.png) [@zeeshankhan](https://developer-forum.veeqo.com/u/zeeshankhan)
#### Post date: [January 26, 2026, 3:40pm UTC](https://developer-forum.veeqo.com/t/purchase-order-api/1671/1 "2026-01-26T15:40:34Z")

</div>

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 (

```auto
POST /purchase_orders

```

), the purchase order is created successfully but the

```auto
purchase_order_line_items_attributes

```

are being silently ignored. The response shows

```auto
product_variants_count: 0

```

and

```auto
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:

2. **Is there a specific order of operations required?** We’ve tried:

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

---

<div class="post-metadata">

### Author: ![Alex-Veeqo](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/alex-veeqo/32/416_2.png) [@Alex-Veeqo](https://developer-forum.veeqo.com/u/Alex-Veeqo)
#### Post date: [January 26, 2026, 4:49pm UTC](https://developer-forum.veeqo.com/t/purchase-order-api/1671/2 "2026-01-26T16:49:06Z")

</div>

Hey @zeeshankhan,

Unfortunately, we do not support creating purchase orders through the API as it is not a documented endpoint in our [API docs](https://developers.veeqo.com/api/).

I would suggest that you contact Veeqo Support via the support messenger in the Veeqo app or contacting [helpme@support.veeqo.com](mailto: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
