# API Order 404 Error

**URL:** <https://developer-forum.veeqo.com/t/api-order-404-error/1114>\
**Category:** API Queries (How To)\
**Created:** [July 2, 2024, 1:52pm UTC](https://developer-forum.veeqo.com/t/api-order-404-error/1114 "2024-07-02T13:52:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick1](https://avatars.discourse-cdn.com/v4/letter/r/7A66F9/32.png) [@Rick1](https://developer-forum.veeqo.com/u/Rick1)\
**Post date:** [July 2, 2024, 1:52pm UTC](https://developer-forum.veeqo.com/t/api-order-404-error/1114/1 "2024-07-02T13:52:32Z")

</div>

Hello @fullsam  
I have noticed you have helped quite a few Order 404 issues,  
Our API developer has hit the same issue with Cubecart orders to Veeqo.

Could you cast your eye across this text file and hopefully give some insight as to what’s going wrong?  
Many thanks  
Rick

[https://api.veeqo.com/orders](https://api.veeqo.com/orders)

## Request Payload

//passing channel id, sellable\_id,delivery\_method\_id after fetching from relevant endpoints.  
payload

{  
“order”: {  
“channel\_id”: 227582,  
“due\_date”: “31/01/2024”,  
“number”: “pix01924”,  
“send\_notification\_email”: true,  
“line\_items\_attributes”: [  
{  
“price\_per\_unit”: “75.000”,  
“taxless\_discount\_per\_unit”: “0.00”,  
“quantity”: “1”,  
“tax\_rate”: 0.2,  
“sellable\_id”: 112475678,  
“additional\_options”: “This is a custom field for this line item”  
}  
],  
“additional\_order\_level\_taxless\_discount”: “19.50”,  
“delivery\_method\_id”: 621297,  
“delivery\_cost”: “2.00”,  
“total\_tax”: “35.54”,  
“total\_discounts”: “49.5”,  
“payment\_attributes”: {  
“payment\_type”: “paypal”,  
“reference\_number”: “PPP1234”  
},  
“customer\_attributes”: {  
“phone”: “07891234567”,  
“mobile”: “07891234567”,  
“email”: “baggins…”,  
“billing\_address\_attributes”: {  
“first\_name”: “Frodo”,  
“last\_name”: “Baggins”,  
“company”: “The Ring Bearers”,  
“address1”: “The New Bag End”,  
“address2”: “1st Avenue”,  
“city”: “Valinor”,  
“state”: “The Undying Lands”,  
“zip”: “VA1 1NB”,  
“country”: “GB”,  
“phone”: “07XXXXXXXXX”,  
“email”: “[cust@demo.org](mailto:cust@demo.org)”  
}  
},  
“deliver\_to\_attributes”: {  
“first\_name”: “Samwise”,  
“last\_name”: “Gamgee”,  
“company”: “The Fellowship”,  
“address1”: “Bag End”,  
“address2”: “Hobbiton”,  
“city”: “Shire”,  
“state”: “Middle Earth”,  
“zip”: “SH1 1BG”,  
“country”: “GB”,  
“phone”: “07891234567”,  
“email”: “Gamgee…”  
},  
“customer\_note\_attributes”: {  
“text”: “Please tell Sam to look after this puppy. --This is a customer note–”  
},  
“employee\_notes\_attributes”: [  
{  
“text”: “Package contains a dog. Use suitable box. --This is an internal note–”  
}  
]  
}  
}

## Response

{  
“error\_messages”: “Not found”  
}

---

<div class="post-metadata">

**Author:** ![fullsam](https://avatars.discourse-cdn.com/v4/letter/f/232F3E/32.png) [@fullsam](https://developer-forum.veeqo.com/u/fullsam)\
**Post date:** [July 2, 2024, 2:16pm UTC](https://developer-forum.veeqo.com/t/api-order-404-error/1114/2 "2024-07-02T14:16:19Z")

</div>

Hey @Rick1,  
Thanks for the enquiry. It looks like you are using the product ID rather than the product variant ID in your `order.line_items_attributes[0].sellable_id` field.  
To find the product variant’s ID you should make a GET request to [https://api.veeqo.com/products/112475678](https://api.veeqo.com/products/112475678), which will contain a field called `sellables`. Each object in the `sellables` array represents a product variant within Veeqo. You should find the correct product variant and note the `id`, then use that as the `sellable_id` in your request.

---

<div class="post-metadata">

**Author:** ![Rick1](https://avatars.discourse-cdn.com/v4/letter/r/7A66F9/32.png) [@Rick1](https://developer-forum.veeqo.com/u/Rick1)\
**Post date:** [July 2, 2024, 2:29pm UTC](https://developer-forum.veeqo.com/t/api-order-404-error/1114/3 "2024-07-02T14:29:41Z")

</div>

Hi fullsam,  
Thank you for the swift reply - hugely appreciated.  
I will pass this on to our API developer.

Many thanks  
Rick
