- Table of Contents
- Basics
- Sections
- Sellers
- Orders
- Reports
- requestReport
- getReportRequestList
- getReportRequestListByNextToken
- getReportRequestCount
- cancelReportRequests
- getReportList
- getReportListByNextToken
- getReportCount
- getReport
- manageReportSchedule
- getReportScheduleList
- getReportScheduleListByNextToken
- getReportScheduleCount
- updateReportAcknowledgements
- Subscriptions
- FulfillmentInventory
- Feeds
- Products
- Types used in
Products
- listMatchingProducts
- getMatchingProduct
- getMatchingProductForId
- getCompetitivePricingForSku
- getCompetitivePricingForAsin
- getLowestOfferListingsForSku
- getLowestOfferListingsForAsin
- getLowestPricedOffersForSku
- getLowestPricedOffersForAsin
- getMyFeesEstimate
- getMyPriceForSku
- getMyPriceForAsin
- getProductCategoriesForSku
- getProductCategoriesForAsin
- getServiceStatus
- Types used in
- Finances
- MerchantFulfillemnt
- ShipmentInvoicing
- Recommendations
- FulfillmentInboundShipment
- Types used in FulfillmentInboundShipment
- Address
- InboundShipmentPlanRequestItem
- PrepDetails
- InboundShipmentHeader
- InboundShipmentItem
- TransportDetailInput
- Dimensions
- Weight
- PartneredSmallParcelPackageInput
- PartneredSmallParcelDataInput
- NonPartneredSmallParcelPackageOutput
- NonPartneredSmallParcelDataInput
- Contact
- Pallet
- Amount
- PartneredLtlDataInput
- NonPartneredLtlDataInput
- getInboundGuidanceForSku
- getInboundGuidanceForAsin
- createInboundShipmentPlan
- createInboundShipment
- updateInboundShipment
- getPreorderInfo
- confirmPreorder
- getPrepInstructionsForSku
- getPrepInstructionsForAsin
- putTransportContent
- estimateTransportRequest
- getTransportContent
- confirmTransportRequest
- voidTransportRequest
- getPackageLabels
- getUniquePackageLabels
- getPalletLabels
- getBillOfLading
- listInboundShipments
- listInboundShipmentsByNextToken
- listInboundShipmentItems
- listInboundShipmentItemsByNextToken
- getServiceStatus
- Types used in FulfillmentInboundShipment
- FulfillmentOutboundShipment
- Types used in FulfillmentOutboundShipment
- getFulfillmentPreview
- createFulfillmentOrder
- updateFulfillmentOrder
- listAllFulfillmentOrders
- getFulfillmentOrder
- listAllFulfillmentOrdersByNextToken
- getPackageTrackingDetails
- cancelFulfillmentOrder
- listReturnReasonCodes
- createFulfillmentReturn
- getServiceStatus
- EasyShip
amazon-mws-api-sdk
is divided up into different sections representing the different sections of the Amazon MWS API.
Under each section are methods that perform "actions" on the MWS API, the response is parsed and returned along with the the request metadata
/**
* Configure the HttpClient
*/
const mwsOptions: MWSOptions = {
marketplace: amazonMarketplaces.US,
awsAccessKeyId: '',
mwsAuthToken: '',
sellerId: '',
secretKey: '',
}
const http = new HttpClient(mwsOptions)
/**
* Configure which API you need
* Sellers, Orders, Fulfillment Inventory, Products, Reports, Subscriptions, Finances, Feeds
*/
const sellers = new Sellers(http)
// new Orders(http), new FulfillmentInventory(http), new Products(http), new Reports(http)
// new Subscriptions(http), new Finances(http), new Feeds(http)
Name | Type | Example | Description | Required |
---|---|---|---|---|
marketplace | string | 'A2EUQ1WTGCTBG2' |
Amazon Marketplace ID | Yes |
awsAccessKeyId | string | 'AWSACCESSKEYID' |
AWS Access Key ID | Yes |
mwsAuthToken | string | 'MWSAUTHTOKEN' |
MWS Auth Token | Yes |
sellerId | string | 'SellerId' |
Seller ID | Yes |
secretKey | string | 'SECREEET' |
Secret Key | Yes |
const orders = new Orders(httpClient)
// Each action returns a tuple containing [0] the actual request data and [1] the request metadata
const [response, meta] = orders.listMarketplaceParticipations()
const { ListParticipations } = response
const { requestId, timestamp } = meta
console.log(`
Request ${requestId} made on ${timestamp.toISOString()} returned ${ListParticipations.length} participations!
`)
// Request 598a82be-d4ed-4bb6-802d-8e9150036d43 made on 2020-10-05T14:48:00.000Z returned 2 participations!
The most basic usage can be seen in the get-service-status example file
The actual request data varies between actions. Outside of some exceptions, all request data has been defined. Finding out the properties of the response object should be as easy as using your text editor's autocomplete suggestions
This is returned along with the API's response
Name | Type | Example | Description |
---|---|---|---|
requestId | string | '598a82be-d4ed-4bb6-802d-8e9150036d43' |
Amazon MWS Request Id |
timestamp | Date | new Date() |
Timestamp of the request |
quotaMax | number | 200 |
Max requests for throttling purposes |
quotaRemaining | number | 100 |
Requests remaining for throttling purposes |
quotaResetOn | Date | new Date() |
Date the quota resets |
"Throttling: Limits to how often you can submit requests"
"using-next-tokens" example file
"Using NextToken to request additional pages" from the Amazon documentation
/**
* Construct your next token with the following arguments
* 1. Valid Amazon MWS action. WITHOUT `...ByNextToken` AT THE END
* 2. Actual NextToken
*/
const nextToken = new NextToken('ListMarketplaceParticipations', 'NEXTTOKEN123')
const [
marketplaceParticipationsList,
requestMeta,
] = await sellers.listMarketplaceParticipationsByNextToken(nextToken)
const [
marketplaceParticipationsList,
requestMeta,
] = await sellers.listMarketplaceParticipationsByNextToken(nextToken)
const nextToken = marketplaceParticipationsList.NextToken
/**
* NextToken is possibly undefined
*/
if (nextToken) {
const [
newMarketplaceParticipationsList,
newRequestMeta,
] = await sellers.listMarketplaceParticipationsByNextToken(nextToken)
}
It is also possible to use the MWS
access the sections and all their actions
// Using MWS client
const usingMws = async () => {
const http = new HttpClient(mwsOptions)
/**
* Configure MWS with the same http client
*/
const mws = new MWS(http)
const [serviceStatus] = await mws.sellers.getServiceStatus()
/**
* Also available
* mws.orders, mws.feeds, mws.finances, mws.fulfillmentInventory,
* mws.products, mws.reports, mws.subscriptions
*/
if (serviceStatus.Status === 'GREEN') {
console.log(`Sellers API is up on ${serviceStatus.Timestamp}!`)
}
}
Amazon MWS Sellers API official documentation
Parameters:
None |
---|
Example:
const sellers = new Sellers(httpClient)
const [response, meta] = sellers.listMarketplaceParticipations()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const sellers = new Sellers(httpClient)
const [response, meta] = sellers
.listMarketplaceParticipationsByNextToken(new NextToken('ListMarketplaceParticipations', '123'))
Response:
Parameters:
None |
---|
Example:
const sellers = new Sellers(httpClient)
const [response, meta] = sellers.getServiceStatus()
Response:
Amazon MWS Orders API official documentation
Parameters:
Name | Type | Example | Required |
---|---|---|---|
CreatedAfter | Date | new Date() |
Yes if LastUpdatedAfter is not provided |
CreatedBefore | Date | new Date() |
No |
LastUpdatedAfter | Date | new Date() |
Yes if CreatedAfter is not provided |
LastUpdatedBefore | Date | new Date() |
No |
OrderStatus | string | 'PendingAvailability' |
No |
MarketplaceId | string[] | ['A2EUQ1WTGCTBG2'] |
No |
FulfillmentChannel | string[] | ['AFN'] |
No |
PaymentMethod | string[] | ['COD'] |
No |
BuyerEmail | string | '[email protected]' |
No |
SellerOrderId | string | 'STRINGID' |
No |
MaxResultsPerPage | number | 10 |
No |
EasyShipmentStatus | string[] | ['PendingPickUp'] |
No |
Example:
const orders = new Orders(httpClient)
const [response, meta] = orders.listOrders({ createdAfter: new Date() })
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const orders = new Orders(httpClient)
const [response, meta] = orders.listOrdersByNextToken(new NextToken('ListOrders', '123'))
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
AmazonOrderId | string[] | ['902-3159896-1390916'] |
Yes |
Example:
const orders = new Orders(httpClient)
const [response, meta] = orders.getOrder({ AmazonOrderId: ['902-3159896-1390916'] })
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
AmazonOrderId | string | '902-3159896-1390916' |
Yes |
Example:
const orders = new Orders(httpClient)
const [response, meta] = orders.listOrderItems({ AmazonOrderId: '902-3159896-1390916' })
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const orders = new Orders(httpClient)
const [response, meta] = orders
.listOrderItemsByNextToken(new NextToken('ListOrderItems', '123'))
Response:
Parameters:
None |
---|
Example:
const orders = new Orders(httpClient)
const [response, meta] = orders.getServiceStatus()
Response:
Amazon MWS Reports API official documentation
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportType | string | '_GET_FLAT_FILE_OPEN_LISTINGS_DATA_' |
Yes |
StartDate | Date | new Date() |
No |
EndDate | Date | new Date() |
No |
ReportOptions | string | 'Report Option' |
No |
MarketplaceIdList | string[] | ['A2EUQ1WTGCTBG2'] |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports
.requestReport({ ReportType: '_GET_FLAT_FILE_OPEN_LISTINGS_DATA_' })
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportRequestIdList | string[] | ['12345'] |
No. If you pass in ReportRequestId values, other query conditions are ignored |
ReportTypeList | string[] | ['_GET_FLAT_FILE_OPEN_LISTINGS_DATA_'] |
No |
ReportProcessingStatusList | string[] | ['_SUBMITTED_'] |
No |
MaxCount | number | 10 |
No |
RequestedFromDate | Date | new Date() |
No |
RequestedToDate | Date | new Date() |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports.getReportRequestList()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports
.getReportRequestListByNextToken(new NextToken('GetReportRequestList', '123'))
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportTypeList | string[] | ['_GET_FLAT_FILE_OPEN_LISTINGS_DATA_'] |
No |
ReportProcessingStatusList | string[] | ['_SUBMITTED_'] |
No |
RequestedFromDate | Date | new Date() |
No |
RequestedToDate | Date | new Date() |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports.getReportRequestCount()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportRequestIdList | string[] | ['12345'] |
No |
ReportTypeList | string[] | ['_GET_FLAT_FILE_OPEN_LISTINGS_DATA_'] |
No |
ReportProcessingStatusList | string[] | ['_SUBMITTED_'] |
No |
RequestedFromDate | Date | new Date() |
No |
RequestedToDate | Date | new Date() |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports.cancelReportRequests()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MaxCount | number | 10 |
No |
ReportTypeList | string[] | ['_GET_FLAT_FILE_OPEN_LISTINGS_DATA_'] |
No |
Acknowledged | boolean | true |
No |
ReportRequestIdList | string[] | ['12345'] |
No |
AvailableFromDate | Date | new Date() |
No |
AvailableToDate | Date | new Date() |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports.getReportList()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports
.getReportListByNextToken(new NextToken('GetReportList', '123'))
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportTypeList | string[] | ['_GET_FLAT_FILE_OPEN_LISTINGS_DATA_'] |
No |
Acknowledged | boolean | true |
No |
AvailableFromDate | Date | new Date() |
No |
AvailableToDate | Date | new Date() |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports.getReportCount()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportId | string | '12345' | Yes |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports.getReport('12345')
Response:
Depending on the ReportType, this will either be a tab-delimited flat file, an XML document, or a PDF.
Because of this, this action returns a string
instead of a JS object and it is up to the user to determine how to handle the file
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportType | string | '_GET_FLAT_FILE_OPEN_LISTINGS_DATA_' |
Yes |
Schedule | string | '_15_MINUTES_' |
Yes |
ScheduleDate | Date | new Date() |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports.manageReportSchedule({
ReportType: '_GET_FLAT_FILE_OPEN_LISTINGS_DATA_',
Schedule: '_15_MINUTES_'
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportTypeList | string[] | ['_GET_FLAT_FILE_OPEN_LISTINGS_DATA_'] |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports.getReportScheduleList()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportTypeList | string[] | ['_GET_FLAT_FILE_OPEN_LISTINGS_DATA_'] |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports.getReportScheduleCount()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ReportIdList | string[] | ['12345'] |
Yes |
Acknowledged | boolean | true |
No |
Example:
const reports = new Reports(httpClient)
const [response, meta] = reports
.updateReportAcknowledgements({ ReportIdList: ['12345'] })
Response:
Amazon MWS Subscriptions official API
Properties:
Name | Type | Example | Required |
---|---|---|---|
NotificationType | string | 'AnyOfferChanged' |
Yes |
Destination | Destination | Destination |
Yes |
IsEnabled | boolean | true |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
DeliveryChannel | string | 'SQS' |
Yes |
AttributeList | AttributeKeyValue | AttribueKeyValue | Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
Key | string | 'sqsQueueUrl' | Yes |
Value | string | 'https://sqs.us-east-1.amazonaws.com/51471EXAMPLE/mws_notifications' | Yes |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Destination | Destination | Destination |
Yes |
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.registerDestination({
MarketplaceId: 'A2EUQ1WTGCTBG2' ,
Destination: {
AttributeList: [
{
Key: 'sqsQueueUrl',
Value: 'https://sqs.us-east-1.amazonaws.com/304786922662/mws-sub-testw',
},
],
DeliveryChannel: 'SQS',
}
})
Response:
See subscriptions test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Destination | Destination | Destination |
Yes |
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.deregisterDestination({
MarketplaceId: 'A2EUQ1WTGCTBG2',
Destination: {
AttributeList: [
{
Key: 'sqsQueueUrl',
Value: 'https://sqs.us-east-1.amazonaws.com/304786922662/mws-sub-testw',
},
],
DeliveryChannel: 'SQS',
}
})
Response:
See subscriptions test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.listRegisteredDestinations({
MarketplaceId: 'A2EUQ1WTGCTBG2',
})
Response:
See subscriptions test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Destination | Destination | Destination |
Yes |
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.sendTestNotificationToDestination({
MarketplaceId: 'A2EUQ1WTGCTBG2',
Destination: {
AttributeList: [
{
Key: 'sqsQueueUrl',
Value: 'https://sqs.us-east-1.amazonaws.com/304786922662/mws-sub-testw',
},
],
DeliveryChannel: 'SQS',
}
})
Response:
See subscriptions test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Subscription | Subscription | Subscription |
Yes |
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.createSubscription({
MarketplaceId: 'A2EUQ1WTGCTBG2',
Subscription: {
IsEnabled: true,
NotificationType: 'AnyOfferChanged',
Destination: {
AttributeList: [
{
Key: 'sqsQueueUrl',
Value: 'https://sqs.us-east-1.amazonaws.com/304786922662/mws-sub-testw',
},
],
DeliveryChannel: 'SQS',
},
}
})
Response:
See subscriptions test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
NotificationType | string | 'AnyOfferChanged' |
Yes |
Destination | Destination | Destination |
Yes |
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.getSubscription({
MarketplaceId: 'A2EUQ1WTGCTBG2',
NotificationType: 'AnyOfferChanged',
Destination: {
AttributeList: [
{
Key: 'sqsQueueUrl',
Value: 'https://sqs.us-east-1.amazonaws.com/304786922662/mws-sub-testw',
},
],
DeliveryChannel: 'SQS',
},
})
Response:
See subscriptions test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
NotificationType | string | 'AnyOfferChanged' |
Yes |
Destination | Destination | Destination |
Yes |
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.deleteSubscription({
MarketplaceId: 'A2EUQ1WTGCTBG2',
NotificationType: 'AnyOfferChanged',
Destination: {
AttributeList: [
{
Key: 'sqsQueueUrl',
Value: 'https://sqs.us-east-1.amazonaws.com/304786922662/mws-sub-testw',
},
],
DeliveryChannel: 'SQS',
},
})
Response:
See subscriptions test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.listSubscriptions({
MarketplaceId: 'A2EUQ1WTGCTBG2',
})
Response:
See subscriptions test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Subscription | Subscription | Subscription |
Yes |
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.updateSubscription({
MarketplaceId: 'A2EUQ1WTGCTBG2',
Subscription: {
IsEnabled: true,
NotificationType: 'AnyOfferChanged',
Destination: {
AttributeList: [
{
Key: 'sqsQueueUrl',
Value: 'https://sqs.us-east-1.amazonaws.com/304786922662/mws-sub-testw',
},
],
DeliveryChannel: 'SQS',
},
}
})
Response:
See subscriptions test snapshot
Parameters:
None |
---|
Example:
const subscriptions = new Subscriptions(httpClient)
const [response, meta] = subscriptions.getServiceStatus()
Response:
See subscriptions test snapshot
Amazon MWS Fulfillment Inventory official documentation
Parameters:
Name | Type | Example | Required |
---|---|---|---|
SellerSkus | string[] | ['SAMPLESKU'] |
Yes, if QueryStartDateTime is not specified. Specifying both returns an error |
QueryStartDateTime | Date | new Date() |
Yes, if SellerSkus is not specified. Specifying both returns an error |
ResponseGroup | string | 'Basic' |
No |
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
No |
Example:
const fulfillmentInventory = new FulfillmentInventory(httpClient)
const [response, meta] = fulfillmentInventory.listInventorySupply({
SellerSkus: ['SAMPLESKU'],
})
Response:
See fulfillment inventory test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const fulfillmentInventory = new FulfillmentInventory(httpClient)
const [response, meta] = fulfillmentInventory
.listInventorySupplyByNextToken(new NextToken('ListInventorySupply', '123'))
Response:
See fulfillment inventory test snapshot
Parameters:
None |
---|
Example:
const fulfillmentInventory = new FulfillmentInventory(httpClient)
const [response, meta] = fulfillmentInventory.getServiceStatus()
Response:
See fulfillment inventory test snapshot
Amazon MWS Feeds API official documentation
Parameters:
Name | Type | Example | Required |
---|---|---|---|
FeedContent | string | '<XML></XML>' |
Yes |
FeedType | string | '_POST_PRODUCT_DATA_' |
Yes |
MarketplaceIdList | string[] | ['A2EUQ1WTGCTBG2'] |
No |
PurgeAndReplace | boolean | false |
No |
AmazonOrderId | string | '902-3159896-1390916' |
No |
DocumentId | string | 'DCMNTID' |
No |
FeedContent
is the actual content of the feed itself, in XML or flat file format as a string.
Example:
const feeds = new Feeds(httpClient)
const [response, meta] = feeds.submitFeed({
FeedContent: getMyXmlFileAsString(),
FeedType: '_POST_PRODUCT_DATA_',
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
FeedSubmissionIdList | string[] | ['FEEDID'] |
No |
MaxCount | number | 10 |
No |
FeedTypeList | string[] | ['_POST_PRODUCT_DATA_'] |
No |
FeedProcessingStatusList | string[] | ['_AWAITING_ASYNCHRONOUS_REPLY_'] |
No |
SubmittedFromDate | Date | new Date() |
No |
SubmittedToDate | Date | new Date() |
No |
Example:
const feeds = new Feeds(httpClient)
const [response, meta] = feeds.getFeedSubmissionList()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const feeds = new Feeds(httpClient)
const [response, meta] = feeds
.getFeedSubmissionListByNextToken(new NextToken('GetFeedSubmissionList', '123'))
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
FeedTypeList | string[] | ['_POST_PRODUCT_DATA_'] |
No |
FeedProcessingStatusList | string[] | ['_AWAITING_ASYNCHRONOUS_REPLY_'] |
No |
SubmittedFromDate | Date | new Date() |
No |
SubmittedToDate | Date | new Date() |
No |
Example:
const feeds = new Feeds(httpClient)
const [response, meta] = feeds.getFeedSubmissionCount()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
FeedSubmissionIdList | string[] | ['FEEDID'] |
No |
FeedTypeList | string[] | ['_POST_PRODUCT_DATA_'] |
No |
SubmittedFromDate | Date | new Date() |
No |
SubmittedToDate | Date | new Date() |
No |
Example:
const feeds = new Feeds(httpClient)
const [response, meta] = feeds.cancelFeedSubmissions()
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
FeedSubmissionId | string | 'FEEDID' |
Yes |
Example:
const feeds = new Feeds(httpClient)
const [response, meta] = feeds.getFeedSubmissionResult({
FeedSubmissionId: 'FEEDID'
})
Response:
- Amazon MWS returns an XML file that contains the response to a successful request or subscription.
- Response is type
string
Amazon MWS Finances API official documentation
Properties:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
IdType | string | 'ASIN' |
Yes |
IdValue | string | 'MY-ASIN-1' |
Yes |
PriceToEstimateFees | PriceToEstimateFees | PriceToEstimateFees |
Yes |
Identifier | string | 'request1' |
Yes |
IsAmazonFulfilled | boolean | true |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
ListingPrice | MoneyType | MoneyType |
Yes |
Shipping | MoneyType | MoneyType |
No |
Points | Points | Points |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
Amount | number | 1000 |
No |
CurrencyCode | string | 'USD' |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
PointsNumber | number | 1000 |
Yes |
PointsMonetaryValue | MoneyType | MoneyType |
Yes |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Query | string | 'harry potter dvd' |
Yes |
QueryContextId | string | 'ArtsAndCrafts' |
No |
Example:
const products = new Products(httpClient)
const [response, meta] = products.listMatchingProducts({
MarketplaceId: 'A2EUQ1WTGCTBG2',
Query: 'harry potter dvd',
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
ASINList | string[] | ['MY-ASIN-1'] |
Yes |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getMatchingProduct({
MarketplaceId: 'A2EUQ1WTGCTBG2',
ASINList: ['MY-ASIN-1'],
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
IdType | string | 'ASIN' |
Yes |
IdList | string[] | ['MY-ASIN-1'] |
No |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getMatchingProductForId({
MarketplaceId: 'A2EUQ1WTGCTBG2',
IdType: 'ASIN',
IdList: ['MY-ASIN-1'],
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
SellerSKUList | string[] | ['MY-SKU-1'] |
Yes |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getCompetitivePricingForSku({
MarketplaceId: 'A2EUQ1WTGCTBG2',
SellerSKUList: ['MY-SKU-1'],
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
ASINList | string[] | ['MY-ASIN-1'] |
Yes |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getCompetitivePricingForAsin({
MarketplaceId: 'A2EUQ1WTGCTBG2',
ASINList: ['MY-ASIN-1'],
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
SellerSKUList | string[] | ['MY-SKU-1'] |
Yes |
ItemCondition | string | 'New' |
No |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getLowestOfferListingsForSku({
MarketplaceId: 'A2EUQ1WTGCTBG2',
SellerSKUList: ['MY-SKU-1'],
ItemCondition: 'New',
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
ASINList | string[] | ['MY-ASIN-1'] |
Yes |
ItemCondition | string | 'New' |
No |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getLowestOfferListingsForAsin({
MarketplaceId: 'A2EUQ1WTGCTBG2',
ASINList: ['MY-ASIN-1'],
ItemCondition: 'New',
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
SellerSKU | string | 'MY-SKU-1' |
Yes |
ItemCondition | string | 'New' |
Yes |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getLowestPricedOffersForSku({
MarketplaceId: 'A2EUQ1WTGCTBG2',
SellerSKU: 'MY-SKU-1',
ItemCondition: 'New',
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
ASIN | string | 'MY-ASIN-1' |
Yes |
ItemCondition | string | 'New' |
Yes |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getLowestPricedOffersForAsin({
MarketplaceId: 'A2EUQ1WTGCTBG2',
ASIN: 'MY-ASIN-1',
ItemCondition: 'New',
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
FeesEstimateRequestList | FeesEstimateRequest[] | FeesEstimateRequest |
Yes |
Example:
const moneyType: MoneyType = {
CurrencyCode: 'USD',
Amount: 1000,
}
const sampleFee: FeesEstimateRequest = {
MarketplaceId: '',
IdType: 'ASIN',
IdValue: 'ASD',
PriceToEstimateFees: {
ListingPrice: moneyType,
},
Identifier: 'request1',
IsAmazonFulfilled: false,
}
const products = new Products(httpClient)
const [response, meta] = products.getMyFeesEstimate({
FeesEstimateRequestList: [sampleFee]
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
SellerSKUList | string[] | ['MY-SKU-1'] |
Yes |
ItemCondition | string | 'New' |
No |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getMyPriceForSku({
MarketplaceId: 'A2EUQ1WTGCTBG2',
SellerSKUList: ['MY-SKU-1'],
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
ASINList | string[] | ['MY-ASIN-1'] |
Yes |
ItemCondition | string | 'New' |
No |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getMyPriceForAsin({
MarketplaceId: 'A2EUQ1WTGCTBG2',
ASINList: ['MY-ASIN-1'],
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
SellerSKU | string | 'MY-SKU-1' |
Yes |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getProductCategoriesForSku({
MarketplaceId: 'A2EUQ1WTGCTBG2',
SellerSKU: 'MY-SKU-1',
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
ASIN | string | 'MY-ASIN-1' |
Yes |
Example:
const products = new Products(httpClient)
const [response, meta] = products.getProductCategoriesForAsin({
MarketplaceId: 'A2EUQ1WTGCTBG2',
ASIN: 'MY-ASIN-1',
})
Response:
Parameters:
None |
---|
Example:
const products = new Products(httpClient)
const [response, meta] = products.getServiceStatus()
Response:
Amazon MWS Finances API official documentation
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MaxResultsPerPage | number | 10 |
No |
FinancialEventGroupsStartedAfter | Date | new Date() |
Yes |
FinancialEventGroupStartedBefore | Date | new Date() |
No |
Example:
const finances = new Finances(httpClient)
const [response, meta] = finances.listFinancialEventGroups({
FinancialEventGroupsStartedAfter: new Date(),
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const finances = new Finances(httpClient)
const [response, meta] = finances
.listFinancialEventGroupsByNextToken(
new NextToken('ListFinancialEventGroups', '123')
)
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MaxResultsPerPage | number | 10 |
No |
AmazonOrderId | string | '902-3159896-1390916' |
Yes but you can only specify one of the following filter criteria: AmazonOrderId, FinancialEventGroupId, PostedAfter and optionally PostedBefore |
FinancialEventGroupId | string | 'FNCLEVTGRPID' |
Yes but you can only specify one of the following filter criteria: AmazonOrderId, FinancialEventGroupId, PostedAfter and optionally PostedBefore |
PostedAfter | Date | new Date() |
Yes but you can only specify one of the following filter criteria: AmazonOrderId, FinancialEventGroupId, PostedAfter and optionally PostedBefore |
PostedBefore | Date | new Date() |
No |
Example:
const finances = new Finances(httpClient)
const [response, meta] = finances.listFinancialEvents({
AmazonOrderId: '902-3159896-1390916',
})
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const finances = new Finances(httpClient)
const [response, meta] = finances
.listFinancialEvents(new NextToken('ListFinancialEvents', '123'))
Response:
Properties:
Name | Type | Example | Required |
---|---|---|---|
AmazonOrderId | string | '902-3159896-1390916' |
Yes |
SellerOrderId | string | 'SellerId' |
No |
ItemList | Item[] | [Item](#item) |
Yes |
ShipFromAddress | Address | Address |
Yes |
PackageDimensions | PackageDimensions | PackageDimensions |
Yes |
Weight | Weight | Weight |
Yes |
MustArriveByDate | Date | new Date() |
No |
ShipDate | Date | new Date() |
No |
ShippingServiceOptions | ShippingServiceOptions | ShippingServiceOptions |
Yes |
LabelCustomization | LabelCustomization | LabelCustomization |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
OrderItemId | string | '1234' |
Yes |
Quantity | number | 1 |
Yes |
ItemWeight | Weight | Weight |
No |
ItemDescription | string | 'This is an item' |
No |
TransparencyCodeList | string[] | 'CODE' |
No |
ItemLevelSellerInputsList | AdditionalSellerInputs[] | AdditionalSellerInputs |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
Name | string | 'Jane Doe' |
Yes |
AddressLine1 | string | '#123 Address Street' |
Yes |
AddressLine2 | string | 'Address Boulevard' |
No |
AddressLine3 | string | 'Address Town' |
No |
DistrictOrCounty | string | 'Address County' |
No |
string | '[email protected]' |
Yes | |
City | string | 'Gotham City' |
Yes |
StateOrProvinceCode | string | 'WI' |
No. Required in the Canada, US, and UK marketplaces. Also required for shipments originating from China. |
PostalCode | ShippingServiceOptions | '99501' |
Yes |
CountryCode | string | 'US' |
Yes |
Phone | string | '5555551234' |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
Length | number | 10 |
No. Unless a value for PredefinedPackageDimensions is not specified |
Width | number | 10 |
No. Unless a value for PredefinedPackageDimensions is not specified |
Height | number | 10 |
No. Unless a value for PredefinedPackageDimensions is not specified |
Unit | string | 'inches' |
No. Unless a value for PredefinedPackageDimensions is not specified |
PredefinedPackageDimensions | string | 'FedEx_Box_10kg' |
No. Unless values for Length , Width , Height and Unit were not specified |
- Possible values for
Unit
: 'inches'
or'centimeters'
- Possible values for PredefinedPackageDimensions
Parameters:
Name | Type | Example | Required |
---|---|---|---|
Value | number | 10 |
Yes |
Unit | string | 'ounces' |
Yes |
- Possible values for
Unit
:'ounces'
or'grams'
Parameters:
Name | Type | Example | Required |
---|---|---|---|
DeliveryExperience | number | 'DeliveryConfirmationWithAdultSignature' |
Yes |
DeclaredValue | CurrencyAmount | CurrencyAmount |
No |
CarrierWillPickUp | boolean | false |
Yes |
LabelFormat | string | Label Format |
No |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
CustomTextForLabel | string | 'CustomTextForLabel' |
No |
StandardIdForLabel | string | 'StandardIdForLabel' |
No |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
DataType | string | 'SENDER_ADDRESS_TRANSLATED' |
Yes |
AdditionalSellerInput | AdditionalSellerInput | AdditionalSellerInput |
Yes |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
DataType | string | 'String' |
Yes |
ValueAsString | string | 'MyValue' |
No |
ValueAsBoolean | boolean | false |
No |
ValueAsInteger | number | 10 |
No |
ValueAsTimestamp | Date | new Date() |
No |
ValueAsAddress | Address | Address |
No |
ValueAsWeight | Weight | Weight |
No |
ValueAsDimension | PackageDimensions | PackageDimensions ` |
No |
ValueAsCurrency | CurrencyAmount | CurrencyAmount |
No |
- Possible values for
DataType
:'String'
,'Boolean'
,'Integer'
,'Timestamp'
,'Address'
,'Weight'
,'Dimension'
,'Currency'
,
Parameters:
Name | Type | Example | Required |
---|---|---|---|
CurrencyCode | string | 'USD' |
Yes |
Amount | number | 100 |
Yes |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
IncludePackingSlipWithLabel | boolean | true |
Yes |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
IncludeComplexShippingOptions | boolean | true |
No |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentRequestDetails | ShipmentRequestDetails | ShipmentRequestDetails |
Yes |
ShippingOfferingFilter | ShippingOfferingFilter | ShippingOfferingFilter |
No |
Example:
const Address = {
Name: '',
AddressLine1: '',
Email: '',
City: '',
PostalCode: '',
CountryCode: '',
Phone: '',
}
const PackageDimensions = {
PredefinePackageDimensions: 'FedEx_Box_10kg',
}
const Weight = {
Value: 1,
Unit: 'ounces',
}
const ShippingServiceOptions = {
DeliveryExperience: 'DeliveryConfirmationWithAdultSignature',
CarrierWillPickup: false,
}
const ShipmentRequestDetails = {
AmazonOrderId: '',
SellerOrderId: '',
ItemList: [],
ShipFromAddress: Address,
PackageDimensions,
Weight,
MustArriveByDate: new Date(),
ShipDate: new Date(),
ShippingServiceOptions,
}
const parameters = {
ShipmentRequestDetails,
}
const merchantFulfillment = new MerchantFulfillment(httpClient)
const [response, meta] = merchantFulfillment.getEligibleShippingServices(parameters)
Response:
See merchant fulfillment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
OrderId | string | 'ORDERID' |
Yes |
ShippingServiceId | number | 'SHIPPINGSERVICEID' |
Yes |
ShipFromAddress | Address | Address |
Yes |
Example:
const Address = {
Name: '',
AddressLine1: '',
Email: '',
City: '',
PostalCode: '',
CountryCode: '',
Phone: '',
}
const parameters = {
OrderId: 'ORDERID',
ShippingServiceId: 'SHIPPINGSERVICEID',
ShipmentRequestDetails,
}
const merchantFulfillment = new MerchantFulfillment(httpClient)
const [response, meta] = merchantFulfillment.getAdditionalSellerInputs(parameters)
Response:
See merchant fulfillment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentRequestDetails | ShipmentRequestDetails | ShipmentRequestDetails |
Yes |
ShippingServiceId | string | 'SHIPPINGSERVICEID' |
Yes |
ShippingServiceOfferId | string | 'ShippingServiceOfferId' |
No |
HazmatType | string | 'LQHazmat' |
No |
LabelFormatOption | LabelFormatOption | LabelFormatOption |
No |
ShipmentLevelSellerInputsList | AdditionalSellerInputs[] | [AdditionalSellerInputs] |
No |
Example:
const Address = {
Name: '',
AddressLine1: '',
Email: '',
City: '',
PostalCode: '',
CountryCode: '',
Phone: '',
}
const PackageDimensions = {
PredefinePackageDimensions: 'FedEx_Box_10kg',
}
const Weight = {
Value: 1,
Unit: 'ounces',
}
const ShippingServiceOptions = {
DeliveryExperience: 'DeliveryConfirmationWithAdultSignature',
CarrierWillPickup: false,
}
const ShipmentRequestDetails = {
AmazonOrderId: '',
SellerOrderId: '',
ItemList: [],
ShipFromAddress: Address,
PackageDimensions,
Weight,
MustArriveByDate: new Date(),
ShipDate: new Date(),
ShippingServiceOptions,
}
const parameters = {
ShipmentRequestDetails,
ShippingServiceId: 'SHIPPINGSERVICEID',
}
const merchantFulfillment = new MerchantFulfillment(httpClient)
const [response, meta] = merchantFulfillment.createShipment(parameters)
Response:
See merchant fulfillment test snapshot
Name | Type | Example - | Required |
---|---|---|---|
ShipmentId | string | 'SHIPMENTID' |
Yes |
Example:
const parameters = { ShipmentId: 'SHIPMENTID' }
const merchantFulfillment = new MerchantFulfillment(httpClient)
const [response, meta] = merchantFulfillment.getShipment(parameters)
Response:
See merchant fulfillment test snapshot
Name | Type | Example - | Required |
---|---|---|---|
ShipmentId | string | 'SHIPMENTID' |
Yes |
Example:
const parameters = { ShipmentId: 'SHIPMENTID' }
const merchantFulfillment = new MerchantFulfillment(httpClient)
const [response, meta] = merchantFulfillment.cancelShipment(parameters)
Response:
See merchant fulfillment test snapshot
Parameters:
None |
---|
Example:
const merchantFulfillment = new MerchantFulfillment(httpClient)
const [response, meta] = merchantFulfillment.getServiceStatus()
Response:
See merchant fulfillment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
AmazonShipmentId | string | 'SHIPMENTID' |
Yes |
Example:
const parameters = {
MarketplaceId: 'A2EUQ1WTGCTBG2',
AmazonShipmentId: 'SHIPMENTID',
}
const shipmentInvoicing = new ShipmentInvoicing(httpClient)
const [response, meta] = shipmentInvoicing.getFbaOutboundShipmentDetail(parameters)
Response:
See shipment invoicing test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
AmazonShipmentId | string | 'SHIPMENTID' |
Yes |
InvoiceContent | string | '<XML></XML>' |
Yes |
Example:
const parameters = {
MarketplaceId: 'A2EUQ1WTGCTBG2',
AmazonShipmentId: 'SHIPMENTID',
InvoiceContent: '<XML></XML>',
}
const shipmentInvoicing = new ShipmentInvoicing(httpClient)
const [response, meta] = shipmentInvoicing.submitFBAOutboundShipmentInvoice(parameters)
Response:
See shipment invoicing test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
AmazonShipmentId | string | 'SHIPMENTID' |
Yes |
Example:
const parameters = {
MarketplaceId: 'A2EUQ1WTGCTBG2',
AmazonShipmentId: 'SHIPMENTID',
}
const shipmentInvoicing = new ShipmentInvoicing(httpClient)
const [response, meta] = shipmentInvoicing.getFBAOutboundShipmentInvoiceStatus(parameters)
See shipment invoicing test snapshot
Parameters:
None |
---|
Example:
const shipmentInvoicing = new ShipmentInvoicing(httpClient)
const [response, meta] = shipmentInvoicing.getServiceStatus()
Response:
See shipment invoicing test snapshot
Amazon MWS Recommendations API official documentation
Name | Type | Example | Required |
---|---|---|---|
RecommendationCategory | string | 'Selection ' |
Yes |
FilterOptions | string | 'QualitySet=Defect' |
Yes |
Parameters:
Name | Type | Example - | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Example:
const parameters = { MarketplaceId: 'A2EUQ1WTGCTBG2' }
const recommendations = new Recommendations(httpClient)
const [response, meta] = recommendations.getLastUpdatedTimeForRecommendations(parameters)
Response:
See recommendations test snapshot
Parameters:
Name | Type | Example - | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
RecommendationCategory | string | 'Inventory' |
No. To retrieve all recommendations, do not specify a value for this parameter. |
CategoryQueryList | CategoryQuery[] | [CategoryQuery] |
No |
Example:
const parameters = { MarketplaceId: 'A2EUQ1WTGCTBG2' }
const recommendations = new Recommendations(httpClient)
const [response, meta] = recommendations.listRecommendations(parameters)
Response:
See recommendations test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const parameters = { MarketplaceId: 'A2EUQ1WTGCTBG2' }
const recommendations = new Recommendations(httpClient)
const [response, meta] = recommendations
.listRecommendationsByNextToken(new NextToken('ListRecommendations', '123'))
Response:
See recommendations test snapshot
Parameters:
None |
---|
Example:
const recommendations = new Recommendations(httpClient)
const [response, meta] = recommendations.getServiceStatus()
Response:
See recommendations test snapshot
Amazon MWS FulfillmentInboundShipment API official documentation
Properties:
Name | Type | Example | Required |
---|---|---|---|
Name | string | 'Jane Doe' |
Yes |
AddressLine1 | string | '#123 Address Street' |
Yes |
AddressLine2 | string | 'Address Boulevard' |
No |
City | string | 'Gotham City' |
Yes |
DistrictOrCounty | string | 'Address County' |
No |
StateOrProvinceCode | string | 'WI' |
No. If state or province codes are used in your marketplace, it is recommended that you include one with your request. This helps Amazon to select the most appropriate Amazon fulfillment center for your inbound shipment plan. |
CountryCode | string | 'US' |
Yes |
PostalCode | ShippingServiceOptions | '99501' |
No. If postal codes are used in your marketplace, it is recommended that you include one with your request. This helps Amazon to select the most appropriate Amazon fulfillment center for your inbound shipment plan |
Properties:
Name | Type | Example | Required |
---|---|---|---|
SellerSKU | string | 'Jane Doe' |
Yes |
ASIN | string | '#123 Address Street' |
No |
Condition | string | 'Address Boulevard' |
No |
Quantity | number | 'Gotham City' |
Yes |
QuantityInCase | number | 'Address County' |
No |
PrepDetailsList | PrepDetails | PrepDetails |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
PrepInstruction | string | 'Polybagging' |
Yes |
PrepOwner | string | 'AMAZON' |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
ShipmentName | string | 'SHIPMENT_NAME' |
Yes |
ShipFromAddress | Address | Address |
Yes |
DestinationFulfillmentCenterId | string | 'ABE2' |
Yes |
LabelPrepPreference | string | 'SELLER_LABEL' |
Yes |
AreCasesRequired | boolean | true |
No |
ShipmentStatus | string | 'WORKING' |
Yes |
IntendedBoxContentsSource | string | 'NONE' |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SKU00001' |
No |
SellerSKU | string | 'SKU00001' |
Yes |
FulfillmentNetworkSKU | string | 'SKU00001' |
No |
QuantityShipped | number | 1 |
Yes |
QuantityReceived | number | 1 |
No |
QuantityInCase | number | 1 |
No |
PrepDetailsList | PrepDetails[] | PrepDetails |
No |
ReleaseDate | Date | new Date() |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
PartneredSmallParcelData | PartneredSmallParcelDataInput | PartneredSmallParcelDataInput |
Yes, if no other element from the TransportDetailInput datatype is specified. |
NonPartneredSmallParcelData | NonPartneredSmallParcelDataInput | NonPartneredSmallParcelDataInput |
Yes, if no other element from the TransportDetailInput datatype is specified. |
PartneredLtlData | PartneredLtlDataInput | PartneredLtlDataInput |
Yes, if no other element from the TransportDetailInput datatype is specified. |
NonPartneredLtlData | NonPartneredLtlDataInput | NonPartneredLtlDataInput |
Yes, if no other element from the TransportDetailInput datatype is specified. |
Properties:
Name | Type | Example | Required |
---|---|---|---|
Unit | string | inches |
Yes |
Length | number | 1 |
Yes |
Width: | number | 1 |
Yes |
Height | number | 1 |
Yes |
- Possible values for
Unit
:'inches'
,'centimeters'
Properties:
Name | Type | Example | Required |
---|---|---|---|
Unit | string | pounds |
Yes |
Value | number | 1 |
Yes |
- Possible values for
Unit
:'pounds'
,'kilograms'
Properties:
Name | Type | Example | Required |
---|---|---|---|
Dimensions | Dimensions | Dimensions |
Yes |
Weight | Weight | Weight |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
CarrierName | string | 'UNITED_PARCEL_SERVICE_INC' |
Yes |
PackageList | PartneredSmallParcelPackageInput[] | [PartneredSmallParcelPackageInput] |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
TrackingId | string | '12345' |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
CarrierName | string | 'UNITED_PARCEL_SERVICE_INC' |
Yes |
PackageList | NonPartneredSmallParcelPackageOutput[] | [NonPartneredSmallParcelPackageOutput] |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
Name | string | 'Name McPerson' |
Yes |
Phone | string | '12345678' |
Yes |
string | '[email protected]' |
Yes | |
Fax | string | '12345678' |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
Dimension | Dimensions | Dimensions |
Yes |
Weight | Weight | Weight |
No |
IsStacked | boolean | true |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
CurrencyCode | string | 'USD' |
Yes |
Value | number | 100 |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
Contact | Contact | Contact |
Yes |
BoxCount | number | 100 |
Yes |
SellerFreightClass | string | '50' |
No |
FreightReadyDate | Date | new Date() |
Yes |
PalletList | Pallet[] | [Pallet] |
No |
TotalWeight | Weight | Weight |
No |
SellerDeclaredValue | Amount | Amount |
No |
Name | Type | Example | Required |
---|---|---|---|
Contact | string | 'BUSINESS_POST' |
Yes |
BoxCount | string | '1234' |
Yes |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
SellerSKUList | string[] | ['MY-SKU-1'] |
Yes |
Example:
const fis = new fis(httpClient)
const [response, meta] = fis.getInboundGuidanceForSku({
MarketplaceId: 'A2EUQ1WTGCTBG2',
SellerSKUList: ['MY-SKU-1'],
})
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
ASINList | string[] | ['MY-ASIN-1'] |
Yes |
Example:
const fis = new fis(httpClient)
const [response, meta] = fis.getInboundGuidanceForAsin({
MarketplaceId: 'A2EUQ1WTGCTBG2',
SellerSKUList: ['MY-ASIN-1'],
})
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipFromAddress | Address | Address |
Yes |
ShipToCountryCode | string | 'US' |
No. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. |
ShipToCountrySubdivisionCode | string | IN-AP |
No. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. |
LabelPrepPreference | string | AMAZON_LABEL_ONLY |
No |
InboundShipmentPlanRequestItems | InboundShipmentPlanRequestItem[] | [InboundShipmentPlanRequestItem] |
Yes |
Example:
const mockAddress = {
Name: '',
AddressLine1: '',
Email: '',
City: '',
PostalCode: '',
CountryCode: '',
Phone: '',
}
const mockInboundShipmentPlanRequestItem = {
SellerSKU: '',
Quantity: 1,
}
const parameters = {
ShipFromAddress: mockAddress,
InboundShipmentPlanRequestItems: [mockInboundShipmentPlanRequestItem],
}
const fis = new fis(httpClient)
const [response, meta] = fis.createInboundShipmentPlan(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
InboundShipmentHeader | InboundShipmentHeader | InboundShipmentHeader |
Yes |
InboundShipmentItems | InboundShipmentItem[] | [InboundShipmentItem] |
Yes |
Example:
const mockInboundShipmentItem = {
SellerSKU: '',
QuantityShipped: 1,
}
const mockAddress = {
Name: '',
AddressLine1: '',
Email: '',
City: '',
PostalCode: '',
CountryCode: '',
Phone: '',
}
const mockInboundShipmentHeader: InboundShipmentHeader = {
ShipmentName: '',
ShipFromAddress: mockAddress,
DestinationFulfillmentCenterId: '',
LabelPrepPreference: 'SELLER_LABEL',
ShipmentStatus: 'WORKING',
}
const parameters = {
ShipmentId: '',
InboundShipmentHeader: mockInboundShipmentHeader,
InboundShipmentItems: [mockInboundShipmentItem],
}
const fis = new fis(httpClient)
const [response, meta] = fis.createInboundShipment(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
InboundShipmentHeader | InboundShipmentHeader | InboundShipmentHeader |
Yes |
InboundShipmentItems | InboundShipmentItem[] | [InboundShipmentItem] |
Yes |
Example:
const mockInboundShipmentItem = {
SellerSKU: '',
QuantityShipped: 1,
}
const mockAddress = {
Name: '',
AddressLine1: '',
Email: '',
City: '',
PostalCode: '',
CountryCode: '',
Phone: '',
}
const mockInboundShipmentHeader: InboundShipmentHeader = {
ShipmentName: '',
ShipFromAddress: mockAddress,
DestinationFulfillmentCenterId: '',
LabelPrepPreference: 'SELLER_LABEL',
ShipmentStatus: 'WORKING',
}
const parameters = {
ShipmentId: '',
InboundShipmentHeader: mockInboundShipmentHeader,
InboundShipmentItems: [mockInboundShipmentItem],
}
const fis = new fis(httpClient)
const [response, meta] = fis.updateInboundShipment(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
Example:
const parameters = {
ShipmentId: '',
}
const fis = new fis(httpClient)
const [response, meta] = fis.getPreorderInfo(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
NeedByDate | Date | new Date() |
Yes |
Example:
const parameters = {
ShipmentId: '',
NeedByDate: new Date()
}
const fis = new fis(httpClient)
const [response, meta] = fis.confirmPreorder(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
SellerSKUList | string[] | ['MY-SKU-1'] |
Yes |
ShipToCountryCode | string | 'US' |
Yes |
Example:
const parameters = {
SellerSKUList: ['MY-SKU-1'],
ShipToCountryCode: 'US'
}
const fis = new fis(httpClient)
const [response, meta] = fis.getPrepInstructionsForSku(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ASINList | string[] | ['MY-ASIN-1'] |
Yes |
ShipToCountryCode | string | 'US' |
Yes |
Example:
const parameters = {
ASINList: ['MY-ASIN-1'],
ShipToCountryCode: 'US'
}
const fis = new fis(httpClient)
const [response, meta] = fis.getPrepInstructionsForAsin(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
IsPartnered | boolean | true |
Yes |
ShipmentType | string | 'SP' |
Yes |
TransportDetails | TransportDetailInput | TransportDetailInput |
Yes |
Example:
const mockPartneredSmallParcelPackageInput = {
Dimensions: {
Unit: 'inches',
Length: 1,
Width: 1,
Height: 1,
},
Weight: {
Unit: 'pounds',
Value: 1,
},
}
const mockTransportDetailInput = {
PartneredSmallParcelData: {
CarrierName: '',
PackageList: [mockPartneredSmallParcelPackageInput],
},
}
const parameters = {
ShipmentId: '',
IsPartnered: true,
ShipmentType: 'SP',
TransportDetails: mockTransportDetailInput,
}
const fis = new fis(httpClient)
const [response, meta] = fis.putTransportContent(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
Example:
const parameters = {
ShipmentId: '',
}
const fis = new fis(httpClient)
const [response, meta] = fis.estimateTransportRequest(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
Example:
const parameters = {
ShipmentId: '',
}
const fis = new fis(httpClient)
const [response, meta] = fis.estimateTransportRequest(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
Example:
const parameters = {
ShipmentId: '',
}
const fis = new fis(httpClient)
const [response, meta] = fis.confirmTransportRequest(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
Example:
const parameters = {
ShipmentId: '',
}
const fis = new fis(httpClient)
const [response, meta] = fis.voidTransportRequest(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
PageType | string | 'PackageLabel_Letter_2' |
Yes |
NumberOfPackages | number | 1 |
No |
Example:
const parameters = {
ShipmentId: '',
PageType: 'PackageLabel_Letter_2',
}
const fis = new fis(httpClient)
const [response, meta] = fis.getPackageLabels(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
PageType | string | 'PackageLabel_Letter_2' |
Yes |
PackageLabelsToPrint | string[] | ['CartonA', 'CartonB'] |
Yes |
Example:
const parameters = {
ShipmentId: '',
PageType: 'PackageLabel_Letter_2',
PackageLabelsToPring: ['CartonA', 'CartonB'],
}
const fis = new fis(httpClient)
const [response, meta] = fis.getUniquePackageLabels(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
PageType | string | 'PackageLabel_Letter_2' |
Yes |
NumberOfPallets | number | 10 |
Yes |
Example:
const parameters = {
ShipmentId: '',
PageType: 'PackageLabel_Letter_2',
NumberOfPallets: 10,
}
const fis = new fis(httpClient)
const [response, meta] = fis.getPalletLabels(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'SHPMNTID' |
Yes |
Example:
const parameters = {
ShipmentId: '',
}
const fis = new fis(httpClient)
const [response, meta] = fis.voidTransportRequest(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentStatusList | string[] | ['FBA44JV8R'] |
Yes, if ShipmentIdList is not specified. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. |
ShipmentIdList | string[] | ['SHPMNTID'] |
Yes, if ShipmentStatusList is not specified. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. |
LastUpdatedAfter | Date | new Date() |
No, If LastUpdatedBefore is specified, then LastUpdatedAfter must be specified. |
LastUpdatedBefore | Date | new Date() |
No, If LastUpdatedAfter is specified, then LastUpdatedBefore must be specified. |
Example:
const parameters = {
ShipmentStatusList: ['WORKING'],
ShipmentIdList: [''],
}
const fis = new fis(httpClient)
const [response, meta] = fis.listInboundShipments(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const nextToken = new NextToken('ListInboundShipments', '123')
const fis = new fis(httpClient)
const [response, meta] = fis.listInboundShipmentsByNextToken(nextToken)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ShipmentId | string | 'FBA44JV8R' |
Yes, if LastUpdatedAfter and LastUpdatedBefore are not specified. If ShipmentId is specified, LastUpdatedBefore and LastUpdatedAfter are ignored. |
LastUpdatedAfter | Date | new Date() |
Yes, if ShipmentId is not specified. If LastUpdatedBefore is specified, then LastUpdatedAfter must be specified. |
LastUpdatedBefore | Date | new Date() |
Yes, if ShipmentId is not specified. If LastUpdatedAfter is specified, then LastUpdatedBefore must be specified. |
Example:
const parameters = {
ShipmentStatusList: ['WORKING'],
ShipmentIdList: [''],
}
const fis = new fis(httpClient)
const [response, meta] = fis.listInboundShipments(parameters)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const nextToken = new NextToken('ListInboundShipmentItems', '123')
const fis = new fis(httpClient)
const [response, meta] = fis.listInboundShipmentItemsByNextToken(nextToken)
Response:
See FulfillmentInboundShipment test snapshot
Parameters:
None |
---|
Example:
const fis = new FulfillmentInboundShipment(httpClient)
const [response, meta] = fis.getServiceStatus()
Response:
See FulfillmentInboundShipment test snapshot
Properties:
Name | Type | Example | Required |
---|---|---|---|
Name | string | 'Jane Doe' |
Yes |
Line1 | string | '#123 Address Street' |
Yes |
Line2 | string | 'Address Boulevard' |
No |
Line3 | string | 'Address Town' |
No |
DistrictOrCounty | string | 'Address County' |
No |
City | string | 'Gotham City' |
Yes |
StateOrProvinceCode | string | 'WI' |
No. Required in the Canada, US, and UK marketplaces. Also required for shipments originating from China. |
CountryCode | string | 'US' |
Yes |
PostalCode | ShippingServiceOptions | '99501' |
Yes |
PhoneNumber | string | '5555551234' |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
SellerSKU | string | 'MY-SKU-1' |
Yes |
SellerFulfillmentOrderItemId | string | 'FLFLMNTID' |
Yes |
Quantity | number | 123 |
Yes |
Name | Type | Example | Required |
---|---|---|---|
CurrencyCode | string | USD |
Yes |
Value | string | 123.12 |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
IsCODRequired | boolean | true |
No |
CODCharge | Currency | Currency |
No |
CODChargeTax | Currency | Currency |
No |
ShippingCharge | Currency | Currency |
No |
ShippingChargeTax | Currency | Currency |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
SellerSKU | string | MY-SKU-1 |
Yes |
SellerFulfillmentOrderItemId | string | 'FLFLMNTID' |
Yes |
Quantity | number | 12 |
Yes |
GiftMessage | string | 'My message' |
No |
DisplayableComment | string | 'My comment' |
No |
FulfillmentNetworkSKU | string | 'MY-SKU-2' |
No |
PerUnitDeclaredValue | Currency | Currency |
No |
PerUnitPrice | Currency | Currency |
No |
PerUnitTax | Currency | Currency |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
StartDateTime | Date | new Date() |
Yes |
EndDateTime | Date | new Date() |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
SellerReturnItemId | string | RETURNID |
Yes |
SellerFulfillmentOrderItemId | string | 'FLFLMNTID' |
Yes |
AmazonShipmentId | number | ABCAMAZONID |
Yes |
ReturnReasonCode | string | 'REASON-CODE' |
Yes |
ReturnComment | string | 'My comment' |
No |
- The return reason code assigned to the return item by the seller. Get valid return reason codes by calling the
listReturnReasonCodes
operation.
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
No |
Address | Address | Address |
Yes |
Items | GetFulfillmentPreviewItem[] | [GetFulfillmentPreviewItem] |
Yes |
ShippingSpeedCategories | string | 'Standard' |
No |
IncludeCODFulfillmentPreview | boolean | true |
No |
IncludeDeliveryWindows | boolean | true |
No |
Example:
const mockAddress = {
Name: '',
Line1: '',
Line2: '',
Line3: '',
DistrictOrCounty: '',
City: '',
StateOrProvinceCode: '',
CountryCode: '',
PostalCode: '',
PhoneNumber: '',
}
const mockGetFulfillmentPreviewItem = {
SellerSKU: '',
SellerFulfillmentOrderItemId: '',
Quantity: 1,
}
const parameters = {
Address: mockAddress,
Items: [mockGetFulfillmentPreviewItem],
}
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.getFulfillmentPreview(parameters)
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
No |
SellerFulfillmentOrderId | string | 'FLFLMNTID' |
Yes |
FulfillmentAction | string | 'Ship' |
No |
DisplayableOrderId | string | 'ORDERID' |
Yes |
DisplayableOrderDateTime | Date | new Date() |
Yes |
DisplayableOrderComment | string | Some Comment |
Yes |
ShippingSpeedCategory | string | Standard |
Yes |
DestinationAddress | Address | Address |
Yes |
FulfillmentPolicy | string | FillAll |
No |
NotificationEmailList | string[] | ['[email protected]'] |
No |
CODSettings | CODSettings | CODSettings |
No |
Items | CreateFulfillmentOrderItem[] | [CreateFulfillmentOrderItem] |
Yes |
DeliveryWindow | DeliveryWindow | DeliveryWindow |
No. Required only if ShippingSpeedCategory = 'ScheduledDelivery' |
Example:
const mockAddress = {
Name: '',
Line1: '',
Line2: '',
Line3: '',
DistrictOrCounty: '',
City: '',
StateOrProvinceCode: '',
CountryCode: '',
PostalCode: '',
PhoneNumber: '',
}
const mockCreateFulfillmentOrderItem = {
SellerSKU: '',
SellerFulfillmentOrderItemId: '',
Quantity: 1,
}
const parameters = {
SellerFulfillmentOrderId: '',
DisplayableOrderId: '',
DisplayableOrderDateTime: new Date(),
DisplayableOrderComment: '',
ShippingSpeedCategory: 'Priority',
DestinationAddress: mockAddress,
Items: [mockCreateFulfillmentOrderItem],
}
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.createFulfillmentOrder(parameters)
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
No |
SellerFulfillmentOrderId | string | 'FLFLMNTID' |
Yes |
FulfillmentAction | string | 'Ship' |
No |
DisplayableOrderId | string | 'ORDERID' |
No |
DisplayableOrderDateTime | Date | new Date() |
No |
DisplayableOrderComment | string | Some Comment |
No |
ShippingSpeedCategory | string | Standard |
No |
DestinationAddress | Address | Address |
No |
FulfillmentPolicy | string | FillAll |
No |
NotificationEmailList | string[] | ['[email protected]'] |
No |
Items | CreateFulfillmentOrderItem[] | [CreateFulfillmentOrderItem] |
No |
Example:
const parameters = {
SellerFulfillmentOrderId: '',
}
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.updateFulfillmentOrder(parameters)
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
QueryStartDateTime | Date | new Date() |
No |
Example:
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.listAllFulfillmentOrders()
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
SellerFulfillmentOrderId | string | 'SELLERORDERID' |
Yes |
Example:
const parameters = { SellerFulfillmentOrderId: '' }
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.getFulfillmentOrder(parameters)
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
NextToken | NextToken | new NextToken('action', 'nexttoken') . See examples for sample usage |
Yes |
Example:
const nextToken = new NextToken('ListFinancialEvents', '123')
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.listAllFulfillmentOrdersByNextToken(nextToken)
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
PackageNumber | number | 1234 |
Yes |
Example:
const parameters = { PackageNumber: 1234 }
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.getPackageTrackingDetails(parameters)
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
SellerFulfillmentOrderId | string | 'ORDERID' |
Yes |
Example:
const parameters = { SellerFulfillmentOrderId: 'ORDERID' }
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.cancelFulfillmentOrder(parameters)
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
No. Not required if SellerFulfillmentOrderId is specified. |
SellerFulfillmentOrderId | string | 'ORDERID' |
No. Not required if MarketplaceId is specified. |
SellerSKU | string | 'SELLERSKU' |
Yes |
Language | string | 'fr_CA' |
No |
Example:
const parameters = {
SellerFulfillmentOrderId: '',
SellerSKU: '',
}
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.listReturnReasonCodes(parameters)
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
Name | Type | Example | Required |
---|---|---|---|
SellerFulfillmentOrderId | string | 'ORDERID' |
Yes |
Items | CreateReturnItem[] | CreateReturnItem |
Yes |
Example:
const mockCreateReturnItem = {
SellerReturnItemId: '',
SellerFulfillmentOrderItemId: '',
AmazonShipmentId: '',
ReturnReasonCode: '',
}
const parameters = {
SellerFulfillmentOrderId: '',
Items: [mockCreateReturnItem],
}
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.createFulfillmentReturn(parameters)
Response:
See FulfillmentOutboundShipment test snapshot
Parameters:
None |
---|
Example:
const fos = new FulfillmentOutboundShipment(httpClient)
const [response, meta] = fos.getServiceStatus()
Response:
See FulfillmentOutboundShipment test snapshot
Properties:
Name | Type | Example | Required |
---|---|---|---|
Length | number | 1 |
Yes |
Width | number | 1 |
Yes |
Height | number | 1 |
Yes |
Unit | string | cm |
Yes |
Name | string | Identifier |
No |
- Unlike other sections
EasyShip
documentation does not specify possible values forUnit
Properties:
Name | Type | Example | Required |
---|---|---|---|
Value | number | 10 |
Yes |
Unit | string | 'g' |
Yes |
- Unlike other sections
EasyShip
documentation does not specify possible values forUnit
Properties:
Name | Type | Example | Required |
---|---|---|---|
OrderItemId | string | 'AMZONORDERID' |
Yes |
OrderItemSerialNumberList | string[] | ['1234'] |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
SlotId | string | 'AMZONORDERID' |
Yes |
PickupTimeStart | Date | new Date() |
No |
PickupTimeEnd | Date | new Date() |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
PackageDimensions | Dimensions | Dimensions |
No |
PackageWeight | Weight | Weight |
No |
PackageItemList | Item[] | [Item] |
No |
PackagePickupSlot | PickupSlot | PickupSlot |
Yes |
PackageIdentifier | strign | 'PackageIdentifier' |
No |
Properties:
Name | Type | Example | Required |
---|---|---|---|
ScheduledPackageId | ScheduledPackageId | ScheduledPackageId |
No |
PackagePickupSlot | PickupSlot | PickupSlot |
Yes |
Properties:
Name | Type | Example | Required |
---|---|---|---|
AmazonOrderId | string | 'AMZONORDERID' |
Yes |
PackageId | string | 'PKGID' |
Yes |
Parameters:
Name | Type | Example | Required |
---|---|---|---|
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
AmazonOrderId | string | 'AMZONORDERID' |
Yes |
PackageDimensions | Dimensions | Dimensions |
Yes |
PackageWeight | Weight | Weight |
Yes |
Example:
const mockDimensions = {
Length: 1,
Width: 1,
Height: 1,
Unit: 'cm',
}
const mockWeight = {
Value: 1,
Unit: 'g',
}
const parameters = {
MarketplaceId: '',
AmazonOrderId: '',
PackageDimensions: mockDimensions,
PackageWeight: mockWeight,
}
const easyShip = new EasyShip(httpClient)
const [response, meta] = easyShip.listPickupSlots(parameters)
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
AmazonOrderId | string | 'AMZONORDERID' |
Yes |
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
PackageRequestDetails | PackageRequestDetails | PackageRequestDetails |
Yes |
Example:
const mockPickupSlot = {
SlotId: '',
PickupTimeStart: new Date(),
PickupTimeEnd: new Date(),
}
const mockPackageRequestDetails = {
PackagePickupSlot: mockPickupSlot,
}
const parameters = {
AmazonOrderId: '',
MarketplaceId: '',
PackageRequestDetails: mockPackageRequestDetails,
}
const easyShip = new EasyShip(httpClient)
const [response, meta] = easyShip.createScheduledPackage(parameters)
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
AmazonOrderId | string | 'AMZONORDERID' |
Yes |
ScheduledPackageUpdateDetailsList | ScheduledPackageUpdateDetails[] | [ScheduledPackageUpdateDetails] |
Yes |
Example:
const mockScheduledPackageId = {
AmazonOrderId: '',
}
const mockPickupSlot = {
SlotId: '',
PickupTimeStart: new Date(),
PickupTimeEnd: new Date(),
}
const mockScheduledPackageUpdateDetails = {
ScheduledPackageId: mockScheduledPackageId,
PackagePickupSlot: mockPickupSlot,
}
const parameters = {
MarketplaceId: '',
ScheduledPackageUpdateDetailsList: [mockScheduledPackageUpdateDetails],
}
const easyShip = new EasyShip(httpClient)
const [response, meta] = easyShip.updateScheduledPackages(parameters)
Response:
Parameters:
Name | Type | Example | Required |
---|---|---|---|
ScheduledPackageId | ScheduledPackageId | ScheduledPackageId |
Yes |
MarketplaceId | string | 'A2EUQ1WTGCTBG2' |
Yes |
Example:
const mockScheduledPackageId = {
AmazonOrderId: '',
}
const parameters = {
ScheduledPackageId: mockScheduledPackageId,
MarketplaceId: '',
}
const easyShip = new EasyShip(httpClient)
const [response, meta] = easyShip.getScheduledPackage(parameters)
Response:
Parameters:
None |
---|
Example:
const easyShip = new EasyShip(httpClient)
const [response, meta] = easyShip.getServiceStatus()
Response: