forked from mvanhorn/printing-press-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspec.yaml
More file actions
437 lines (428 loc) · 15.1 KB
/
Copy pathspec.yaml
File metadata and controls
437 lines (428 loc) · 15.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
name: amazon-seller
display_name: Amazon Seller
description: Read FBA inventory, orders, sales reports, listings, and catalog data for an Amazon seller account.
cli_description: "Operate an Amazon seller account from the terminal: inventory, orders, reports, listings, and catalog."
version: "0.1.0"
spec_source: official
category: commerce
website_url: https://developer-docs.amazon.com/sp-api/
base_url: https://sellingpartnerapi-na.amazon.com
http_transport: standard
auth:
type: oauth2
oauth2_grant: refresh_token
token_url: https://api.amazon.com/auth/o2/token
header: x-amz-access-token
format: "{token}"
env_var_specs:
- name: SP_API_LWA_CLIENT_ID
kind: auth_flow_input
required: true
sensitive: true
description: LWA client ID from your private SP-API application.
- name: SP_API_LWA_CLIENT_SECRET
kind: auth_flow_input
required: true
sensitive: true
description: LWA client secret from your private SP-API application.
- name: SP_API_REFRESH_TOKEN
kind: auth_flow_input
required: true
sensitive: true
description: Refresh token from self-authorizing your private SP-API application.
key_url: https://sellercentral.amazon.com/sellingpartner/developerconsole
verify_path: /sellers/v1/marketplaceParticipations
config:
format: toml
path: ~/.config/amazon-seller-pp-cli/config.toml
mcp:
transport:
- stdio
- http
resources:
sellers:
description: Verify seller authorization and list marketplace participations.
endpoints:
marketplaces:
method: GET
path: /sellers/v1/marketplaceParticipations
description: List marketplace participations for the authorized seller account.
response:
type: array
item: MarketplaceParticipation
meta:
mcp:read-only: "true"
fba-inventory:
description: Inspect Fulfillment by Amazon inventory summaries.
endpoints:
list:
method: GET
path: /fba/inventory/v1/summaries
description: List FBA inventory summaries. For North America marketplace-level inventory, pass granularityType=Marketplace, granularityId=ATVPDKIKX0DER, and marketplaceIds=ATVPDKIKX0DER.
params:
- name: granularityType
type: string
required: true
description: Inventory granularity type, usually Marketplace.
- name: granularityId
type: string
required: true
description: Marketplace or marketplace group identifier for the requested granularity.
- name: marketplaceIds
type: string
required: true
description: Comma-separated marketplace IDs.
- name: details
type: bool
description: Include detailed inventory fields.
- name: startDateTime
type: string
description: Return summaries changed after this RFC3339 timestamp.
- name: sellerSkus
type: string
description: Comma-separated seller SKUs.
- name: sellerSku
type: string
description: Single seller SKU.
- name: nextToken
type: string
description: Continuation token from pagination.nextToken.
response:
type: array
item: InventorySummary
response_path: inventorySummaries
pagination:
type: page_token
cursor_param: nextToken
next_cursor_path: pagination.nextToken
meta:
mcp:read-only: "true"
orders:
description: Search and inspect Orders API v2026-01-01 order records.
endpoints:
search:
method: GET
path: /orders/2026-01-01/orders
description: Search orders. Provide exactly one of createdAfter or lastUpdatedAfter; Amazon returns 400 for invalid combinations.
params:
- name: createdAfter
type: string
description: Lower bound for order creation time, RFC3339. Use exactly one of createdAfter or lastUpdatedAfter.
- name: createdBefore
type: string
description: Upper bound for order creation time, RFC3339.
- name: lastUpdatedAfter
type: string
description: Lower bound for last update time, RFC3339. Use exactly one of createdAfter or lastUpdatedAfter.
- name: lastUpdatedBefore
type: string
description: Upper bound for last update time, RFC3339.
- name: marketplaceIds
type: string
description: Comma-separated marketplace IDs.
- name: fulfillmentStatuses
type: string
description: Comma-separated fulfillment statuses.
- name: fulfilledBy
type: string
description: Comma-separated fulfillment channels.
- name: maxResultsPerPage
type: int
description: Maximum orders per page.
- name: paginationToken
type: string
description: Continuation token from pagination.nextToken.
- name: includedData
type: string
description: Comma-separated included data. Prefer non-PII values such as FULFILLMENT, PROCEEDS, EXPENSE, PROMOTION, CANCELLATION, TAX, and PAYMENT.
response:
type: array
item: Order
response_path: orders
pagination:
type: page_token
cursor_param: paginationToken
next_cursor_path: pagination.nextToken
meta:
mcp:read-only: "true"
get:
method: GET
path: /orders/2026-01-01/orders/{orderId}
description: Get one Orders API v2026-01-01 order.
params:
- name: orderId
type: string
required: true
positional: true
description: Amazon order ID.
- name: includedData
type: string
description: Comma-separated included data. Avoid BUYER and RECIPIENT in v1 examples.
response:
type: object
item: Order
meta:
mcp:read-only: "true"
reports:
description: Create reports, poll report status, and inspect report document metadata.
endpoints:
create:
method: POST
path: /reports/2021-06-30/reports
description: Create a report request. Prefer --stdin for JSON bodies so marketplaceIds remains a JSON array and reportOptions remains a JSON object.
body:
- name: reportType
type: string
required: true
description: Report type, for example GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL or GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL.
- name: marketplaceIds
type: array
required: true
description: JSON array of marketplace IDs.
- name: dataStartTime
type: string
required: true
description: Report data start timestamp, RFC3339.
- name: dataEndTime
type: string
required: true
description: Report data end timestamp, RFC3339.
- name: reportOptions
type: object
description: Optional reportOptions JSON object.
response:
type: object
item: CreateReportResponse
get:
method: GET
path: /reports/2021-06-30/reports/{reportId}
description: Get one report by report ID. This is the manual polling endpoint for report processing status.
params:
- name: reportId
type: string
required: true
positional: true
description: Report ID returned by reports create.
response:
type: object
item: Report
meta:
mcp:read-only: "true"
list:
method: GET
path: /reports/2021-06-30/reports
description: List reports. If nextToken is set, Amazon requires it to be the only query parameter; pass no other filters with nextToken.
params:
- name: reportTypes
type: string
description: Comma-separated report types.
- name: processingStatuses
type: string
description: Comma-separated processing statuses.
- name: marketplaceIds
type: string
description: Comma-separated marketplace IDs.
- name: pageSize
type: int
description: Maximum reports per page.
- name: createdSince
type: string
description: Lower bound for report creation time, RFC3339.
- name: createdUntil
type: string
description: Upper bound for report creation time, RFC3339.
- name: nextToken
type: string
description: Continuation token. Must be the only query parameter when set.
response:
type: array
item: Report
response_path: reports
meta:
mcp:read-only: "true"
document:
method: GET
path: /reports/2021-06-30/documents/{reportDocumentId}
description: Get report document metadata and the presigned download URL. This command does not download or open the document.
params:
- name: reportDocumentId
type: string
required: true
positional: true
description: Report document ID from a completed report.
response:
type: object
item: ReportDocument
meta:
mcp:read-only: "true"
listings:
description: Read Listings Items API data for seller SKUs.
endpoints:
get:
method: GET
path: /listings/2021-08-01/items/{sellerId}/{sku}
description: Get one listing item by seller ID and SKU.
params:
- name: sellerId
type: string
required: true
positional: true
description: Seller ID.
- name: sku
type: string
required: true
positional: true
description: Seller SKU.
- name: marketplaceIds
type: string
required: true
description: Comma-separated marketplace IDs.
- name: issueLocale
type: string
description: Locale for issue text.
- name: includedData
type: string
description: Comma-separated included data.
response:
type: object
item: ListingItem
meta:
mcp:read-only: "true"
search:
method: GET
path: /listings/2021-08-01/items/{sellerId}
description: Search listing items for a seller.
params:
- name: sellerId
type: string
required: true
positional: true
description: Seller ID.
- name: marketplaceIds
type: string
required: true
description: Comma-separated marketplace IDs.
- name: includedData
type: string
description: Comma-separated included data.
- name: identifiers
type: string
description: Comma-separated identifiers to search.
- name: identifiersType
type: string
description: Identifier type for identifiers.
- name: createdAfter
type: string
description: Created after timestamp, RFC3339.
- name: createdBefore
type: string
description: Created before timestamp, RFC3339.
- name: lastUpdatedAfter
type: string
description: Last updated after timestamp, RFC3339.
- name: lastUpdatedBefore
type: string
description: Last updated before timestamp, RFC3339.
- name: withIssueSeverity
type: string
description: Comma-separated issue severities to include.
- name: withStatus
type: string
description: Comma-separated listing statuses to include.
- name: withoutStatus
type: string
description: Comma-separated listing statuses to exclude.
- name: sortBy
type: string
description: Sort field.
- name: sortOrder
type: string
description: Sort order.
- name: pageSize
type: int
description: Maximum listing items per page.
- name: pageToken
type: string
description: Continuation token.
response:
type: array
item: ListingItem
response_path: items
meta:
mcp:read-only: "true"
catalog:
description: Read Catalog Items API item data.
endpoints:
get:
method: GET
path: /catalog/2022-04-01/items/{asin}
description: Get one catalog item by ASIN.
params:
- name: asin
type: string
required: true
positional: true
description: ASIN.
- name: marketplaceIds
type: string
required: true
description: Comma-separated marketplace IDs.
- name: includedData
type: string
description: Comma-separated included data.
- name: locale
type: string
description: Locale for localized fields.
response:
type: object
item: CatalogItem
meta:
mcp:read-only: "true"
search:
method: GET
path: /catalog/2022-04-01/items
description: Search catalog items. Provide marketplaceIds plus one valid search mode such as keywords or identifiers with identifiersType.
params:
- name: marketplaceIds
type: string
required: true
description: Comma-separated marketplace IDs.
- name: sellerId
type: string
description: Seller ID.
- name: keywords
type: string
description: Search keywords.
- name: brandNames
type: string
description: Comma-separated brand names.
- name: classificationIds
type: string
description: Comma-separated classification IDs.
- name: identifiers
type: string
description: Comma-separated identifiers.
- name: identifiersType
type: string
description: Identifier type for identifiers.
- name: pageSize
type: int
description: Maximum catalog items per page.
- name: pageToken
type: string
description: Continuation token.
- name: keywordsLocale
type: string
description: Locale for keywords.
- name: locale
type: string
description: Locale for localized fields.
- name: includedData
type: string
description: Comma-separated included data.
response:
type: array
item: CatalogItem
response_path: items
meta:
mcp:read-only: "true"