# The order is unable to be created with this channel type

**URL:** <https://developer-forum.veeqo.com/t/the-order-is-unable-to-be-created-with-this-channel-type/234>\
**Category:** API Queries (How To)\
**Created:** [June 10, 2020, 6:41am UTC](https://developer-forum.veeqo.com/t/the-order-is-unable-to-be-created-with-this-channel-type/234 "2020-06-10T06:41:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jab.daomilang](https://avatars.discourse-cdn.com/v4/letter/j/959FA8/32.png) [@jab.daomilang](https://developer-forum.veeqo.com/u/jab.daomilang)\
**Post date:** [June 10, 2020, 6:41am UTC](https://developer-forum.veeqo.com/t/the-order-is-unable-to-be-created-with-this-channel-type/234/1 "2020-06-10T06:41:08Z")

</div>

Hi,

I’m trying to create an order via the API with the following input.

Request Body:  
{  
“order”: {  
“channel\_id”: 52720,  
“customer\_id”: 50231737,  
“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”: 19359804,  
“additional\_options”: “This thing is a thing”  
}  
],  
“additional\_order\_level\_taxless\_discount”: “19.50”,  
“delivery\_method\_id”: 206074,  
“delivery\_cost”: “2.00”,  
“total\_tax”: “35.54”,  
“total\_discounts”: “49.5”,  
“payment\_attributes”: {  
“payment\_type”: “paypal”,  
“reference\_number”: “PPP1234”  
},  
“deliver\_to\_attributes”: {  
“customer\_id”: 50231737,  
“first\_name”: “Jabbar”,  
“last\_name”: “Daomilang”,  
“address1”: “Tech Hub”,  
“address2”: “221 High Street”,  
“city”: “Swansea”,  
“company”: “AppTradies”,  
“country”: “GB”,  
“state”: null,  
“zip”: “SA1 1NW”,  
“phone”: null  
},  
“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: 400 Bad Request {“error\_messages”:“The order is unable to be created with this channel type”}

Could you let me know what I am missing? Note that the product (or sellable\_id) that I’m passing is related to the channel\_id. I’ve also tried all my channels/stores available but I got the same response. All the channels/stores are active.

Thanks for your help.  
Jabbar

---

<div class="post-metadata">

**Author:** ![calvin](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/calvin/32/66_2.png) [@calvin](https://developer-forum.veeqo.com/u/calvin)\
**Post date:** [June 10, 2020, 3:02pm UTC](https://developer-forum.veeqo.com/t/the-order-is-unable-to-be-created-with-this-channel-type/234/2 "2020-06-10T15:02:21Z")

</div>

Hey @jab.daomilang,

This error is returned when you attempt to create an order with a channel where the type is not `direct` or `retail`. So in your `channel_id` parameter, you will need to change that to a Direct channel (you can create it at [https://app.veeqo.com/channels](https://app.veeqo.com/channels) if one does not exist already)

Hope this helps.

---

<div class="post-metadata">

**Author:** ![jab.daomilang](https://avatars.discourse-cdn.com/v4/letter/j/959FA8/32.png) [@jab.daomilang](https://developer-forum.veeqo.com/u/jab.daomilang)\
**Post date:** [June 11, 2020, 4:11am UTC](https://developer-forum.veeqo.com/t/the-order-is-unable-to-be-created-with-this-channel-type/234/3 "2020-06-11T04:11:14Z")

</div>

Hi @calvin,

Thanks for your response. What does that mean with my existing channels that are not direct or retail? What we’re really trying to achieve is creating an order that are related to the Shopify channel.

Thanks.

---

<div class="post-metadata">

**Author:** ![calvin](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/calvin/32/66_2.png) [@calvin](https://developer-forum.veeqo.com/u/calvin)\
**Post date:** [June 11, 2020, 10:24am UTC](https://developer-forum.veeqo.com/t/the-order-is-unable-to-be-created-with-this-channel-type/234/4 "2020-06-11T10:24:51Z")

</div>

Hey @jab.daomilang!

Integrated channels such as Shopify can only be used as the source for orders created through that particular remote channel.

So in this case, the best option will be to create a direct channel named something like “Shopify API Orders” and use this for the channel\_id of those orders.

Hope this helps

---

<div class="post-metadata">

**Author:** ![jab.daomilang](https://avatars.discourse-cdn.com/v4/letter/j/959FA8/32.png) [@jab.daomilang](https://developer-forum.veeqo.com/u/jab.daomilang)\
**Post date:** [June 11, 2020, 11:41am UTC](https://developer-forum.veeqo.com/t/the-order-is-unable-to-be-created-with-this-channel-type/234/5 "2020-06-11T11:41:34Z")

</div>

That’s really helpful @calvin . Thank you very much.
