@sp-api-sdk/orders-api-2026-01-01 0.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +105 -0
- package/dist/cjs/api-model/api/orders-api.js +266 -0
- package/dist/cjs/api-model/api.js +30 -0
- package/dist/cjs/api-model/base.js +52 -0
- package/dist/cjs/api-model/common.js +122 -0
- package/dist/cjs/api-model/configuration.js +98 -0
- package/dist/cjs/api-model/index.js +32 -0
- package/dist/cjs/api-model/models/address-extended-fields.js +15 -0
- package/dist/cjs/api-model/models/alias.js +15 -0
- package/dist/cjs/api-model/models/associated-order.js +15 -0
- package/dist/cjs/api-model/models/business-hour.js +25 -0
- package/dist/cjs/api-model/models/buyer.js +15 -0
- package/dist/cjs/api-model/models/constraint-type.js +22 -0
- package/dist/cjs/api-model/models/customer-address.js +15 -0
- package/dist/cjs/api-model/models/date-time-range.js +15 -0
- package/dist/cjs/api-model/models/delivery-preference.js +15 -0
- package/dist/cjs/api-model/models/error-list.js +15 -0
- package/dist/cjs/api-model/models/exception-date.js +20 -0
- package/dist/cjs/api-model/models/fulfillment-status.js +28 -0
- package/dist/cjs/api-model/models/get-order-response.js +15 -0
- package/dist/cjs/api-model/models/gift-option.js +15 -0
- package/dist/cjs/api-model/models/hour-minute.js +15 -0
- package/dist/cjs/api-model/models/index.js +70 -0
- package/dist/cjs/api-model/models/item-cancellation-request.js +15 -0
- package/dist/cjs/api-model/models/item-cancellation.js +15 -0
- package/dist/cjs/api-model/models/item-condition.js +15 -0
- package/dist/cjs/api-model/models/item-customization.js +15 -0
- package/dist/cjs/api-model/models/item-expense.js +15 -0
- package/dist/cjs/api-model/models/item-fulfillment.js +15 -0
- package/dist/cjs/api-model/models/item-international-shipping.js +15 -0
- package/dist/cjs/api-model/models/item-packing.js +15 -0
- package/dist/cjs/api-model/models/item-picking.js +15 -0
- package/dist/cjs/api-model/models/item-points-cost.js +15 -0
- package/dist/cjs/api-model/models/item-price.js +15 -0
- package/dist/cjs/api-model/models/item-proceeds-breakdown.js +15 -0
- package/dist/cjs/api-model/models/item-proceeds-detailed-breakdown.js +15 -0
- package/dist/cjs/api-model/models/item-proceeds.js +15 -0
- package/dist/cjs/api-model/models/item-product.js +15 -0
- package/dist/cjs/api-model/models/item-promotion-breakdown.js +15 -0
- package/dist/cjs/api-model/models/item-promotion.js +15 -0
- package/dist/cjs/api-model/models/item-shipping-constraints.js +15 -0
- package/dist/cjs/api-model/models/item-shipping.js +15 -0
- package/dist/cjs/api-model/models/item-substitution-option.js +15 -0
- package/dist/cjs/api-model/models/item-substitution-preference.js +21 -0
- package/dist/cjs/api-model/models/measurement.js +42 -0
- package/dist/cjs/api-model/models/merchant-address.js +15 -0
- package/dist/cjs/api-model/models/model-error.js +15 -0
- package/dist/cjs/api-model/models/money.js +15 -0
- package/dist/cjs/api-model/models/order-fulfillment.js +15 -0
- package/dist/cjs/api-model/models/order-item.js +15 -0
- package/dist/cjs/api-model/models/order-package.js +15 -0
- package/dist/cjs/api-model/models/order-proceeds.js +15 -0
- package/dist/cjs/api-model/models/order.js +15 -0
- package/dist/cjs/api-model/models/package-item.js +15 -0
- package/dist/cjs/api-model/models/package-status.js +24 -0
- package/dist/cjs/api-model/models/pagination.js +15 -0
- package/dist/cjs/api-model/models/points-granted.js +15 -0
- package/dist/cjs/api-model/models/preferred-delivery-time.js +15 -0
- package/dist/cjs/api-model/models/recipient.js +15 -0
- package/dist/cjs/api-model/models/sales-channel.js +15 -0
- package/dist/cjs/api-model/models/search-orders-response.js +15 -0
- package/dist/cjs/api-model/models/time-window.js +15 -0
- package/dist/cjs/client.js +13 -0
- package/dist/cjs/index.js +19 -0
- package/dist/es/api-model/api/orders-api.js +256 -0
- package/dist/es/api-model/api.js +14 -0
- package/dist/es/api-model/base.js +44 -0
- package/dist/es/api-model/common.js +109 -0
- package/dist/es/api-model/configuration.js +94 -0
- package/dist/es/api-model/index.js +16 -0
- package/dist/es/api-model/models/address-extended-fields.js +14 -0
- package/dist/es/api-model/models/alias.js +14 -0
- package/dist/es/api-model/models/associated-order.js +14 -0
- package/dist/es/api-model/models/business-hour.js +22 -0
- package/dist/es/api-model/models/buyer.js +14 -0
- package/dist/es/api-model/models/constraint-type.js +19 -0
- package/dist/es/api-model/models/customer-address.js +14 -0
- package/dist/es/api-model/models/date-time-range.js +14 -0
- package/dist/es/api-model/models/delivery-preference.js +14 -0
- package/dist/es/api-model/models/error-list.js +14 -0
- package/dist/es/api-model/models/exception-date.js +17 -0
- package/dist/es/api-model/models/fulfillment-status.js +25 -0
- package/dist/es/api-model/models/get-order-response.js +14 -0
- package/dist/es/api-model/models/gift-option.js +14 -0
- package/dist/es/api-model/models/hour-minute.js +14 -0
- package/dist/es/api-model/models/index.js +54 -0
- package/dist/es/api-model/models/item-cancellation-request.js +14 -0
- package/dist/es/api-model/models/item-cancellation.js +14 -0
- package/dist/es/api-model/models/item-condition.js +14 -0
- package/dist/es/api-model/models/item-customization.js +14 -0
- package/dist/es/api-model/models/item-expense.js +14 -0
- package/dist/es/api-model/models/item-fulfillment.js +14 -0
- package/dist/es/api-model/models/item-international-shipping.js +14 -0
- package/dist/es/api-model/models/item-packing.js +14 -0
- package/dist/es/api-model/models/item-picking.js +14 -0
- package/dist/es/api-model/models/item-points-cost.js +14 -0
- package/dist/es/api-model/models/item-price.js +14 -0
- package/dist/es/api-model/models/item-proceeds-breakdown.js +14 -0
- package/dist/es/api-model/models/item-proceeds-detailed-breakdown.js +14 -0
- package/dist/es/api-model/models/item-proceeds.js +14 -0
- package/dist/es/api-model/models/item-product.js +14 -0
- package/dist/es/api-model/models/item-promotion-breakdown.js +14 -0
- package/dist/es/api-model/models/item-promotion.js +14 -0
- package/dist/es/api-model/models/item-shipping-constraints.js +14 -0
- package/dist/es/api-model/models/item-shipping.js +14 -0
- package/dist/es/api-model/models/item-substitution-option.js +14 -0
- package/dist/es/api-model/models/item-substitution-preference.js +18 -0
- package/dist/es/api-model/models/measurement.js +39 -0
- package/dist/es/api-model/models/merchant-address.js +14 -0
- package/dist/es/api-model/models/model-error.js +14 -0
- package/dist/es/api-model/models/money.js +14 -0
- package/dist/es/api-model/models/order-fulfillment.js +14 -0
- package/dist/es/api-model/models/order-item.js +14 -0
- package/dist/es/api-model/models/order-package.js +14 -0
- package/dist/es/api-model/models/order-proceeds.js +14 -0
- package/dist/es/api-model/models/order.js +14 -0
- package/dist/es/api-model/models/package-item.js +14 -0
- package/dist/es/api-model/models/package-status.js +21 -0
- package/dist/es/api-model/models/pagination.js +14 -0
- package/dist/es/api-model/models/points-granted.js +14 -0
- package/dist/es/api-model/models/preferred-delivery-time.js +14 -0
- package/dist/es/api-model/models/recipient.js +14 -0
- package/dist/es/api-model/models/sales-channel.js +14 -0
- package/dist/es/api-model/models/search-orders-response.js +14 -0
- package/dist/es/api-model/models/time-window.js +14 -0
- package/dist/es/client.js +9 -0
- package/dist/es/index.js +3 -0
- package/dist/types/api-model/api/orders-api.d.ts +208 -0
- package/dist/types/api-model/api.d.ts +12 -0
- package/dist/types/api-model/base.d.ts +42 -0
- package/dist/types/api-model/common.d.ts +34 -0
- package/dist/types/api-model/configuration.d.ts +98 -0
- package/dist/types/api-model/index.d.ts +14 -0
- package/dist/types/api-model/models/address-extended-fields.d.ts +32 -0
- package/dist/types/api-model/models/alias.d.ts +24 -0
- package/dist/types/api-model/models/associated-order.d.ts +24 -0
- package/dist/types/api-model/models/business-hour.d.ts +35 -0
- package/dist/types/api-model/models/buyer.d.ts +32 -0
- package/dist/types/api-model/models/constraint-type.d.ts +18 -0
- package/dist/types/api-model/models/customer-address.d.ts +70 -0
- package/dist/types/api-model/models/date-time-range.d.ts +24 -0
- package/dist/types/api-model/models/delivery-preference.d.ts +30 -0
- package/dist/types/api-model/models/error-list.d.ts +20 -0
- package/dist/types/api-model/models/exception-date.d.ts +34 -0
- package/dist/types/api-model/models/fulfillment-status.d.ts +24 -0
- package/dist/types/api-model/models/get-order-response.d.ts +18 -0
- package/dist/types/api-model/models/gift-option.d.ts +24 -0
- package/dist/types/api-model/models/hour-minute.d.ts +24 -0
- package/dist/types/api-model/models/index.d.ts +54 -0
- package/dist/types/api-model/models/item-cancellation-request.d.ts +24 -0
- package/dist/types/api-model/models/item-cancellation.d.ts +18 -0
- package/dist/types/api-model/models/item-condition.d.ts +28 -0
- package/dist/types/api-model/models/item-customization.d.ts +20 -0
- package/dist/types/api-model/models/item-expense.d.ts +18 -0
- package/dist/types/api-model/models/item-fulfillment.d.ts +30 -0
- package/dist/types/api-model/models/item-international-shipping.d.ts +20 -0
- package/dist/types/api-model/models/item-packing.d.ts +18 -0
- package/dist/types/api-model/models/item-picking.d.ts +18 -0
- package/dist/types/api-model/models/item-points-cost.d.ts +18 -0
- package/dist/types/api-model/models/item-price.d.ts +22 -0
- package/dist/types/api-model/models/item-proceeds-breakdown.d.ts +27 -0
- package/dist/types/api-model/models/item-proceeds-detailed-breakdown.d.ts +22 -0
- package/dist/types/api-model/models/item-proceeds.d.ts +23 -0
- package/dist/types/api-model/models/item-product.d.ts +38 -0
- package/dist/types/api-model/models/item-promotion-breakdown.d.ts +20 -0
- package/dist/types/api-model/models/item-promotion.d.ts +21 -0
- package/dist/types/api-model/models/item-shipping-constraints.d.ts +22 -0
- package/dist/types/api-model/models/item-shipping.d.ts +22 -0
- package/dist/types/api-model/models/item-substitution-option.d.ts +34 -0
- package/dist/types/api-model/models/item-substitution-preference.d.ts +31 -0
- package/dist/types/api-model/models/measurement.d.ts +51 -0
- package/dist/types/api-model/models/merchant-address.d.ts +56 -0
- package/dist/types/api-model/models/model-error.d.ts +28 -0
- package/dist/types/api-model/models/money.d.ts +24 -0
- package/dist/types/api-model/models/order-fulfillment.d.ts +29 -0
- package/dist/types/api-model/models/order-item.d.ts +42 -0
- package/dist/types/api-model/models/order-package.d.ts +49 -0
- package/dist/types/api-model/models/order-proceeds.d.ts +18 -0
- package/dist/types/api-model/models/order.d.ts +62 -0
- package/dist/types/api-model/models/package-item.d.ts +28 -0
- package/dist/types/api-model/models/package-status.d.ts +33 -0
- package/dist/types/api-model/models/pagination.d.ts +20 -0
- package/dist/types/api-model/models/points-granted.d.ts +22 -0
- package/dist/types/api-model/models/preferred-delivery-time.d.ts +26 -0
- package/dist/types/api-model/models/recipient.d.ts +20 -0
- package/dist/types/api-model/models/sales-channel.d.ts +28 -0
- package/dist/types/api-model/models/search-orders-response.d.ts +31 -0
- package/dist/types/api-model/models/time-window.d.ts +19 -0
- package/dist/types/client.d.ts +6 -0
- package/dist/types/index.d.ts +3 -0
- package/package.json +32 -3
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DateTimeRange } from './date-time-range';
|
|
13
|
+
import type { FulfillmentStatus } from './fulfillment-status';
|
|
14
|
+
/**
|
|
15
|
+
* Information about how the order is being processed, packed, and shipped to the customer.
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderFulfillment {
|
|
18
|
+
'fulfillmentStatus': FulfillmentStatus;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies whether Amazon or the merchant is responsible for fulfilling this order. **Possible values**: `AMAZON`, `MERCHANT`.
|
|
21
|
+
*/
|
|
22
|
+
'fulfilledBy'?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The category of the shipping speed option selected by the customer at checkout. **Possible values**: `EXPEDITED`, `FREE_ECONOMY`, `NEXT_DAY`, `PRIORITY`, `SAME_DAY`, `SECOND_DAY`, `SCHEDULED`, `STANDARD`.
|
|
25
|
+
*/
|
|
26
|
+
'fulfillmentServiceLevel'?: string;
|
|
27
|
+
'shipByWindow'?: DateTimeRange;
|
|
28
|
+
'deliverByWindow'?: DateTimeRange;
|
|
29
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ItemCancellation } from './item-cancellation';
|
|
13
|
+
import type { ItemExpense } from './item-expense';
|
|
14
|
+
import type { ItemFulfillment } from './item-fulfillment';
|
|
15
|
+
import type { ItemProceeds } from './item-proceeds';
|
|
16
|
+
import type { ItemProduct } from './item-product';
|
|
17
|
+
import type { ItemPromotion } from './item-promotion';
|
|
18
|
+
import type { Measurement } from './measurement';
|
|
19
|
+
/**
|
|
20
|
+
* Information about a single product within an order.
|
|
21
|
+
*/
|
|
22
|
+
export interface OrderItem {
|
|
23
|
+
/**
|
|
24
|
+
* A unique identifier for this specific item within the order.
|
|
25
|
+
*/
|
|
26
|
+
'orderItemId': string;
|
|
27
|
+
/**
|
|
28
|
+
* The number of units of this item that the customer ordered.
|
|
29
|
+
*/
|
|
30
|
+
'quantityOrdered': number;
|
|
31
|
+
'measurement'?: Measurement;
|
|
32
|
+
/**
|
|
33
|
+
* Special programs that apply specifically to this item within the order. **Possible values**: `TRANSPARENCY`, `SUBSCRIBE_AND_SAVE`
|
|
34
|
+
*/
|
|
35
|
+
'programs'?: Array<string>;
|
|
36
|
+
'product': ItemProduct;
|
|
37
|
+
'proceeds'?: ItemProceeds;
|
|
38
|
+
'expense'?: ItemExpense;
|
|
39
|
+
'promotion'?: ItemPromotion;
|
|
40
|
+
'cancellation'?: ItemCancellation;
|
|
41
|
+
'fulfillment'?: ItemFulfillment;
|
|
42
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MerchantAddress } from './merchant-address';
|
|
13
|
+
import type { PackageItem } from './package-item';
|
|
14
|
+
import type { PackageStatus } from './package-status';
|
|
15
|
+
/**
|
|
16
|
+
* Information about a physical shipping package, including tracking details. **Note:** Only available for merchant-fulfilled (FBM) orders.
|
|
17
|
+
*/
|
|
18
|
+
export interface OrderPackage {
|
|
19
|
+
/**
|
|
20
|
+
* A unique identifier for this package within the context of the order.
|
|
21
|
+
*/
|
|
22
|
+
'packageReferenceId': string;
|
|
23
|
+
/**
|
|
24
|
+
* The exact time when this shipping package was created and prepared for shipment. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
25
|
+
*/
|
|
26
|
+
'createdTime'?: string;
|
|
27
|
+
'packageStatus'?: PackageStatus;
|
|
28
|
+
/**
|
|
29
|
+
* The carrier responsible for transporting this package to the customer.
|
|
30
|
+
*/
|
|
31
|
+
'carrier'?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The exact time when this package was handed over to the carrier and began its journey to the customer. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
34
|
+
*/
|
|
35
|
+
'shipTime'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The specific shipping method or service used for delivering this package.
|
|
38
|
+
*/
|
|
39
|
+
'shippingService'?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The carrier-provided tracking number that customers can use to monitor the package\'s delivery progress.
|
|
42
|
+
*/
|
|
43
|
+
'trackingNumber'?: string;
|
|
44
|
+
'shipFromAddress'?: MerchantAddress;
|
|
45
|
+
/**
|
|
46
|
+
* A list of all order items included in this specific package.
|
|
47
|
+
*/
|
|
48
|
+
'packageItems'?: Array<PackageItem>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Money } from './money';
|
|
13
|
+
/**
|
|
14
|
+
* The money that the seller receives from the sale of the order.
|
|
15
|
+
*/
|
|
16
|
+
export interface OrderProceeds {
|
|
17
|
+
'grandTotal'?: Money;
|
|
18
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Alias } from './alias';
|
|
13
|
+
import type { AssociatedOrder } from './associated-order';
|
|
14
|
+
import type { Buyer } from './buyer';
|
|
15
|
+
import type { OrderFulfillment } from './order-fulfillment';
|
|
16
|
+
import type { OrderItem } from './order-item';
|
|
17
|
+
import type { OrderPackage } from './order-package';
|
|
18
|
+
import type { OrderProceeds } from './order-proceeds';
|
|
19
|
+
import type { Recipient } from './recipient';
|
|
20
|
+
import type { SalesChannel } from './sales-channel';
|
|
21
|
+
/**
|
|
22
|
+
* Comprehensive information about a customer order.
|
|
23
|
+
*/
|
|
24
|
+
export interface Order {
|
|
25
|
+
/**
|
|
26
|
+
* An Amazon-defined order identifier.
|
|
27
|
+
*/
|
|
28
|
+
'orderId': string;
|
|
29
|
+
/**
|
|
30
|
+
* Alternative identifiers that can be used to reference this order, such as seller-defined order numbers.
|
|
31
|
+
*/
|
|
32
|
+
'orderAliases'?: Array<Alias>;
|
|
33
|
+
/**
|
|
34
|
+
* The time when the customer placed the order. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
35
|
+
*/
|
|
36
|
+
'createdTime': string;
|
|
37
|
+
/**
|
|
38
|
+
* The most recent time when any aspect of this order was modified by Amazon or the seller. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
39
|
+
*/
|
|
40
|
+
'lastUpdatedTime': string;
|
|
41
|
+
/**
|
|
42
|
+
* Special programs associated with this order that may affect fulfillment or customer experience. **Possible values**: `AMAZON_BAZAAR`, `AMAZON_BUSINESS`, `AMAZON_EASY_SHIP`, `AMAZON_HAUL`, `DELIVERY_BY_AMAZON`, `FBM_SHIP_PLUS`, `IN_STORE_PICK_UP`, `PREMIUM`, `PREORDER`, `PRIME`
|
|
43
|
+
*/
|
|
44
|
+
'programs'?: Array<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Other orders that have a direct relationship to this order, such as replacement or exchange orders.
|
|
47
|
+
*/
|
|
48
|
+
'associatedOrders'?: Array<AssociatedOrder>;
|
|
49
|
+
'salesChannel': SalesChannel;
|
|
50
|
+
'buyer'?: Buyer;
|
|
51
|
+
'recipient'?: Recipient;
|
|
52
|
+
'proceeds'?: OrderProceeds;
|
|
53
|
+
'fulfillment'?: OrderFulfillment;
|
|
54
|
+
/**
|
|
55
|
+
* The list of all order items included in this order.
|
|
56
|
+
*/
|
|
57
|
+
'orderItems': Array<OrderItem>;
|
|
58
|
+
/**
|
|
59
|
+
* Shipping packages created for this order, including tracking information. **Note:** Only available for merchant-fulfilled (FBM) orders.
|
|
60
|
+
*/
|
|
61
|
+
'packages'?: Array<OrderPackage>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Individual order item contained within a shipping package.
|
|
14
|
+
*/
|
|
15
|
+
export interface PackageItem {
|
|
16
|
+
/**
|
|
17
|
+
* Unique identifier of the order item included in this package.
|
|
18
|
+
*/
|
|
19
|
+
'orderItemId': string;
|
|
20
|
+
/**
|
|
21
|
+
* Number of units of this item included in the package shipment.
|
|
22
|
+
*/
|
|
23
|
+
'quantity': number;
|
|
24
|
+
/**
|
|
25
|
+
* The transparency codes associated with this item for product authentication.
|
|
26
|
+
*/
|
|
27
|
+
'transparencyCodes'?: Array<string>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Current status and detailed tracking information for a shipping package throughout the delivery process.
|
|
14
|
+
*/
|
|
15
|
+
export interface PackageStatus {
|
|
16
|
+
/**
|
|
17
|
+
* Primary status classification of the package in the shipping workflow.
|
|
18
|
+
*/
|
|
19
|
+
'status': PackageStatusStatusEnum;
|
|
20
|
+
/**
|
|
21
|
+
* Granular status information providing specific details about the package\'s current location and handling stage. **Possible values:** - `PENDING_SCHEDULE` (Package awaiting pickup scheduling) - `PENDING_PICK_UP` (Package ready for carrier collection from seller) - `PENDING_DROP_OFF` (Package awaiting seller delivery to carrier) - `LABEL_CANCELLED` (Shipping label canceled by seller) - `PICKED_UP` (Package collected by carrier from seller location) - `DROPPED_OFF` (Package delivered to carrier by seller) - `AT_ORIGIN_FC` (Package at originating fulfillment center) - `AT_DESTINATION_FC` (Package at destination fulfillment center) - `DELIVERED` (Package successfully delivered to recipient) - `REJECTED_BY_BUYER` (Package refused by intended recipient) - `UNDELIVERABLE` (Package cannot be delivered due to address or access issues) - `RETURNING_TO_SELLER` (Package in transit back to seller) - `RETURNED_TO_SELLER` (Package successfully returned to seller) - `LOST` (Package location unknown or confirmed lost) - `OUT_FOR_DELIVERY` (Package on delivery vehicle for final delivery) - `DAMAGED` (Package damaged during transit)
|
|
22
|
+
*/
|
|
23
|
+
'detailedStatus'?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const PackageStatusStatusEnum: {
|
|
26
|
+
readonly Pending: "PENDING";
|
|
27
|
+
readonly InTransit: "IN_TRANSIT";
|
|
28
|
+
readonly Shipped: "SHIPPED";
|
|
29
|
+
readonly Delivered: "DELIVERED";
|
|
30
|
+
readonly Cancelled: "CANCELLED";
|
|
31
|
+
readonly Undeliverable: "UNDELIVERABLE";
|
|
32
|
+
};
|
|
33
|
+
export type PackageStatusStatusEnum = typeof PackageStatusStatusEnum[keyof typeof PackageStatusStatusEnum];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* When a request has results that are not included in the response, pagination occurs. This means the results are divided into individual pages. To retrieve a different page, you must pass the token value as the `paginationToken` query parameter in the subsequent request. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `maxResultsPerPage` and `includedData`, which can be modified between calls. The token will expire after 24 hours. When there are no other pages to fetch, the `pagination` field will be absent from the response.
|
|
14
|
+
*/
|
|
15
|
+
export interface Pagination {
|
|
16
|
+
/**
|
|
17
|
+
* A token that can be used to fetch the next page of results.
|
|
18
|
+
*/
|
|
19
|
+
'nextToken'?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Money } from './money';
|
|
13
|
+
/**
|
|
14
|
+
* Information about Amazon Points awarded with an item purchase.
|
|
15
|
+
*/
|
|
16
|
+
export interface PointsGranted {
|
|
17
|
+
/**
|
|
18
|
+
* Total number of Amazon Points granted to the customer\'s account for this item purchase.
|
|
19
|
+
*/
|
|
20
|
+
'pointsNumber'?: number;
|
|
21
|
+
'pointsMonetaryValue'?: Money;
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { BusinessHour } from './business-hour';
|
|
13
|
+
import type { ExceptionDate } from './exception-date';
|
|
14
|
+
/**
|
|
15
|
+
* Customer-specified time preferences for when deliveries should be attempted at the destination address.
|
|
16
|
+
*/
|
|
17
|
+
export interface PreferredDeliveryTime {
|
|
18
|
+
/**
|
|
19
|
+
* Business hours when the business is open for deliveries.
|
|
20
|
+
*/
|
|
21
|
+
'businessHours'?: Array<BusinessHour>;
|
|
22
|
+
/**
|
|
23
|
+
* Specific dates within the next 30 days when normal business hours do not apply.
|
|
24
|
+
*/
|
|
25
|
+
'exceptionDates'?: Array<ExceptionDate>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CustomerAddress } from './customer-address';
|
|
13
|
+
import type { DeliveryPreference } from './delivery-preference';
|
|
14
|
+
/**
|
|
15
|
+
* Information about the recipient to whom the order should be delivered.
|
|
16
|
+
*/
|
|
17
|
+
export interface Recipient {
|
|
18
|
+
'deliveryAddress'?: CustomerAddress;
|
|
19
|
+
'deliveryPreference'?: DeliveryPreference;
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Information about where the customer placed this order.
|
|
14
|
+
*/
|
|
15
|
+
export interface SalesChannel {
|
|
16
|
+
/**
|
|
17
|
+
* The name of the sales platform or channel where the customer placed this order. **Possible values**: `AMAZON`, `NON_AMAZON`
|
|
18
|
+
*/
|
|
19
|
+
'channelName': string;
|
|
20
|
+
/**
|
|
21
|
+
* The unique identifier for the specific marketplace within the sales channel where this order was placed.
|
|
22
|
+
*/
|
|
23
|
+
'marketplaceId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The human-readable name of the marketplace where this order was placed.
|
|
26
|
+
*/
|
|
27
|
+
'marketplaceName'?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Order } from './order';
|
|
13
|
+
import type { Pagination } from './pagination';
|
|
14
|
+
/**
|
|
15
|
+
* A list of orders.
|
|
16
|
+
*/
|
|
17
|
+
export interface SearchOrdersResponse {
|
|
18
|
+
/**
|
|
19
|
+
* An array containing all orders that match the search criteria.
|
|
20
|
+
*/
|
|
21
|
+
'orders': Array<Order>;
|
|
22
|
+
'pagination'?: Pagination;
|
|
23
|
+
/**
|
|
24
|
+
* Only orders updated before the specified time are returned. The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
25
|
+
*/
|
|
26
|
+
'lastUpdatedBefore'?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Only orders placed before the specified time are returned. The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
29
|
+
*/
|
|
30
|
+
'createdBefore'?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders returns orders information. This API supports the following types of orders: - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { HourMinute } from './hour-minute';
|
|
13
|
+
/**
|
|
14
|
+
* Specific time interval defining the start and end times.
|
|
15
|
+
*/
|
|
16
|
+
export interface TimeWindow {
|
|
17
|
+
'startTime'?: HourMinute;
|
|
18
|
+
'endTime'?: HourMinute;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
|
|
2
|
+
import { OrdersApi } from './api-model';
|
|
3
|
+
export declare const clientRateLimits: RateLimit[];
|
|
4
|
+
export declare class OrdersApiClient extends OrdersApi {
|
|
5
|
+
constructor(configuration: ClientConfiguration);
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -2,14 +2,43 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/orders-api-2026-01-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Orders returns orders information. This API supports the following types of orders: FBM (Fulfilled by Merchant) FBA (Fulfilled by Amazon) - read only Amazon Fresh This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "1.1.1",
|
|
6
|
+
"main": "dist/cjs/index.js",
|
|
7
|
+
"module": "dist/es/index.js",
|
|
8
|
+
"types": "dist/types/index.d.ts",
|
|
6
9
|
"license": "MIT",
|
|
7
10
|
"publishConfig": {
|
|
8
11
|
"access": "public"
|
|
9
12
|
},
|
|
13
|
+
"directories": {
|
|
14
|
+
"lib": "dist"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/**/*.js",
|
|
18
|
+
"dist/**/*.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@sp-api-sdk/common": "2.1.28",
|
|
22
|
+
"axios": "^1.13.5"
|
|
23
|
+
},
|
|
10
24
|
"repository": {
|
|
11
25
|
"type": "git",
|
|
12
26
|
"url": "https://github.com/bizon/selling-partner-api-sdk.git",
|
|
13
27
|
"directory": "clients/orders-api-2026-01-01"
|
|
14
|
-
}
|
|
15
|
-
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/bizon/selling-partner-api-sdk/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/orders-api-2026-01-01",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"amazon",
|
|
35
|
+
"bizon",
|
|
36
|
+
"marketplace web services",
|
|
37
|
+
"mws",
|
|
38
|
+
"selling partner api",
|
|
39
|
+
"sp api",
|
|
40
|
+
"sp sdk",
|
|
41
|
+
"orders api"
|
|
42
|
+
],
|
|
43
|
+
"gitHead": "111f635ee267c031683ba5cd53937a7f381574be"
|
|
44
|
+
}
|