We've successfully connected to our store, using the Bluepark API, and can grab Order and SKU details OK.
We'd now like to create orders we are grabbing from Amazon into out Bluepark store.
Try as I might, I'm unable to create an order through the API. I'm using the simplest of examples, as detailed in API documentation, but nothing is being created? I'm not clear how to pass in my order data. If anyone is successfully doing this, perhaps you might be kind enough to point out what I've missed and/or what I might be doing wrong.
Essentially, this is my example call to API to create an order...
Thanks, hopefully!
TonyRS
We'd now like to create orders we are grabbing from Amazon into out Bluepark store.
Try as I might, I'm unable to create an order through the API. I'm using the simplest of examples, as detailed in API documentation, but nothing is being created? I'm not clear how to pass in my order data. If anyone is successfully doing this, perhaps you might be kind enough to point out what I've missed and/or what I might be doing wrong.
Essentially, this is my example call to API to create an order...
Code:
$order[0]['email_address'] = "mail@xyzdomain.co.uk";
$order[0]['products'][0]['sku'] = "C792X77G";
$order[0]['products'][0]['quantity'] = 1;
$response = bp::create("orders", $order));
TonyRS
Comment