/
Amazon Integration

Amazon Integration

There are following Business Models in Amazon Integration:

  • FBA

  • MFN

    • EasyShip

    • SelfShip

    • SellerShip

FBA

We call following APIs in the given sequence:

PULL ORDER API: The reconciliation of Accepted and Cancelled Orders are done through LIST ORDER API

Link: LIST ORDER API

CONFIRM ORDER API: When the order has been received and created in Eshopbox System then the order Items inventory is checked. If its found unfulfillable then the order has been rejected and if found fulfillable then Confirm Order API is called.

Confirm Order API Link: CONFIRM ORDER API

Reject Order API Link: REJECT ORDER API

SHIPMENT ACCEPTED EVENT

When the Shipment Accepted Event arrives then there are total 4 API calls are made as given below

  1. CONFIRM ORDER API: CONFIRM ORDER API

  2. CREATE PACKAGE API: CREATE PACKAGE API

  3. RETRIEVE SHIPPING OPTIONS API: RETRIEVE SHIPPING OPTIONS API

  4. GENERATE INVOICE: GENERATE INVOICE

SHIPMENT REJECTED EVENT

When the Shipment Rejected Event arrives then only 1 API call is made as given below

  1. REJECT ORDER API: REJECT ORDER API

REAL-TIME API:

 

  1. LABEL GENERATE API: GENERATE SHIP LABEL API

 

SHIPMENT DISPATCHED EVENT

When the Shipment Dispatched Event arrives then only 1 API call is made as given below

  1. SHIP ORDER API: SHIP ORDER API

 

**NOTE: In case of MFN, Retrieve Shipping Options API will return courier partners details which will be used while Generating Ship Label. However, to identify which order belongs to Prime, EasyShip, or SelfShip, we need to do as given below:

PULL ORDER API:

Once the order is received, check for the ChannelName as shown below. It should Reflect “MFN“ or “FBA”. On the basis of channelName, differentiate the flow and proceed further

Also, check what is the shippingType provided in the order as shown below:

shippingType Value

Signifies

shippingType Value

Signifies

MARKETPLACE

If it is Marketplace it means the order belongs Easyship model

SELF

If it is Selfship it means the order belongs to SelfShip model

 

Now, according to the channelName and shippingType value, further processes will be carried out respectively.

 

**NOTE: To Generate Ship Label, it is mandatory to pass shippingOptionId which is the ID of the courier partner returned by the RetrieveShippingOptions API, we need to use recommendedShippingOptions given by the API as shown below:

 

Now we need to store this response and need to extract the required details while Generating Ship Label.

 

**Note: There is a “shipBy” key given in the RetrieveShippingOptions API which helps identify whether the order will be shipped by following:

 

  • MARKETPLACE

  • THIRD_PARTY_CARRIER

  • SELLER

In case of THIRD_PARTY_CARRIER, We need to pass following details while Generating Ship Label along with ShippingOptionsId

 

 

 

 

 

 

 

 

 

 

Related content