UNPKG

@sp-api-sdk/orders-api-v0

Version:

Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support too

1,173 lines (1,115 loc) 190 kB
import { ClientConfiguration, RateLimit } from '@sp-api-sdk/common'; import * as axios from 'axios'; import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise } from 'axios'; /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface AWSv4Configuration { options?: { region?: string; service?: string; }; credentials?: { accessKeyId?: string; secretAccessKey?: string; sessionToken?: string; }; } interface ConfigurationParameters { apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>); username?: string; password?: string; accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>); awsv4?: AWSv4Configuration; basePath?: string; serverIndex?: number; baseOptions?: any; formDataCtor?: new () => any; } declare class Configuration { /** * parameter for apiKey security * @param name security name */ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>); /** * parameter for basic security */ username?: string; /** * parameter for basic security */ password?: string; /** * parameter for oauth2 security * @param name security name * @param scopes oauth2 scope */ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>); /** * parameter for aws4 signature security * @param {Object} AWS4Signature - AWS4 Signature security * @param {string} options.region - aws region * @param {string} options.service - name of the service. * @param {string} credentials.accessKeyId - aws access key id * @param {string} credentials.secretAccessKey - aws access key * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ awsv4?: AWSv4Configuration; /** * override base path */ basePath?: string; /** * override server index */ serverIndex?: number; /** * base options for axios calls */ baseOptions?: any; /** * The FormData constructor that will be used to create multipart form data * requests. You can inject this here so that execution environments that * do not support the FormData class can still run the generated client. * * @type {new () => FormData} */ formDataCtor?: new () => any; constructor(param?: ConfigurationParameters); /** * Check if the given MIME is a JSON MIME. * JSON MIME examples: * application/json * application/json; charset=UTF8 * APPLICATION/JSON * application/vnd.company+json * @param mime - MIME (Multipurpose Internet Mail Extensions) * @return True if the given MIME is JSON, false otherwise. */ isJsonMime(mime: string): boolean; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface RequestArgs { url: string; options: RawAxiosRequestConfig; } declare class BaseAPI { protected basePath: string; protected axios: AxiosInstance; protected configuration: Configuration | undefined; constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The latitude and longitude coordinates of the shipping address using the WGS84 coordinate system. */ interface GeoCoordinates { /** * The latitude coordinate of the shipping address using the WGS84 coordinate system. */ 'Latitude'?: number; /** * The longitude coordinate of the shipping address using the WGS84 coordinate system. */ 'Longitude'?: number; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Extended address fields for additional address components including the street name or number. Note: Available for grocery sellers and Brazil shipping addresses. */ interface AddressExtendedFields { /** * The street name. */ 'StreetName'?: string; /** * The house, building, or property number associated with the location\'s street address. */ 'StreetNumber'?: string; /** * The floor number/unit number in the building/private house number. */ 'Complement'?: string; /** * The neighborhood. This value is only used in some countries (such as Brazil). */ 'Neighborhood'?: string; 'GeoCoordinates'?: GeoCoordinates; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The shipping address for the order. */ interface Address { /** * The name. */ 'Name'?: string; /** * The company name of the recipient. **Note**: This attribute is only available for shipping address. */ 'CompanyName'?: string; /** * The street address. */ 'AddressLine1'?: string; /** * Additional street address information, if required. */ 'AddressLine2'?: string; /** * Additional street address information, if required. */ 'AddressLine3'?: string; /** * The city. */ 'City'?: string; /** * The county. */ 'County'?: string; /** * The district. */ 'District'?: string; /** * The state or region. */ 'StateOrRegion'?: string; /** * The municipality. */ 'Municipality'?: string; /** * The postal code. */ 'PostalCode'?: string; /** * The country code. A two-character country code, in ISO 3166-1 alpha-2 format. */ 'CountryCode'?: string; /** * The phone number of the buyer. **Note**: 1. This attribute is only available for shipping address. 2. In some cases, the buyer phone number is suppressed: a. Phone is suppressed for all `AFN` (fulfilled by Amazon) orders. b. Phone is suppressed for the shipped `MFN` (fulfilled by seller) order when the current date is past the Latest Delivery Date. */ 'Phone'?: string; 'ExtendedFields'?: AddressExtendedFields; /** * The address type of the shipping address. */ 'AddressType'?: AddressAddressTypeEnum; } declare const AddressAddressTypeEnum: { readonly Residential: "Residential"; readonly Commercial: "Commercial"; }; type AddressAddressTypeEnum = typeof AddressAddressTypeEnum[keyof typeof AddressAddressTypeEnum]; /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Contains the list of programs that Amazon associates with an item. Possible programs are: - **Subscribe and Save**: Offers recurring, scheduled deliveries to Amazon customers and Amazon Business customers for their frequently ordered products. - **FBM Ship+**: Unlocks expedited shipping without the extra cost. Helps you to provide accurate and fast delivery dates to Amazon customers. You also receive protection from late deliveries, a discount on expedited shipping rates, and cash back when you ship. */ interface AmazonPrograms { /** * A list of the programs that Amazon associates with the order item. **Possible values**: `SUBSCRIBE_AND_SAVE`, `FBM_SHIP_PLUS` */ 'Programs': Array<string>; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * An order attribute with its original value and the pre-approved alternative value suggested by the vet. */ interface ApprovedAttribute { /** * The name of the attribute requiring correction (for example, `asin`, `petWeight`). */ 'attributeName': string; /** * The original value of the attribute in the rejected order. */ 'originalValue': string; /** * The pre-approved value that would result in order approval. */ 'approvedValue': string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The type of association an item has with an order item. */ declare const AssociationType: { readonly ValueAddService: "VALUE_ADD_SERVICE"; }; type AssociationType = typeof AssociationType[keyof typeof AssociationType]; /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * An item that is associated with an order item. For example, a tire installation service that is purchased with tires. */ interface AssociatedItem { /** * The order item\'s order identifier, in 3-7-7 format. */ 'OrderId'?: string; /** * An Amazon-defined item identifier for the associated item. */ 'OrderItemId'?: string; 'AssociationType'?: AssociationType; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Contains information regarding the Shipping Settings Automation program, such as whether the order\'s shipping settings were generated automatically, and what those settings are. */ interface AutomatedShippingSettings { /** * When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order. */ 'HasAutomatedShippingSettings'?: boolean; /** * Auto-generated carrier for SSA orders. */ 'AutomatedCarrier'?: string; /** * Auto-generated ship method for SSA orders. */ 'AutomatedShipMethod'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The time when the business opens or closes. */ interface OpenTimeInterval { /** * The hour when the business opens or closes. */ 'Hour'?: number; /** * The minute when the business opens or closes. */ 'Minute'?: number; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The time interval for which the business is open. */ interface OpenInterval { 'StartTime'?: OpenTimeInterval; 'EndTime'?: OpenTimeInterval; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Business days and hours when the destination is open for deliveries. */ interface BusinessHours { /** * Day of the week. */ 'DayOfWeek'?: BusinessHoursDayOfWeekEnum; /** * Time window during the day when the business is open. */ 'OpenIntervals'?: Array<OpenInterval>; } declare const BusinessHoursDayOfWeekEnum: { readonly Sun: "SUN"; readonly Mon: "MON"; readonly Tue: "TUE"; readonly Wed: "WED"; readonly Thu: "THU"; readonly Fri: "FRI"; readonly Sat: "SAT"; }; type BusinessHoursDayOfWeekEnum = typeof BusinessHoursDayOfWeekEnum[keyof typeof BusinessHoursDayOfWeekEnum]; /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Buyer information for custom orders from the Amazon Custom program. */ interface BuyerCustomizedInfoDetail { /** * The location of a ZIP file containing Amazon Custom data. */ 'CustomizedURL'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The tax classification of the order. */ interface TaxClassification { /** * The type of tax. */ 'Name'?: string; /** * The buyer\'s tax identifier. */ 'Value'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Tax information about the buyer. */ interface BuyerTaxInfo { /** * The legal name of the company. */ 'CompanyLegalName'?: string; /** * The country or region imposing the tax. */ 'TaxingRegion'?: string; /** * A list of tax classifications that apply to the order. */ 'TaxClassifications'?: Array<TaxClassification>; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Buyer information. */ interface BuyerInfo { /** * The anonymized email address of the buyer. */ 'BuyerEmail'?: string; /** * The buyer name or the recipient name. */ 'BuyerName'?: string; /** * The county of the buyer. **Note**: This attribute is only available in the Brazil marketplace. */ 'BuyerCounty'?: string; 'BuyerTaxInfo'?: BuyerTaxInfo; /** * The purchase order (PO) number entered by the buyer at checkout. Only returned for orders where the buyer entered a PO number at checkout. */ 'PurchaseOrderNumber'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Information about whether or not a buyer requested cancellation. */ interface BuyerRequestedCancel { /** * Indicate whether the buyer has requested cancellation. **Possible Values**: `true`, `false`. */ 'IsBuyerRequestedCancel'?: string; /** * The reason that the buyer requested cancellation. */ 'BuyerCancelReason'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Contains the business invoice tax information. Available only in the TR marketplace. */ interface BuyerTaxInformation { /** * Business buyer\'s company legal name. */ 'BuyerLegalCompanyName'?: string; /** * Business buyer\'s address. */ 'BuyerBusinessAddress'?: string; /** * Business buyer\'s tax registration ID. */ 'BuyerTaxRegistrationId'?: string; /** * Business buyer\'s tax office. */ 'BuyerTaxOffice'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The error response schema for the `confirmShipment` operation. */ interface ConfirmShipmentErrorResponse { /** * A list of error responses returned when a request is unsuccessful. */ 'errors'?: Array<Error>; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * A single order item. */ interface ConfirmShipmentOrderItem { /** * The order item\'s unique identifier. */ 'orderItemId': string; /** * The item\'s quantity. */ 'quantity': number; /** * A list of order items. */ 'transparencyCodes'?: Array<string>; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Properties of packages */ interface PackageDetail { /** * A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported. */ 'packageReferenceId': string; /** * Identifies the carrier that will deliver the package. This field is required for all marketplaces. For more information, refer to the [`CarrierCode` announcement](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces). */ 'carrierCode': string; /** * Carrier name that will deliver the package. Required when `carrierCode` is \"Other\" */ 'carrierName'?: string; /** * Ship method to be used for shipping the order. */ 'shippingMethod'?: string; /** * The tracking number used to obtain tracking and delivery information. */ 'trackingNumber': string; /** * The shipping date for the package. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> date/time format. */ 'shipDate': string; /** * The unique identifier for the supply source. */ 'shipFromSupplySourceId'?: string; /** * A list of order items. */ 'orderItems': Array<ConfirmShipmentOrderItem>; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The request schema for an shipment confirmation. */ interface ConfirmShipmentRequest { 'packageDetail': PackageDetail; /** * The COD collection method (only supported in the JP marketplace). */ 'codCollectionMethod'?: ConfirmShipmentRequestCodCollectionMethodEnum; /** * The unobfuscated marketplace identifier. */ 'marketplaceId': string; } declare const ConfirmShipmentRequestCodCollectionMethodEnum: { readonly DirectPayment: "DirectPayment"; }; type ConfirmShipmentRequestCodCollectionMethodEnum = typeof ConfirmShipmentRequestCodCollectionMethodEnum[keyof typeof ConfirmShipmentRequestCodCollectionMethodEnum]; /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Details the importance of the constraint present on the item */ declare const ConstraintType: { readonly Mandatory: "MANDATORY"; }; type ConstraintType = typeof ConstraintType[keyof typeof ConstraintType]; /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Miscellaneous delivery attributes associated with the shipping address. */ declare const OtherDeliveryAttributes: { readonly HasAccessPoint: "HAS_ACCESS_POINT"; readonly PalletEnabled: "PALLET_ENABLED"; readonly PalletDisabled: "PALLET_DISABLED"; }; type OtherDeliveryAttributes = typeof OtherDeliveryAttributes[keyof typeof OtherDeliveryAttributes]; /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Dates when the business is closed or open with a different time window. */ interface ExceptionDates { /** * Date when the business is closed, in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> date format. */ 'ExceptionDate'?: string; /** * Boolean indicating if the business is closed or open on that date. */ 'IsOpen'?: boolean; /** * Time window during the day when the business is open. */ 'OpenIntervals'?: Array<OpenInterval>; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The time window when the delivery is preferred. */ interface PreferredDeliveryTime { /** * Business hours when the business is open for deliveries. */ 'BusinessHours'?: Array<BusinessHours>; /** * Dates when the business is closed during the next 30 days. */ 'ExceptionDates'?: Array<ExceptionDates>; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Contains all of the delivery instructions provided by the customer for the shipping address. */ interface DeliveryPreferences { /** * Drop-off location selected by the customer. */ 'DropOffLocation'?: string; 'PreferredDeliveryTime'?: PreferredDeliveryTime; /** * Enumerated list of miscellaneous delivery attributes associated with the shipping address. */ 'OtherAttributes'?: Array<OtherDeliveryAttributes>; /** * Building instructions, nearby landmark or navigation instructions. */ 'AddressInstructions'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The status of the Amazon Easy Ship order. This property is only included for Amazon Easy Ship orders. */ declare const EasyShipShipmentStatus: { readonly PendingSchedule: "PendingSchedule"; readonly PendingPickUp: "PendingPickUp"; readonly PendingDropOff: "PendingDropOff"; readonly LabelCanceled: "LabelCanceled"; readonly PickedUp: "PickedUp"; readonly DroppedOff: "DroppedOff"; readonly AtOriginFc: "AtOriginFC"; readonly AtDestinationFc: "AtDestinationFC"; readonly Delivered: "Delivered"; readonly RejectedByBuyer: "RejectedByBuyer"; readonly Undeliverable: "Undeliverable"; readonly ReturningToSeller: "ReturningToSeller"; readonly ReturnedToSeller: "ReturnedToSeller"; readonly Lost: "Lost"; readonly OutForDelivery: "OutForDelivery"; readonly Damaged: "Damaged"; }; type EasyShipShipmentStatus = typeof EasyShipShipmentStatus[keyof typeof EasyShipShipmentStatus]; /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The status of the electronic invoice. Only available for Easy Ship orders and orders in the BR marketplace. */ declare const ElectronicInvoiceStatus: { readonly NotRequired: "NotRequired"; readonly NotFound: "NotFound"; readonly Processing: "Processing"; readonly Errored: "Errored"; readonly Accepted: "Accepted"; }; type ElectronicInvoiceStatus = typeof ElectronicInvoiceStatus[keyof typeof ElectronicInvoiceStatus]; /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Contains the instructions about the fulfillment, such as the location from where you want the order filled. */ interface FulfillmentInstruction { /** * The `sourceId` of the location from where you want the order fulfilled. */ 'FulfillmentSupplySourceId'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The shipping address for the order. */ interface OrderAddress { /** * An Amazon-defined order identifier, in 3-7-7 format. */ 'AmazonOrderId': string; /** * The company name of the contact buyer. For IBA orders, the buyer company must be Amazon entities. */ 'BuyerCompanyName'?: string; 'ShippingAddress'?: Address; 'DeliveryPreferences'?: DeliveryPreferences; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The response schema for the `getOrderAddress` operation. */ interface GetOrderAddressResponse { 'payload'?: OrderAddress; /** * A list of error responses returned when a request is unsuccessful. */ 'errors'?: Array<Error>; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Buyer information for an order. */ interface OrderBuyerInfo { /** * An Amazon-defined order identifier, in 3-7-7 format. */ 'AmazonOrderId': string; /** * The anonymized email address of the buyer. */ 'BuyerEmail'?: string; /** * The buyer name or the recipient name. */ 'BuyerName'?: string; /** * The county of the buyer. **Note**: This attribute is only available in the Brazil marketplace. */ 'BuyerCounty'?: string; 'BuyerTaxInfo'?: BuyerTaxInfo; /** * The purchase order (PO) number entered by the buyer at checkout. Only returned for orders where the buyer entered a PO number at checkout. */ 'PurchaseOrderNumber'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The response schema for the `getOrderBuyerInfo` operation. */ interface GetOrderBuyerInfoResponse { 'payload'?: OrderBuyerInfo; /** * A list of error responses returned when a request is unsuccessful. */ 'errors'?: Array<Error>; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The monetary value of the order. */ interface Money { /** * The three-digit currency code. In ISO 4217 format. */ 'CurrencyCode'?: string; /** * The currency amount. */ 'Amount'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * A single order item\'s buyer information. */ interface OrderItemBuyerInfo { /** * An Amazon-defined order item identifier. */ 'OrderItemId': string; 'BuyerCustomizedInfo'?: BuyerCustomizedInfoDetail; 'GiftWrapPrice'?: Money; 'GiftWrapTax'?: Money; /** * A gift message provided by the buyer. **Note**: This attribute is only available for MFN (fulfilled by seller) orders. */ 'GiftMessageText'?: string; /** * The gift wrap level specified by the buyer. */ 'GiftWrapLevel'?: string; } /** * Selling Partner API for Orders * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * A single order item\'s buyer information list with the order ID. */ interface OrderItemsBuyerInfoList { /** * A single order item\'s buyer information list. */ 'OrderItems': Array<OrderItemBuyerInfo>; /** * When present and not empty, pass this string token in the next request to return the next response page. */ 'NextToken'?: string; /**