Update to Response Format of GetSalesByDate!
ATTN!!! We will be updating the response format of the GetSalesByDate call in mid-January. Due to the nature of the update, you may need to update your code to accommodate this change. See the change(s) below:
How the Current Response Looks
[
{
"Id": "test-Sale",
"Status": "ReadyToShip",
"SaleDate": "2016-12-16T19:32:49.2847810Z",
"Marketplace": "Manual",
"MerchantItems": [
{
"Sku": "testSku1",
"Quantity": 1,
"UnitPrice": {
"a": 0,
"s": "$"
},
"PartNumber": ""
}
],
"FulfilledItems": [],
"MerchantKits": [],
"FulfilledKits": [],
"Client": "",
"Channel": "Manual",
"ShippingCost": {
"a": 0,
"s": "$"
},
"ShippingCharge": {
"a": 0,
"s": "$"
},
"ShippingCarrier": "",
"ShippingClass": "",
"ShippingInfo": {
"City": "",
"Region": "",
"Country": "",
"PostalCode": "",
"Address1": "",
"Address2": ""
},
"ContactInfo": {
"FirstName": "",
"LastName": "",
"Company": "",
"Phone": "",
"Email": ""
},
"Notes": "",
"PrintedStatus": false,
"LastPrintedDate": "0001-01-01T00:00:00.0000000Z"
}
]
How the Updated Response Will Look
{
"Sales": [
{
"Id": "test-sale",
"Status": "Pending",
"SaleDate": "2016-12-15T20:13:32.0000000Z",
"Marketplace": "Magento",
"MerchantItems": [
{
"Sku": "testSku1",
"Quantity": 1,
"UnitPrice": {
"a": 123,
"s": "$"
},
"PartNumber": "test mpn"
}
],
"FulfilledItems": [],
"MerchantKits": [],
"FulfilledKits": [],
"Client": "[email protected]",
"Channel": "Magento",
"ShippingCost": {
"a": 0,
"s": "$"
},
"ShippingCharge": {
"a": 0,
"s": "$"
},
"ShippingCarrier": "flatrate_flatrate",
"ShippingClass": "Flat Rate - Fixed",
"ShippingInfo": {
"City": "test",
"Region": "Georgia",
"Country": "US",
"PostalCode": "123456",
"Address1": "test",
"Address2": "test"
},
"ContactInfo": {
"FirstName": "test",
"LastName": "test",
"Company": "company",
"Phone": "1234567891",
"Email": "[email protected]"
},
"Notes": null,
"PrintedStatus": false,
"LastPrintedDate": "0001-01-01T00:00:00.0000000Z"
}
],
"Status": "OK",
"Errors": []
}
Notice how, in the new response, we will return a "Sales": [] label before the sales as well as the addition of the "Status" and "Errors" arrays.
If you need additional time to update your integration(s), please contact us directly at [email protected] or feel free to post on the forums here at dev.skuvault.
As stated above, we will be implementing this change in mid-January. As of now, there is not a hard deadline due to nature of such a change. We are willing to give more time if necessary. We will send out another announcement as soon as we have a hard deadline. This should be coming in the next week or so.
Thank you.