--- title: "Troubleshooting Orders that aren't created when using API calls Troubleshooting We are investigating this issue" slug: "troubleshooting-orders-that-arent-created-when-using-api-calls" tags: ["Reviews ", "Custom"] updated: 2024-04-01T14:33:44Z published: 2024-04-01T14:33:44Z canonical: "support.yotpo.com/troubleshooting-orders-that-arent-created-when-using-api-calls" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.yotpo.com/llms.txt > Use this file to discover all available pages before exploring further. # Troubleshooting Orders that aren't created when using API calls Products Reviews ###### Supported plans Free, Starter, Pro, Premium, Enterprise ###### eCommerce Platform Custom When [creating orders via an API call to Yotpo](https://core-api.yotpo.com/reference/create-order), you may see a 200-OK confirmation, but the order isn't created on Yotpo's backend when checking it via a GET call. Disclaimer: This troubleshooting guide is meant for experienced developers only. ## Reason 1: Wrong endpoint is used Make sure you are pointing to the relevant resource for your request. For example, if you're calling the single create API, use ***https://api.yotpo.com/apps/:app_key/purchases/***For the mass create API, use ***https://api.yotpo.com/apps/:app_key/purchases/mass_create.json*** ## Reason 2: validate_data value is in quotes The validate_data is a Boolean property, so make sure you don't put it in single or double quotes as a string. Such requests will return 200-OK, but the order won't get created. The correct format is this: ``` "validate_data" : true, ``` ## Reason 3: Wrong Encoding Some automated integration tools can set the request to a certain encoding. Make sure the request body is encoded as UTF-8. There have been cases where an otherwise valid request was sent in the wrong encoding and responded with 200-OK , but orders were not created. ## Reason 4: HTTP header missing Orders requests must include the following HTTP header for with every call: "content-type: application/json". One way to test this is to create a http://requestb.in and have them post their order to that URL. You can then check to ensure that the JSON and the HTTP header are correct. ## Reason 5: Information not in quotes All the variables in the JSON must be inside quotes (except for validate_data ) - you can see in the screenshot below that the "order_id" and "name" variables don't have quotes before and after the data. ![](https://cdn.document360.io/f3c2ab59-fe4c-4f93-9614-2872f40e8aa7/Images/Documentation/23c69749-bc33-45b7-a235-f7f15c8bc966.png?sv=2026-02-06&spr=https&st=2026-11-18T17%3A39%3A09Z&se=2026-11-18T18%3A39%3A09Z&sr=b&sp=r&sig=PKUE3u0bjlOWzuartHUtCrFtfDN8v0i8Xqlo8VmS5Jk%3D) ## Reason 6: Delays on Yotpo's backend Since all orders created are entering a queue on Yotpo's end, we would recommend waiting a couple of hours before checking if the order has been received. #### Sample Single Order Create: ```javascript POST https://api.yotpo.com/apps/DsVSLp1V2hR7I61HkTFYFdASd/purchases { "validate_data": true, "platform": "general", "utoken": "5KS69gfxtymYGa8RYF27WT1tbnASAze8rkhLVglZ", "email": "client@abc.com", "customer_name": "bob", "order_id": "order_1", "order_date": "2010-10-14", "currency_iso": "USD", "products": { "SKUaaa12": { "url": "http://example_product_url1.com", "name": "product1", "image": "http://images2.fanpop.com/image/photos/13300000/A1.jpg", "description": "this is the description of a product", "price": "100", "specs": { "upc": "USB", "isbn": "thingy" }, "product_tags": "books" } } } ``` #### Sample Mass Order Create: ```javascript POST http://api.yotpo.com/apps/DsVSLp1V2hR7I61HkTFYFdASd/purchases/mass_create { "validate_data": true, "platform": "general", "utoken": "NqJwYoQYNcUY5odr6cA6xhXoZPqpnDzRFO1y7MXl", "orders": [ { "email": "bill@abc.com", "customer_name": "bill", "order_id": "aaa", "order_date": "2015-12-28", "currency_iso": "USD", "products": { "SKU13241": { "url": "http://www.gkshops.com/USBthingy.html", "name": "USBthingy", "image": "http://images2.fanpop.com/image/photos/13300000/A1.jpg", "description": "This is the description of a product", "price": "39", "specs": { "upc": "USB", "isbn": "thingy" } }, "bbb12": { "url": " http://www.gkshops.com/BigUSBthingy.html ", "name": " BigUSBthingy ", "image": "http://images2.fanpop.com/image/photos/13300000/A2.jpg", "description": "This is just what you always wanted. ", "price": "29", "specs": { "upc": "USB", "isbn": "Big" } } } }, { "email": "bob@abc.com", "customer_name": "bob", "order_id": "bbb", "order_date": "2015-12-29", "currency_iso": "USD", "products": { "SKUaaa22": { "url": "http://example_product_url1.com", "name": "product1", "image": "http://images2.fanpop.com/image/photos/13300000/A2.jpg", "description": "this is the description of a product", "price": "69", "specs": { "upc": "Mega-product" } } } } ] } ```