@sp-api-sdk/easy-ship-api-2022-03-23 4.3.12 → 5.0.0
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/README.md +4 -4
- package/dist/index.cjs +642 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{types/api-model/api/easy-ship-api.d.ts → index.d.cts} +819 -26
- package/dist/index.d.ts +1027 -0
- package/dist/index.js +594 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/easy-ship-api.js +0 -361
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/code.js +0 -32
- package/dist/cjs/api-model/models/create-scheduled-package-request.js +0 -15
- package/dist/cjs/api-model/models/create-scheduled-packages-request.js +0 -15
- package/dist/cjs/api-model/models/create-scheduled-packages-response.js +0 -15
- package/dist/cjs/api-model/models/dimensions.js +0 -15
- package/dist/cjs/api-model/models/error-list.js +0 -15
- package/dist/cjs/api-model/models/handover-method.js +0 -23
- package/dist/cjs/api-model/models/index.js +0 -43
- package/dist/cjs/api-model/models/invoice-data.js +0 -15
- package/dist/cjs/api-model/models/item.js +0 -15
- package/dist/cjs/api-model/models/label-format.js +0 -23
- package/dist/cjs/api-model/models/list-handover-slots-request.js +0 -15
- package/dist/cjs/api-model/models/list-handover-slots-response.js +0 -15
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/order-schedule-details.js +0 -15
- package/dist/cjs/api-model/models/package-details.js +0 -15
- package/dist/cjs/api-model/models/package-status.js +0 -33
- package/dist/cjs/api-model/models/package.js +0 -15
- package/dist/cjs/api-model/models/packages.js +0 -15
- package/dist/cjs/api-model/models/rejected-order.js +0 -15
- package/dist/cjs/api-model/models/scheduled-package-id.js +0 -15
- package/dist/cjs/api-model/models/time-slot.js +0 -15
- package/dist/cjs/api-model/models/tracking-details.js +0 -15
- package/dist/cjs/api-model/models/unit-of-length.js +0 -22
- package/dist/cjs/api-model/models/unit-of-weight.js +0 -23
- package/dist/cjs/api-model/models/update-package-details.js +0 -15
- package/dist/cjs/api-model/models/update-scheduled-packages-request.js +0 -15
- package/dist/cjs/api-model/models/weight.js +0 -15
- package/dist/cjs/client.js +0 -49
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/easy-ship-api.js +0 -351
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/code.js +0 -29
- package/dist/es/api-model/models/create-scheduled-package-request.js +0 -14
- package/dist/es/api-model/models/create-scheduled-packages-request.js +0 -14
- package/dist/es/api-model/models/create-scheduled-packages-response.js +0 -14
- package/dist/es/api-model/models/dimensions.js +0 -14
- package/dist/es/api-model/models/error-list.js +0 -14
- package/dist/es/api-model/models/handover-method.js +0 -20
- package/dist/es/api-model/models/index.js +0 -27
- package/dist/es/api-model/models/invoice-data.js +0 -14
- package/dist/es/api-model/models/item.js +0 -14
- package/dist/es/api-model/models/label-format.js +0 -20
- package/dist/es/api-model/models/list-handover-slots-request.js +0 -14
- package/dist/es/api-model/models/list-handover-slots-response.js +0 -14
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/order-schedule-details.js +0 -14
- package/dist/es/api-model/models/package-details.js +0 -14
- package/dist/es/api-model/models/package-status.js +0 -30
- package/dist/es/api-model/models/package.js +0 -14
- package/dist/es/api-model/models/packages.js +0 -14
- package/dist/es/api-model/models/rejected-order.js +0 -14
- package/dist/es/api-model/models/scheduled-package-id.js +0 -14
- package/dist/es/api-model/models/time-slot.js +0 -14
- package/dist/es/api-model/models/tracking-details.js +0 -14
- package/dist/es/api-model/models/unit-of-length.js +0 -19
- package/dist/es/api-model/models/unit-of-weight.js +0 -20
- package/dist/es/api-model/models/update-package-details.js +0 -14
- package/dist/es/api-model/models/update-scheduled-packages-request.js +0 -14
- package/dist/es/api-model/models/weight.js +0 -14
- package/dist/es/client.js +0 -45
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/code.d.ts +0 -28
- package/dist/types/api-model/models/create-scheduled-package-request.d.ts +0 -26
- package/dist/types/api-model/models/create-scheduled-packages-request.d.ts +0 -27
- package/dist/types/api-model/models/create-scheduled-packages-response.d.ts +0 -30
- package/dist/types/api-model/models/dimensions.d.ts +0 -34
- package/dist/types/api-model/models/error-list.d.ts +0 -20
- package/dist/types/api-model/models/handover-method.d.ts +0 -19
- package/dist/types/api-model/models/index.d.ts +0 -27
- package/dist/types/api-model/models/invoice-data.d.ts +0 -24
- package/dist/types/api-model/models/item.d.ts +0 -24
- package/dist/types/api-model/models/label-format.d.ts +0 -19
- package/dist/types/api-model/models/list-handover-slots-request.d.ts +0 -28
- package/dist/types/api-model/models/list-handover-slots-response.d.ts +0 -25
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/order-schedule-details.d.ts +0 -22
- package/dist/types/api-model/models/package-details.d.ts +0 -27
- package/dist/types/api-model/models/package-status.d.ts +0 -29
- package/dist/types/api-model/models/package.d.ts +0 -39
- package/dist/types/api-model/models/packages.d.ts +0 -21
- package/dist/types/api-model/models/rejected-order.d.ts +0 -21
- package/dist/types/api-model/models/scheduled-package-id.d.ts +0 -24
- package/dist/types/api-model/models/time-slot.d.ts +0 -30
- package/dist/types/api-model/models/tracking-details.d.ts +0 -20
- package/dist/types/api-model/models/unit-of-length.d.ts +0 -18
- package/dist/types/api-model/models/unit-of-weight.d.ts +0 -19
- package/dist/types/api-model/models/update-package-details.d.ts +0 -20
- package/dist/types/api-model/models/update-scheduled-packages-request.d.ts +0 -25
- package/dist/types/api-model/models/weight.d.ts +0 -22
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1027 @@
|
|
|
1
|
+
import { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
|
|
2
|
+
import * as axios from 'axios';
|
|
3
|
+
import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise } from 'axios';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Selling Partner API for Easy Ship
|
|
7
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
interface AWSv4Configuration {
|
|
17
|
+
options?: {
|
|
18
|
+
region?: string;
|
|
19
|
+
service?: string;
|
|
20
|
+
};
|
|
21
|
+
credentials?: {
|
|
22
|
+
accessKeyId?: string;
|
|
23
|
+
secretAccessKey?: string;
|
|
24
|
+
sessionToken?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface ConfigurationParameters {
|
|
28
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
|
+
username?: string;
|
|
30
|
+
password?: string;
|
|
31
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
32
|
+
awsv4?: AWSv4Configuration;
|
|
33
|
+
basePath?: string;
|
|
34
|
+
serverIndex?: number;
|
|
35
|
+
baseOptions?: any;
|
|
36
|
+
formDataCtor?: new () => any;
|
|
37
|
+
}
|
|
38
|
+
declare class Configuration {
|
|
39
|
+
/**
|
|
40
|
+
* parameter for apiKey security
|
|
41
|
+
* @param name security name
|
|
42
|
+
*/
|
|
43
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
44
|
+
/**
|
|
45
|
+
* parameter for basic security
|
|
46
|
+
*/
|
|
47
|
+
username?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for basic security
|
|
50
|
+
*/
|
|
51
|
+
password?: string;
|
|
52
|
+
/**
|
|
53
|
+
* parameter for oauth2 security
|
|
54
|
+
* @param name security name
|
|
55
|
+
* @param scopes oauth2 scope
|
|
56
|
+
*/
|
|
57
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
58
|
+
/**
|
|
59
|
+
* parameter for aws4 signature security
|
|
60
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
61
|
+
* @param {string} options.region - aws region
|
|
62
|
+
* @param {string} options.service - name of the service.
|
|
63
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
64
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
65
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
awsv4?: AWSv4Configuration;
|
|
69
|
+
/**
|
|
70
|
+
* override base path
|
|
71
|
+
*/
|
|
72
|
+
basePath?: string;
|
|
73
|
+
/**
|
|
74
|
+
* override server index
|
|
75
|
+
*/
|
|
76
|
+
serverIndex?: number;
|
|
77
|
+
/**
|
|
78
|
+
* base options for axios calls
|
|
79
|
+
*/
|
|
80
|
+
baseOptions?: any;
|
|
81
|
+
/**
|
|
82
|
+
* The FormData constructor that will be used to create multipart form data
|
|
83
|
+
* requests. You can inject this here so that execution environments that
|
|
84
|
+
* do not support the FormData class can still run the generated client.
|
|
85
|
+
*
|
|
86
|
+
* @type {new () => FormData}
|
|
87
|
+
*/
|
|
88
|
+
formDataCtor?: new () => any;
|
|
89
|
+
constructor(param?: ConfigurationParameters);
|
|
90
|
+
/**
|
|
91
|
+
* Check if the given MIME is a JSON MIME.
|
|
92
|
+
* JSON MIME examples:
|
|
93
|
+
* application/json
|
|
94
|
+
* application/json; charset=UTF8
|
|
95
|
+
* APPLICATION/JSON
|
|
96
|
+
* application/vnd.company+json
|
|
97
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
98
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
99
|
+
*/
|
|
100
|
+
isJsonMime(mime: string): boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Selling Partner API for Easy Ship
|
|
105
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
106
|
+
*
|
|
107
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
111
|
+
* https://openapi-generator.tech
|
|
112
|
+
* Do not edit the class manually.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
interface RequestArgs {
|
|
116
|
+
url: string;
|
|
117
|
+
options: RawAxiosRequestConfig;
|
|
118
|
+
}
|
|
119
|
+
declare class BaseAPI {
|
|
120
|
+
protected basePath: string;
|
|
121
|
+
protected axios: AxiosInstance;
|
|
122
|
+
protected configuration: Configuration | undefined;
|
|
123
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Selling Partner API for Easy Ship
|
|
128
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
129
|
+
*
|
|
130
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
134
|
+
* https://openapi-generator.tech
|
|
135
|
+
* Do not edit the class manually.
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* An error code that identifies the type of error that occurred. The error codes listed below are specific to the Easy Ship section.
|
|
139
|
+
*/
|
|
140
|
+
declare const Code: {
|
|
141
|
+
readonly InvalidInput: "InvalidInput";
|
|
142
|
+
readonly InvalidTimeSlotId: "InvalidTimeSlotId";
|
|
143
|
+
readonly ScheduledPackageAlreadyExists: "ScheduledPackageAlreadyExists";
|
|
144
|
+
readonly ScheduleWindowExpired: "ScheduleWindowExpired";
|
|
145
|
+
readonly RetryableAfterGettingNewSlots: "RetryableAfterGettingNewSlots";
|
|
146
|
+
readonly TimeSlotNotAvailable: "TimeSlotNotAvailable";
|
|
147
|
+
readonly ResourceNotFound: "ResourceNotFound";
|
|
148
|
+
readonly InvalidOrderState: "InvalidOrderState";
|
|
149
|
+
readonly RegionNotSupported: "RegionNotSupported";
|
|
150
|
+
readonly OrderNotEligibleForRescheduling: "OrderNotEligibleForRescheduling";
|
|
151
|
+
readonly InternalServerError: "InternalServerError";
|
|
152
|
+
};
|
|
153
|
+
type Code = typeof Code[keyof typeof Code];
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Selling Partner API for Easy Ship
|
|
157
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
158
|
+
*
|
|
159
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
160
|
+
*
|
|
161
|
+
*
|
|
162
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
163
|
+
* https://openapi-generator.tech
|
|
164
|
+
* Do not edit the class manually.
|
|
165
|
+
*/
|
|
166
|
+
/**
|
|
167
|
+
* Item identifier and serial number information.
|
|
168
|
+
*/
|
|
169
|
+
interface Item {
|
|
170
|
+
/**
|
|
171
|
+
* The Amazon-defined order item identifier.
|
|
172
|
+
*/
|
|
173
|
+
'orderItemId'?: string;
|
|
174
|
+
/**
|
|
175
|
+
* A list of serial numbers for the items associated with the `OrderItemId` value.
|
|
176
|
+
*/
|
|
177
|
+
'orderItemSerialNumbers'?: Array<string>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Selling Partner API for Easy Ship
|
|
182
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
183
|
+
*
|
|
184
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
185
|
+
*
|
|
186
|
+
*
|
|
187
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
188
|
+
* https://openapi-generator.tech
|
|
189
|
+
* Do not edit the class manually.
|
|
190
|
+
*/
|
|
191
|
+
/**
|
|
192
|
+
* Identifies the method by which a seller will hand a package over to Amazon Logistics.
|
|
193
|
+
*/
|
|
194
|
+
declare const HandoverMethod: {
|
|
195
|
+
readonly Pickup: "PICKUP";
|
|
196
|
+
readonly Dropoff: "DROPOFF";
|
|
197
|
+
};
|
|
198
|
+
type HandoverMethod = typeof HandoverMethod[keyof typeof HandoverMethod];
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Selling Partner API for Easy Ship
|
|
202
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
203
|
+
*
|
|
204
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
205
|
+
*
|
|
206
|
+
*
|
|
207
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
208
|
+
* https://openapi-generator.tech
|
|
209
|
+
* Do not edit the class manually.
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* A time window to hand over an Easy Ship package to Amazon Logistics.
|
|
214
|
+
*/
|
|
215
|
+
interface TimeSlot {
|
|
216
|
+
/**
|
|
217
|
+
* A string of up to 255 characters.
|
|
218
|
+
*/
|
|
219
|
+
'slotId': string;
|
|
220
|
+
/**
|
|
221
|
+
* A datetime value in ISO 8601 format.
|
|
222
|
+
*/
|
|
223
|
+
'startTime'?: string;
|
|
224
|
+
/**
|
|
225
|
+
* A datetime value in ISO 8601 format.
|
|
226
|
+
*/
|
|
227
|
+
'endTime'?: string;
|
|
228
|
+
'handoverMethod'?: HandoverMethod;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Selling Partner API for Easy Ship
|
|
233
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
234
|
+
*
|
|
235
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
236
|
+
*
|
|
237
|
+
*
|
|
238
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
239
|
+
* https://openapi-generator.tech
|
|
240
|
+
* Do not edit the class manually.
|
|
241
|
+
*/
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Package details. Includes `packageItems`, `packageTimeSlot`, and `packageIdentifier`.
|
|
245
|
+
*/
|
|
246
|
+
interface PackageDetails {
|
|
247
|
+
/**
|
|
248
|
+
* A list of items contained in the package.
|
|
249
|
+
*/
|
|
250
|
+
'packageItems'?: Array<Item>;
|
|
251
|
+
'packageTimeSlot': TimeSlot;
|
|
252
|
+
/**
|
|
253
|
+
* Optional seller-created identifier that is printed on the shipping label to help the seller identify the package.
|
|
254
|
+
*/
|
|
255
|
+
'packageIdentifier'?: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Selling Partner API for Easy Ship
|
|
260
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
261
|
+
*
|
|
262
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
263
|
+
*
|
|
264
|
+
*
|
|
265
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
266
|
+
* https://openapi-generator.tech
|
|
267
|
+
* Do not edit the class manually.
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The request schema for the `createScheduledPackage` operation.
|
|
272
|
+
*/
|
|
273
|
+
interface CreateScheduledPackageRequest {
|
|
274
|
+
/**
|
|
275
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
276
|
+
*/
|
|
277
|
+
'amazonOrderId': string;
|
|
278
|
+
/**
|
|
279
|
+
* A string of up to 255 characters.
|
|
280
|
+
*/
|
|
281
|
+
'marketplaceId': string;
|
|
282
|
+
'packageDetails': PackageDetails;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Selling Partner API for Easy Ship
|
|
287
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
288
|
+
*
|
|
289
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
290
|
+
*
|
|
291
|
+
*
|
|
292
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
293
|
+
* https://openapi-generator.tech
|
|
294
|
+
* Do not edit the class manually.
|
|
295
|
+
*/
|
|
296
|
+
/**
|
|
297
|
+
* The file format in which the shipping label will be created.
|
|
298
|
+
*/
|
|
299
|
+
declare const LabelFormat: {
|
|
300
|
+
readonly Pdf: "PDF";
|
|
301
|
+
readonly Zpl: "ZPL";
|
|
302
|
+
};
|
|
303
|
+
type LabelFormat = typeof LabelFormat[keyof typeof LabelFormat];
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Selling Partner API for Easy Ship
|
|
307
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
308
|
+
*
|
|
309
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
310
|
+
*
|
|
311
|
+
*
|
|
312
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
313
|
+
* https://openapi-generator.tech
|
|
314
|
+
* Do not edit the class manually.
|
|
315
|
+
*/
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* This object allows users to specify an order to be scheduled. Only the amazonOrderId is required.
|
|
319
|
+
*/
|
|
320
|
+
interface OrderScheduleDetails {
|
|
321
|
+
/**
|
|
322
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
323
|
+
*/
|
|
324
|
+
'amazonOrderId': string;
|
|
325
|
+
'packageDetails'?: PackageDetails;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Selling Partner API for Easy Ship
|
|
330
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
331
|
+
*
|
|
332
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
333
|
+
*
|
|
334
|
+
*
|
|
335
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
336
|
+
* https://openapi-generator.tech
|
|
337
|
+
* Do not edit the class manually.
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* The request body for the POST /easyShip/2022-03-23/packages/bulk API.
|
|
342
|
+
*/
|
|
343
|
+
interface CreateScheduledPackagesRequest {
|
|
344
|
+
/**
|
|
345
|
+
* A string of up to 255 characters.
|
|
346
|
+
*/
|
|
347
|
+
'marketplaceId': string;
|
|
348
|
+
/**
|
|
349
|
+
* An array allowing users to specify orders to be scheduled.
|
|
350
|
+
*/
|
|
351
|
+
'orderScheduleDetailsList': Array<OrderScheduleDetails>;
|
|
352
|
+
'labelFormat': LabelFormat;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Selling Partner API for Easy Ship
|
|
357
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
358
|
+
*
|
|
359
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
360
|
+
*
|
|
361
|
+
*
|
|
362
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
363
|
+
* https://openapi-generator.tech
|
|
364
|
+
* Do not edit the class manually.
|
|
365
|
+
*/
|
|
366
|
+
/**
|
|
367
|
+
* The unit of measurement used to measure the length.
|
|
368
|
+
*/
|
|
369
|
+
declare const UnitOfLength: {
|
|
370
|
+
readonly Cm: "cm";
|
|
371
|
+
};
|
|
372
|
+
type UnitOfLength = typeof UnitOfLength[keyof typeof UnitOfLength];
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Selling Partner API for Easy Ship
|
|
376
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
377
|
+
*
|
|
378
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
379
|
+
*
|
|
380
|
+
*
|
|
381
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
382
|
+
* https://openapi-generator.tech
|
|
383
|
+
* Do not edit the class manually.
|
|
384
|
+
*/
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* The dimensions of the scheduled package.
|
|
388
|
+
*/
|
|
389
|
+
interface Dimensions {
|
|
390
|
+
/**
|
|
391
|
+
* The numerical value of the specified dimension.
|
|
392
|
+
*/
|
|
393
|
+
'length'?: number;
|
|
394
|
+
/**
|
|
395
|
+
* The numerical value of the specified dimension.
|
|
396
|
+
*/
|
|
397
|
+
'width'?: number;
|
|
398
|
+
/**
|
|
399
|
+
* The numerical value of the specified dimension.
|
|
400
|
+
*/
|
|
401
|
+
'height'?: number;
|
|
402
|
+
'unit'?: UnitOfLength;
|
|
403
|
+
/**
|
|
404
|
+
* A string of up to 255 characters.
|
|
405
|
+
*/
|
|
406
|
+
'identifier'?: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Selling Partner API for Easy Ship
|
|
411
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
412
|
+
*
|
|
413
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
414
|
+
*
|
|
415
|
+
*
|
|
416
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
417
|
+
* https://openapi-generator.tech
|
|
418
|
+
* Do not edit the class manually.
|
|
419
|
+
*/
|
|
420
|
+
/**
|
|
421
|
+
* Invoice number and date.
|
|
422
|
+
*/
|
|
423
|
+
interface InvoiceData {
|
|
424
|
+
/**
|
|
425
|
+
* A string of up to 255 characters.
|
|
426
|
+
*/
|
|
427
|
+
'invoiceNumber': string;
|
|
428
|
+
/**
|
|
429
|
+
* A datetime value in ISO 8601 format.
|
|
430
|
+
*/
|
|
431
|
+
'invoiceDate'?: string;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Selling Partner API for Easy Ship
|
|
436
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
437
|
+
*
|
|
438
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
439
|
+
*
|
|
440
|
+
*
|
|
441
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
442
|
+
* https://openapi-generator.tech
|
|
443
|
+
* Do not edit the class manually.
|
|
444
|
+
*/
|
|
445
|
+
/**
|
|
446
|
+
* The status of the package.
|
|
447
|
+
*/
|
|
448
|
+
declare const PackageStatus: {
|
|
449
|
+
readonly ReadyForPickup: "ReadyForPickup";
|
|
450
|
+
readonly PickedUp: "PickedUp";
|
|
451
|
+
readonly AtOriginFc: "AtOriginFC";
|
|
452
|
+
readonly AtDestinationFc: "AtDestinationFC";
|
|
453
|
+
readonly Delivered: "Delivered";
|
|
454
|
+
readonly Rejected: "Rejected";
|
|
455
|
+
readonly Undeliverable: "Undeliverable";
|
|
456
|
+
readonly ReturnedToSeller: "ReturnedToSeller";
|
|
457
|
+
readonly LostInTransit: "LostInTransit";
|
|
458
|
+
readonly LabelCanceled: "LabelCanceled";
|
|
459
|
+
readonly DamagedInTransit: "DamagedInTransit";
|
|
460
|
+
readonly OutForDelivery: "OutForDelivery";
|
|
461
|
+
};
|
|
462
|
+
type PackageStatus = typeof PackageStatus[keyof typeof PackageStatus];
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Selling Partner API for Easy Ship
|
|
466
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
467
|
+
*
|
|
468
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
469
|
+
*
|
|
470
|
+
*
|
|
471
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
472
|
+
* https://openapi-generator.tech
|
|
473
|
+
* Do not edit the class manually.
|
|
474
|
+
*/
|
|
475
|
+
/**
|
|
476
|
+
* Identifies the scheduled package to be updated.
|
|
477
|
+
*/
|
|
478
|
+
interface ScheduledPackageId {
|
|
479
|
+
/**
|
|
480
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
481
|
+
*/
|
|
482
|
+
'amazonOrderId': string;
|
|
483
|
+
/**
|
|
484
|
+
* An Amazon-defined identifier for the scheduled package.
|
|
485
|
+
*/
|
|
486
|
+
'packageId'?: string;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Selling Partner API for Easy Ship
|
|
491
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
492
|
+
*
|
|
493
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
494
|
+
*
|
|
495
|
+
*
|
|
496
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
497
|
+
* https://openapi-generator.tech
|
|
498
|
+
* Do not edit the class manually.
|
|
499
|
+
*/
|
|
500
|
+
/**
|
|
501
|
+
* Representation of tracking metadata.
|
|
502
|
+
*/
|
|
503
|
+
interface TrackingDetails {
|
|
504
|
+
/**
|
|
505
|
+
* A string of up to 255 characters.
|
|
506
|
+
*/
|
|
507
|
+
'trackingId'?: string;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Selling Partner API for Easy Ship
|
|
512
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
513
|
+
*
|
|
514
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
515
|
+
*
|
|
516
|
+
*
|
|
517
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
518
|
+
* https://openapi-generator.tech
|
|
519
|
+
* Do not edit the class manually.
|
|
520
|
+
*/
|
|
521
|
+
/**
|
|
522
|
+
* The unit of measurement used to measure the weight.
|
|
523
|
+
*/
|
|
524
|
+
declare const UnitOfWeight: {
|
|
525
|
+
readonly Grams: "grams";
|
|
526
|
+
readonly G: "g";
|
|
527
|
+
};
|
|
528
|
+
type UnitOfWeight = typeof UnitOfWeight[keyof typeof UnitOfWeight];
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Selling Partner API for Easy Ship
|
|
532
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
533
|
+
*
|
|
534
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
535
|
+
*
|
|
536
|
+
*
|
|
537
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
538
|
+
* https://openapi-generator.tech
|
|
539
|
+
* Do not edit the class manually.
|
|
540
|
+
*/
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* The weight of the scheduled package
|
|
544
|
+
*/
|
|
545
|
+
interface Weight {
|
|
546
|
+
/**
|
|
547
|
+
* The weight of the package.
|
|
548
|
+
*/
|
|
549
|
+
'value'?: number;
|
|
550
|
+
'unit'?: UnitOfWeight;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Selling Partner API for Easy Ship
|
|
555
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
556
|
+
*
|
|
557
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
558
|
+
*
|
|
559
|
+
*
|
|
560
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
561
|
+
* https://openapi-generator.tech
|
|
562
|
+
* Do not edit the class manually.
|
|
563
|
+
*/
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* This object contains all the details of the scheduled Easy Ship package.
|
|
567
|
+
*/
|
|
568
|
+
interface Package {
|
|
569
|
+
'scheduledPackageId': ScheduledPackageId;
|
|
570
|
+
'packageDimensions': Dimensions;
|
|
571
|
+
'packageWeight': Weight;
|
|
572
|
+
/**
|
|
573
|
+
* A list of items contained in the package.
|
|
574
|
+
*/
|
|
575
|
+
'packageItems'?: Array<Item>;
|
|
576
|
+
'packageTimeSlot': TimeSlot;
|
|
577
|
+
/**
|
|
578
|
+
* Optional seller-created identifier that is printed on the shipping label to help the seller identify the package.
|
|
579
|
+
*/
|
|
580
|
+
'packageIdentifier'?: string;
|
|
581
|
+
'invoice'?: InvoiceData;
|
|
582
|
+
'packageStatus'?: PackageStatus;
|
|
583
|
+
'trackingDetails'?: TrackingDetails;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Selling Partner API for Easy Ship
|
|
588
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
589
|
+
*
|
|
590
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
591
|
+
*
|
|
592
|
+
*
|
|
593
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
594
|
+
* https://openapi-generator.tech
|
|
595
|
+
* Do not edit the class manually.
|
|
596
|
+
*/
|
|
597
|
+
/**
|
|
598
|
+
* A order which we couldn\'t schedule on your behalf. It contains its id, and information on the error.
|
|
599
|
+
*/
|
|
600
|
+
interface RejectedOrder {
|
|
601
|
+
/**
|
|
602
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
603
|
+
*/
|
|
604
|
+
'amazonOrderId': string;
|
|
605
|
+
'error'?: Error;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Selling Partner API for Easy Ship
|
|
610
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
611
|
+
*
|
|
612
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
613
|
+
*
|
|
614
|
+
*
|
|
615
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
616
|
+
* https://openapi-generator.tech
|
|
617
|
+
* Do not edit the class manually.
|
|
618
|
+
*/
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* The response schema for the bulk scheduling API. It returns by the bulk scheduling API containing an array of the scheduled packtages, an optional list of orders we couldn\'t schedule with the reason, and a pre-signed URL for a ZIP file containing the associated shipping labels plus the documents enabled for your marketplace.
|
|
622
|
+
*/
|
|
623
|
+
interface CreateScheduledPackagesResponse {
|
|
624
|
+
/**
|
|
625
|
+
* A list of packages. Refer to the `Package` object.
|
|
626
|
+
*/
|
|
627
|
+
'scheduledPackages'?: Array<Package>;
|
|
628
|
+
/**
|
|
629
|
+
* A list of orders we couldn\'t scheduled on your behalf. Each element contains the reason and details on the error.
|
|
630
|
+
*/
|
|
631
|
+
'rejectedOrders'?: Array<RejectedOrder>;
|
|
632
|
+
/**
|
|
633
|
+
* A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace.
|
|
634
|
+
*/
|
|
635
|
+
'printableDocumentsUrl'?: string;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Selling Partner API for Easy Ship
|
|
640
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
641
|
+
*
|
|
642
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
643
|
+
*
|
|
644
|
+
*
|
|
645
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
646
|
+
* https://openapi-generator.tech
|
|
647
|
+
* Do not edit the class manually.
|
|
648
|
+
*/
|
|
649
|
+
/**
|
|
650
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
651
|
+
*/
|
|
652
|
+
interface ErrorList {
|
|
653
|
+
/**
|
|
654
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
655
|
+
*/
|
|
656
|
+
'errors': Array<Error>;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Selling Partner API for Easy Ship
|
|
661
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
662
|
+
*
|
|
663
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
664
|
+
*
|
|
665
|
+
*
|
|
666
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
667
|
+
* https://openapi-generator.tech
|
|
668
|
+
* Do not edit the class manually.
|
|
669
|
+
*/
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* The request schema for the `listHandoverSlots` operation.
|
|
673
|
+
*/
|
|
674
|
+
interface ListHandoverSlotsRequest {
|
|
675
|
+
/**
|
|
676
|
+
* A string of up to 255 characters.
|
|
677
|
+
*/
|
|
678
|
+
'marketplaceId': string;
|
|
679
|
+
/**
|
|
680
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
681
|
+
*/
|
|
682
|
+
'amazonOrderId': string;
|
|
683
|
+
'packageDimensions': Dimensions;
|
|
684
|
+
'packageWeight': Weight;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Selling Partner API for Easy Ship
|
|
689
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
690
|
+
*
|
|
691
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
692
|
+
*
|
|
693
|
+
*
|
|
694
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
695
|
+
* https://openapi-generator.tech
|
|
696
|
+
* Do not edit the class manually.
|
|
697
|
+
*/
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* The response schema for the `listHandoverSlots` operation.
|
|
701
|
+
*/
|
|
702
|
+
interface ListHandoverSlotsResponse {
|
|
703
|
+
/**
|
|
704
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
705
|
+
*/
|
|
706
|
+
'amazonOrderId': string;
|
|
707
|
+
/**
|
|
708
|
+
* A list of time slots.
|
|
709
|
+
*/
|
|
710
|
+
'timeSlots': Array<TimeSlot>;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Selling Partner API for Easy Ship
|
|
715
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
716
|
+
*
|
|
717
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
718
|
+
*
|
|
719
|
+
*
|
|
720
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
721
|
+
* https://openapi-generator.tech
|
|
722
|
+
* Do not edit the class manually.
|
|
723
|
+
*/
|
|
724
|
+
/**
|
|
725
|
+
* Error response returned when the request is unsuccessful.
|
|
726
|
+
*/
|
|
727
|
+
interface ModelError {
|
|
728
|
+
/**
|
|
729
|
+
* An error code that identifies the type of error that occurred.
|
|
730
|
+
*/
|
|
731
|
+
'code': string;
|
|
732
|
+
/**
|
|
733
|
+
* A message that describes the error condition.
|
|
734
|
+
*/
|
|
735
|
+
'message': string;
|
|
736
|
+
/**
|
|
737
|
+
* Additional details that can help the caller understand or fix the issue.
|
|
738
|
+
*/
|
|
739
|
+
'details'?: string;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Selling Partner API for Easy Ship
|
|
744
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
745
|
+
*
|
|
746
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
747
|
+
*
|
|
748
|
+
*
|
|
749
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
750
|
+
* https://openapi-generator.tech
|
|
751
|
+
* Do not edit the class manually.
|
|
752
|
+
*/
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* A list of packages.
|
|
756
|
+
*/
|
|
757
|
+
interface Packages {
|
|
758
|
+
/**
|
|
759
|
+
* A list of packages.
|
|
760
|
+
*/
|
|
761
|
+
'packages': Array<Package>;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Selling Partner API for Easy Ship
|
|
766
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
767
|
+
*
|
|
768
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
769
|
+
*
|
|
770
|
+
*
|
|
771
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
772
|
+
* https://openapi-generator.tech
|
|
773
|
+
* Do not edit the class manually.
|
|
774
|
+
*/
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Request to update the time slot of a package.
|
|
778
|
+
*/
|
|
779
|
+
interface UpdatePackageDetails {
|
|
780
|
+
'scheduledPackageId': ScheduledPackageId;
|
|
781
|
+
'packageTimeSlot': TimeSlot;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Selling Partner API for Easy Ship
|
|
786
|
+
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
787
|
+
*
|
|
788
|
+
* The version of the OpenAPI document: 2022-03-23
|
|
789
|
+
*
|
|
790
|
+
*
|
|
791
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
792
|
+
* https://openapi-generator.tech
|
|
793
|
+
* Do not edit the class manually.
|
|
794
|
+
*/
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* The request schema for the `updateScheduledPackages` operation.
|
|
798
|
+
*/
|
|
799
|
+
interface UpdateScheduledPackagesRequest {
|
|
800
|
+
/**
|
|
801
|
+
* A string of up to 255 characters.
|
|
802
|
+
*/
|
|
803
|
+
'marketplaceId': string;
|
|
804
|
+
/**
|
|
805
|
+
* A list of package update details.
|
|
806
|
+
*/
|
|
807
|
+
'updatePackageDetailsList': Array<UpdatePackageDetails>;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* EasyShipApi - axios parameter creator
|
|
812
|
+
*/
|
|
813
|
+
declare const EasyShipApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
814
|
+
/**
|
|
815
|
+
* Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
816
|
+
* @param {CreateScheduledPackageRequest} createScheduledPackageRequest The request schema for the `createScheduledPackage` operation.
|
|
817
|
+
* @param {*} [options] Override http request option.
|
|
818
|
+
* @throws {RequiredError}
|
|
819
|
+
*/
|
|
820
|
+
createScheduledPackage: (createScheduledPackageRequest: CreateScheduledPackageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
821
|
+
/**
|
|
822
|
+
* This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label\'s file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn\'t be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn\'t process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
823
|
+
* @param {CreateScheduledPackagesRequest} createScheduledPackagesRequest The request schema for the `createScheduledPackageBulk` operation.
|
|
824
|
+
* @param {*} [options] Override http request option.
|
|
825
|
+
* @throws {RequiredError}
|
|
826
|
+
*/
|
|
827
|
+
createScheduledPackageBulk: (createScheduledPackagesRequest: CreateScheduledPackagesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
828
|
+
/**
|
|
829
|
+
* Returns information about a package, including dimensions, weight, time slot information for handover, invoice and item information, and status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
830
|
+
* @param {string} amazonOrderId An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
831
|
+
* @param {string} marketplaceId An identifier for the marketplace in which the seller is selling.
|
|
832
|
+
* @param {*} [options] Override http request option.
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
*/
|
|
835
|
+
getScheduledPackage: (amazonOrderId: string, marketplaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
836
|
+
/**
|
|
837
|
+
* Returns time slots available for Easy Ship orders to be scheduled based on the package weight and dimensions that the seller specifies. This operation is available for scheduled and unscheduled orders based on marketplace support. See **Get Time Slots** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). This operation can return time slots that have either pickup or drop-off handover methods - see **Supported Handover Methods** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
838
|
+
* @param {ListHandoverSlotsRequest} [listHandoverSlotsRequest] The request schema for the `listHandoverSlots` operation.
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
listHandoverSlots: (listHandoverSlotsRequest?: ListHandoverSlotsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
843
|
+
/**
|
|
844
|
+
* Updates the time slot for handing over the package indicated by the specified `scheduledPackageId`. You can get the new `slotId` value for the time slot by calling the `listHandoverSlots` operation before making another `patch` call. See the **Update Package** column in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which marketplaces this operation is supported in. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
845
|
+
* @param {UpdateScheduledPackagesRequest} [updateScheduledPackagesRequest] The request schema for the `updateScheduledPackages` operation.
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
updateScheduledPackages: (updateScheduledPackagesRequest?: UpdateScheduledPackagesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
* EasyShipApi - functional programming interface
|
|
853
|
+
*/
|
|
854
|
+
declare const EasyShipApiFp: (configuration?: Configuration) => {
|
|
855
|
+
/**
|
|
856
|
+
* Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
857
|
+
* @param {CreateScheduledPackageRequest} createScheduledPackageRequest The request schema for the `createScheduledPackage` operation.
|
|
858
|
+
* @param {*} [options] Override http request option.
|
|
859
|
+
* @throws {RequiredError}
|
|
860
|
+
*/
|
|
861
|
+
createScheduledPackage(createScheduledPackageRequest: CreateScheduledPackageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
862
|
+
/**
|
|
863
|
+
* This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label\'s file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn\'t be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn\'t process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
864
|
+
* @param {CreateScheduledPackagesRequest} createScheduledPackagesRequest The request schema for the `createScheduledPackageBulk` operation.
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
createScheduledPackageBulk(createScheduledPackagesRequest: CreateScheduledPackagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateScheduledPackagesResponse>>;
|
|
869
|
+
/**
|
|
870
|
+
* Returns information about a package, including dimensions, weight, time slot information for handover, invoice and item information, and status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
871
|
+
* @param {string} amazonOrderId An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
872
|
+
* @param {string} marketplaceId An identifier for the marketplace in which the seller is selling.
|
|
873
|
+
* @param {*} [options] Override http request option.
|
|
874
|
+
* @throws {RequiredError}
|
|
875
|
+
*/
|
|
876
|
+
getScheduledPackage(amazonOrderId: string, marketplaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
877
|
+
/**
|
|
878
|
+
* Returns time slots available for Easy Ship orders to be scheduled based on the package weight and dimensions that the seller specifies. This operation is available for scheduled and unscheduled orders based on marketplace support. See **Get Time Slots** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). This operation can return time slots that have either pickup or drop-off handover methods - see **Supported Handover Methods** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
879
|
+
* @param {ListHandoverSlotsRequest} [listHandoverSlotsRequest] The request schema for the `listHandoverSlots` operation.
|
|
880
|
+
* @param {*} [options] Override http request option.
|
|
881
|
+
* @throws {RequiredError}
|
|
882
|
+
*/
|
|
883
|
+
listHandoverSlots(listHandoverSlotsRequest?: ListHandoverSlotsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListHandoverSlotsResponse>>;
|
|
884
|
+
/**
|
|
885
|
+
* Updates the time slot for handing over the package indicated by the specified `scheduledPackageId`. You can get the new `slotId` value for the time slot by calling the `listHandoverSlots` operation before making another `patch` call. See the **Update Package** column in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which marketplaces this operation is supported in. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
886
|
+
* @param {UpdateScheduledPackagesRequest} [updateScheduledPackagesRequest] The request schema for the `updateScheduledPackages` operation.
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
*/
|
|
890
|
+
updateScheduledPackages(updateScheduledPackagesRequest?: UpdateScheduledPackagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Packages>>;
|
|
891
|
+
};
|
|
892
|
+
/**
|
|
893
|
+
* EasyShipApi - factory interface
|
|
894
|
+
*/
|
|
895
|
+
declare const EasyShipApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
896
|
+
/**
|
|
897
|
+
* Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
898
|
+
* @param {EasyShipApiCreateScheduledPackageRequest} requestParameters Request parameters.
|
|
899
|
+
* @param {*} [options] Override http request option.
|
|
900
|
+
* @throws {RequiredError}
|
|
901
|
+
*/
|
|
902
|
+
createScheduledPackage(requestParameters: EasyShipApiCreateScheduledPackageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
903
|
+
/**
|
|
904
|
+
* This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label\'s file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn\'t be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn\'t process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
905
|
+
* @param {EasyShipApiCreateScheduledPackageBulkRequest} requestParameters Request parameters.
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
*/
|
|
909
|
+
createScheduledPackageBulk(requestParameters: EasyShipApiCreateScheduledPackageBulkRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateScheduledPackagesResponse>;
|
|
910
|
+
/**
|
|
911
|
+
* Returns information about a package, including dimensions, weight, time slot information for handover, invoice and item information, and status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
912
|
+
* @param {EasyShipApiGetScheduledPackageRequest} requestParameters Request parameters.
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
getScheduledPackage(requestParameters: EasyShipApiGetScheduledPackageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
917
|
+
/**
|
|
918
|
+
* Returns time slots available for Easy Ship orders to be scheduled based on the package weight and dimensions that the seller specifies. This operation is available for scheduled and unscheduled orders based on marketplace support. See **Get Time Slots** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). This operation can return time slots that have either pickup or drop-off handover methods - see **Supported Handover Methods** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
919
|
+
* @param {EasyShipApiListHandoverSlotsRequest} requestParameters Request parameters.
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
listHandoverSlots(requestParameters?: EasyShipApiListHandoverSlotsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListHandoverSlotsResponse>;
|
|
924
|
+
/**
|
|
925
|
+
* Updates the time slot for handing over the package indicated by the specified `scheduledPackageId`. You can get the new `slotId` value for the time slot by calling the `listHandoverSlots` operation before making another `patch` call. See the **Update Package** column in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which marketplaces this operation is supported in. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
926
|
+
* @param {EasyShipApiUpdateScheduledPackagesRequest} requestParameters Request parameters.
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
updateScheduledPackages(requestParameters?: EasyShipApiUpdateScheduledPackagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Packages>;
|
|
931
|
+
};
|
|
932
|
+
/**
|
|
933
|
+
* Request parameters for createScheduledPackage operation in EasyShipApi.
|
|
934
|
+
*/
|
|
935
|
+
interface EasyShipApiCreateScheduledPackageRequest {
|
|
936
|
+
/**
|
|
937
|
+
* The request schema for the `createScheduledPackage` operation.
|
|
938
|
+
*/
|
|
939
|
+
readonly createScheduledPackageRequest: CreateScheduledPackageRequest;
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* Request parameters for createScheduledPackageBulk operation in EasyShipApi.
|
|
943
|
+
*/
|
|
944
|
+
interface EasyShipApiCreateScheduledPackageBulkRequest {
|
|
945
|
+
/**
|
|
946
|
+
* The request schema for the `createScheduledPackageBulk` operation.
|
|
947
|
+
*/
|
|
948
|
+
readonly createScheduledPackagesRequest: CreateScheduledPackagesRequest;
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* Request parameters for getScheduledPackage operation in EasyShipApi.
|
|
952
|
+
*/
|
|
953
|
+
interface EasyShipApiGetScheduledPackageRequest {
|
|
954
|
+
/**
|
|
955
|
+
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
956
|
+
*/
|
|
957
|
+
readonly amazonOrderId: string;
|
|
958
|
+
/**
|
|
959
|
+
* An identifier for the marketplace in which the seller is selling.
|
|
960
|
+
*/
|
|
961
|
+
readonly marketplaceId: string;
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* Request parameters for listHandoverSlots operation in EasyShipApi.
|
|
965
|
+
*/
|
|
966
|
+
interface EasyShipApiListHandoverSlotsRequest {
|
|
967
|
+
/**
|
|
968
|
+
* The request schema for the `listHandoverSlots` operation.
|
|
969
|
+
*/
|
|
970
|
+
readonly listHandoverSlotsRequest?: ListHandoverSlotsRequest;
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* Request parameters for updateScheduledPackages operation in EasyShipApi.
|
|
974
|
+
*/
|
|
975
|
+
interface EasyShipApiUpdateScheduledPackagesRequest {
|
|
976
|
+
/**
|
|
977
|
+
* The request schema for the `updateScheduledPackages` operation.
|
|
978
|
+
*/
|
|
979
|
+
readonly updateScheduledPackagesRequest?: UpdateScheduledPackagesRequest;
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* EasyShipApi - object-oriented interface
|
|
983
|
+
*/
|
|
984
|
+
declare class EasyShipApi extends BaseAPI {
|
|
985
|
+
/**
|
|
986
|
+
* Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
987
|
+
* @param {EasyShipApiCreateScheduledPackageRequest} requestParameters Request parameters.
|
|
988
|
+
* @param {*} [options] Override http request option.
|
|
989
|
+
* @throws {RequiredError}
|
|
990
|
+
*/
|
|
991
|
+
createScheduledPackage(requestParameters: EasyShipApiCreateScheduledPackageRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Package, any, {}>>;
|
|
992
|
+
/**
|
|
993
|
+
* This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label\'s file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn\'t be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn\'t process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
994
|
+
* @param {EasyShipApiCreateScheduledPackageBulkRequest} requestParameters Request parameters.
|
|
995
|
+
* @param {*} [options] Override http request option.
|
|
996
|
+
* @throws {RequiredError}
|
|
997
|
+
*/
|
|
998
|
+
createScheduledPackageBulk(requestParameters: EasyShipApiCreateScheduledPackageBulkRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<CreateScheduledPackagesResponse, any, {}>>;
|
|
999
|
+
/**
|
|
1000
|
+
* Returns information about a package, including dimensions, weight, time slot information for handover, invoice and item information, and status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
1001
|
+
* @param {EasyShipApiGetScheduledPackageRequest} requestParameters Request parameters.
|
|
1002
|
+
* @param {*} [options] Override http request option.
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
*/
|
|
1005
|
+
getScheduledPackage(requestParameters: EasyShipApiGetScheduledPackageRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Package, any, {}>>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Returns time slots available for Easy Ship orders to be scheduled based on the package weight and dimensions that the seller specifies. This operation is available for scheduled and unscheduled orders based on marketplace support. See **Get Time Slots** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). This operation can return time slots that have either pickup or drop-off handover methods - see **Supported Handover Methods** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
1008
|
+
* @param {EasyShipApiListHandoverSlotsRequest} requestParameters Request parameters.
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
listHandoverSlots(requestParameters?: EasyShipApiListHandoverSlotsRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ListHandoverSlotsResponse, any, {}>>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Updates the time slot for handing over the package indicated by the specified `scheduledPackageId`. You can get the new `slotId` value for the time slot by calling the `listHandoverSlots` operation before making another `patch` call. See the **Update Package** column in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which marketplaces this operation is supported in. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
1015
|
+
* @param {EasyShipApiUpdateScheduledPackagesRequest} requestParameters Request parameters.
|
|
1016
|
+
* @param {*} [options] Override http request option.
|
|
1017
|
+
* @throws {RequiredError}
|
|
1018
|
+
*/
|
|
1019
|
+
updateScheduledPackages(requestParameters?: EasyShipApiUpdateScheduledPackagesRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Packages, any, {}>>;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
declare const clientRateLimits: RateLimit[];
|
|
1023
|
+
declare class EasyShipApiClient extends EasyShipApi {
|
|
1024
|
+
constructor(configuration: ClientConfiguration);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
export { Code, type CreateScheduledPackageRequest, type CreateScheduledPackagesRequest, type CreateScheduledPackagesResponse, type Dimensions, EasyShipApi, EasyShipApiAxiosParamCreator, EasyShipApiClient, type EasyShipApiCreateScheduledPackageBulkRequest, type EasyShipApiCreateScheduledPackageRequest, EasyShipApiFactory, EasyShipApiFp, type EasyShipApiGetScheduledPackageRequest, type EasyShipApiListHandoverSlotsRequest, type EasyShipApiUpdateScheduledPackagesRequest, type ErrorList, HandoverMethod, type InvoiceData, type Item, LabelFormat, type ListHandoverSlotsRequest, type ListHandoverSlotsResponse, type ModelError, type OrderScheduleDetails, type Package, type PackageDetails, PackageStatus, type Packages, type RejectedOrder, type ScheduledPackageId, type TimeSlot, type TrackingDetails, UnitOfLength, UnitOfWeight, type UpdatePackageDetails, type UpdateScheduledPackagesRequest, type Weight, clientRateLimits };
|