PDA

View Full Version : Amazon BUY and ShipRush API



webteam-r
12-14-2018, 03:26 PM
Need help....

We currently are using the SR API. We download all of our orders from the shopping sites and then send address info to SR to print a label.

We now are hoping to send Amazon Prime orders to SR using the same API. Any idea what information we need to send to SR in the API to be able to use the AMAZON account we just set in the SR dashboard?

SYSOPS
12-17-2018, 07:13 AM
Please check your email for follow up and example request.

Thank you,
SYSOPS

webteam-r
12-29-2018, 05:28 PM
Below is info that was requested by SR support. Was informed to post here...

So we just tested this with a real amazon order. Unfortunately it failed, i've added ordernum and external id as the amazon id and ive added the amazon items with externalitemid as the amazon item id but it doesn't appear to work, here is the error we get:
Sorry, but the order you are shipping appears not to be an Amazon order. The Amazon carrier can only be used to ship orders placed on the Amazon site. (This is an Amazon requirement.) To set up your own shipping account (postage, FedEx or UPS), please go in to Settings and select Add Shipping Carrier.

Here is the array i send into the JSAPI:
var shipment = {
ShipTo : {
Name: $('input[name="shipping_firstname"]').val() + ' ' + $('input[name="shipping_lastname"]').val(),
Company: $('input[name="shipping_company"]').val(),
Address1: $('input[name="shipping_address_1"]').val(),
Address2: $('input[name="shipping_address_2"]').val(),
City: $('input[name="shipping_city"]').val(),
State: $('select[name="shipping_zone_id"] option:selected').text(),
PostalCode: $('input[name="shipping_postcode"]').val(),
Country: $('select[name="shipping_country_id"] option:selected').text(),
Phone: $('input[name="shipping_telephone"]').val(),
Email: $('input[name="email"]').val()
},
PaymentType: "Amazon",
EmailNotification: true,
DeliveryNotification: true,
ExceptionNotification: true,
EmailNotificationAddress: $('input[name="email"]').val(),
DeliveryNotificationAddress: $('input[name="email"]').val(),
ExceptionNotificationAddress: $('input[name="email"]').val(),
Packages: [{
Reference1: "111-5508667-2042663"
}],
Commodities: [{

"CurrencySymbol": "$",
ExternalItemId: "R14698",
ItemID: "R14698",
Description: "Fresh Air Concentrate",
Quantity: "4",
Price: "7.475",
Value: "7.475"
}],
Order: {

ShipTo : {
Name: $('input[name="shipping_firstname"]').val() + ' ' + $('input[name="shipping_lastname"]').val(),
Company: $('input[name="shipping_company"]').val(),
Address1: $('input[name="shipping_address_1"]').val(),
Address2: $('input[name="shipping_address_2"]').val(),
City: $('input[name="shipping_city"]').val(),
State: $('select[name="shipping_zone_id"] option:selected').text(),
PostalCode: $('input[name="shipping_postcode"]').val(),
Country: $('select[name="shipping_country_id"] option:selected').text(),
Phone: $('input[name="shipping_telephone"]').val(),
Email: $('input[name="email"]').val()
},
"CurrencySymbol": "$",
"TaxAmount": "0",
"Discount": "0",
OrderNum: "111-5508667-2042663",
OrderDate: "12/19/2018",
OrderDateFull: "12/19/2018 22:30:00",
ShippingPaidAmount: "0.0000",
Total: "59.8000",
PaymentType: "Amazon",
ExternalId: "111-5508667-2042663",
Items:[{
"CurrencySymbol": "$",
ExternalItemId: "63316183943666",
ItemID: "63316183943666",
ItemDescription: "Genuine Fresh Air Concentrate/Air Freshner (4)",
Quantity: "1",
Price: "29.895",
Total: "29.895"
}]
}
}

SYSOPS
12-31-2018, 07:47 AM
Asking development to review the above information. Case 70261. We will post back when an update is available.

Thank you,
SYSOPS

webteam-r
01-22-2019, 08:06 AM
Checking in on this ticket...

SYSOPR
01-22-2019, 05:49 PM
ZF Case 70261

Large apologies.

It looks like this case missed folks when they were in the office and was not attended to.

We have pushed it to the top of the queue. Please allow 2 or 3 business days to turn it.

SYSOPS
01-24-2019, 08:48 AM
Reviewed the information from development. These are the required fields needed to be passed in the js call for Amazon Shipping:

Shipment
MerchantSettingsId: <AMAZON_MERCHANT_SETTINGS_ID>
Order
OrderNum: <AMAZON_ORDER_NUMBER>

OrderItem
ItemSKU: <AMAZON_ITEM_SKU>

HTH,
SYSOPS

webteam-r
02-01-2019, 09:11 AM
Works!

Hope this will help someone else!

SYSOPS
02-01-2019, 02:59 PM
Thank you for the update.

SYSOPS