diff --git a/.gitignore b/.gitignore index 57822b83..44644b3d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ dist ebay-api.iml .nyc_output coverage -.claude \ No newline at end of file +.claude diff --git a/CHANGELOG.md b/CHANGELOG.md index 07876cf3..573c5ee5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,72 @@ # eBay API Changelog +## [10.0.0-RC.2](https://github.com/hendt/ebay-api/compare/v9.6.0...v10.0.0-RC.2) (2026-07-24) + + +### ⚠ BREAKING CHANGES + +* eBay.finding has been removed. The eBay Finding API was +decommissioned by eBay in February 2025. Migrate item search to the Buy +Browse API (eBay.buy.browse). +* eBay decommissioned the Sell Compliance API and all its +methods on 2026-03-30 (developer docs and the published OpenAPI spec were +removed). Removes the Compliance API client (getListingViolations, +getListingViolationsSummary), its spec JSON and generated types, and all +factory/registry wiring. eBay.sell.compliance is no longer available. +* Removed sell marketing setupQuickCampaign and the +QuickSetupRequest type, and the commerce media InputStream type; all were +removed from eBay's updated specs. +* Removes the 29 methods eBay decommissioned across the +post-order return, case, inquiry and cancellation APIs, and prunes the +matching operations from the custom specs. +* The Buy Order API migrated to v2, which only exposes the +guest checkout flow. Removed the member checkout session, proxy-guest checkout +session, payment-info, initiate-payment and place-order operations and their +request types (CreateSignInCheckoutSessionRequest, GuestPlaceOrderRequest, +InitiatePaymentRequest, UpdatePaymentInformation, CheckoutSessionRequestWithoutPayment). +These endpoints no longer exist in the eBay Order v2 API. + +### Features + +* add new RESTful methods from refreshed specs ([e1c8f69](https://github.com/hendt/ebay-api/commit/e1c8f695801305ca4e88355a2d25729e6bec6246)), closes [#214](https://github.com/hendt/ebay-api/issues/214) +* prune decommissioned post-order methods ([cb1af3f](https://github.com/hendt/ebay-api/commit/cb1af3fef2a0d4bf59851457b8d2096ee63744e3)), closes [#214](https://github.com/hendt/ebay-api/issues/214) +* refresh RESTful specs to latest published versions ([7459bf8](https://github.com/hendt/ebay-api/commit/7459bf8a0c448c9b31dce6c23730f5f80df7c2aa)) +* remove Buy Order API v1 operations dropped in v2 ([8ace7b6](https://github.com/hendt/ebay-api/commit/8ace7b62e75fc38282109f0cc823b16c63f455c8)) +* remove decommissioned Finding API ([e7f1625](https://github.com/hendt/ebay-api/commit/e7f162546ff73b50d8ed7dbf8f1464cf8dcde445)), closes [#199](https://github.com/hendt/ebay-api/issues/199) [#216](https://github.com/hendt/ebay-api/issues/216) +* remove decommissioned Sell Compliance API ([b4686f0](https://github.com/hendt/ebay-api/commit/b4686f081a237f20d38e33635629102903b00a80)) +* **sell:** add Stores API ([2a6deab](https://github.com/hendt/ebay-api/commit/2a6deabe6dcf481086364d80e65608c98a3ebf0a)), closes [#216](https://github.com/hendt/ebay-api/issues/216) + + +### Bug Fixes + +* correct media binary content types and finances filter array ([45bf087](https://github.com/hendt/ebay-api/commit/45bf08791db51199e9a2cfcb89c7e25703f06f74)) +* **deps:** resolve fast-uri high-severity advisory ([c8d7708](https://github.com/hendt/ebay-api/commit/c8d7708fddecb5a811caebede101e825c37b4414)) +* make openapi fetch script work behind eBay Akamai bot manager ([ce56ce3](https://github.com/hendt/ebay-api/commit/ce56ce387495ca86136f4b326b99bed4557eb9cd)) + +## [10.0.0-RC.1](https://github.com/hendt/ebay-api/compare/v9.4.3...v10.0.0-RC.1) (2026-02-22) + + +### Bug Fixes + +* eslint issues ([beb7e46](https://github.com/hendt/ebay-api/commit/beb7e465d2152072edf9588c87d184071c56253b)) + +## [10.0.0-RC.0](https://github.com/hendt/ebay-api/compare/v9.2.1...v10.0.0-RC.0) (2025-09-08) + + +### ⚠ BREAKING CHANGES + +* Removed methods getAlsoBoughtByProduct, getAlsoViewedByProduct from buy marketing API and suppressViolation from sell compliance API. Removed corresponding + types AddCartItemInput, RemoveCartItemInput, UpdateCartItemInput, SuppressViolationRequest. These operations were deprecated by eBay and no longer available in updated API + specs. + +### Features + +* upgrading several APIs to latest version ([2364543](https://github.com/hendt/ebay-api/commit/236454318c7fbd3ca0a8d3abd353801f47380c60)) + + +### Bug Fixes + +* trailing space ([de793bf](https://github.com/hendt/ebay-api/commit/de793bfcae34d02cb9ab385b3c5a61c08243f81c)) + ## [9.6.0](https://github.com/hendt/ebay-api/compare/v9.5.2...v9.6.0) (2026-07-21) diff --git a/README.md b/README.md index 9395653d..316e8edc 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,10 @@ It supports `client credentials grant` and `authorization code grant` \(Auth'N'A ## Table of Contents - [šŸš€ Quick Start](#-quick-start) +- [Implementation Status](#implementation-status) +- [Migrating from v9 to v10](#migrating-from-v9-to-v10) - [Install](#install) - [eBay Docs](#ebay-docs) -- [Implementation Status](#implementation-status) - [šŸ”§ eBayApi Config](#-ebayapi-config) - [Load Config from Environment](#load-config-from-environment) - [šŸž Debug](#-debug) @@ -38,9 +39,108 @@ It supports `client credentials grant` and `authorization code grant` \(Auth'N'A ## šŸš€ Quick Start +* `v10.0.0-RC.2` is the latest release. +* See [here](https://github.com/hendt/ebay-api/blob/master/CHANGELOG.md) for the full changelog. + Sign up for an API key here: [Developer Account](https://developer.ebay.com/signin?tab=register). -### Installation +## Implementation status + +### RESTful APIs + +| API | Implemented | +|:-------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **Buy API** | āœ” Browse API `v1.20.4`
āœ” Deal API `v1.3.0`
āœ” Feed API `v1_beta.35.2`
āœ” Marketing API `v1_beta.2.0`
āœ” Offer API `v1_beta.0.1`
āœ” Order API `v2.1.4`
āœ” Marketplace Insights API `v1_beta.2.2` | +| **Commerce API** | āœ” Catalog API `v1_beta.5.3`
āœ” Charity API `v1.2.1`
āœ” Feedback API `v1.0.0`
āœ” Identity API `v2.0.0`
āœ” Media API `v1_beta.5.0`
āœ” Message API `v1.0.0`
āœ” Notification API `v1.6.7`
āœ” Taxonomy API `v1.1.1`
āœ” Translation API `v1_beta.1.6` | +| **Developer API** | āœ” Analytics API `v1_beta.0.1`
āœ” Key Management API `v1.0.0` | +| **Post Order API** | āœ” Cancellation API
āœ” Case Management API
āœ” Inquiry API
āœ” Return API | +| **Sell API** | āœ” Account API `v1.9.3` / `v2.2.0`
āœ” Analytics API `v1.3.2`
āœ” Feed API `v1.3.1`
āœ” Finance API `v1.19.0`
āœ” Fulfillment API `v1.20.7`
āœ” Inventory API `v1.18.5`
āœ” Listing API `v1_beta.2.1`
āœ” Logistics API `v1_beta.0.0`
āœ” Marketing API `v1.23.2`
āœ” Metadata API `v1.12.1`
āœ” Negotiation API `v1.1.0`
āœ” Recommendation API `v1.1.0`
āœ” Stores API `v1.0.0` | + +### Traditional APIs + +| API | Implemented | +|:----------------------|:------------| +| **Shopping API** | āœ” | +| **Merchandising API** | āœ” | +| **Trading API** | āœ” | +| **Client Alerts API** | āœ” | +| **Feedback API** | āœ” | + +## Migrating from v9 to v10 + +v10 is a major release that removes eBay APIs and operations that **eBay has decommissioned**. The public interface (auth, config, request handling) is unchanged — you only need to make changes if your app used one of the removed APIs/operations below. + +### Removed APIs + +| Removed | Replacement / Notes | +|:--------|:--------------------| +| **Finding API** (`eBay.finding`) | eBay took the traditional Finding API down server-side in February 2025. Migrate item search to the **Buy Browse API** (`eBay.buy.browse`). | +| **Sell Compliance API** (`eBay.sell.compliance`) | Decommissioned by eBay on 2026-03-30. Removed together with `getListingViolations` / `getListingViolationsSummary` and the `SuppressViolationRequest` type. | + +### Removed operations + +Every operation below was dropped from eBay's own published OpenAPI spec. Calling one in v9 already +failed against the live API; in v10 the method no longer exists. + +| API | Removed | Replacement / Notes | +|:----|:--------|:--------------------| +| **Buy Browse** (`eBay.buy.browse`) | `addItem`, `removeItem`, `updateQuantity`, `getShoppingCart` | The experimental `/shopping_cart` resource was withdrawn. The `AddCartItemInput`, `RemoveCartItemInput` and `UpdateCartItemInput` types were removed with it. | +| **Buy Feed** (`eBay.buy.feed`) | `getProductFeed` | The `/product` feed was withdrawn. Use `getItemFeed`, `getItemGroupFeed`, `getItemSnapshotFeed` or the new `getItemPriorityFeed`. | +| **Buy Marketing** (`eBay.buy.marketing`) | `getAlsoBoughtByProduct`, `getAlsoViewedByProduct` | Only `getMerchandisedProducts` remains. | +| **Buy Order** (`eBay.buy.order`) | Migrated **v1 → v2** — only the **guest checkout** flow remains. The member checkout session, proxy-guest checkout session, payment-info, initiate-payment and place-order operations are gone. | The `CreateSignInCheckoutSessionRequest`, `GuestPlaceOrderRequest`, `InitiatePaymentRequest`, `UpdatePaymentInformation` and `CheckoutSessionRequestWithoutPayment` types were removed. | +| **Commerce Catalog** (`eBay.commerce.catalog`) | `getChangeRequest`, `getChangeRequests`, `getProductMetadata`, `getProductMetadataForCategories` | The catalog change-request and product-metadata resources were decommissioned. `getProduct` and `search` remain. | +| **Commerce Charity** (`eBay.commerce.charity`) | `getCharityOrgByLegacyId` | Look the organization up with `getCharityOrgs` and use its current ID with `getCharityOrg`. | +| **Sell Account v1** (`eBay.sell.account`) | `getInventoryLocation`, `getInventoryLocations`, `createInventoryLocation`, `updateInventoryLocation`, `deleteInventoryLocation`, `enableInventoryLocation`, `disableInventoryLocation` | These were duplicates pointing at `/sell/account/v1/location`, which eBay does not serve. Use the identically-named methods on **`eBay.sell.inventory`**, which target the correct `/sell/inventory/v1/location` path. | +| **Sell Account v1** (`eBay.sell.account`) | `getSalesTaxJurisdictions` | The `sales_tax_jurisdiction` resource was withdrawn. The `/sales_tax` methods (`getSalesTax`, `getSalesTaxes`, `createOrReplaceSalesTax`, `deleteSalesTax`, `bulkCreateOrReplaceSalesTax`) are unaffected. | +| **Sell Marketing** (`eBay.sell.marketing`) | `setupQuickCampaign`, `launchCampaign` | The `quick_setup` and `launch` operations were retired, along with the `QuickSetupRequest` type. | +| **Sell Metadata** (`eBay.sell.metadata`) | `getProductAdoptionPolicies` | The `get_product_adoption_policies` operation was withdrawn. | +| **Post-Order** (`eBay.postOrder.*`) | 29 methods — see the table below. | The request types that only those methods used were removed too: `BuyerCloseCaseRequest`, `BuyerCloseInquiryRequest`, `CheckEligibilityRequest`, `CheckInquiryEligibilityRequest`, `CloseReturnRequest`, `ConfirmRefundRequest`, `CreateInquiryRequest`, `GetEstimateRequest`, `MarkAsShippedRequest`, `MarkRefundSentRequest`, `ReturnAddressRequest`, `SellerProvideRefundInfoRequest`, `SetReturnCreationSessionRequest`, `UpdateTrackingRequest`, `VoidLabelRequest`. | + +Removed post-order methods: + +| Resource | Removed | +|:---------|:--------| +| `eBay.postOrder.cancellation` | `confirmRefundReceived` | +| `eBay.postOrder.case` | `closeCase`, `issueCaseRefund`, `provideReturnShipmentInfo`, `providesReturnAddress` | +| `eBay.postOrder.inquiry` | `checkInquiryEligibility`, `closeInquiry`, `confirmInquiryRefund`, `createInquiry`, `provideInquiryRefundInfo` | +| `eBay.postOrder.return` | `cancelReturnRequest`, `checkReturnEligibility`, `checkShippingLabelEligibility`, `createReturnDraft`, `createReturnShippingLabel`, `deleteReturnDraftFile`, `getReturnDraft`, `getReturnDraftFiles`, `getReturnEstimate`, `getReturnShippingLabel`, `markReturnRefundReceived`, `markReturnRefundSent`, `markReturnShipped`, `sendReturnShippingLabel`, `submitReturnFile`, `updateReturnDraft`, `updateShipmentTrackingInfo`, `uploadReturnDraftFile`, `voidShippingLabel` | + +### Renamed methods + +- **Commerce Notification** — `eBay.commerce.notification.test(subscriptionId)` is now + `eBay.commerce.notification.testSubscription(subscriptionId)`, matching eBay's `operationId`. + +### Changed behaviour + +- **`IEBayApiRequest` gained a required `patch` method.** If you pass a custom request implementation + (`new eBayApi(config, myRequest)`), add a `patch(url, data?, config?)` member. The bundled + `AxiosRequest` already has it. This is needed by `eBay.sell.accountV2.setUserPreferences`, eBay's + first `PATCH` operation. +- **`eBay.commerce.media.uploadVideo`** now sends `Content-Type: application/octet-stream`, as the spec + requires, and takes an optional third `headers` argument so you can supply `Content-Range` / + `Content-Length` for resumable uploads. +- **`eBay.sell.logistics.downloadLabelFile`** now requests `application/pdf` and returns the raw + buffer (`responseType: 'arraybuffer'`) instead of attempting to parse the PDF as JSON. +- **Per-request headers now win over the client-wide defaults.** Previously the library's default + `Content-Type: application/json` overwrote the `multipart/form-data` header that the upload + endpoints set, so `createImageFromFile`, `uploadDocument`, `uploadPostOrderDocument`, + `sell.feed.uploadFile` and `sell.fulfillment.uploadEvidenceFile` were rejected by eBay. They work now. +- **Sell Finances `filter` parameters accept an array.** `getPayouts`, `getPayoutSummary`, + `getTransactions`, `getTransactionSummary`, `getOrderEarnings`, `getOrderEarningsSummary` and + `getBillingActivities` all take `string | string[]` and join the list for you. + `getOrderEarningsSummary` now takes an options object (`{filter}`) like its siblings. +- **Commerce Media** — the `InputStream` type was removed upstream; `uploadVideo` now accepts `any` + for its body. + +### New in v10 + +- **Sell Stores API** (`eBay.sell.stores`) — manage the categories of a seller's eBay store. +- **Sell Account API v2** (`eBay.sell.accountV2`) — rate tables, payout settings, combined shipping + rules and user preferences. +- All RESTful OpenAPI specs were refreshed to eBay's latest published versions, which adds a number of + new methods (for example `eBay.buy.feed.getItemPriorityFeed` and 19 new Sell Metadata operations). + +## Install ```bash npm install ebay-api @@ -73,33 +173,6 @@ For more examples, check out the [examples directory](./examples). * [eBay API Docs](https://developer.ebay.com/docs) * [eBay API Status](https://entwickler.ebay.de/support/api-status/production) -## Changelog - -* `v9.6.0` is the latest release. -* See [here](https://github.com/hendt/ebay-api/blob/master/CHANGELOG.md) for the full changelog. - -## Implementation status - -### RESTful API - -| API | Implemented | -|:-------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **Buy API** | āœ” Browse API `v1.10.0`
āœ” Deal API `v1.3.0`
āœ” Feed API `v1.3.1`
āœ” Marketing API `v1_beta.1.0`
āœ” Offer API `v1_beta.0.0`
āœ” Order API `v1_beta.20.0`
āœ” Marketplace Insights API `v1_beta.2.2` | -| **Commerce API** | āœ” Catalog API `v1_beta.3.1`
āœ” Charity API `v1.2.0`
āœ” Identity API `v1.0.0`
āœ” Notification API `v1.2.0`
āœ” Taxonomy API `v1.0.0`
āœ” Translation API `v1_beta.1.4`
āœ” Media API `v1_beta.1.0`
āœ” Message API `v1.0.0`
āœ” Feedback API `v1_beta.1.0.0` | -| **Developer API** | āœ” Analytics API | -| **Post Order API** | āœ” Cancellation API
āœ” Case Management API
āœ” Inquiry API
āœ” Return API | -| **Sell API** | āœ” Account API `v1.9.0`
āœ” Analytics API `v1.3.0`
āœ” Compliance API `v1.4.1`
āœ” Feed API `v1.3.1`
āœ” Finance API `v1.9.0`
āœ” Fulfillment API `v1.19.10`
āœ” Inventory API `v1.18.0`
āœ” Listing API `v1_beta.2.1`
āœ” Logistics API `v1_beta.0.0`
āœ” Marketing API `v1.17.0`
āœ” Metadata API `v1.7.1`
āœ” Negotiation API `v1.1.0`
āœ” Recommendation API `v1.1.0` | - -### Traditional API - -| API | Implemented | -|:----------------------|:------------| -| **Shopping API** | āœ” | -| **Merchandising API** | āœ” | -| **Trading API** | āœ” | -| **Client Alerts API** | āœ” | -| **Feedback API** | āœ” | - ## Detailed Configuration ```typescript @@ -135,7 +208,7 @@ workers: [https://github.com/hendt/ebay-api/blob/master/proxy/worker.js](https:/ Or use [CORS Anywhere](https://github.com/Rob--W/cors-anywhere) (a NodeJS proxy that works very well with heroku.com). -#### ESM +### ESM ```html @@ -336,16 +409,15 @@ app.get('/orders/:id', async function (req, res) { ## Digital Signature Signatures are required when the call is made for EU- or UK-domiciled sellers, and only for the following APIs/methods: -* All methods in the Finances API -> (`eBay.finances.XXX.sign.YYY()`) +* All methods in the Finances API -> (`eBay.sell.finances.sign.XXX()`) * issueRefund in the Fulfillment API -> (`eBay.sell.fulfillment.sign.issueRefund()`) * GetAccount in the Trading API -> (`eBay.trading.GetAccount(null, { sign: true }))`) * The following methods in the Post-Order API: - Issue Inquiry Refund -> (`eBay.postOrder.inquiry.sign.issueInquiryRefund()`) - - Issue case refund -> (`eBay.postOrder.inquiry.sign.issueCaseRefund()`) - - Issue return refund -> (`eBay.postOrder.inquiry.sign.issueReturnRefund()`) - - Process Return Request -> (`eBay.postOrder.inquiry.sign.processReturnRequest()`) - - Create Cancellation Request -> (`eBay.postOrder.inquiry.sign.createCancellation()`) - - Approve Cancellation Request -> (`eBay.postOrder.inquiry.sign.approveCancellationRequest()`) + - Issue return refund -> (`eBay.postOrder.return.sign.issueReturnRefund()`) + - Process Return Request -> (`eBay.postOrder.return.sign.processReturnRequest()`) + - Create Cancellation Request -> (`eBay.postOrder.cancellation.sign.createCancellation()`) + - Approve Cancellation Request -> (`eBay.postOrder.cancellation.sign.approveCancellationRequest()`) ### How to use Digital Signature ```typescript @@ -430,8 +502,9 @@ eBay.OAuth2.on('refreshClientToken', (token) => { }); ``` -To manual refresh the auth token use `eBay.OAuth2.refreshAuthToken()` and for the client -token use `eBay.OAuth2.refreshClientToken()`. +To manually refresh the user access token use `eBay.OAuth2.refreshUserAccessToken()`, and for the +client token use `eBay.OAuth2.obtainApplicationAccessToken()`. `eBay.OAuth2.refreshToken()` picks the +right one for you based on the credentials that are set. Keep in mind that you need the 'refresh_token' value set. ```typescript @@ -477,7 +550,9 @@ eBay.trading.AddFixedPriceItem({ }); ``` -### Low level: use the Axios interceptor to manipulate the request +### Low level: add extra headers with the Axios interceptor + +If you want to add a header to every request you can use the Axios interceptor. ```typescript import eBayApi from 'ebay-api'; @@ -491,6 +566,7 @@ eBay.req.instance.interceptors.request.use((request) => { }); ``` + ### Handle JSON GZIP response e.g fetchItemAspects You need a decompress library installed like `zlib`. @@ -685,45 +761,6 @@ eBay.postOrder.return.getReturn('5132021997').then(a => { }); ``` -### Finding - findItemsByProduct \(use XML attributes and value\) - -```js -eBay.finding.findItemsByProduct({ - productId: { - '@_type': 'ReferenceID', - '#value': '53039031' - } -}); - -// will produce: -// 53039031 -``` - -### Finding - findItemsIneBayStores - -```js -eBay.finding.findItemsIneBayStores({ - storeName: 'HENDT' -}, {raw: true}).then(result => { - // Return raw XML - console.log(result); -}); -``` - -### Finding - findItemsAdvanced \(findItemsByKeywords\) - -```js -eBay.finding.findItemsAdvanced({ - itemFilter: [{ - name: 'Seller', - value: 'hendt_de' - }], - keywords: 'katze' -}).then(result => { - console.log(result); -}); -``` - ### Trading - GetMyeBaySelling ```js @@ -759,6 +796,7 @@ and [Node Example here](https://github.com/hendt/ebay-api/blob/master/examples/t 4. itemAffiliateWebUrl is missing in eBay.buy.browse.search call You have to set `endUserCtx`. + ## Contribution Check [here](https://github.com/hendt/ebay-api/blob/master/CONTRIBUTING.md) diff --git a/examples/restful/buy/browse.getShoppingCart.ts b/examples/restful/buy/browse.getShoppingCart.ts deleted file mode 100644 index 1e18b9e5..00000000 --- a/examples/restful/buy/browse.getShoppingCart.ts +++ /dev/null @@ -1,9 +0,0 @@ -import eBayApi from '../../../src/eBayApi.js'; - -const eBay = eBayApi.fromEnv(); - -eBay.buy.browse.getShoppingCart().then(cart => { - console.log(cart); -}).catch(e => { - console.log(e); -}); diff --git a/examples/restful/buy/marketing.getAlsoBoughtProducts.ts b/examples/restful/buy/marketing.getAlsoBoughtProducts.ts deleted file mode 100644 index d24ea4a4..00000000 --- a/examples/restful/buy/marketing.getAlsoBoughtProducts.ts +++ /dev/null @@ -1,17 +0,0 @@ -import eBayApi from '../../../src/eBayApi.js'; - -const eBay = eBayApi.fromEnv(); - -// Check OAuth Scope if this really works for you: https://developer.ebay.com/my/keys -eBay.OAuth2.setScope([ - 'https://api.ebay.com/oauth/api_scope', - 'https://api.ebay.com/oauth/api_scope/buy.marketing' -]); - -eBay.buy.marketing.getAlsoBoughtByProduct({ - gtin: '8806088687681' -}).then(products => { - console.log(JSON.stringify(products, null, 2)); -}).catch(e => { - console.log(e); -}); diff --git a/examples/traditional/clientAlerts.GetPublicAlerts.ts b/examples/traditional/clientAlerts.GetPublicAlerts.ts index 1de0316c..99cc08ae 100644 --- a/examples/traditional/clientAlerts.GetPublicAlerts.ts +++ b/examples/traditional/clientAlerts.GetPublicAlerts.ts @@ -1,6 +1,6 @@ import eBayApi from '../../src/eBayApi.js'; -import {EventType} from '../../src/api/traditional/clientAlerts'; +import {EventType} from '../../src/api/traditional/clientAlerts/index.js'; const eBay = eBayApi.fromEnv(); diff --git a/examples/traditional/finding.findItemsAdvanced.ts b/examples/traditional/finding.findItemsAdvanced.ts deleted file mode 100644 index 086fcc64..00000000 --- a/examples/traditional/finding.findItemsAdvanced.ts +++ /dev/null @@ -1,15 +0,0 @@ -// @ts-ignore -import eBayApi from '../../src/eBayApi.js'; - -const eBay = eBayApi.fromEnv(); - -eBay.finding.findItemsAdvanced({ - itemFilter: [{ - name: 'Seller', - value: 'hendt_de' - }] -}).then(result => { - console.log(JSON.stringify(result, null, 2)); -}).catch(e => { - console.log(e); -}) \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b8ea1d4d..89f1c43b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ebay-api", - "version": "9.6.0", + "version": "10.0.0-RC.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ebay-api", - "version": "9.6.0", + "version": "10.0.0-RC.2", "license": "MIT", "dependencies": { "axios": "^1.12.0", @@ -33,8 +33,7 @@ "eslint": "^10.0.1", "form-data": "^4.0.0", "mocha": "^11.0.0", - "openapi-typescript": "^7.10.1", - "readline": "^1.3.0", + "openapi-typescript": "7.13.0", "rimraf": "^6.0.1", "rollup": "^4.0.0", "rollup-plugin-bundle-size": "^1.0.3", @@ -1623,16 +1622,16 @@ } }, "node_modules/brace-expansion": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz", - "integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==", + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz", + "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==", "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^4.0.2" }, "engines": { - "node": "18 || 20 || >=22" + "node": "20 || >=22" } }, "node_modules/browser-stdout": { @@ -4965,12 +4964,6 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/readline": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz", - "integrity": "sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==", - "dev": true - }, "node_modules/redent": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", diff --git a/package.json b/package.json index 9846d886..fbc01b48 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ebay-api", "author": "Daniil Tomilow", - "version": "9.6.0", + "version": "10.0.0-RC.2", "description": "eBay API for Node and Browser", "type": "module", "main": "./lib/index.js", @@ -77,12 +77,14 @@ "build": "rimraf lib dist && tsc && tsc --project tsconfig.cjs.json && rollup -c --bundleConfigAsCjs && npm run cjs:fix", "lint": "eslint src test examples", "lint:fix": "eslint --fix src test examples", + "typecheck": "tsc -p tsconfig.check.json", "test": "mocha --reporter=dot", "report": "c8 npm run test", "report:summary": "c8 --reporter=lcov --reporter=text-summary npm run test", - "prerelease": "npm run lint && npm run test && npm run build", + "prerelease": "npm run lint && npm run typecheck && npm run test && npm run build", "release": "standard-version", - "rc": "npm run release -- --prerelease RC && git push --follow-tags origin next", + "rc": "npm run release -- --prerelease RC && git push --follow-tags", + "fetch-openapi": "node scripts/fetch-open-api.cjs", "gen-openapi": "npx openapi-typescript" }, "dependencies": { @@ -110,8 +112,7 @@ "eslint": "^10.0.1", "form-data": "^4.0.0", "mocha": "^11.0.0", - "openapi-typescript": "^7.10.1", - "readline": "^1.3.0", + "openapi-typescript": "7.13.0", "rimraf": "^6.0.1", "rollup": "^4.0.0", "rollup-plugin-bundle-size": "^1.0.3", @@ -121,6 +122,7 @@ "typescript": "^5.9.3" }, "overrides": { + "brace-expansion": "^5.0.8", "minimatch": "^10.2.1", "diff": "^8.0.3", "serialize-javascript": "^7.0.5" @@ -137,13 +139,11 @@ "products", "Browse", "Category", - "FindingApi", "node-api", "eBay Traditional API", "eBay Full API", "eBay Account API", "eBay Inventory API", - "eBay Compliance API", "eBay Marketing API", "eBay Fulfillment API", "eBay Marketing API", @@ -157,7 +157,7 @@ "eBay Catalog API", "eBay Translation API", "eBay Analytics API", - "eBay Finding API", + "eBay Stores API", "eBay Shopping API", "eBay Merchandising API", "eBay Trading API", diff --git a/redocly.yaml b/redocly.yaml index 7bf27c61..5ab675e8 100644 --- a/redocly.yaml +++ b/redocly.yaml @@ -23,10 +23,10 @@ apis: root: specs/buy_offer_v1_beta_oas3.json x-openapi-ts: output: src/types/restful/specs/buy_offer_v1_beta_oas3.ts - buy_order_v1_beta: - root: specs/buy_order_v1_beta_oas3.json + buy_order_v2: + root: specs/buy_order_v2_oas3.json x-openapi-ts: - output: src/types/restful/specs/buy_order_v1_beta_oas3.ts + output: src/types/restful/specs/buy_order_v2_oas3.ts cancellation: root: specs/cancellation_oas3.json x-openapi-ts: @@ -99,10 +99,6 @@ apis: root: specs/sell_analytics_v1_oas3.json x-openapi-ts: output: src/types/restful/specs/sell_analytics_v1_oas3.ts - sell_compliance_v1: - root: specs/sell_compliance_v1_oas3.json - x-openapi-ts: - output: src/types/restful/specs/sell_compliance_v1_oas3.ts sell_feed_v1: root: specs/sell_feed_v1_oas3.json x-openapi-ts: @@ -143,3 +139,7 @@ apis: root: specs/sell_recommendation_v1_oas3.json x-openapi-ts: output: src/types/restful/specs/sell_recommendation_v1_oas3.ts + sell_stores_v1: + root: specs/sell_stores_v1_oas3.json + x-openapi-ts: + output: src/types/restful/specs/sell_stores_v1_oas3.ts diff --git a/scripts/fetch-open-api.cjs b/scripts/fetch-open-api.cjs new file mode 100644 index 00000000..2cc79035 --- /dev/null +++ b/scripts/fetch-open-api.cjs @@ -0,0 +1,216 @@ +const https = require('https'); +const fs = require('fs'); +const path = require('path'); + +const urls = [ + 'https://developer.ebay.com/api-docs/master/buy/browse/openapi/3/buy_browse_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/buy/deal/openapi/3/buy_deal_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/buy/feed/openapi/3/buy_feed_v1_beta_oas3.json', + 'https://developer.ebay.com/api-docs/master/buy/marketing/openapi/3/buy_marketing_v1_beta_oas3.json', +// 'https://developer.ebay.com/api-docs/master/buy/marketplace_insights/openapi/3/buy_marketplace_insights_v1_beta_oas3.json', N/A + 'https://developer.ebay.com/api-docs/master/buy/offer/openapi/3/buy_offer_v1_beta_oas3.json', + 'https://developer.ebay.com/api-docs/master/buy/order/openapi/3/buy_order_v2_oas3.json', +// 'https://developer.ebay.com/api-docs/master/cancellation/openapi/3/cancellation_oas3.json', post-order, custom spec +// 'https://developer.ebay.com/api-docs/master/case/openapi/3/case_oas3.json', post-order, custom spec + 'https://developer.ebay.com/api-docs/master/commerce/catalog/openapi/3/commerce_catalog_v1_beta_oas3.json', + 'https://developer.ebay.com/api-docs/master/commerce/charity/openapi/3/commerce_charity_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/commerce/identity/openapi/3/commerce_identity_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/commerce/media/openapi/3/commerce_media_v1_beta_oas3.json', + 'https://developer.ebay.com/api-docs/master/commerce/notification/openapi/3/commerce_notification_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/commerce/taxonomy/openapi/3/commerce_taxonomy_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/commerce/translation/openapi/3/commerce_translation_v1_beta_oas3.json', + 'https://developer.ebay.com/api-docs/master/developer/analytics/openapi/3/developer_analytics_v1_beta_oas3.json', + 'https://developer.ebay.com/api-docs/master/developer/key-management/openapi/3/developer_key_management_v1_oas3.json', +// 'https://developer.ebay.com/api-docs/master/inquiry/openapi/3/inquiry_oas3.json', post-order, custom spec +// 'https://developer.ebay.com/api-docs/master/return/openapi/3/return_oas3.json', post-order, custom spec + 'https://developer.ebay.com/api-docs/master/sell/account/openapi/3/sell_account_v1_oas3.json', +// 'https://developer.ebay.com/api-docs/master/sell/account/v2/openapi/3/sell_account_v2_oas3.json', static contract omits the SetUserPreferencesRequest schema (dangling $ref); fetch manually from developer.ebay.com/docs/fetch (rawSchema=true, browser session) instead + 'https://developer.ebay.com/api-docs/master/sell/analytics/openapi/3/sell_analytics_v1_oas3.json', +// sell/compliance: API decommissioned by eBay 2026-03-30 (docs and spec removed) + 'https://developer.ebay.com/api-docs/master/sell/feed/openapi/3/sell_feed_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/sell/finances/openapi/3/sell_finances_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/sell/fulfillment/openapi/3/sell_fulfillment_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/sell/inventory/openapi/3/sell_inventory_v1_oas3.json', +// 'https://developer.ebay.com/api-docs/master/sell/listing/openapi/3/sell_listing_v1_beta_oas3.json', N/A + 'https://developer.ebay.com/api-docs/master/sell/logistics/openapi/3/sell_logistics_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/sell/marketing/openapi/3/sell_marketing_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/sell/metadata/openapi/3/sell_metadata_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/sell/negotiation/openapi/3/sell_negotiation_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/sell/recommendation/openapi/3/sell_recommendation_v1_oas3.json', + 'https://developer.ebay.com/api-docs/master/sell/stores/openapi/3/sell_stores_v1_oas3.json' +]; + +const outputDir = './specs'; + +// eBay sits behind Akamai Bot Manager: the first request 403s but sets +// bot-mitigation cookies (bm_ss/bm_s/bm_so), and a retry carrying those +// cookies is allowed through. Node's https does not persist cookies, so we +// keep a small shared jar and send a browser User-Agent. +const userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'; +const cookies = {}; + +function cookieHeader() { + return Object.entries(cookies).map(([name, value]) => `${name}=${value}`).join('; '); +} + +function storeCookies(setCookie) { + for (const entry of setCookie || []) { + const pair = entry.split(';')[0]; + const eq = pair.indexOf('='); + if (eq !== -1) { + cookies[pair.slice(0, eq).trim()] = pair.slice(eq + 1).trim(); + } + } +} + +function request(url, redirectsLeft = 5) { + return new Promise((resolve, reject) => { + const headers = { + 'User-Agent': userAgent, + 'Accept': 'application/json, text/plain, */*', + 'Accept-Language': 'en-US,en;q=0.9', + 'Referer': 'https://developer.ebay.com/' + }; + const cookie = cookieHeader(); + if (cookie) { + headers.Cookie = cookie; + } + + https.get(url, { headers }, (response) => { + storeCookies(response.headers['set-cookie']); + + const statusCode = response.statusCode; + const location = response.headers.location; + if (statusCode >= 300 && statusCode < 400 && location) { + response.resume(); + if (redirectsLeft === 0) { + reject(new Error(`too many redirects (last: ${location})`)); + return; + } + resolve(request(new URL(location, url).toString(), redirectsLeft - 1)); + return; + } + + // Decode as UTF-8 up front. Concatenating raw Buffers into a string would corrupt any + // multi-byte character that straddles a chunk boundary, and several specs contain them. + response.setEncoding('utf8'); + let data = ''; + response.on('data', chunk => data += chunk); + response.on('error', reject); + response.on('end', () => resolve({ statusCode, body: data })); + }).on('error', reject); + }); +} + +/** + * The operationIds a spec declares, used to warn when a refresh silently drops operations. + */ +function operationIds(spec) { + const ids = new Set(); + for (const methods of Object.values(spec.paths || {})) { + for (const operation of Object.values(methods)) { + if (operation && operation.operationId) { + ids.add(operation.operationId); + } + } + } + return ids; +} + +function readExistingSpec(filepath) { + if (!fs.existsSync(filepath)) { + return null; + } + try { + return JSON.parse(fs.readFileSync(filepath, 'utf8')); + } catch (error) { + return null; + } +} + +// Create output directory +if (!fs.existsSync(outputDir)) { + fs.mkdirSync(outputDir); +} + +// Download a file +async function downloadFile(url) { + const filename = path.basename(new URL(url).pathname); + if (!filename.endsWith('.json')) { + throw new Error(`refusing to write non-JSON filename "${filename}"`); + } + const filepath = path.join(outputDir, filename); + + let response = await request(url); + // Retry once with the freshly-issued bot-mitigation cookies. + if (response.statusCode === 403) { + response = await request(url); + } + if (response.statusCode !== 200) { + throw new Error(`HTTP ${response.statusCode}`); + } + + // Akamai Bot Manager answers a blocked request with HTTP 200 and an HTML challenge page. + // Parsing before writing keeps that from silently overwriting a good committed spec. + let spec; + try { + spec = JSON.parse(response.body); + } catch (error) { + throw new Error(`response was not JSON (${response.body.length} bytes, starts with "${response.body.slice(0, 40).replace(/\s+/g, ' ')}")`); + } + if (!spec.paths) { + throw new Error('response parsed as JSON but has no "paths" — not an OpenAPI document'); + } + + const previous = readExistingSpec(filepath); + const dropped = previous + ? [...operationIds(previous)].filter(id => !operationIds(spec).has(id)) + : []; + + fs.writeFileSync(filepath, response.body); + return {filename, dropped}; +} + +// Download all files +async function downloadAll() { + console.log(`Downloading ${urls.length} files to ${outputDir}/`); + + let success = 0; + let failed = 0; + const droppedOperations = []; + + for (const url of urls) { + try { + const {filename, dropped} = await downloadFile(url); + console.log(`āœ“ ${filename}`); + if (dropped.length) { + droppedOperations.push({filename, dropped}); + } + success++; + } catch (error) { + console.log(`āœ— ${path.basename(new URL(url).pathname)} - ${error.message}`); + failed++; + } + + // Small delay between downloads + await new Promise(resolve => setTimeout(resolve, 300)); + } + + if (droppedOperations.length) { + console.log('\n⚠ Operations that disappeared in this refresh — check whether the matching API'); + console.log(' class still implements them (npm test enforces that it must not):'); + for (const {filename, dropped} of droppedOperations) { + console.log(` ${filename}: ${dropped.join(', ')}`); + } + } + + console.log(`\nDone! Success: ${success}, Failed: ${failed}`); + return failed; +} + +downloadAll().then(failed => { + process.exit(failed > 0 ? 1 : 0); +}).catch(error => { + console.error(error); + process.exit(1); +}); diff --git a/scripts/update-readme-release.cjs b/scripts/update-readme-release.cjs index 5642cfc5..6ddb1694 100644 --- a/scripts/update-readme-release.cjs +++ b/scripts/update-readme-release.cjs @@ -1,9 +1,24 @@ -const regex = /`(v\d+\.\d+\.\d+)` is the latest release\./ +// Matches the README's "latest release" line for both stable and prerelease versions, +// e.g. `v9.6.0` and `v10.0.0-RC.2`. +const regex = /`v(\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?)` is the latest release\./ module.exports.readVersion = function(contents) { - return contents.match(regex)[1] + const match = contents.match(regex) + if (!match) { + throw new Error( + 'update-readme-release: could not find a "`vX.Y.Z` is the latest release." line in README.md. ' + + 'standard-version cannot bump the README until that line is restored.' + ) + } + return match[1] } module.exports.writeVersion = function(contents, version) { + if (!regex.test(contents)) { + throw new Error( + 'update-readme-release: refusing to bump README.md silently — the "`vX.Y.Z` is the latest release." ' + + 'line is missing.' + ) + } return contents.replace(regex, "`v" + version + "` is the latest release.") } diff --git a/specs/buy_browse_v1_oas3.json b/specs/buy_browse_v1_oas3.json index b48f0220..c10d40a7 100644 --- a/specs/buy_browse_v1_oas3.json +++ b/specs/buy_browse_v1_oas3.json @@ -1,4290 +1,4620 @@ { - "openapi": "3.0.0", - "info": { - "title": "Browse API", - "description": "

The Browse API has the following resources:

The item_summary, search_by_image, and item resource calls require an Application access token. The shopping_cart resource calls require a User access token.

", - "contact": { - "name": "eBay Inc," - }, - "license": { - "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" + "openapi": "3.0.0", + "info": { + "title": "Browse API", + "description": "The Browse API has the following resources:The item_summary, search_by_image, and item resource calls require an Application access token.", + "contact": { + "name": "eBay Inc," + }, + "license": { + "name": "eBay API License Agreement", + "url": "https://developer.ebay.com/join/api-license-agreement" + }, + "version": "v1.20.4" }, - "version": "v1.10.0" - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/buy/browse/v1" - } - } - } - ], - "paths": { - "/item_summary/search": { - "get": { - "tags": [ - "item_summary" - ], - "description": "

This method searches for eBay items by various query parameters and retrieves summaries of the items. You can search by keyword, category, eBay product ID (ePID), or GTIN, charity ID, or a combination of these.

Note: Only FIXED_PRICE (Buy It Now) items are returned by default. However, this method does return items where both FIXED_PRICE and AUCTION are available as a buying option. After a bid has been placed, items become active auction items and are no longer returned by default, but they remain accessible by filtering for the AUCTION buying option.

This method also supports the following:

For details and examples of these capabilities, see Browse API in the Buying Integration Guide.

Pagination and sort controls

There are pagination controls (limit and offset fields) and sort query parameters that control/sort the data that is returned. By default, the results are sorted by "Best Match". For more information about Best Match, see the eBay help page Best Match.

URLs for this method

Request headers

This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. ", - "operationId": "search", - "parameters": [ - { - "name": "aspect_filter", - "in": "query", - "description": "This field lets you filter by item aspects. The aspect name/value pairs and category, which is required, is used to limit the results to specific aspects of the item. For example, in a clothing category one aspect pair would be Color/Red.

For example, the method below uses the category ID for Women's Clothing. This will return only items for a woman's red shirt.

/buy/browse/v1/item_summary/search?q=shirt&category_ids=15724&aspect_filter=categoryId:15724,Color:{Red}

To get a list of the aspects pairs and the category, which is returned in the dominantCategoryId field, set fieldgroups to ASPECT_REFINEMENTS.

/buy/browse/v1/item_summary/search?q=shirt&fieldgroups=ASPECT_REFINEMENTS

Required: The category ID is required twice; once as a URI parameter and as part of the aspect_filter. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/gct:AspectFilter", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "auto_correct", - "in": "query", - "description": "A query parameter that enables auto correction.

Valid Values: KEYWORD", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "category_ids", - "in": "query", - "description": "The category ID is used to limit the results. This field can have one category ID or a comma separated list of IDs.

For example:
/buy/browse/v1/item_summary/search?category_ids=29792

Note: Currently, you can pass in only one category ID per request.

You can also use any combination of the category_Ids, epid, and q fields. This gives you additional control over the result set.

For example, let's say you are looking of a toy phone. If you search for \"phone\", the result set will be mobile phones because this is the \"Best Match\" for this search. But if you also include the toy category ID, the results will be what you wanted.

For example:
/buy/browse/v1/item_summary/search?q=phone&category_ids=220

The list of eBay category IDs is not published and category IDs are not the same across all the eBay marketplaces. You can use the following techniques to find a category by site: Note: If a top-level (L1) category is specified, you must also include the q query parameter.

Required: The method must have category_ids, epid, gtin, or q (or any combination of these)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "charity_ids", - "in": "query", - "description": "The charity ID is used to limit the results to only items associated with the specified charity. This field can have one charity ID or a comma separated list of IDs. The method will return all the items associated with the specified charities.

For example:
/buy/browse/v1/item_summary/search?charity_ids=13-1788491,300108469

The charity ID is the charity's registration ID, also known as the Employer Identification Number (EIN). In GB, it is the Charity Registration Number (CRN), commonly called \"Charity Number\". You can also use any combination of the category_Ids and q fields with a charity_Ids to filter the result set. This gives you additional control over the result set.

Restriction: This is supported only on the US and GB marketplaces.

Maximum: 20 IDs

Required: One ID", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "compatibility_filter", - "in": "query", - "description": "This field specifies the attributes used to define a specific product. The service searches for items matching the keyword or matching the keyword and a product attribute value in the title of the item.

For example, if the keyword is brakes and compatibility-filter=Year:2018;Make:Honda, the items returned are items with brakes, 2018, or Honda in the title.

The service uses the product attributes to determine if the item is compatible. The service returns the attributes that are compatible and the CompatibilityMatchEnum value that indicates how well the item matches the attributes.

For the best compatibility results, submit all the attributes used to define the product.

Best Practice: Submit all the product attributes for the specific product.

For more details, see Check compatibility in the Buy Integration Guide.

Note: The only products supported are cars, trucks, and motorcycles.

For an example, see the Samples section.

Note: Testing in Sandbox is only supported using mock data. See Testing search in the Sandbox for details.

Required:

For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/gct:CompatibilityFilter", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "epid", - "in": "query", - "description": "The ePID is the eBay product identifier of a product from the eBay product catalog. This field limits the results to only items in the specified ePID.

The Marketing API getMerchandisedProducts method and the Browse API getItem, getItemByLegacyId, and getItemsByItemGroup calls return the ePID of the product. You can also use the product_summary/search method in the Catalog API to search for the ePID of the product.

For example:
/buy/browse/v1/item_summary/search?epid=15032

Maximum: 1

Required: The method must have category_ids, epid, gtin, or q (or any combination of these)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "fieldgroups", - "in": "query", - "description": "This field is a comma separated list of values that lets you control what is returned in the response. The default is MATCHING_ITEMS, which returns the items that match the keyword or category specified. The other values return data that can be used to create histograms or provide additional information.

Valid Values: Code so that your app gracefully handles any future changes to this list.

Default: MATCHING_ITEMS", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "filter", - "in": "query", - "description": "This field supports multiple field filters that can be used to limit/customize the result set.

For example:
/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50]

You can also combine filters.
/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50],sellers:{rpseller|bigSal}

The following are the supported filters. For details and examples for all the filters, see Buy API Field Filters.
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:FilterField", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "gtin", - "in": "query", - "description": "This field lets you search by the Global Trade Item Number of the item as defined by https://www.gtin.info. You can search only by UPC (Universal Product Code). If you have other formats of GTIN, you need to search by keyword.

For example:
/buy/browse/v1/item_summary/search?gtin=099482432621

Maximum: 1

Required: The method must have category_ids, epid, gtin, or q (or any combination of these)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of items, from the result set, returned in a single page.

Default: 50

Maximum number of items per page (limit): 200

Maximum number of items in a result set: 10,000", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "Specifies the number of items to skip in the result set. This is used with the limit field to control the pagination of the output.

If offset is 0 and limit is 10, the method will retrieve items 1-10 from the list of items returned, if offset is 10 and limit is 10, the method will retrieve items 11 thru 20 from the list of items returned.

Valid Values: 0-10,000 (inclusive)

Default: 0

Maximum number of items returned: 10,000 ", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "q", - "in": "query", - "description": "A string consisting of one or more keywords that are used to search for items on eBay. The keywords are handled as follows:Restriction: The * wildcard character is not allowed in this field.

Required: The method must have category_ids, epid, gtin, or q (or any combination of these). ", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "sort", - "in": "query", - "description": "Specifies the order and the field name to use to sort the items.

You can sort items by price (in ascending or descending order) or by distance (only applicable if the \"pickup\" filters are used, and only ascending order is supported). You can also sort items by listing date, with the most recently listed (newest) items appearing first.

Note: To sort in descending order, insert a hyphen (-) before the field name. If no sort parameter is submitted, the result set is sorted by "Best Match".

The following are examples of using the sort query parameter.

SortResult
sort=price Sorts by price in ascending order (lowest price first)
sort=-price Sorts by price in descending order (highest price first)
sort=distance Sorts by distance in ascending order (shortest distance first)
sort=newlyListed Sorts by listing date (most recently listed/newest items first)
sort=endingSoonest Sorts by date/time the listing ends (listings nearest to end date/time first)

Default: Ascending For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:SortField", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SearchPagedCollection" - } - } - }, - "x-response-codes": { - "errors": { - "12002": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The {filterName} value is invalid. For the valid values, refer to the API call documentation." - }, - "12003": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "A seller 'username' provided in the request filters is invalid." - }, - "12008": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'sort' value is invalid. For the valid values, refer to the API call documentation." - }, - "12009": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'category_ids' query parameter is invalid." - }, - "12010": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "There are four filters required for local pickup. 'pickupPostalCode','pickupCountry','pickupRadiusUnit','pickupRadius'. One or more is missing or invalid." - }, - "12011": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "'deliveryCountry' is a mandatory filter to provide a delivery location. 'deliveryPostalCode' is optional." - }, - "12012": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "A valid 'price' filter and a valid 'priceCurrency' filter is necessary to filter based on price." - }, - "12014": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The 'sellerAccountTypes' filter is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" - }, - "12015": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The postal code filter value is invalid for the specified country and this filter was ignored." - }, - "12016": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'fieldgroups' value {fieldgroups} is invalid. For the valid values, refer to the API call reference documentation" - }, - "12017": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'aspect_filter' query parameter must include a categoryId. For information, see the API call reference documentation." - }, - "12018": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The {aspectFilter} aspect_filter value is invalid. For information, see the API call reference documentation." - }, - "12021": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'epid' value {epid} is invalid. For information, see the API call reference documentation." - }, - "12022": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'gtin' value {gtin} is invalid. For information, see the API call reference documentation." - }, - "12024": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'charity_ids' value {charity_id} is invalid. For more information see the API call reference documentation." - }, - "12502": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The {compatibilityFilter} compatibility_filter is invalid. For information, see the API call reference documentation." - }, - "12511": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "Either 'deliveryCountry' or 'deliveryPostalCode' is invalid, hence 'guaranteedDeliveryInDays' filter was ignored." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "12001": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The call must have a valid 'q', 'category_ids', 'epid' or 'gtin' query parameter." - }, - "12004": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'offset' value cannot be negative." - }, - "12005": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'offset' value must be an integer." - }, - "12006": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'limit' value should be between 1 and 200 (inclusive)." - }, - "12007": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'limit' value must be an integer value." - }, - "12023": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "This keyword search results in a response that is too large to return. Either change the keyword or add additional query parameters and/or filters." - }, - "12025": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'charity_ids' field has exceeded the maximum limit of 20." - }, - "12026": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'charity_ids' field is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}." - }, - "12027": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'auto_correct' value is invalid. For the valid values, refer to the API call documentation." - }, - "12028": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'auto_correct' is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" - }, - "12029": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The maximum number of listings that can be retrieved is 10,000, so your offset value must be less than 10,000. If 10,000 or more listings are matching your search criteria, consider narrowing the scope of your search." - }, - "12030": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The number of categories in the request has exceeded the limit. Please reduce the number of categories to {allowedMaxCategories} or less." - }, - "12032": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The number of sellers in the filter has exceeded the limit. Please reduce the number of sellers to 250 or fewer." - }, - "12033": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'qualifiedPrograms' filter for {filterValue} requires valid 'deliveryPostalCode' and 'deliveryCountry' filter values." - }, - "12034": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'buyingOptions' filter value {filterValue} is not supported for the sort by {sortOption}. For the supported values, refer to the API call documentation." - }, - "12503": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "There is no compatibility information found either because there is no compatibility results or the data provided in the compatibility_filter is invalid or insufficient." - }, - "12504": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "You must provide a category ID that supports fitment." - }, - "12505": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The following compatibility attributes in the request are not supported: {attributes}." - }, - "12506": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The category ID submitted does not support fitment." - }, - "12507": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "To filter by 'guaranteedDeliveryInDays', you must include 'deliveryCountry'." - }, - "12508": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "To filter by 'guaranteedDeliveryInDays', you must include 'deliveryPostalCode' for the 'deliveryCountry'." - }, - "12509": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'guaranteedDeliveryInDays' value {guaranteedDeliveryInDays} is invalid for 'deliveryCountry' value {deliveryCountry}. Valid values for 'guaranteedDeliveryInDays' for {deliveryCountry} must be in the range of {rangeLowerBound} to {rangeUpperBound} inclusive." - }, - "12510": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'guaranteedDeliveryInDays' filter is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" - }, - "12512": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'qualifiedPrograms' filter for {filterValue} is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "12013": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "Top level category browsing is not allowed. Please provide keywords or more filters for the applied top level category." - }, - "12019": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces} ." - }, - "12020": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The 'fieldgroups' value {fieldgroups} is invalid when multiple 'category_ids' are specified. Either change the call to have only one value in 'category_ids' or remove the 'fieldgroups'." - }, - "12513": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The 'priorityListing' filter for {filterValue} is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" - }, - "12514": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The 'priorityListing' filter is not supported for the specified sort option. Refer to the API call documentation." + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/buy/browse/v1" } - } } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "12000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + } + ], + "paths": { + "/item_summary/search": { + "get": { + "tags": [ + "item_summary" + ], + "description": "This method searches for eBay items by various query parameters and retrieves summaries of the items. You can search by keyword, category, eBay product ID (ePID), or GTIN, charity ID, or a combination of these.

Note: Only listings where FIXED_PRICE (Buy It Now) is a buying option are returned by default. To retrieve listings that do not have FIXED_PRICE as a buying option, the buyingOptions filter can be used to retrieve those listings.

Note that an auction listing enabled with the Buy it Now feature will initially show AUCTION and FIXED_PRICE as buying options, but if/when that auction listing receives a qualifying bid, only AUCTION remains as a buying option. If this happens, the buyingOptions filter would need to be used to retrieve that auction listing.

This method also supports the following:For additional information and examples of these capabilities, refer to Browse API in the Buying Integration Guide.

Pagination and sort controls

There are pagination controls (limit and offset fields) and sort query parameters that control/sort the data that are returned. By default, results are sorted by Best Match. For more information about Best Match, refer to Best Match.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, refer to API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "operationId": "search", + "parameters": [ + { + "name": "aspect_filter", + "in": "query", + "description": "This field lets you filter by item aspects. The aspect name/value pairs and category, which is required, is used to limit the results to specific aspects of the item. For example, in a clothing category one aspect pair would be Color/Red.

Note: The category ID must be specified twice:These two values must be the same.
For example, to return items for a woman's red shirt, issue the following request:
/buy/browse/v1/item_summary/search?q=shirt&category_ids=15724&aspect_filter=categoryId:15724,Color:{Red}
To get a list of the aspect pairs and the category, which is returned in the dominantCategoryId field, set fieldgroups to ASPECT_REFINEMENTS as illustrated here:
/buy/browse/v1/item_summary/search?q=shirt&fieldgroups=ASPECT_REFINEMENTS
Note: The pipe symbol is used as a delimiter between aspect filter values. If a value contains a pipe symbol (for example, the brand name 'Bed|Stü'), you must enter a backslash before the pipe character to prevent it from being evaluated as a delimiter.

The following example illustrates the correct format for entering two brand names as aspect filter values, one of which contains a pipe symbol:
/buy/browse/v1/item_summary/search?limit=50&category_ids=3034&filter=buyingOptions:{AUCTION|FIXED_PRICE}&aspect_filter=categoryId:3034,Brand:{Bed\|Stü|Nike}
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/gct:AspectFilter", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "auto_correct", + "in": "query", + "description": "A query parameter that enables auto correction.

A sample is shown below:
/buy/browse/v1/item_summary/search?auto_correct=KEYWORD
Note: Auto correction is currently supported in the following marketplaces:
Valid Values: KEYWORD", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "category_ids", + "in": "query", + "description": "The category ID is used to limit the results that are returned. This field may pass in one category ID or a comma separated list of IDs as illustrated in the following examples:
/buy/browse/v1/item_summary/search?category_ids=29792
/buy/browse/v1/item_summary/search?category_ids=267,29792
Note: Currently, you can pass in only one category ID per request.
To refine the set of information that is returned, category_ids may be combined with EITHER:For example, when looking of a toy phone, simply searching for \"phone\" will return mobile phones because that is the \"Best Match\" for the search. To further refine the request to include toy phones, include the Toys & Hobbies category ID as illustrated here:
/buy/browse/v1/item_summary/search?q=phone&category_ids=220
Because the list of eBay category IDs is not published and category IDs are not the same across all eBay marketplaces, category IDs may be determined by:Note: If a top-level (L1) category is specified, you must also include a q query parameter.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "charity_ids", + "in": "query", + "description": "The charity ID filters results to return only those items associated with the specified charity.

Note: charity_ids is only supported by the US and UK marketplaces.
Charity ID is a charity's unique identification number:
charity_ids may be retrieved/determined as follows:Up to 20 comma-separated charity_ids may be specified in each query. Additionally, charity_ids may be combined with category_ids and/or q keyword values to further filter returned results.

A sample query using charity_ids is:
/buy/browse/v1/item_summary/search?charity_ids=13-1788491,300108469
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "compatibility_filter", + "in": "query", + "description": "This field specifies the attributes used to define a specific product. The service searches for items matching the keyword, or matching the keyword and a product attribute value in the title of the item.

Note: The only products supported are cars, trucks, and motorcycles.
For example, if the keyword is brakes and compatibility-filter=Year:2018;Make:BMW, the items returned are items with brakes, 2018, or BMW in the title.

The service uses the product attributes to determine whether the item is compatible. The service returns the attributes that are compatible and the CompatibilityMatchEnum value that indicates how well the item matches the attributes.

Tip: Refer to the Samples section for a detailed example.


Best Practice: Submit all of the product attributes for the specific product.

To find the attributes and values for a specific marketplace, use the getCompatibilityProperties method in the Taxonomy API.

For more information, refer to Check compatibility in the Buying Integration Guide.

Note: Testing in Sandbox is only supported using mock data. Refer to Testing search in the Sandbox for details.
Required: For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/gct:CompatibilityFilter", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "epid", + "in": "query", + "description": "The ePID is the eBay product identifier of a product from the eBay product catalog. This field limits the results to only items in the specified ePID.

Use the product_summary/search method in the Catalog API to search for the ePID of the product.

For example:
/buy/browse/v1/item_summary/search?epid=15032
Note: When constructing a query, epid may be combined with a gtin value. However, do not specify keywords using the q parameter — keywords cannot be used in conjunction with an epid.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "fieldgroups", + "in": "query", + "description": "A comma-separated list of values that controls what is returned in the response. The default is MATCHING_ITEMS, which returns the items that match the keyword or category specified. The other values return data that can be used to create histograms or provide additional information.

Valid Values:Default: MATCHING_ITEMS", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filter", + "in": "query", + "description": "An array of field filters that can be used to limit/customize the result set.

Refer to Buy API Field Filters for additional information and examples of all supported filters.

For example, to filter shirts based on a specific range of prices, include the filter illustrated here:
/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50]
Filters may also be combined within a single request as illustrated in the sample below which further refines results to return only those shirts available from specific sellers:
/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50],sellers:{rpseller|bigSal}
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:FilterField", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "gtin", + "in": "query", + "description": "This field lets you search for a product by specifying a Global Trade Item Number (GTIN) of the product. Supported GTIN types are UPC, EAN, and ISBN.

For example:
/buy/browse/v1/item_summary/search?gtin=099482432621
Note: When constructing a query, gtin value may be combined with an epid value, but neither an epid or gtin value should be combined with a keywords search through the q parameter.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The number of items from the result set returned in a single page.

Note: If a value is set in the limit field, the value of offset must be either zero or a multiple of the limit value. An error is returned for invalid offset values.
Note: This method can return a maximum of 10,000 items in one results set.
Min: 1

Max: 200

Default: 50", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "Specifies the number of items to skip in the result set. This is used with the limit field to control the pagination of the output.

For example:Note: The value of offset must be either zero or a multiple of the value set in the limit field. An error is returned for invalid offset values.
Note: This method can return a maximum of 10,000 items in one results set.
Min: 0

Max: 9,999

Default: 0", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "q", + "in": "query", + "description": "A string consisting of one or more keywords used to search for items on eBay.

Note: The * wildcard character is not allowed in this field.
When providing two or more keywords in a single query, the string is processed as follows:
Note: When specifying keywords using the q parameter:

Maximum length: 100 characters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "sort", + "in": "query", + "description": "Specifies the criteria on which returned items are to be sorted.

Items can be sorted in ascending order based on:If no sort parameter is submitted, the result set is sorted by \"Best Match\". Refer to Optimizing your listings for Best Match for additional information. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:SortField", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers in the Buying Integration Guide.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "This header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SearchPagedCollection" + } + } + }, + "x-response-codes": { + "errors": { + "12002": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The {filterName} value is invalid. For the valid values, refer to the API call documentation." + }, + "12003": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "A seller 'username' provided in the request filters is invalid." + }, + "12008": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'sort' value is invalid. For the valid values, refer to the API call documentation." + }, + "12009": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'category_ids' query parameter is invalid." + }, + "12010": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "There are four filters required for local pickup. 'pickupPostalCode','pickupCountry','pickupRadiusUnit','pickupRadius'. One or more is missing or invalid." + }, + "12011": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "'deliveryCountry' is a mandatory filter to provide a delivery location. 'deliveryPostalCode' is optional." + }, + "12012": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "A valid 'price' filter and a valid 'priceCurrency' filter is necessary to filter based on price." + }, + "12014": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "The 'sellerAccountTypes' filter is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" + }, + "12015": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The postal code filter value is invalid for the specified country and this filter was ignored." + }, + "12016": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'fieldgroups' value {fieldgroups} is invalid. For the valid values, refer to the API call reference documentation" + }, + "12017": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'aspect_filter' query parameter must include a categoryId. For information, see the API call reference documentation." + }, + "12018": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The {aspectFilter} aspect_filter value is invalid. For information, see the API call reference documentation." + }, + "12021": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'epid' value {epid} is invalid. For information, see the API call reference documentation." + }, + "12022": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'gtin' value {gtin} is invalid. For information, see the API call reference documentation." + }, + "12024": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'charity_ids' value {charity_id} is invalid. For more information see the API call reference documentation." + }, + "12502": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The {compatibilityFilter} compatibility_filter is invalid. For information, see the API call reference documentation." + }, + "12511": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "Either 'deliveryCountry' or 'deliveryPostalCode' is invalid, hence 'guaranteedDeliveryInDays' filter was ignored." + }, + "12519": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The '{fieldName}' value '{filterValue}' is not supported with 'deliveryCountry' '{deliveryCountry}' on marketplace '{marketplaceId}'. The region filter will be ignored and results will follow the site's default location behavior." + }, + "12520": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'conditionIds' filter value is invalid or not supported. For the supported values, refer to the API call documentation." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "12001": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The call must have a valid 'q', 'category_ids', 'epid' or 'gtin' query parameter." + }, + "12004": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'offset' value cannot be negative." + }, + "12005": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'offset' value must be an integer." + }, + "12006": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'limit' value should be between 1 and 200 (inclusive)." + }, + "12007": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'limit' value must be an integer value." + }, + "12023": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "This keyword search results in a response that is too large to return. Either change the keyword or add additional query parameters and/or filters." + }, + "12025": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'charity_ids' field has exceeded the maximum limit of 20." + }, + "12026": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'charity_ids' field is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}." + }, + "12027": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'auto_correct' value is invalid. For the valid values, refer to the API call documentation." + }, + "12028": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'auto_correct' is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" + }, + "12029": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The maximum number of listings that can be retrieved is 10,000, so your offset value must be less than 10,000. If 10,000 or more listings are matching your search criteria, consider narrowing the scope of your search." + }, + "12030": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The number of categories in the request has exceeded the limit. Please reduce the number of categories to {allowedMaxCategories} or less." + }, + "12032": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The number of sellers in the filter has exceeded the limit. Please reduce the number of sellers to 250 or fewer." + }, + "12033": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'qualifiedPrograms' filter for {filterValue} requires valid 'deliveryPostalCode' and 'deliveryCountry' filter values." + }, + "12034": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'buyingOptions' filter value {filterValue} is not supported for the sort by {sortOption}. For the supported values, refer to the API call documentation." + }, + "12503": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "There is no compatibility information found either because there is no compatibility results or the data provided in the compatibility_filter is invalid or insufficient." + }, + "12504": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "You must provide a category ID that supports fitment." + }, + "12505": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The following compatibility attributes in the request are not supported: {attributes}." + }, + "12506": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The category ID submitted does not support fitment." + }, + "12507": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "To filter by 'guaranteedDeliveryInDays', you must include 'deliveryCountry'." + }, + "12508": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "To filter by 'guaranteedDeliveryInDays', you must include 'deliveryPostalCode' for the 'deliveryCountry'." + }, + "12509": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'guaranteedDeliveryInDays' value {guaranteedDeliveryInDays} is invalid for 'deliveryCountry' value {deliveryCountry}. Valid values for 'guaranteedDeliveryInDays' for {deliveryCountry} must be in the range of {rangeLowerBound} to {rangeUpperBound} inclusive." + }, + "12510": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'guaranteedDeliveryInDays' filter is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" + }, + "12512": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'qualifiedPrograms' filter for {filterValue} is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" + }, + "12515": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'offset' value must be either zero or a multiple of the 'limit' value." + }, + "12516": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The ā€˜q’ value is invalid. It must be longer than one character when using the ā€˜searchInDescription’ filter." + }, + "12517": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "Only one item location filter can be applied at a time. Refer to the API call documentation." + }, + "12518": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'itemLocationRegion' filter value is not supported for the marketplace {marketplaceId}. Valid values are: {validRegionValues}" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "12013": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "Top level category browsing is not allowed. Please provide keywords or more filters for the applied top level category." + }, + "12019": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces} ." + }, + "12020": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "The 'fieldgroups' value {fieldgroups} is invalid when multiple 'category_ids' are specified. Either change the call to have only one value in 'category_ids' or remove the 'fieldgroups'." + }, + "12513": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "The 'priorityListing' filter for {filterValue} is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" + }, + "12514": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "The 'priorityListing' filter is not supported for the specified sort option. Refer to the API call documentation." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "12000": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/item_summary/search_by_image": { - "post": { - "tags": [ - "search_by_image" - ], - "description": "\"Experimental This is an Experimental method.

This method searches for eBay items based on a image and retrieves summaries of the items. You pass in a Base64 image in the request payload and can refine the search by category, or eBay product ID (ePID), or a combination of these using URI parameters.

To get the Base64 image string, you can use sites such as https://codebeautify.org/image-to-base64-converter.

This method also supports the following:

For details and examples of these capabilities, see Browse API in the Buying Integration Guide.

Pagination and sort controls

There are pagination controls (limit and offset fields) and sort query parameters that control/sort the data that is returned. By default, the results are sorted by "Best Match". For more information about Best Match, see the eBay help page Best Match.

URLs for this method

Request headers

This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide.

URL Encoding for Parameters

Query parameter values need to be URL encoded. For details, see URL encoding query parameter values. For readability, code examples in this document have not been URL encoded.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. ", - "operationId": "searchByImage", - "parameters": [ - { - "name": "aspect_filter", - "in": "query", - "description": "This field lets you filter by item aspects. The aspect name/value pairs and category, which is required, is used to limit the results to specific aspects of the item. For example, in a clothing category one aspect pair would be Color/Red.

For example, the method below uses the category ID for Women's Clothing. This will return only items for a woman's red shirt.

category_ids=15724&aspect_filter=categoryId:15724,Color:{Red}

Required: The category ID is required twice; once as a URI parameter and as part of the aspect_filter. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/gct:AspectFilter", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "category_ids", - "in": "query", - "description": "The category ID is used to limit the results. This field can have one category ID or a comma separated list of IDs.

Note: Currently, you can pass in only one category ID per request.

You can also use any combination of the category_Ids and epid fields. This gives you additional control over the result set.

The list of eBay category IDs is not published and category IDs are not the same across all the eBay marketplaces. You can use the following techniques to find a category by site: Required: The method must have category_ids or epid (or any combination of these)", - "required": false, - "schema": { - "type": "string" + "/item_summary/search_by_image": { + "post": { + "tags": [ + "item_summary" + ], + "description": "This method searches for eBay items based on a image and retrieves summaries of the items. You pass in a Base64 image in the request payload and can refine the search by category, or with other available filters.

To get the Base64 image string, you can use sites such as https://codebeautify.org/image-to-base64-converter.

This method also supports the following:For details and examples of these capabilities, refer to Browse API in the Buying Integration Guide.

URL Encoding for Parameters

Query parameter values need to be URL encoded. For details, refer to URL encoding query parameter values. For readability, code examples in this document have not been URL encoded.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, refer to API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "operationId": "searchByImage", + "parameters": [ + { + "name": "aspect_filter", + "in": "query", + "description": "This field lets you filter by item aspects. The aspect name/value pairs and category, which is required, is used to limit the results to specific aspects of the item. For example, in a clothing category one aspect pair would be Color/Red.

Note: The category ID must be specified twice:These two values must be the same.
For example, to return items for a woman's red shirt, issue the following request:
/buy/browse/v1/item_summary/search?q=shirt&category_ids=15724&aspect_filter=categoryId:15724,Color:{Red}
To get a list of the aspect pairs and the category, which is returned in the dominantCategoryId field, set fieldgroups to ASPECT_REFINEMENTS as illustrated here:
/buy/browse/v1/item_summary/search?q=shirt&fieldgroups=ASPECT_REFINEMENTS
Note: The pipe symbol is used as a delimiter between aspect filter values. If a value contains a pipe symbol (for example, the brand name 'Bed|Stü'), you must enter a backslash before the pipe character to prevent it from being evaluated as a delimiter.

The following example illustrates the correct format for entering two brand names as aspect filter values, one of which contains a pipe symbol:
/buy/browse/v1/item_summary/search?limit=50&category_ids=3034&filter=buyingOptions:{AUCTION|FIXED_PRICE}&aspect_filter=categoryId:3034,Brand:{Bed\|Stü|Nike}
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/gct:AspectFilter", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "category_ids", + "in": "query", + "description": "The category ID is used to limit the results that are returned. This field may pass in one category ID or a comma separated list of IDs as illustrated in the following examples:
/buy/browse/v1/item_summary/searchByImage?category_ids=29792
/buy/browse/v1/item_summary/searchByImage?category_ids=267,29792
Note: Currently, you can pass in only one category ID per request.
To refine the set of information that is returned, category_ids may be combined with other available filters.

Because the list of eBay category IDs is not published and category IDs are not the same across all eBay marketplaces, category IDs may be determined by:", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "charity_ids", + "in": "query", + "description": "The charity ID filters results to return only those items associated with the specified charity.

Note: charity_ids is only supported by the US and UK marketplaces.
Charity ID is a charity's unique identification number:
charity_ids may be retrieved/determined as follows:Up to 20 comma-separated charity_ids may be specified in each query. Additionally, charity_ids may be combined with category_ids and/or q keyword values to further filter returned results.

A sample query using charity_ids is:
/buy/browse/v1/item_summary/search?charity_ids=13-1788491,300108469
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "fieldgroups", + "in": "query", + "description": "A comma-separated list of values that controls what is returned in the response. The default is MATCHING_ITEMS, which returns the items that match the keyword or category specified. The other values return data that can be used to create histograms or provide additional information.

Valid Values:Default: MATCHING_ITEMS", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filter", + "in": "query", + "description": "An array of field filters that can be used to limit/customize the result set.

Refer to Buy API Field Filters for the information about available filters.

For example, to filter shirts based on a specific range of prices, include the filter illustrated here:
/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50]
Filters may also be combined within a single request as illustrated in the sample below which further refines results to return only those shirts available from specific sellers:
/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50],sellers:{rpseller|bigSal}
Note: Refer to Buy API Field Filters for additional information and examples of all supported filters. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:FilterField", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The number of items from the result set returned in a single page.

Note: If a value is set in the limit field, the value of offset must be either zero or a multiple of the limit value. An error is returned for invalid offset values.
Note: This method can return a maximum of 10,000 items in one results set.
Min: 1

Max: 200

Default: 50", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "Specifies the number of items to skip in the result set. This is used with the limit field to control the pagination of the output.

For example:Note: The value of offset must be either zero or a multiple of the value set in the limit field. An error is returned for invalid offset values.
Note: This method can return a maximum of 10,000 items in one results set.
Min: 0

Max: 9,999

Default: 0", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "sort", + "in": "query", + "description": "Note: This call currently returns results in a best-match order. This query parameter presently has no practical use. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:SortField", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers in the Buying Integration Guide.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "This header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The container for the image information fields.", + "content": { + "application/json": { + "schema": { + "description": "The container for the image information fields.", + "$ref": "#/components/schemas/SearchByImageRequest" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SearchPagedCollection" + } + } + }, + "x-response-codes": { + "errors": { + "12002": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The {filterName} value is invalid. For the valid values, refer to the API call documentation." + }, + "12003": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "A seller 'username' provided in the request filters is invalid." + }, + "12008": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'sort' value is invalid. For the valid values, refer to the API call documentation." + }, + "12009": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'category_ids' query parameter is invalid." + }, + "12010": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "There are four filters required for local pickup. 'pickupPostalCode','pickupCountry','pickupRadiusUnit','pickupRadius'. One or more is missing or invalid." + }, + "12011": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "'deliveryCountry' is a mandatory filter to provide a delivery location. 'deliveryPostalCode' is optional." + }, + "12012": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "A valid 'price' filter and a valid 'priceCurrency' filter is necessary to filter based on price." + }, + "12014": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "The 'sellerAccountTypes' filter is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" + }, + "12015": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The postal code filter value is invalid for the specified country and this filter was ignored." + }, + "12016": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'fieldgroups' value {fieldgroups} is invalid. For the valid values, refer to the API call reference documentation" + }, + "12017": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'aspect_filter' query parameter must include a categoryId. For information, see the API call reference documentation." + }, + "12018": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The {aspectFilter} aspect_filter value is invalid. For information, see the API call reference documentation." + }, + "12024": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'charity_ids' value {charity_id} is invalid. For more information see the API call reference documentation." + }, + "12031": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The following filter(s) is/are not supported by this operation: {unsupportedFilters}. For more information see the API call reference documentation." + }, + "12511": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "Either 'deliveryCountry' or 'deliveryPostalCode' is invalid, hence 'guaranteedDeliveryInDays' filter was ignored." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "12004": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'offset' value cannot be negative." + }, + "12005": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'offset' value must be an integer." + }, + "12006": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'limit' value should be between 1 and 200 (inclusive)." + }, + "12007": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'limit' value must be an integer value." + }, + "12025": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'charity_ids' field has exceeded the maximum limit of 20." + }, + "12026": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'charity_ids' field is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}." + }, + "12029": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The maximum number of listings that can be retrieved is 10,000, so your offset value must be less than 10,000. If 10,000 or more listings are matching your search criteria, consider narrowing the scope of your search." + }, + "12030": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The number of categories in the request has exceeded the limit. Please reduce the number of categories to {allowedMaxCategories} or less." + }, + "12032": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The number of sellers in the filter has exceeded the limit. Please reduce the number of sellers to 250 or fewer." + }, + "12033": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'qualifiedPrograms' filter for {filterValue} requires valid 'deliveryPostalCode' and 'deliveryCountry' filter values." + }, + "12034": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'buyingOptions' filter value {filterValue} is not supported for the sort by {sortOption}. For the supported values, refer to the API call documentation." + }, + "12500": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "This image search results in a response that is too large to return. Either change the image or add additional query parameters and/or filters." + }, + "12501": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The image data is empty, is not Base64 encoded, or is invalid." + }, + "12507": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "To filter by 'guaranteedDeliveryInDays', you must include 'deliveryCountry'." + }, + "12508": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "To filter by 'guaranteedDeliveryInDays', you must include 'deliveryPostalCode' for the 'deliveryCountry'." + }, + "12509": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'guaranteedDeliveryInDays' value {guaranteedDeliveryInDays} is invalid for 'deliveryCountry' value {deliveryCountry}. Valid values for 'guaranteedDeliveryInDays' for {deliveryCountry} must be in the range of {rangeLowerBound} to {rangeUpperBound} inclusive." + }, + "12510": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'guaranteedDeliveryInDays' filter is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" + }, + "12512": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'qualifiedPrograms' filter for {filterValue} is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" + }, + "12515": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'offset' value must be either zero or a multiple of the 'limit' value." + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "12013": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "Top level category browsing is not allowed. Please provide keywords or more filters for the applied top level category." + }, + "12019": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces} ." + }, + "12020": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "The 'fieldgroups' value {fieldgroups} is invalid when multiple 'category_ids' are specified. Either change the call to have only one value in 'category_ids' or remove the 'fieldgroups'." + }, + "12513": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "The 'priorityListing' filter for {filterValue} is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" + }, + "12514": { + "domain": "API_BROWSE", + "category": "BUSINESS", + "description": "The 'priorityListing' filter is not supported for the specified sort option. Refer to the API call documentation." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "12000": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - }, - { - "name": "charity_ids", - "in": "query", - "description": "The charity ID is used to limit the results to only items associated with the specified charity. This field can have one charity ID or a comma separated list of IDs. The method will return all the items associated with the specified charities.

For example:
/buy/browse/v1/item_summary/search?charity_ids=13-1788491,300108469

The charity ID is the charity's registration ID, also known as the Employer Identification Number (EIN). In GB, it is the Charity Registration Number (CRN), commonly called \"Charity Number\". You can also use any combination of the category_Ids and q fields with a charity_Ids to filter the result set. This gives you additional control over the result set.

Restriction: This is supported only on the US and GB marketplaces.

Maximum: 20 IDs

Required: One ID", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "fieldgroups", - "in": "query", - "description": "This field is a comma separated list of values that lets you control what is returned in the response. The default is MATCHING_ITEMS, which returns the items that match the keyword or category specified. The other values return data that can be used to create histograms or provide additional information.

Valid Values: Code so that your app gracefully handles any future changes to this list.

Default: MATCHING_ITEMS", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "filter", - "in": "query", - "description": "This field supports multiple field filters that can be used to limit/customize the result set.

For example:
/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50]

You can also combine filters.
/buy/browse/v1/item_summary/search?q=shirt&filter=price:[10..50],sellers:{rpseller|bigSal}

The following are the supported filters. For details and examples for all the filters, see Buy API Field Filters.
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:FilterField", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of items, from the result set, returned in a single page.

Default: 50

Maximum number of items per page (limit): 200

Maximum number of items in a result set: 10,000", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "The number of items to skip in the result set. This is used with the limit field to control the pagination of the output.

If offset is 0 and limit is 10, the method will retrieve items 1-10 from the list of items returned, if offset is 10 and limit is 10, the method will retrieve items 11 thru 20 from the list of items returned.

Valid Values: 0-10,000 (inclusive)

Default: 0

Maximum number of items returned: 10,000 ", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "sort", - "in": "query", - "description": "Specifies the order and the field name to use to sort the items.

You can sort items by price (in ascending or descending order) or by distance (only applicable if the \"pickup\" filters are used, and only ascending order is supported). You can also sort items by listing date, with the most recently listed (newest) items appearing first.

Note: To sort in descending order, insert a hyphen (-) before the field name. If no sort parameter is submitted, the result set is sorted by "Best Match".

The following are examples of using the sort query parameter.

SortResult
sort=price Sorts by price in ascending order (lowest price first)
sort=-price Sorts by price in descending order (highest price first)
sort=distance Sorts by distance in ascending order (shortest distance first)
sort=newlyListed Sorts by listing date (most recently listed/newest items first)
sort=endingSoonest Sorts by date/time the listing ends (listings nearest to end date/time first)

Default: Ascending For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/browse/types/cos:SortField", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the image information fields.", - "content": { - "application/json": { - "schema": { - "description": "The container for the image information fields.", - "$ref": "#/components/schemas/SearchByImageRequest" - } - } - }, - "required": false }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SearchPagedCollection" - } - } - }, - "x-response-codes": { - "errors": { - "12002": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The {filterName} value is invalid. For the valid values, refer to the API call documentation." - }, - "12003": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "A seller 'username' provided in the request filters is invalid." - }, - "12008": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'sort' value is invalid. For the valid values, refer to the API call documentation." - }, - "12009": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'category_ids' query parameter is invalid." - }, - "12010": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "There are four filters required for local pickup. 'pickupPostalCode','pickupCountry','pickupRadiusUnit','pickupRadius'. One or more is missing or invalid." - }, - "12011": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "'deliveryCountry' is a mandatory filter to provide a delivery location. 'deliveryPostalCode' is optional." - }, - "12012": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "A valid 'price' filter and a valid 'priceCurrency' filter is necessary to filter based on price." - }, - "12014": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The 'sellerAccountTypes' filter is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" - }, - "12015": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The postal code filter value is invalid for the specified country and this filter was ignored." - }, - "12016": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'fieldgroups' value {fieldgroups} is invalid. For the valid values, refer to the API call reference documentation" - }, - "12017": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'aspect_filter' query parameter must include a categoryId. For information, see the API call reference documentation." - }, - "12018": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The {aspectFilter} aspect_filter value is invalid. For information, see the API call reference documentation." - }, - "12024": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'charity_ids' value {charity_id} is invalid. For more information see the API call reference documentation." - }, - "12031": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The following filter(s) is/are not supported by this operation: {unsupportedFilters}. For more information see the API call reference documentation." - }, - "12511": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "Either 'deliveryCountry' or 'deliveryPostalCode' is invalid, hence 'guaranteedDeliveryInDays' filter was ignored." - } - } + "/item/{item_id}": { + "get": { + "tags": [ + "item" + ], + "description": "This method retrieves the details of a specific item, such as description, price, category, all item aspects, condition, return policies, seller feedback and score, shipping options, shipping costs, estimated delivery, and other information the buyer needs to make a purchasing decision.

The Buy APIs are designed to let you create an eBay shopping experience in your app or website. This means you will need to know when something, such as the availability, quantity, etc., has changed in any eBay item you are offering. This is easily achieved by setting the fieldgroups URI parameter to one of the following values:For additional information, refer to fieldgroups.

Restrictions

For a list of supported sites and other restrictions, refer to API Restrictions.

eBay Partner Network: In order to be commissioned for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "operationId": "getItem", + "parameters": [ + { + "name": "fieldgroups", + "in": "query", + "description": "This parameter controls what is returned in the response. If this field is not set, the method returns all the details of the item.

Note: Multiple fieldgroups can be set and applied simultaneously. However, COMPACT must be used alone. Otherwise, an error will occur.
Valid Values:", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "item_id", + "in": "path", + "description": "This path parameter specifies the unique RESTful identifier of the item being retrieved.

RESTful Item ID Format: v1|#|#

For a single SKU listing, pass in the item ID:
v1|2**********2|0
For a multi-SKU listing, pass in the identifier of the variation:
v1|1**********2|4**********2

For more information about item IDs for RESTful APIs, refer to Item ID legacy API compatibility overview in the Buying Integration Guide.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is can be used in following two situations:
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "This header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "quantity_for_shipping_estimate", + "in": "query", + "description": "This query parameter sets the item quantity to be used when calculating the shipping estimate information returned in the shippingOptions container of the response.

This value must be a positive integer value and should not exceed the quantity available in the listing. This field is not recommended for auction listings, as they will always have a quantity of 1.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Item" + } + } + }, + "x-response-codes": { + "errors": { + "11502": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem extracting product information for this Item. Please try again." + }, + "11508": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "This seller is currently away. If you make a purchase, please allow additional time for your order to be processed." + }, + "11509": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "This seller is currently away until {sellerReturnDate}. If you make a purchase, please allow additional time for your order to be processed." + }, + "11510": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem calculating the shipping cost. Please try again." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11001": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified item ID was not found." + }, + "11002": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified item group was not found." + }, + "11004": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The item is not available for purchase. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." + }, + "11005": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The item group ID is invalid. Use {itemHref} to get the item details." + }, + "11008": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The item group is not available. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." + }, + "11011": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The marketplace value {marketplaceId} is not supported. The supported values are: {allowedMarketplaces}" + }, + "11012": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified item IDs are invalid, or the format of the specified values are invalid." + }, + "11013": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified group IDs are invalid, or the format of the specified values are invalid." + }, + "11014": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "An item_ids and an item_group_ids list cannot be used at same time. Please use only one of these lists." + }, + "11015": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The maximum number of item ids has been exceeded. Please reduce the number of item ids to {maxAllowedItemIds} or less." + }, + "11016": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The maximum number of item group IDs has been exceeded. Please reduce the number of item group ids to {maxAllowedItemGroupIds} or less." + }, + "11018": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified fieldgroups are invalid. The COMPACT fieldgroup cannot be combined with another fieldgroup." + }, + "11019": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The quantity_for_shipping_estimate value {quantityForShippingEstimate} is invalid. Please enter a positive value." + }, + "11501": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'fieldgroups' value(s) are invalid: {fieldgroups}. The supported fieldgroups are: {supportedFieldgroups}" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11000": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "12004": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'offset' value cannot be negative." - }, - "12005": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'offset' value must be an integer." - }, - "12006": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'limit' value should be between 1 and 200 (inclusive)." - }, - "12007": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'limit' value must be an integer value." - }, - "12025": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'charity_ids' field has exceeded the maximum limit of 20." - }, - "12026": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'charity_ids' field is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}." - }, - "12029": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The maximum number of listings that can be retrieved is 10,000, so your offset value must be less than 10,000. If 10,000 or more listings are matching your search criteria, consider narrowing the scope of your search." - }, - "12030": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The number of categories in the request has exceeded the limit. Please reduce the number of categories to {allowedMaxCategories} or less." - }, - "12032": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The number of sellers in the filter has exceeded the limit. Please reduce the number of sellers to 250 or fewer." - }, - "12033": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'qualifiedPrograms' filter for {filterValue} requires valid 'deliveryPostalCode' and 'deliveryCountry' filter values." - }, - "12034": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'buyingOptions' filter value {filterValue} is not supported for the sort by {sortOption}. For the supported values, refer to the API call documentation." - }, - "12500": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "This image search results in a response that is too large to return. Either change the image or add additional query parameters and/or filters." - }, - "12501": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The image data is empty, is not Base64 encoded, or is invalid." - }, - "12507": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "To filter by 'guaranteedDeliveryInDays', you must include 'deliveryCountry'." - }, - "12508": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "To filter by 'guaranteedDeliveryInDays', you must include 'deliveryPostalCode' for the 'deliveryCountry'." - }, - "12509": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'guaranteedDeliveryInDays' value {guaranteedDeliveryInDays} is invalid for 'deliveryCountry' value {deliveryCountry}. Valid values for 'guaranteedDeliveryInDays' for {deliveryCountry} must be in the range of {rangeLowerBound} to {rangeUpperBound} inclusive." - }, - "12510": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'guaranteedDeliveryInDays' filter is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" - }, - "12512": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'qualifiedPrograms' filter for {filterValue} is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "12013": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "Top level category browsing is not allowed. Please provide keywords or more filters for the applied top level category." - }, - "12019": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces} ." - }, - "12020": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The 'fieldgroups' value {fieldgroups} is invalid when multiple 'category_ids' are specified. Either change the call to have only one value in 'category_ids' or remove the 'fieldgroups'." - }, - "12513": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The 'priorityListing' filter for {filterValue} is not supported for the marketplace {marketplaceId}. Valid marketplaces are: {validMarketplaces}" - }, - "12514": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The 'priorityListing' filter is not supported for the specified sort option. Refer to the API call documentation." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "12000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/item/{item_id}": { - "get": { - "tags": [ - "item" - ], - "description": "

This method retrieves the details of a specific item, such as description, price, category, all item aspects, condition, return policies, seller feedback and score, shipping options, shipping costs, estimated delivery, and other information the buyer needs to make a purchasing decision.

The Buy APIs are designed to let you create an eBay shopping experience in your app or website. This means you will need to know when something, such as the availability, quantity, etc., has changed in any eBay item you are offering. You can do this easily by setting the fieldgroups URI parameter. This parameter lets you control what is returned in the response.

Setting fieldgroups to COMPACT reduces the response to only the five fields that you need in order to check if any item detail has changed. Setting fieldgroups to PRODUCT, adds additional fields to the default response that return information about the product of the item. You can use either COMPACT or PRODUCT but not both. For more information, see fieldgroups.

URLs for this method

Request headers

This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to be commissioned for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. ", - "operationId": "getItem", - "parameters": [ - { - "name": "fieldgroups", - "in": "query", - "description": "This parameter lets you control what is returned in the response. If you do not set this field, the method returns all the details of the item.

Valid Values:

Maximum value: 1
If more than one values is specified, the first value will be used.", - "required": false, - "schema": { - "type": "string" + "/item/get_item_by_legacy_id": { + "get": { + "tags": [ + "item" + ], + "description": "This method is a bridge between the eBay legacy APIs, such as Shopping and Finding, and the eBay Buy APIs. There are differences between how legacy APIs and RESTful APIs return the identifier of an \"item\" and what the item ID represents. This method lets you use the legacy item ids retrieve the details of a specific item, such as description, price, and other information the buyer needs to make a purchasing decision. It also returns the RESTful item_id, which you can use with all the Buy API methods.

For additional information about how to use legacy ids with the Buy APIs, refer to Item ID legacy API compatibility overview in the Buying Integration guide.

This method returns the item details and requires you to pass in either the item_id of a non-variation item or the item_id values for both the parent and child of an item group.

Note: An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.
When an item group is created, one of the item variations, such as the red shirt size L, is chosen as the \"parent\". All other items in the group are the children, such as the blue shirt size L, red shirt size M, etc.

The fieldgroups URI parameter lets you control what is returned in the response:

These fieldgroups can be used independently or at the same time. For additional information, refer to fieldgroups.

Restrictions

For a list of supported sites and other restrictions, refer to API Restrictions.

eBay Partner Network: In order to be commissioned for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "operationId": "getItemByLegacyId", + "parameters": [ + { + "name": "fieldgroups", + "in": "query", + "description": "This field controls what is returned in the response. If this field is not set, the method returns all details about the item. Multiple fieldgroups can be set.

Valid Values:", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "legacy_item_id", + "in": "query", + "description": "This query parameter is the unique identifier that specifies the item being retrieved.

Note: When passing in the ID for a multi-variation listing, you must also use the legacy_variation_id field and pass in the ID of the specific item variation. If not, all variation within the multi-SKU listing will be retrieved.
The following is an example of using the value of the ItemID field for a specific item to get the RESTful itemId value.
browse/v1/item/get_item_by_legacy_id?legacy_item_id=1**********9
", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "legacy_variation_id", + "in": "query", + "description": "This query parameter specifies the legacy item ID of a specific item in a multi-variation listing, such as that for the red shirt size L item.

Important! A legacy_item_id value must always be passed in when specifying a legacy_variation_id value.

", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "legacy_variation_sku", + "in": "query", + "description": "This query parameter specifies the legacy SKU of an item. SKUs are the unique identifiers of an item created by the seller.

The following is an example of using the value of the ItemID and SKU fields to get the RESTful itemId value.
browse/v1/item/get_item_by_legacy_id?legacy_item_id=1**********9&legacy_variation_sku=V**********M

Important! A legacy_item_id value must always be passed in when specifying a legacy_variation_sku value.

", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is can be used in following two situations:
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "This header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "quantity_for_shipping_estimate", + "in": "query", + "description": "This query parameter sets the item quantity to be used when calculating the shipping estimate information returned in the shippingOptions container of the response.

This value must be a positive integer value and should not exceed the quantity available in the listing. This field is not recommended for auction listings, as they will always have a quantity of 1.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Item" + } + } + }, + "x-response-codes": { + "errors": { + "11502": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem extracting product information for this Item. Please try again." + }, + "11508": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "This seller is currently away. If you make a purchase, please allow additional time for your order to be processed." + }, + "11509": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "This seller is currently away until {sellerReturnDate}. If you make a purchase, please allow additional time for your order to be processed." + }, + "11510": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem calculating the shipping cost. Please try again." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11003": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified legacy item ID was not found." + }, + "11004": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The item is not available for purchase. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." + }, + "11006": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The legacy ID is invalid. Use {itemGroupHref} to get the item group details." + }, + "11009": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The legacy variation sku is invalid." + }, + "11010": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "You cannot submit legacy_variation_sku and legacy_variation_id in the same request. For help, see the documentation." + }, + "11011": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The marketplace value {marketplaceId} is not supported. The supported values are: {allowedMarketplaces}" + }, + "11019": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The quantity_for_shipping_estimate value {quantityForShippingEstimate} is invalid. Please enter a positive value." + }, + "11501": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'fieldgroups' value(s) are invalid: {fieldgroups}. The supported fieldgroups are: {supportedFieldgroups}" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11000": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - }, - { - "name": "item_id", - "in": "path", - "description": "The eBay RESTful identifier of an item. This ID is returned by the Browse and Feed API methods.

RESTful Item ID Format: v1|#|#
For example: v1|2**********2|0 or v1|1**********2|4**********2

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Item" - } - } - }, - "x-response-codes": { - "errors": { - "11001": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified item ID was not found." - }, - "11002": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified item group was not found." - }, - "11004": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item is not available for purchase. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." - }, - "11005": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item group ID is invalid. Use {itemHref} to get the item details." - }, - "11008": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item group is not available. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." - }, - "11502": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem extracting product information for this Item. Please try again." - }, - "11508": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "This seller is currently away. If you make a purchase, please allow additional time for your order to be processed." - }, - "11509": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "This seller is currently away until {sellerReturnDate}. If you make a purchase, please allow additional time for your order to be processed." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "11011": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The marketplace value {marketplaceId} is not supported. The supported values are: {allowedMarketplaces}" - }, - "11012": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified item IDs are invalid, or the format of the specified values are invalid." - }, - "11013": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified group IDs are invalid, or the format of the specified values are invalid." - }, - "11014": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "An item_ids and an item_group_ids list cannot be used at same time. Please use only one of these lists." - }, - "11015": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The maximum number of item ids has been exceeded. Please reduce the number of item ids to {maxAllowedItemIds} or less." - }, - "11016": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The maximum number of item group IDs has been exceeded. Please reduce the number of item group ids to {maxAllowedItemGroupIds} or less." - }, - "11501": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'fieldgroups' value {fieldgroups} is invalid. The supported fieldgroups are: {supportedFieldgroups}" - } - } - } - }, - "404": { - "description": "Not Found" - }, - "409": { - "description": "Conflict" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "11000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/item/get_item_by_legacy_id": { - "get": { - "tags": [ - "item" - ], - "description": "

This method is a bridge between the eBay legacy APIs, such as Shopping, and Finding and the eBay Buy APIs. There are differences between how legacy APIs and RESTful APIs return the identifier of an \"item\" and what the item ID represents. This method lets you use the legacy item ids retrieve the details of a specific item, such as description, price, and other information the buyer needs to make a purchasing decision. It also returns the RESTful item ID, which you can use with all the Buy API methods.

For more information about how to use legacy ids with the Buy APIs, see Legacy API compatibility in the Buying Integration guide.

This method returns the item details and requires you to pass in either the item ID of a non-variation item or the item ids of both the parent and child of an item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

When an item group is created, one of the item variations, such as the red shirt size L, is chosen as the \"parent\". All the other items in the group are the children, such as the blue shirt size L, red shirt size M, etc.

The fieldgroups URI parameter lets you control what is returned in the response. Setting fieldgroups to PRODUCT, adds additional fields to the default response that return information about the product of the item. For more information, see fieldgroups.

URLs for this method

Request headers

This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to be commissioned for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. ", - "operationId": "getItemByLegacyId", - "parameters": [ - { - "name": "fieldgroups", - "in": "query", - "description": "This field lets you control what is returned in the response. If you do not set this field, the method returns all the details of the item. Note: In this method, the only value supported is PRODUCT.

Valid Values:

PRODUCT - This adds the additionalImages, additionalProductIdentities, aspectGroups, description, gtins, image, and title fields to the response, which describe the item's product. See Product for more information about these fields.

Code so that your app gracefully handles any future changes to this list.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "legacy_item_id", - "in": "query", - "description": "Specifies either:

Legacy ids are returned by APIs, such as the Finding API.

The following is an example of using the value of the ItemID field for a specific item from Finding to get the RESTful itemId value.

    browse/v1/item/get_item_by_legacy_id?legacy_item_id=1**********9

Maximum: 1", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "legacy_variation_id", - "in": "query", - "description": "Specifies the legacy item ID of a specific item in an item group, such as the red shirt size L.

Legacy ids are returned by APIs, such as the Finding API.

Maximum: 1
Requirement: You must always pass in the legacy_item_id with the legacy_variation_id", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "legacy_variation_sku", - "in": "query", - "description": "Specifics the legacy SKU of the item. SKU are item ids created by the seller.

Legacy SKUs are returned by eBay the Shopping API.

The following is an example of using the value of the ItemID and SKU fields to get the RESTful itemId value.

    browse/v1/item/get_item_by_legacy_id?legacy_item_id=1**********9&legacy_variation_sku=V**********M

Maximum: 1
Requirement: You must always pass in the legacy_item_id with the legacy_variation_sku", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Item" - } - } - }, - "x-response-codes": { - "errors": { - "11502": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem extracting product information for this Item. Please try again." - }, - "11508": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "This seller is currently away. If you make a purchase, please allow additional time for your order to be processed." - }, - "11509": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "This seller is currently away until {sellerReturnDate}. If you make a purchase, please allow additional time for your order to be processed." - } - } + "/item/": { + "get": { + "tags": [ + "item" + ], + "description": "This method retrieves the details about specific items that buyers need to make a purchasing decision.

Note: This is a \"Limited(Limited Release) available only to select Partners.

For this method, only the following fields are returned: bidCount, currentBidPrice, eligibleForInlineCheckout, enabledForGuestCheckout, estimatedAvailabilities, gtin, immediatePay, itemAffiliateWebUrl, itemCreationDate, itemEndDate, itemId, itemWebUrl, legacyItemId, minimumPriceToBid, price, priorityListing, reservePriceMet, sellerItemRevision, taxes, topRatedBuyingExperience, and uniqueBidderCount.

The array shippingOptions, which comprises multiple fields, is also returned if the X-EBAY-C-ENDUSERCTX header is supplied.

Restrictions

For a list of supported sites and other restrictions, refer to API Restrictions.

eBay Partner Network: In order to be commissioned for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "operationId": "getItems", + "parameters": [ + { + "name": "item_ids", + "in": "query", + "description": "A comma separated list of the unique identifiers of the items to retrieve (maximum 20).

Note: In any given request, either item_ids or item_group_ids can be retrieved. Attempting to retrieve both will result in an error.
RESTful Item ID Format: v1|#|#

For a single SKU listing, pass in the item ID:
v1|2**********2|0
For a multi-SKU listing, pass in the identifier of the variation:
v1|1**********2|4**********2

For more information about item IDs for RESTful APIs, refer to Item ID legacy API compatibility overview in the Buying Integration Guide.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "item_group_ids", + "in": "query", + "description": "A comma separated list of the unique identifiers of the item groups being retrieved (maximum 10).

Note: In any given request, either item_ids or item_group_ids can be retrieved. Attempting to retrieve both will result in an error.
RESTful Group Item ID Format: ############

For example:
3**********9
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is can be used in following two situations:
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "This header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "quantity_for_shipping_estimate", + "in": "query", + "description": "This query parameter sets the item quantity to be used when calculating the shipping estimate information returned in the shippingOptions container of the response.

This value must be a positive integer value and should not exceed the quantity available in the listing. This field is not recommended for auction listings, as they will always have a quantity of 1.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Items" + } + } + }, + "x-response-codes": { + "errors": { + "11502": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem extracting product information for this item. Please try again." + }, + "11508": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "This seller is currently away. If you make a purchase, please allow additional time for your order to be processed." + }, + "11509": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "This seller is currently away until {sellerReturnDate}. If you make a purchase, please allow additional time for your order to be processed." + }, + "11510": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem calculating the shipping cost. Please try again." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11001": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified item ID was not found." + }, + "11002": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified item group was not found." + }, + "11004": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The item group is not available. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." + }, + "11005": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The item group ID is invalid. Use {itemHref} to get the item details." + }, + "11008": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The item group is not available. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." + }, + "11011": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The marketplace value {marketplaceId} is not supported. The supported values are: {allowedMarketplaces}" + }, + "11012": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified item IDs are invalid, or the format of the specified values are invalid." + }, + "11013": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified group IDs are invalid, or the format of the specified values are invalid." + }, + "11014": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "An item_ids and an item_group_ids list cannot be used at same time. Please use only one of these lists." + }, + "11015": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The maximum number of item IDs has been exceeded. Please reduce the number of item IDs to {maxAllowedItemIds} or less." + }, + "11016": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The maximum number of item group IDs has been exceeded. Please reduce the number of item group ids to {maxAllowedItemGroupIds} or less." + }, + "11017": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "An item_ids or an item_group_ids list is required. Please use one of these lists." + }, + "11019": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The quantity_for_shipping_estimate value {quantityForShippingEstimate} is invalid. Please enter a positive value." + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11000": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/buy.item.bulk" + ] + } + ] } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "11003": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified legacy item ID was not found." - }, - "11004": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item is not available for purchase. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." - }, - "11006": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The legacy ID is invalid. Use {itemGroupHref} to get the item group details." - }, - "11009": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The legacy variation sku is invalid." - }, - "11010": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "You cannot submit legacy_variation_sku and legacy_variation_id in the same request. For help, see the documentation." - }, - "11011": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The marketplace value {marketplaceId} is not supported. The supported values are: {allowedMarketplaces}" - } - } - } - }, - "404": { - "description": "Not Found" - }, - "409": { - "description": "Conflict" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "11000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/item/": { - "get": { - "tags": [ - "item" - ], - "description": "This method retrieves the details of specific items that the buyer needs to make a purchasing decision.

Note: This is a \"Limited(Limited Release) available only to select Partners.

For this method, only the following fields are returned: eligibleForInlineCheckout, estimatedAvailabilities, itemAffiliateWebUrl, itemId, itemWebUrl, legacyItemId, price, sellerItemRevision, taxes, and topRatedBuyingExperience.

URLs for this method

Request headers

This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to be commissioned for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. ", - "operationId": "getItems", - "parameters": [ - { - "name": "item_ids", - "in": "query", - "description": "A list of item IDs. Item IDs are the eBay RESTful identifier of items.

RESTful Item ID Format: v1|#|#
For example: v1|2**********2|0 or v1|1**********2|4**********2

In any given request, either item_ids or item_group_ids can be retrieved. Attempting to retrieve both will result in an error.

In a request, multiple item_ids can be passed as comma separated values.

Maximum allowed itemIDs: 20

For more information about item IDs for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "item_group_ids", - "in": "query", - "description": "A list of item group IDs. Item group IDs are the eBay RESTful identifier of item groups.

RESTful Group Item ID Format: ############
For example: 3**********9

In any given request, either item_ids or item_group_ids can be retrieved. Attempting to retrieve both will result in an error.

In a request, multiple item_group_ids can be passed as comma separated values.

Maximum allowed itemGroupIDs: 10

", - "required": false, - "schema": { - "type": "string" + "/item/get_items_by_item_group": { + "get": { + "tags": [ + "item" + ], + "description": "This method retrieves details about individual items in an item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

You pass in the item_group_id as a URI parameter.

This method returns two main containers:Setting the fieldgroup to ADDITIONAL_SELLER_DETAILS adds an additional field to the response that returns the seller's user ID. Setting the fieldgroup to CHARITY_DETAILS adds additional fields to the response that returns charity information associated with the item, if applicable. For more information, refer to fieldgroups.

Restrictions

For a list of supported sites and other restrictions, refer to API Restrictions.

eBay Partner Network: In order to be commissioned for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "operationId": "getItemsByItemGroup", + "parameters": [ + { + "name": "fieldgroups", + "in": "query", + "description": "This field controls what is returned in the response. If this field is not set, the method returns all details about the item.

Valid Values:

ADDITIONAL_SELLER_DETAILS - This field group adds the userId field to the response.

CHARITY_DETAILS - This field group adds the the charityTerms container to the response, if applicable.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "item_group_id", + "in": "query", + "description": "This query parameter specifies the unique identifier of an item group for which information is to be returned. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

This ID is returned in the itemGroupHref field of the search and getItem methods.

For Example:
https://api.ebay.com/buy/browse/v1/item/get_items_by_item_group?item_group_id=3**********6
", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is can be used in following two situations:
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "This header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "quantity_for_shipping_estimate", + "in": "query", + "description": "This query parameter sets the item quantity to be used when calculating the shipping estimate information returned in the shippingOptions container of the response.

This value must be a positive integer value and should not exceed the quantity available in the listing. This field is not recommended for auction listings, as they will always have a quantity of 1.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ItemGroup" + } + } + }, + "x-response-codes": { + "errors": { + "11508": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "This seller is currently away. If you make a purchase, please allow additional time for your order to be processed." + }, + "11509": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "This seller is currently away until {sellerReturnDate}. If you make a purchase, please allow additional time for your order to be processed." + }, + "11510": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem calculating the shipping cost. Please try again." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11002": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified item group was not found." + }, + "11005": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "Item Group Id is invalid. Use {itemHref} to get the item details." + }, + "11008": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The item group is not available. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." + }, + "11011": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The marketplace value {marketplaceId} is not supported. The supported values are: {allowedMarketplaces}" + }, + "11019": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The quantity_for_shipping_estimate value {quantityForShippingEstimate} is invalid. Please enter a positive value." + }, + "11501": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'fieldgroups' value(s) are invalid: {fieldgroups}. The supported fieldgroups are: {supportedFieldgroups}" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11000": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Items" - } - } - }, - "x-response-codes": { - "errors": { - "11001": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified item ID was not found." - }, - "11002": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified item group was not found." - }, - "11004": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item group is not available. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." - }, - "11005": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item group ID is invalid. Use {itemHref} to get the item details." - }, - "11008": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item group is not available. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." - }, - "11502": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem extracting product information for this item. Please try again." - }, - "11508": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "This seller is currently away. If you make a purchase, please allow additional time for your order to be processed." - }, - "11509": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "This seller is currently away until {sellerReturnDate}. If you make a purchase, please allow additional time for your order to be processed." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "11011": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The marketplace value is not supported. The supported values are: {allowedMarketplaces}" - }, - "11012": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified item IDs are invalid, or the format of the specified values are invalid." - }, - "11013": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified group IDs are invalid, or the format of the specified values are invalid." - }, - "11014": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "An item_ids and an item_group_ids list cannot be used at same time. Please use only one of these lists." - }, - "11015": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The maximum number of item IDs has been exceeded. Please reduce the number of item IDs to {maxAllowedItemIds} or less." - }, - "11016": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The maximum number of item group IDs has been exceeded. Please reduce the number of item group ids to {maxAllowedItemGroupIds} or less." - }, - "11017": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "An item_ids or an item_group_ids list is required. Please use one of these lists." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "409": { - "description": "Conflict" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "11000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.item.bulk" - ] - } - ] - } - }, - "/item/get_items_by_item_group": { - "get": { - "tags": [ - "item" - ], - "description": "

This method retrieves the details of the individual items in an item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

You pass in the item group ID as a URI parameter. You use this method to show the item details of items with multiple aspects, such as color, size, storage capacity, etc.

This method returns two main containers; items and commonDescriptions. The items container has an array of containers with the details of each item in the group. The commonDescriptions container has an array of containers for a description and the item ids of all the items that have this exact description. Because items within an item group often have the same description, this decreases the size of the response.

URLs for this method

Request headers

This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to be commissioned for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. ", - "operationId": "getItemsByItemGroup", - "parameters": [ - { - "name": "item_group_id", - "in": "query", - "description": "Identifier of the item group to return. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

This ID is returned in the itemGroupHref field of the search and getItem methods.

For Example: https://api.ebay.com/buy/browse/v1/item/get_items_by_item_group?item_group_id=3**********6", - "required": true, - "schema": { - "type": "string" + "/item/{item_id}/check_compatibility": { + "post": { + "tags": [ + "item" + ], + "description": "This method checks if a product is compatible with the specified item. You can use this method to check the compatibility of cars, trucks, and motorcycles with a specific part listed on eBay.

For example, to check the compatibility of a part, you pass in the item_id of the part as a URI parameter and specify all the attributes used to define a specific car within the compatibilityProperties container. If the call is successful, the response will be COMPATIBLE, NOT_COMPATIBLE, or UNDETERMINED. Refer to compatibilityStatus for details.

Note: The only products supported are cars, trucks, and motorcycles.
To find the attributes and values for a specific marketplace, you can use the compatibility methods in the Taxonomy API. You can use this data to create menus to help buyers specify the product, such as their car.

For more information and a list of required attributes for the US marketplace that describe motor vehicles, refer to Check compatibility in the Buying Integration Guide.

For an example, refer to the Samples section.

Note: This method is supported in Sandbox but only when passing in the specified item_id and compatibility name-value pairs listed in Sample 2: Sandbox Sample.

Restrictions

For a list of supported sites and other restrictions, refer to API Restrictions.", + "operationId": "checkCompatibility", + "parameters": [ + { + "name": "item_id", + "in": "path", + "description": "This path parameter specifies the unique RESTful identifier of an item (such as the park you want to check).

RESTful Item ID Format: v1|#|#

For a single SKU listing, pass in the item ID:
v1|2**********2|0
For a multi-SKU listing, pass in the identifier of the variation:
v1|1**********2|4**********2

For more information about item IDs for RESTful APIs, refer to Item ID legacy API compatibility overview in the Buying Integration Guide.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client.

Its value should be set to application/json.

For more information, refer to HTTP request headers in the Using eBay RESTful APIs guide.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "This header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CompatibilityPayload" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CompatibilityResponse" + } + } + }, + "x-response-codes": { + "errors": { + "11504": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The following compatibilityProperties (attributes name/value pairs) are missing: {attributes}" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11001": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The specified item ID was not found." + }, + "11011": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The marketplace value {marketplaceId} is not supported. The supported values are: {allowedMarketplaces}" + }, + "11503": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The request is either empty or incomplete. For help, see the documentation for this call." + }, + "11505": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The item is not valid for compatibility validation." + }, + "11506": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The 'name' {compatibilityNames} appears more than once in the request." + }, + "11507": { + "domain": "API_BROWSE", + "category": "REQUEST", + "description": "The following name(s) in the request are not supported {attributes}." + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "11000": { + "domain": "API_BROWSE", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ItemGroup" - } - } - }, - "x-response-codes": { - "errors": { - "11508": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "This seller is currently away. If you make a purchase, please allow additional time for your order to be processed." - }, - "11509": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "This seller is currently away until {sellerReturnDate}. If you make a purchase, please allow additional time for your order to be processed." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "11002": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified item group was not found." - }, - "11005": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "Item Group Id is invalid. Use {itemHref} to get the item details." - }, - "11008": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item group is not available. This can be for many reasons, such as when the listing is being updated by the seller. Wait a few minutes and try the call again." - }, - "11011": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The marketplace value {marketplaceId} is not supported. The supported values are: {allowedMarketplaces}" - } - } - } - }, - "404": { - "description": "Not Found" - }, - "409": { - "description": "Conflict" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "11000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } } - } }, - "/item/{item_id}/check_compatibility": { - "post": { - "tags": [ - "item" - ], - "description": "This method checks if a product is compatible with the specified item. You can use this method to check the compatibility of cars, trucks, and motorcycles with a specific part listed on eBay.

For example, to check the compatibility of a part, you pass in the item ID of the part as a URI parameter and specify all the attributes used to define a specific car in the compatibilityProperties container. If the call is successful, the response will be COMPATIBLE, NOT_COMPATIBLE, or UNDETERMINED. See compatibilityStatus for details.

Note: The only products supported are cars, trucks, and motorcycles.

To find the attributes and values for a specific marketplace, you can use the compatibility methods in the Taxonomy API. You can use this data to create menus to help buyers specify the product, such as their car.

For more details and a list of the required attributes for the US marketplace that describe motor vehicles, see Check compatibility in the Buy Integration Guide.

For an example, see the Samples section.

URLs for this method

Production URL: https://api.ebay.com/buy/browse/v1/item/{item_id}/check_compatibility

Note: This method is supported only on Production.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

", - "operationId": "checkCompatibility", - "parameters": [ - { - "name": "item_id", - "in": "path", - "description": "The eBay RESTful identifier of an item (such as a part you want to check). This ID is returned by the Browse and Feed API methods.

RESTful Item ID Format: v1|#|#
For example: v1|2**********2|0 or v1|1**********2|4**********2

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "The ID of the eBay marketplace you want to use. Note: This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CompatibilityPayload" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CompatibilityResponse" - } - } + "components": { + "schemas": { + "AdditionalProductIdentity": { + "type": "object", + "properties": { + "productIdentity": { + "type": "array", + "description": "An array of product identifier/value pairs for the product associated with the item. This is returned if the seller has associated the eBay Product Identifier (ePID) with the item and the request has fieldgroups set to PRODUCT.

The following table shows what is returned, based on the item information provided by the seller, when fieldgroups is set to PRODUCT.

ePID ProvidedProduct ID(s) ProvidedResponse
NoNoThe AdditionalProductIdentity container is not returned.
NoYesThe AdditionalProductIdentity container is not returned but the product identifiers specified by the seller are returned in the localizedAspects container.
YesNoThe AdditionalProductIdentity container is returned listing the product identifiers of the product.
YesYesThe AdditionalProductIdentity container is returned listing all the product identifiers of the product and the product identifiers specified by the seller are returned in the localizedAspects container.
", + "items": { + "$ref": "#/components/schemas/ProductIdentity" + } + } + }, + "description": "The type that defines the array of product identifiers associated with the item. This container is returned if the seller has associated the eBay Product Identifier (ePID) with the item, and in the request fieldgroups is set to PRODUCT." }, - "x-response-codes": { - "errors": { - "11504": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The following compatibilityProperties (attributes name/value pairs) are missing: {attributes}" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "11001": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The specified item ID was not found." - }, - "11011": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The marketplace value {marketplaceId} is not supported. The supported values are: {allowedMarketplaces}" - }, - "11503": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The request is either empty or incomplete. For help, see the documentation for this call." - }, - "11505": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item is not valid for compatibility validation." - }, - "11506": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The 'name' {compatibilityNames} appears more than once in the request." - }, - "11507": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The following name(s) in the request are not supported {attributes}." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "409": { - "description": "Conflict" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "11000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/shopping_cart/add_item": { - "post": { - "tags": [ - "shopping_cart" - ], - "description": "Note: \"Experimental This is an Experimental method that is available as a \"Limited(Limited Release) to select developers approved by business units.

This method creates an eBay cart for the eBay member, if one does not exist, and adds items to that cart. Because a cart never expires, any item added to the cart will remain in the cart until it is removed.

To use this method, you must submit a RESTful item ID and the quantity of the item. If the quantity value is greater than the number of available, the quantity value is changed to the number available and a warning is returned. For example, if there are 15 baseballs available and you set the quantity value to 50, the service automatically changes the value of quantity to 15.

The response returns all the items in the eBay member's cart; items added to the cart while on ebay.com as well as items added to the cart using the Browse API. The quantity and state of an item changes often. If the item becomes \"unavailable\" such as, when the listing has ended or the item is out of stock, whether it has just been added to the cart or has been in the cart for some time, the item will be returned in the unavailableCartItems container.

Note: There are differences between how legacy APIs, such as Finding, and RESTful APIs, such as Browse, return the identifier of an \"item\" and what the item ID represents. If you have an item ID from one of the legacy APIs, you can use the legacy item ID with the getItemByLegacyId method to retrieve the RESTful ID for that item. For more information about how to use legacy IDs with the Buy APIs, see Legacy API compatibility in the Buying Integration guide.

URLs for this method

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

", - "operationId": "addItem", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AddCartItemInput" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RemoteShopcartResponse" - } - } + "AddonService": { + "type": "object", + "properties": { + "selection": { + "type": "string", + "description": "This field indicates whether the add-on service must be selected for the item. For implementation help, refer to eBay API documentation" + }, + "serviceFee": { + "description": "The amount charged for the add-on service.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "serviceId": { + "type": "string", + "description": "The ID number of the add-on service." + }, + "serviceType": { + "type": "string", + "description": "The type of add-on service, such as AUTHENTICITY_GUARANTEE. For implementation help, refer to eBay API documentation" + } + }, + "description": "This container describes an add-on service that may be selected for an item or that may apply automatically. A charge may be associated with the add-on service." }, - "x-response-codes": { - "errors": { - "10004": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} is not available for purchase. This can be for several reason such as, the listing has ended or the item is out of stock." - }, - "10005": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} is revised." - }, - "10006": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} in your cart is not available in the quantity specified. The quantity of this item has been changed to the quantity that is currently available. Please review this change before proceeding to checkout." - }, - "10020": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item {itemId}." - }, - "10024": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item {itemId} because the seller does not ship to the buyer's location." - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "10001": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value is not supported. The supported values are: {supportedValues}." - }, - "10002": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "Insufficient permissions to fulfill the request." - }, - "10007": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The field: {field} is required. Add the field and resubmit the call." - }, - "10008": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item ID {itemId} is invalid." - }, - "10009": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The quantity value is invalid. The quantity must be greater than 0." - }, - "10010": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The item does not exist." - }, - "10025": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The header 'X-EBAY-C-MARKETPLACE-ID' is required. The valid Marketplaces are: {supportedValues}." - } - } - } - }, - "403": { - "description": "Insufficient permissions to fulfill the request" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "10011": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} is already in the shopping cart. To change the quantity of the item, use the updateQuantity call." - }, - "10016": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "You have exceeded the maximum number of items in a cart, which is {MaxCartIems}. To add more items, either remove or purchase some of the items in the cart." - }, - "10017": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item does not meet the cart criteria and cannot be added to the cart." - }, - "10018": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. The quantity specified exceeds this limit." - }, - "10019": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item you are trying to add to the cart." - }, - "10021": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item you are trying to add is not available in the quantity specified. Please adjust the quantity and try again." - }, - "10022": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item you are trying to add is not available for purchase. This can be for several reason such as, the listing has ended or the item is out of stock." - }, - "10023": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item because the seller does not ship to the buyer's location." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "10000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.shopping.cart" - ] - } - ] - } - }, - "/shopping_cart/": { - "get": { - "tags": [ - "shopping_cart" - ], - "description": "Note: \"Experimental This is an experimental method that is available as a \"Limited(Limited Release) to select developers approved by business units.

This method retrieves all the items in the eBay member's cart; items added to the cart while on ebay.com as well as items added to the cart using the Browse API. There are no URI parameters or request payload.

The response returns the summary details of all the items in the eBay member's cart; items added to the cart while on ebay.com as well as items added to the cart using the Browse API. If the cart is empty, the response is HTTP 204.



The quantity and state of an item changes often. If the item becomes \"unavailable\" such as, when the listing has ended or the item is out of stock, the item will be returned in the unavailableCartItems container.

URLs for this method

Restrictions

This method can be used only for eBay members. For a list of supported sites and other restrictions, see API Restrictions.

", - "operationId": "getShoppingCart", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RemoteShopcartResponse" - } - } + "Address": { + "type": "object", + "properties": { + "addressLine1": { + "type": "string", + "description": "The first line of the street address.

Note: This is conditionally returned in the itemLocation field." + }, + "addressLine2": { + "type": "string", + "description": "The second line of the street address. This field is not always used, but can be used for \"Suite Number\" or \"Apt Number\"." + }, + "city": { + "type": "string", + "description": "The city of the address." + }, + "country": { + "type": "string", + "description": "The two-letter ISO 3166 standard code for the country of the address. For implementation help, refer to eBay API documentation" + }, + "county": { + "type": "string", + "description": "The county of the address." + }, + "postalCode": { + "type": "string", + "description": "The postal code (or zip code in US) code of the address. Sellers set a postal code (or zip code in US) for items when they are listed. The postal code is used for calculating proximity searches. It is anonymized when returned in itemLocation.postalCode via the API." + }, + "stateOrProvince": { + "type": "string", + "description": "The state or province of the address.

Note: This is conditionally returned in the itemLocation field." + } + }, + "description": "The type that defines the fields for an address." }, - "x-response-codes": { - "errors": { - "10004": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} is not available for purchase. This can be for several reason such as, the listing has ended or the item is out of stock." - }, - "10005": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} is revised." - }, - "10006": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} in your cart is not available in the quantity specified. The quantity of this item has been changed to the quantity that is currently available. Please review this change before proceeding to checkout." - }, - "10020": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item {itemId}." - }, - "10024": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item {itemId} because the seller does not ship to the buyer's location." - }, - "10025": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The header 'X-EBAY-C-MARKETPLACE-ID' is required. The valid Marketplaces are: {supportedValues}." - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "10001": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value is not supported. The supported values are: {supportedValues}." - }, - "10002": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "Insufficient permissions to fulfill the request." - } - } - } - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "10000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + "Amount": { + "type": "object", + "properties": { + "currency": { + "type": "string", + "description": "The list of valid currencies. Each ISO 4217 currency code includes the currency name followed by the numeric value.

For example, the Canadian Dollar code (CAD) would take the following form: Canadian Dollar, 124. For implementation help, refer to eBay API documentation" + }, + "value": { + "type": "string", + "description": "The value of the discounted amount." + } } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.shopping.cart" - ] - } - ] - } - }, - "/shopping_cart/remove_item": { - "post": { - "tags": [ - "shopping_cart" - ], - "description": "Note: \"Experimental This is an experimental method that is available as a \"Limited(Limited Release) to select developers approved by business units.

This method removes a specific item from the eBay member's cart. You specify the ID of the item in the cart (cartItemId) that you want to remove.

The response returns all the items in the eBay member's cart; items added to the cart while on ebay.com as well as items added to the cart using the Browse API. If you remove the last item in the cart, the response is HTTP 204.

The quantity and state of an item changes often. If the item becomes \"unavailable\" such as, when the listing has ended or the item is out of stock, the item will be returned in the unavailableCartItems container.

Note: The cartItemId is not the same as the item ID. The cartItemId is the identifier of a specific item in the cart and is generated when the item was added to the cart.

URLs for this method

Restrictions

This method can be used only for eBay members. For a list of supported sites and other restrictions, see API Restrictions.

", - "operationId": "removeItem", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RemoveCartItemInput" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RemoteShopcartResponse" - } - } }, - "x-response-codes": { - "errors": { - "10004": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} is not available for purchase. This can be for several reason such as, the listing has ended or the item is out of stock." - }, - "10005": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} is revised." - }, - "10006": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} in your cart is not available in the quantity specified. The quantity of this item has been changed to the quantity that is currently available. Please review this change before proceeding to checkout.." - }, - "10020": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item {itemId}." - }, - "10024": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item {itemId} because the seller does not ship to the buyer's location." - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "10001": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value is not supported. The supported values are: {supportedValues}." - }, - "10002": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "Insufficient permissions to fulfill the request." - }, - "10007": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The field: {field} is required. Add the field and resubmit the call." - }, - "10012": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The value of 'cartItemId' {cartItemId} is invalid." - }, - "10025": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The header 'X-EBAY-C-MARKETPLACE-ID' is required. The valid Marketplaces are: {supportedValues}." - } - } - } - }, - "403": { - "description": "Insufficient permissions to fulfill the request" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "10013": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item is not in your cart." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "10000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.shopping.cart" - ] - } - ] - } - }, - "/shopping_cart/update_quantity": { - "post": { - "tags": [ - "shopping_cart" - ], - "description": "Note: \"Experimental This is an experimental method that is available as a \"Limited(Limited Release) to select developers approved by business units.

This method updates the quantity value of a specific item in the eBay member's cart. You specify the ID of the item in the cart (cartItemId) and the new value for the quantity. If the quantity value is greater than the number of available, the quantity value is changed to the number available and a warning is returned. For example, if there are 15 baseballs available and you set the quantity value to 50, the service automatically changes the value of quantity to 15.

The response returns all the items in the eBay member's cart; items added to the cart while on ebay.com as well as items added to the cart using the Browse API. The quantity and state of an item changes often. If the item becomes \"unavailable\" such as, the listing has ended or the item is out of stock, the item will be returned in the unavailableCartItems container.

Note: The cartItemId is not the same as the item ID. The cartItemId is the identifier of a specific item in the cart and is generated when the item was added to the cart.

URLs for this method

Restrictions

This method can be used only for eBay members. For a list of supported sites and other restrictions, see API Restrictions.

", - "operationId": "updateQuantity", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateCartItemInput" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RemoteShopcartResponse" + "Aspect": { + "type": "object", + "properties": { + "localizedName": { + "type": "string", + "description": "The text representing the name of the aspect for the name/value pair, such as Brand." + }, + "localizedValues": { + "type": "array", + "description": "The text representing the value of the aspect for the name/value pair, such as Apple.", + "items": { + "type": "string" + } + } + }, + "description": "The type that defines the fields for the name/value pairs for the aspects of the product. For example: BRAND/Apple" + }, + "AspectDistribution": { + "type": "object", + "properties": { + "aspectValueDistributions": { + "type": "array", + "description": "An array of containers for the various values of the aspect and the match count, and a HATEOAS reference (refinementHref) for this aspect.", + "items": { + "$ref": "#/components/schemas/AspectValueDistribution" + } + }, + "localizedAspectName": { + "type": "string", + "description": "The name of an aspect, such as Brand, Color, etc." + } + }, + "description": "The type that define the fields for the aspect information. Aspects are the variations of an item, such as color, size, etc." + }, + "AspectGroup": { + "type": "object", + "properties": { + "aspects": { + "type": "array", + "description": "An array of the name/value pairs for the aspects of the product. For example: BRAND/Apple", + "items": { + "$ref": "#/components/schemas/Aspect" + } + }, + "localizedGroupName": { + "type": "string", + "description": "The name of a group of aspects.

In the following example, Product Identifiers and Process are product aspect group names. Under the group name are the product aspect name/value pairs.

Product Identifiers
   Brand/Apple
   Product Family/iMac

Processor
   Processor Type/Intel
   Processor Speed/3.10" + } } - } }, - "x-response-codes": { - "errors": { - "10004": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} is not available for purchase. This can be for several reason such as, the listing has ended or the item is out of stock." - }, - "10005": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} is revised." - }, - "10006": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item {itemId} in your cart is not available in the quantity specified. The quantity of this item has been changed to the quantity that is currently available. Please review this change before proceeding to checkout.." - }, - "10020": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item {itemId}." - }, - "10024": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The buyer is blocked from purchasing the item {itemId} because the seller does not ship to the buyer's location." + "AspectValueDistribution": { + "type": "object", + "properties": { + "localizedAspectValue": { + "type": "string", + "description": "The value of an aspect. For example, Red is a value for the aspect Color." + }, + "matchCount": { + "type": "integer", + "description": "The number of items with this aspect.", + "format": "int32" + }, + "refinementHref": { + "type": "string", + "description": "A HATEOAS reference for this aspect." + } + }, + "description": "The container that defines the fields for the conditions refinements. This container is returned when fieldgroups is set to ASPECT_REFINEMENTS or FULL in the request." + }, + "AttributeNameValue": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the product attribute, such as Make, Model, Year, etc." + }, + "value": { + "type": "string", + "description": "The value for the name attribute, such as BMW, R1200GS, 2011, etc." + } + }, + "description": "The type the defines attribute name/value pair fields that specify a product. The type of data depends on the context. For example, if you were using this to specify a specific vehicle, the attribute names would be Make, Model, Year, etc." + }, + "AuthenticityGuaranteeProgram": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "An indication that the item is qualified for the Authenticity Guarantee program." + }, + "termsWebUrl": { + "type": "string", + "description": "The URL to the Authenticity Guarantee program terms of use." + } + }, + "description": "A type that identifies whether the item is qualified for the Authenticity Guarantee program." + }, + "AuthenticityVerificationProgram": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "An indication that the item is from a verified seller." + }, + "termsWebUrl": { + "type": "string", + "description": "The URL to the Authenticity Verification program terms of use." + } + }, + "description": "A type that identifies whether the item is from a verified seller." + }, + "AutoCorrections": { + "type": "object", + "properties": { + "q": { + "type": "string", + "description": "The automatically spell-corrected keyword from the request." + } } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "10001": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value is not supported. The supported values are: {supportedValues}." - }, - "10002": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "Insufficient permissions to fulfill the request." - }, - "10007": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The field: {field} is required. Add the field and resubmit the call." - }, - "10009": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The quantity value is invalid. The quantity must be greater than 0." - }, - "10012": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The value of 'cartItemId' {cartItemId} is invalid." - }, - "10025": { - "domain": "API_BROWSE", - "category": "REQUEST", - "description": "The header 'X-EBAY-C-MARKETPLACE-ID' is required. The valid Marketplaces are: {supportedValues}." + }, + "AvailableCoupon": { + "type": "object", + "properties": { + "constraint": { + "description": "The limitations or restrictions of the coupon.", + "$ref": "#/components/schemas/CouponConstraint" + }, + "discountAmount": { + "description": "The discount amount after the coupon is applied.", + "$ref": "#/components/schemas/Amount" + }, + "discountType": { + "type": "string", + "description": "The type of discount that the coupon applies. For implementation help, refer to eBay API documentation" + }, + "message": { + "type": "string", + "description": "A description of the coupon.

Note: The value returned in the termsWebUrl field should appear for all experiences when displaying coupons. The value in the availableCoupons.message field must also be included if returned in the API response." + }, + "redemptionCode": { + "type": "string", + "description": "The coupon code." + }, + "termsWebUrl": { + "type": "string", + "description": "The URL to the coupon terms of use.

Note: The value returned in the termsWebUrl field should appear for all experiences when displaying coupons. The value in the availableCoupons.message field must also be included if returned in the API response." + } } - } - } - }, - "403": { - "description": "Insufficient permissions to fulfill the request" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "10013": { - "domain": "API_BROWSE", - "category": "BUSINESS", - "description": "The item is not in your cart." + }, + "BuyingOptionDistribution": { + "type": "object", + "properties": { + "buyingOption": { + "type": "string", + "description": "The container that returns the buying option type. This will be AUCTION, FIXED_PRICE, CLASSIFIED_AD, or a combination of these options. For details, see buyingOptions." + }, + "matchCount": { + "type": "integer", + "description": "The number of items having this buying option.", + "format": "int32" + }, + "refinementHref": { + "type": "string", + "description": "The HATEOAS reference for this buying option." + } + }, + "description": "The container that defines the fields for the buying options refinements. This container is returned when fieldgroups is set to BUYING_OPTION_REFINEMENTS or FULL in the request." + }, + "Category": { + "type": "object", + "properties": { + "categoryId": { + "type": "string", + "description": "The unique identifier of the category." + }, + "categoryName": { + "type": "string", + "description": "The name of the category." + } + }, + "description": "This type is used by the categories container in the response of the search method, and contains the name and ID of the item category." + }, + "CategoryDistribution": { + "type": "object", + "properties": { + "categoryId": { + "type": "string", + "description": "The unique identifier of the category." + }, + "categoryName": { + "type": "string", + "description": "The name of the category, such as Baby & Toddler Clothing." + }, + "matchCount": { + "type": "integer", + "description": "The number of items in this category.", + "format": "int32" + }, + "refinementHref": { + "type": "string", + "description": "The HATEOAS reference of this category." + } + }, + "description": "The container that defines the fields for the category refinements. This container is returned when fieldgroups is set to CATEGORY_REFINEMENTS or FULL in the request." + }, + "CommonDescriptions": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "The item description that is used by more than one of the item variations." + }, + "itemIds": { + "type": "array", + "description": "A list of item ids that have this description.", + "items": { + "type": "string" + } + } + }, + "description": "The type that defines the fields for the item_id values that all use a common description. Often the item variations within an item group all have the same description. Instead of repeating this description in the item details of each item, a description that is shared by at least one other item is returned in this container. If the description is unique, it is returned in the items.description field." + }, + "CompanyAddress": { + "type": "object", + "properties": { + "addressLine1": { + "type": "string", + "description": "The first line of the product manufacturer's street address." + }, + "addressLine2": { + "type": "string", + "description": "The second line of the product manufacturer's street address. This field is not always used, but can be used for secondary address information such as 'Suite Number' or 'Apt Number'." + }, + "city": { + "type": "string", + "description": "The city of the product manufacturer's street address." + }, + "companyName": { + "type": "string", + "description": "The company name of the product manufacturer." + }, + "contactUrl": { + "type": "string", + "description": "The contact URL of the product manufacturer." + }, + "country": { + "type": "string", + "description": "The two-letter ISO 3166 standard code for the country of the address. For implementation help, refer to eBay API documentation" + }, + "countryName": { + "type": "string", + "description": "The country name of the product manufacturer's street address." + }, + "county": { + "type": "string", + "description": "The county of the product manufacturer's street address." + }, + "email": { + "type": "string", + "description": "The product manufacturer's business email address." + }, + "phone": { + "type": "string", + "description": "The product manufacturer's business phone number." + }, + "postalCode": { + "type": "string", + "description": "The postal code of the product manufacturer's street address." + }, + "stateOrProvince": { + "type": "string", + "description": "The state or province of the product manufacturer's street address." + } + }, + "description": "This type is used to provide contact information for the manufacturer of the product." + }, + "CompatibilityPayload": { + "type": "object", + "properties": { + "compatibilityProperties": { + "type": "array", + "description": "An array of attribute name/value pairs used to define a specific product. For example: If you wanted to specify a specific car, one of the name/value pairs would be

\"name\" : \"Year\",
\"value\" : \"2019\"


For a list of the attributes required for cars and trucks and motorcycles see Check compatibility in the Buy Integration Guide.", + "items": { + "$ref": "#/components/schemas/AttributeNameValue" + } + } + }, + "description": "An array of attribute name/value pairs used to define a specific product. For example: If you wanted to specify a specific car, one of the name/value pairs would be:

\"name\" : \"Year\",
\"value\" : \"2019\"


For a list of the attributes required for cars and trucks and motorcycles refer to Check compatibility in the Buying Integration Guide." + }, + "CompatibilityProperty": { + "type": "object", + "properties": { + "localizedName": { + "type": "string", + "description": "The name of the product attribute that as been translated to the language of the site." + }, + "name": { + "type": "string", + "description": "The name of the product attribute, such as Make, Model, Year, etc." + }, + "value": { + "type": "string", + "description": "The value for the name attribute, such as BMW, R1200GS, 2011, etc." + } + }, + "description": "This container returns the product attribute name/value pairs that are compatible with the keyword. These attributes are submitted in the compatibility_filter request field." + }, + "CompatibilityResponse": { + "type": "object", + "properties": { + "compatibilityStatus": { + "type": "string", + "description": "An enumeration value that tells you if the item is compatible with the product.

The values are: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + }, + "warnings": { + "type": "array", + "description": "An array of warning messages. These types of errors do not prevent the method from executing but should be checked.", + "items": { + "$ref": "#/components/schemas/Error" + } + } + }, + "description": "The type that defines the response fields for checkCompatibility. " + }, + "ConditionDescriptor": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of a condition descriptor. The value(s) for this condition descriptor is returned in the associated values array." + }, + "values": { + "type": "array", + "description": "This array displays the value(s) for a condition descriptor (denoted by the associated name field), as well as any other additional information about the condition of the item.", + "items": { + "$ref": "#/components/schemas/ConditionDescriptorValue" + } + } + }, + "description": "This type displays additional information about the condition of an item in a structured format." + }, + "ConditionDescriptorValue": { + "type": "object", + "properties": { + "additionalInfo": { + "type": "array", + "description": "Additional information about the condition of an item as it relates to a condition descriptor. This array elaborates on the value specified in the content field and provides additional details about the condition of an item.", + "items": { + "type": "string" + } + }, + "content": { + "type": "string", + "description": "The value for the condition descriptor indicated in the associated name field." + } + }, + "description": "This type displays the value(s) associated with the specified condition descriptor name, as well as any additional information about a condition descriptor. " + }, + "ConditionDistribution": { + "type": "object", + "properties": { + "condition": { + "type": "string", + "description": "The text describing the condition of the item, such as New or Used. For a list of condition names, refer to Item Condition IDs and Names." + }, + "conditionId": { + "type": "string", + "description": "The identifier of the condition. For example, 1000 is the identifier for NEW." + }, + "matchCount": { + "type": "integer", + "description": "The number of items having the condition.", + "format": "int32" + }, + "refinementHref": { + "type": "string", + "description": "The HATEOAS reference of this condition." + } + }, + "description": "The container that defines the fields for the conditions refinements. This container is returned when fieldgroups is set to CONDITION_REFINEMENTS or FULL in the request." + }, + "ConvertedAmount": { + "type": "object", + "properties": { + "convertedFromCurrency": { + "type": "string", + "description": "The three-letter ISO 4217 code representing the currency of the amount in the convertedFromValue field. This value is required or returned only if currency conversion/localization is required, and represents the pre-conversion currency. For implementation help, refer to eBay API documentation" + }, + "convertedFromValue": { + "type": "string", + "description": "The monetary amount before any conversion is performed, in the currency specified by the convertedFromCurrency field. This value is required or returned only if currency conversion/localization is required. The value field contains the converted amount of this value, in the currency specified by the currency field." + }, + "currency": { + "type": "string", + "description": "The three-letter ISO 4217 code representing the currency of the amount in the value field. If currency conversion/localization is required, this is the post-conversion currency of the amount in the value field.

Default: The currency of the authenticated user's country. For implementation help, refer to eBay API documentation" + }, + "value": { + "type": "string", + "description": "The monetary amount in the currency specified by the currency field. If currency conversion/localization is required, this value is the converted amount, and the convertedFromValue field contains the amount in the original currency." + } + }, + "description": "This type defines the monetary value of an amount. It can provide the amount in both the currency used on the eBay site where an item is being offered and the conversion of that value into another currency, if applicable." + }, + "CoreItem": { + "type": "object", + "properties": { + "additionalImages": { + "type": "array", + "description": "An array of containers with the URLs for the images that are in addition to the primary image. The primary image is returned in the image.imageUrl field.", + "items": { + "$ref": "#/components/schemas/Image" + } + }, + "adultOnly": { + "type": "boolean", + "description": "This indicates if the item is for adults only. For more information about adult-only items on eBay, see Adult items policy for sellers and Adult-Only items on eBay for buyers." + }, + "ageGroup": { + "type": "string", + "description": "(Primary Item Aspect) The age group for which the product is recommended. For example, newborn, infant, toddler, kids, adult, etc. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "authenticityGuarantee": { + "description": "A container for information about whether an item is qualified for the Authenticity Guarantee program.

Under the Authenticity Guarantee program, the seller ships a purchased item to a a third-party authenticator who inspects the item and provides an authentication card for it before the item is shipped to the buyer. If the buyer returns the item, the authenticator first verifies that it is the same item in the same condition before returning it to the seller.

Note: Refer to the Authenticity Guarantee page for more information.", + "$ref": "#/components/schemas/AuthenticityGuaranteeProgram" + }, + "authenticityVerification": { + "description": "A container for information about whether an item is from a verified seller.
", + "$ref": "#/components/schemas/AuthenticityVerificationProgram" + }, + "availableCoupons": { + "type": "array", + "description": "A list of available coupons for the item.", + "items": { + "$ref": "#/components/schemas/AvailableCoupon" + } + }, + "bidCount": { + "type": "integer", + "description": "This integer value indicates the total number of bids that have been placed against an auction item. This field is returned only for auction items.", + "format": "int32" + }, + "brand": { + "type": "string", + "description": "(Primary Item Aspect) The name brand of the item, such as Nike, Apple, etc. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "buyingOptions": { + "type": "array", + "description": "A comma separated list of all the purchase options available for the item. The values returned are:Code so that your app gracefully handles any future changes to this list.", + "items": { + "type": "string" + } + }, + "categoryId": { + "type": "string", + "description": "The ID of the leaf category for this item. A leaf category is the lowest level in that category and has no children." + }, + "categoryPath": { + "type": "string", + "description": "Text that shows the category hierarchy of the item. For example: Computers/Tablets & Networking, Laptops & Netbooks, PC Laptops & Netbooks" + }, + "color": { + "type": "string", + "description": "(Primary Item Aspect) Text describing the color of the item. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "charityTerms": { + "description": "This container returns any applicable charity information associated with the specified item.

This container is only returned if the fieldgroups query parameter is set to CHARITY_DETAILS.", + "$ref": "#/components/schemas/ItemCharityTerms" + }, + "condition": { + "type": "string", + "description": "A short text description for the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list." + }, + "conditionDescription": { + "type": "string", + "description": "A full text description for the condition of the item. This field elaborates on the value specified in the condition field and provides full details for the condition of the item." + }, + "conditionId": { + "type": "string", + "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list.
" + }, + "currentBidPrice": { + "description": "The container that returns the current highest bid for an auction item. The value (string) field shows the dollar value of the current highest bid, and the currency (3-digit ISO code) field denotes the currency associated with that bid value. This container will only be returned for auction items.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "description": { + "type": "string", + "description": "The full description of the item that was created by the seller. This can be plain text or rich content and can be very large." + }, + "eligibleForInlineCheckout": { + "type": "boolean", + "description": "This field indicates if the item can be purchased using the Buy Order API. " + }, + "enabledForGuestCheckout": { + "type": "boolean", + "description": "This indicates if the item can be purchased using Guest Checkout in the Order API. You can use this flag to exclude items from your inventory that are not eligible for Guest Checkout, such as gift cards." + }, + "energyEfficiencyClass": { + "type": "string", + "description": "This indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating.

The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models.

When the manufacturer's specifications for this item are available, the link to this information is returned in the productFicheWebUrl field." + }, + "epid": { + "type": "string", + "description": "An EPID is the eBay product identifier of a product from the eBay product catalog. This indicates the product in which the item belongs." + }, + "estimatedAvailabilities": { + "type": "array", + "description": "The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.", + "items": { + "$ref": "#/components/schemas/EstimatedAvailability" + } + }, + "gender": { + "type": "string", + "description": "(Primary Item Aspect) The gender for the item. This is used for items that could vary by gender, such as clothing. For example: male, female, or unisex. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "gtin": { + "type": "string", + "description": "The unique Global Trade Item number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value." + }, + "image": { + "description": "The URL of the primary image of the item. The other images of the item are returned in the additionalImages container.", + "$ref": "#/components/schemas/Image" + }, + "immediatePay": { + "type": "boolean", + "description": "A value of true indicates that the seller requires immediate payment from the buyer when purchasing an item.

Note: It is possible for this field to be set to true, but not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyers' purchases that involve the Best Offer feature, or for offline transactions." + }, + "inferredEpid": { + "type": "string", + "description": "The ePID (eBay Product ID of a product from the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data.

If the seller provided an ePID for the item, the seller's value is returned in the epid field.

Note: This field is returned only for authorized Partners." + }, + "itemAffiliateWebUrl": { + "type": "string", + "description": "The URL to the View Item page of the item which includes the affiliate tracking ID.

Note: In order to receive commissions on sales, eBay Partner Network affiliates must use this URL to forward buyers to the listing on the eBay marketplace.
The itemAffiliateWebUrl is only returned if:" + }, + "itemCreationDate": { + "type": "string", + "description": "A timestamp that indicates the date and time an item listing was created.

This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which can be converted into the local time of the buyer." + }, + "itemEndDate": { + "type": "string", + "description": "A timestamp that indicates the date and time an auction listing will end.

If a fixed-price listing has ended, this field indicates the date and time the listing ended.

This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which can be converted into the local time of the buyer." + }, + "itemId": { + "type": "string", + "description": "The unique RESTful identifier of the item." + }, + "itemLocation": { + "description": "The physical location of the item.", + "$ref": "#/components/schemas/Address" + }, + "itemWebUrl": { + "type": "string", + "description": "The URL of the View Item page of the item. This enables you to include a \"Report Item on eBay\" link that takes the buyer to the View Item page on eBay. From there they can report any issues regarding this item to eBay." + }, + "legacyItemId": { + "type": "string", + "description": "The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page." + }, + "localizedAspects": { + "type": "array", + "description": "An array of containers that show the complete list of the aspect name/value pairs that describe the variation of the item.", + "items": { + "$ref": "#/components/schemas/TypedNameValue" + } + }, + "lotSize": { + "type": "integer", + "description": "The number of items in a lot. In other words, a lot size is the number of items that are being sold together.

A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below.

Item Lot Definition Lot Size
A package of 24 AA batteries A box of 10 packages 10
A P235/75-15 Goodyear tire 4 tires 4
Fashion Jewelry Rings Package of 100 assorted rings 100


Note: Lots are not supported in all categories. ", + "format": "int32" + }, + "marketingPrice": { + "description": "The original price and the discount amount and percentage.", + "$ref": "#/components/schemas/MarketingPrice" + }, + "material": { + "type": "string", + "description": "(Primary Item Aspect) Text describing what the item is made of. For example, silk. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "minimumPriceToBid": { + "description": "The minimum price of the next bid, which means to place a bid it must be equal to or greater than this amount. If the auction hasn't received any bids, the minimum bid price is the same as the starting bid. Otherwise, the minimum bid price is equal to the current bid plus the bid increment. For details about bid increments, see Automatic bidding.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "mpn": { + "type": "string", + "description": "The manufacturer's part number, which is a unique number that identifies a specific product. To identify the product, this is always used along with brand." + }, + "pattern": { + "type": "string", + "description": "(Primary Item Aspect) Text describing the pattern used on the item. For example, paisley. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "paymentMethods": { + "type": "array", + "description": "The payment methods for the item, including the payment method types, brands, and instructions for the buyer.", + "items": { + "$ref": "#/components/schemas/PaymentMethod" + } + }, + "price": { + "description": "The cost of just the item. This amount does not include any adjustments such as discounts or shipping costs.

Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "priceDisplayCondition": { + "type": "string", + "description": "Indicates when in the buying flow the item's price can appear for minimum advertised price (MAP) items, which is the lowest price a retailer can advertise/show for this item. For implementation help, refer to eBay API documentation" + }, + "primaryItemGroup": { + "description": "The container that returns details of a primary item group (parent ID of an item group). An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

When an item group is created, one of the item variations, such as the red shirt size L, is chosen as the \"parent\". All the other items in the group are the children, such as the blue shirt size L, red shirt size M, etc.

Note: This container is returned if the item_id in the request is for an item group (items with variations, such as color and size). This container is also returned on a request for item_group_ids.", + "$ref": "#/components/schemas/ItemGroupSummary" + }, + "primaryProductReviewRating": { + "description": "The container that returns the product rating details, such as review count, rating histogram, and average rating.", + "$ref": "#/components/schemas/ReviewRating" + }, + "priorityListing": { + "type": "boolean", + "description": "This field is returned as true if the listing is part of a Promoted Listing campaign. Promoted Listings are available to Above Standard and Top Rated sellers with recent sales activity.

For more information, see Promoted Listings." + }, + "product": { + "description": "The container that returns the product information of the item.", + "$ref": "#/components/schemas/Product" + }, + "productFicheWebUrl": { + "type": "string", + "description": "The URL of a page containing the manufacturer's specification of this item, which helps buyers make a purchasing decision. This information is available only for items that include the European energy efficiency rating (EEK) but is not available for all items with an EEK rating and is returned only if this information is available. The EEK rating of the item is returned in the energyEfficiencyClass field." + }, + "qualifiedPrograms": { + "type": "array", + "description": "An array of the qualified programs available for the item, such as EBAY_PLUS, AUTHENTICITY_GUARANTEE, and AUTHENTICITY_VERIFICATION.

eBay Plus is a premium account option for buyers, which provides benefits such as fast free domestic shipping and free returns on selected items. Top-Rated eBay sellers must opt in to eBay Plus to be able to offer the program on qualifying listings. Sellers must commit to next-day delivery of those items.

Note: eBay Plus is only available as a listing feature on the eBay Australia marketplace.

The eBay Authenticity Guarantee program enables third-party authenticators to perform authentication verification inspections on items such as watches and sneakers.", + "items": { + "type": "string" + } + }, + "quantityLimitPerBuyer": { + "type": "integer", + "description": "The maximum number for a specific item that one buyer can purchase.", + "format": "int32" + }, + "reservePriceMet": { + "type": "boolean", + "description": "This indicates if the reserve price of the item has been met. A reserve price is set by the seller and is the minimum amount the seller is willing to sell the item for.

If the highest bid is not equal to or higher than the reserve price when the auction ends, the listing ends and the item is not sold.

Note: This is returned only for auctions that have a reserve price.

" + }, + "returnTerms": { + "description": "The container that returns an overview of the seller's return policy.", + "$ref": "#/components/schemas/ItemReturnTerms" + }, + "seller": { + "description": "The container that returns basic and detailed about the seller of the item, such as name, feedback score, and contact information.", + "$ref": "#/components/schemas/SellerDetail" + }, + "sellerItemRevision": { + "type": "string", + "description": "An identifier generated/incremented when a seller revises the item. There are two types of item revisions: This ID is changed only when the seller makes a change to the item. This means you cannot use this value to determine if the quantity has changed." + }, + "shippingOptions": { + "type": "array", + "description": "An array of shipping options containers that have the details about cost, carrier, etc. of one shipping option.

Note: For items with calculated shipping, this array is only returned if the X-EBAY-C-ENDUSERCTX header is supplied. ", + "items": { + "$ref": "#/components/schemas/ShippingOption" + } + }, + "shipToLocations": { + "description": "The container that returns the geographic regions to be included and excluded that define where the item can be shipped.", + "$ref": "#/components/schemas/ShipToLocations" + }, + "shortDescription": { + "type": "string", + "description": "This text string is derived from the item condition and the item aspects (such as size, color, capacity, model, brand, etc.)." + }, + "size": { + "type": "string", + "description": "(Primary Item Aspect) The size of the item. For example, '7' for a size 7 shoe. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "sizeSystem": { + "type": "string", + "description": "(Primary Item Aspect) The sizing system of the country. All the item aspects, including this aspect, are returned in the localizedAspects container.

Valid Values:
AU (Australia),
BR (Brazil),
CN (China),
DE (Germany),
EU (European Union),
FR (France),
IT (Italy),
JP (Japan),
MX (Mexico),
US (USA),
UK (United Kingdom)

Code so that your app gracefully handles any future changes to this list. " + }, + "sizeType": { + "type": "string", + "description": "(Primary Item Aspect) Text describing a size group in which the item would be included, such as regular, petite, plus, big-and-tall or maternity. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "subtitle": { + "type": "string", + "description": "A subtitle is optional and allows the seller to provide more information about the product, possibly including keywords that may assist with search results." + }, + "taxes": { + "type": "array", + "description": "The container for the tax information for the item.", + "items": { + "$ref": "#/components/schemas/Taxes" + } + }, + "title": { + "type": "string", + "description": "The seller-created title of the item.

Maximum Length: 80 characters" + }, + "topRatedBuyingExperience": { + "type": "boolean", + "description": "This indicates if the item a top-rated plus item. There are three benefits of a top-rated plus item: a minimum 30-day money-back return policy, shipping the items in 1 business day with tracking provided, and the added comfort of knowing this item is from experienced sellers with the highest buyer ratings. See the Top Rated Plus Items and Becoming a Top Rated Seller and qualifying for Top Rated Plus help topics for more information." + }, + "tyreLabelImageUrl": { + "type": "string", + "description": "The URL to the image that shows the information on the tyre label." + }, + "uniqueBidderCount": { + "type": "integer", + "description": "This integer value indicates the number of different eBay users who have placed one or more bids on an auction item. This field is only applicable to auction items.", + "format": "int32" + }, + "unitPrice": { + "description": "This is the price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "unitPricingMeasure": { + "type": "string", + "description": "The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" + } + }, + "description": "An array of containers with the details for all of the items returned." + }, + "CouponConstraint": { + "type": "object", + "properties": { + "expirationDate": { + "type": "string", + "description": "This timestamp provides the expiration date of the coded coupon." + } + }, + "description": "This type is used to provide the expiration date of a coded coupon." + }, + "EconomicOperator": { + "type": "object", + "properties": { + "companyName": { + "type": "string", + "description": "The company name of the registered Economic Operator." + }, + "addressLine1": { + "type": "string", + "description": "The first line of the registered Economic Operator's street address." + }, + "addressLine2": { + "type": "string", + "description": "The second line, if any, of the registered Economic Operator's street address. This field is not always used, but can be used for 'Suite Number' or 'Apt Number'." + }, + "city": { + "type": "string", + "description": "The city of the registered Economic Operator's street address." + }, + "stateOrProvince": { + "type": "string", + "description": "The state or province of the registered Economic Operator's street address." + }, + "postalCode": { + "type": "string", + "description": "The postal code of the registered Economic Operator's street address." + }, + "country": { + "type": "string", + "description": "The two-letter ISO 3166 standard abbreviation of the country of the registered Economic Operator's address." + }, + "phone": { + "type": "string", + "description": "The registered Economic Operator's business phone number." + }, + "email": { + "type": "string", + "description": "The registered Economic Operator's business email address." + } + }, + "description": "The type that provides required Economic Operator information about the manufacturer and/or supplier of the item." + }, + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "This string value indicates the error category. There are three categories of errors: request errors, application errors, and system errors." + }, + "domain": { + "type": "string", + "description": "The name of the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique code that identifies the particular error or warning that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of reference IDs that identify the specific request elements most closely associated to the error or warning, if any.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A detailed description of the condition that caused the error or warning, and information on what to do to correct the problem." + }, + "message": { + "type": "string", + "description": "A description of the condition that caused the error or warning." + }, + "outputRefIds": { + "type": "array", + "description": "An array of reference IDs that identify the specific response elements most closely associated to the error or warning, if any.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of warning and error messages that return one or more variables contextual information about the error or warning. This is often the field or value that triggered the error or warning.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "The name of the subdomain in which the error or warning occurred." + } + }, + "description": "The type that defines the fields that can be returned in an error." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This is the name of input field that caused an issue with the call request." + }, + "value": { + "type": "string", + "description": "This is the actual value that was passed in for the element specified in the name field." + } + }, + "description": "An array of name/value pairs that provide details regarding the error." + }, + "EstimatedAvailability": { + "type": "object", + "properties": { + "availabilityThreshold": { + "type": "integer", + "description": "This field is return only when the seller sets their 'display item quantity' preference to Display \"More than 10 available\" in your listing (if applicable). The value of this field will be \"10\", which is the threshold value.

Code so that your app gracefully handles any future changes to this value.", + "format": "int32" + }, + "availabilityThresholdType": { + "type": "string", + "description": " This field is return only when the seller sets their Display Item Quantity preference to Display \"More than 10 available\" in your listing (if applicable). The value of this field will be MORE_THAN. This indicates that the seller has more than the 'quantity display preference', which is 10, in stock for this item.

The following are the display item quantity preferences the seller can set.

Code so that your app gracefully handles any future changes to these preferences. For implementation help, refer to eBay API documentation" + }, + "deliveryOptions": { + "type": "array", + "description": "An array of available delivery options.

Valid Values: SHIP_TO_HOME, SELLER_ARRANGED_LOCAL_PICKUP, IN_STORE_PICKUP, PICKUP_DROP_OFF, or DIGITAL_DELIVERY

Code so that your app gracefully handles any future changes to this list. ", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + }, + "estimatedAvailabilityStatus": { + "type": "string", + "description": "An enumeration value representing the inventory status of this item.

Note: Be sure to review the itemEndDate field to determine whether the item is available for purchase.

Valid Values: IN_STOCK, LIMITED_STOCK, or OUT_OF_STOCK

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + }, + "estimatedAvailableQuantity": { + "type": "integer", + "description": "The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.

Note: To see if a listing is available for purchase, review the itemEndDate and estimatedAvailablityStatus fields. If the item has an EndDate in the past, or the estimatedAvailabilityStatus is OUT_OF_STOCK, the item is unavailable for purchase.", + "format": "int32" + }, + "estimatedRemainingQuantity": { + "type": "integer", + "description": "The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.

Note: To see if a listing is available for purchase, review the itemEndDate and estimatedAvailablityStatus fields. If the item has an EndDate in the past, or the estimatedAvailabilityStatus is OUT_OF_STOCK, the item is unavailable for purchase.", + "format": "int32" + }, + "estimatedSoldQuantity": { + "type": "integer", + "description": "The estimated number of this item that have been sold.", + "format": "int32" + } + }, + "description": "The type that defines the fields for the estimated item availability information." + }, + "HazardPictogram": { + "type": "object", + "properties": { + "pictogramDescription": { + "type": "string", + "description": "The description of the hazard pictogram, such as Flammable." + }, + "pictogramId": { + "type": "string", + "description": "The ID of the hazard pictogram." + }, + "pictogramUrl": { + "type": "string", + "description": "The URL of the hazard pictogram." + } + }, + "description": "A type that defines the pictogram for the type of hazard that a hazardous material represents." + }, + "HazardStatement": { + "type": "object", + "properties": { + "statementDescription": { + "type": "string", + "description": "A description of the nature of the hazard, such as whether the material is toxic if swallowed." + }, + "statementId": { + "type": "string", + "description": "The ID of the hazard statement." + } + }, + "description": "A type that defines the hazard statement for a hazardous material." + }, + "HazardousMaterialsLabels": { + "type": "object", + "properties": { + "additionalInformation": { + "type": "string", + "description": "Additional information about the hazardous materials labels." + }, + "pictograms": { + "type": "array", + "description": "An array of hazard pictograms that apply to the item.", + "items": { + "$ref": "#/components/schemas/HazardPictogram" + } + }, + "signalWord": { + "type": "string", + "description": "The signal word for the hazardous materials label (such as Danger or Warning)." + }, + "signalWordId": { + "type": "string", + "description": "The ID of the signal word for the hazardous materials label." + }, + "statements": { + "type": "array", + "description": "An array of hazard statements for the item.", + "items": { + "$ref": "#/components/schemas/HazardStatement" + } + } + }, + "description": "A type that defines the hazardous materials labels for an item." + }, + "Image": { + "type": "object", + "properties": { + "height": { + "type": "integer", + "description": "Reserved for future use.", + "format": "int32" + }, + "imageUrl": { + "type": "string", + "description": "The URL of the image." + }, + "width": { + "type": "integer", + "description": "Reserved for future use.", + "format": "int32" + } + }, + "description": "Type that defines the details of an image, such as size and image URL. Currently, only imageUrl is populated. The height and width are reserved for future use." + }, + "Item": { + "type": "object", + "properties": { + "additionalImages": { + "type": "array", + "description": "An array of containers with the URLs for the images that are in addition to the primary image. The primary image is returned in the image.imageUrl field.", + "items": { + "$ref": "#/components/schemas/Image" + } + }, + "addonServices": { + "type": "array", + "description": "A list of add-on services that may be selected for the item or that may apply automatically.", + "items": { + "$ref": "#/components/schemas/AddonService" + } + }, + "adultOnly": { + "type": "boolean", + "description": "This indicates if the item is for adults only. For more information about adult-only items on eBay, see Adult items policy for sellers and Adult-Only items on eBay for buyers." + }, + "ageGroup": { + "type": "string", + "description": "(Primary Item Aspect) The age group for which the product is recommended. For example, newborn, infant, toddler, kids, adult, etc. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "authenticityGuarantee": { + "description": "A container for information about whether an item, or the item group when returned for the getItemsByItemGroup method, is qualified for the Authenticity Guarantee program.

Note: The AUTHENTICITY_GUARANTEE value being returned by the getItemsByItemGroup method indicates that at least one item in the item group supports this program, but doesn't guarantee that the program is available to all items in the item group. To verify if the Authenticity Program is indeed available for the item that you are interested in, grab the items.itemId value for that item and use the getItem method. This method will return specific details on that particular item, including whether or not the Authenticity Guarantee Program is available for the item. Look for the qualifiedPrograms array and authenticityGuarantee container in the getItem response for this information.

Under the Authenticity Guarantee program, the seller ships a purchased item to a a third-party authenticator who inspects the item and provides an authentication card for it before the item is shipped to the buyer. If the buyer returns the item, the authenticator first verifies that it is the same item in the same condition before returning it to the seller.

Note: Refer to the Authenticity Guarantee page for more information.", + "$ref": "#/components/schemas/AuthenticityGuaranteeProgram" + }, + "authenticityVerification": { + "description": "A container for information about whether an item is from a verified seller.", + "$ref": "#/components/schemas/AuthenticityVerificationProgram" + }, + "availableCoupons": { + "type": "array", + "description": "A list of available coupons for the item.

Note: The Browse API only acknowledges item-level coupons. This array will only return coupons linked with an item. Store-level coupons offered by sellers across their entire store will not be returned.", + "items": { + "$ref": "#/components/schemas/AvailableCoupon" + } + }, + "bidCount": { + "type": "integer", + "description": "This integer value indicates the total number of bids that have been placed against an auction item. This field is returned only for auction items.", + "format": "int32" + }, + "brand": { + "type": "string", + "description": "(Primary Item Aspect) The name brand of the item, such as Nike, Apple, etc. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "buyingOptions": { + "type": "array", + "description": "A comma separated list of all the purchase options available for the item. The values returned are:Code so that your app gracefully handles any future changes to this list.", + "items": { + "type": "string" + } + }, + "categoryId": { + "type": "string", + "description": "The ID of the leaf category for this item. A leaf category is the lowest level in that category and has no children." + }, + "categoryIdPath": { + "type": "string", + "description": "The IDs of every category in the item path, separated by pipe characters, starting with the top level parent category.

For example, if an item belongs to the top level category Home and Garden (category ID 11700), followed by Home Improvement (159907), Heating, Cooling and Air (69197), and Thermostats (115947), the field would return the value: 11700|159907|69197|115947." + }, + "categoryPath": { + "type": "string", + "description": "Text that shows the category hierarchy of the item. For example: Computers/Tablets & Networking, Laptops & Netbooks, PC Laptops & Netbooks" + }, + "charityTerms": { + "description": "This container returns any applicable charity information associated with the specified item.

This container is only returned if the fieldgroups query parameter is set to CHARITY_DETAILS.", + "$ref": "#/components/schemas/ItemCharityTerms" + }, + "color": { + "type": "string", + "description": "(Primary Item Aspect) Text describing the color of the item. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "condition": { + "type": "string", + "description": "A short text description for the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list." + }, + "conditionDescription": { + "type": "string", + "description": "A full text description for the condition of the item. This field elaborates on the value specified in the condition field and provides full details for the condition of the item." + }, + "conditionDescriptors": { + "type": "array", + "description": "This array is used by the seller to provide additional information about the condition of an item in a structured format. Condition descriptors are name-value attributes that indicate details about a particular condition of an item.

Note: Condition descriptors are currently only available for the following trading card categories:", + "items": { + "$ref": "#/components/schemas/ConditionDescriptor" + } + }, + "conditionId": { + "type": "string", + "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list." + }, + "currentBidPrice": { + "description": "The container that returns the current highest bid for an auction item. The value (string) field shows the dollar value of the current highest bid, and the currency (3-digit ISO code) field denotes the currency associated with that bid value. This container will only be returned for auction items.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "description": { + "type": "string", + "description": "The full description of the item that was created by the seller. This can be plain text or rich content and can be very large." + }, + "ecoParticipationFee": { + "description": "The Eco Participation fee, a fee paid by the buyer that is applied to the cost of the eventual disposal of the purchased item. The fee is remitted in full to the eco organization.

Currently, this value is required for electronic devices and furniture.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "eligibleForInlineCheckout": { + "type": "boolean", + "description": "This field indicates if the item can be purchased using the Buy Order API. " + }, + "enabledForGuestCheckout": { + "type": "boolean", + "description": "This indicates if the item can be purchased using Guest Checkout in the Order API. You can use this flag to exclude items from your inventory that are not eligible for Guest Checkout, such as gift cards." + }, + "energyEfficiencyClass": { + "type": "string", + "description": "This indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating.

The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models.

When the manufacturer's specifications for this item are available, the link to this information is returned in the productFicheWebUrl field." + }, + "epid": { + "type": "string", + "description": "An EPID is the eBay product identifier of a product from the eBay product catalog. This indicates the product in which the item belongs." + }, + "estimatedAvailabilities": { + "type": "array", + "description": "The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.", + "items": { + "$ref": "#/components/schemas/EstimatedAvailability" + } + }, + "gender": { + "type": "string", + "description": "(Primary Item Aspect) The gender for the item. This is used for items that could vary by gender, such as clothing. For example: male, female, or unisex. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "gtin": { + "type": "string", + "description": "The unique Global Trade Item number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value." + }, + "hazardousMaterialsLabels": { + "description": "Hazardous materials labels for the item.", + "$ref": "#/components/schemas/HazardousMaterialsLabels" + }, + "image": { + "description": "The URL of the primary image of the item. The other images of the item are returned in the additionalImages container.", + "$ref": "#/components/schemas/Image" + }, + "immediatePay": { + "type": "boolean", + "description": "A value of true indicates that the seller requires immediate payment from the buyer when purchasing an item.

Note: It is possible for this field to be set to true, but not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyers purchases that involve the Best Offer feature, or for offline transactions." + }, + "inferredEpid": { + "type": "string", + "description": "The ePID (eBay Product ID of a product from the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data.

If the seller provided an ePID for the item, the seller's value is returned in the epid field.

Note: This field is returned only for authorized Partners." + }, + "itemAffiliateWebUrl": { + "type": "string", + "description": "The URL to the View Item page of the item which includes the affiliate tracking ID.

Note: In order to receive commissions on sales, eBay Partner Network affiliates must use this URL to forward buyers to the listing on the eBay marketplace.
The itemAffiliateWebUrl is only returned if:" + }, + "itemCreationDate": { + "type": "string", + "description": "A timestamp that indicates the date and time an item listing was created.

This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which can be converted into the local time of the buyer." + }, + "itemEndDate": { + "type": "string", + "description": "A timestamp that indicates the date and time an auction listing will end.

If a fixed-price listing has ended, this field indicates the date and time the listing ended.

This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which can be converted into the local time of the buyer." + }, + "itemId": { + "type": "string", + "description": "The unique RESTful identifier of the item." + }, + "itemLocation": { + "description": "The physical location of the item.", + "$ref": "#/components/schemas/Address" + }, + "itemWebUrl": { + "type": "string", + "description": "The URL of the View Item page of the item. This enables you to include a \"Report Item on eBay\" link that takes the buyer to the View Item page on eBay. From there they can report any issues regarding this item to eBay." + }, + "legacyItemId": { + "type": "string", + "description": "The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page." + }, + "listingMarketplaceId": { + "type": "string", + "description": "The ID of the eBay marketplace where the item is listed. For implementation help, refer to eBay API documentation" + }, + "localizedAspects": { + "type": "array", + "description": "An array of containers that show the complete list of the aspect name/value pairs that describe the variation of the item.", + "items": { + "$ref": "#/components/schemas/TypedNameValue" + } + }, + "lotSize": { + "type": "integer", + "description": "The number of items in a lot. In other words, a lot size is the number of items that are being sold together.

A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below.

Item Lot Definition Lot Size
A package of 24 AA batteries A box of 10 packages 10
A P235/75-15 Goodyear tire 4 tires 4
Fashion Jewelry Rings Package of 100 assorted rings 100


Note: Lots are not supported in all categories. ", + "format": "int32" + }, + "manufacturer": { + "description": "Contact information for the manufacturer of the product.", + "$ref": "#/components/schemas/CompanyAddress" + }, + "marketingPrice": { + "description": "The original price and the discount amount and percentage.", + "$ref": "#/components/schemas/MarketingPrice" + }, + "material": { + "type": "string", + "description": "(Primary Item Aspect) Text describing what the item is made of. For example, silk. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "minimumPriceToBid": { + "description": "The minimum price of the next bid, which means to place a bid it must be equal to or greater than this amount. If the auction hasn't received any bids, the minimum bid price is the same as the starting bid. Otherwise, the minimum bid price is equal to the current bid plus the bid increment. For details about bid increments, see Automatic bidding.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "mpn": { + "type": "string", + "description": "The manufacturer's part number, which is a unique number that identifies a specific product. To identify the product, this is always used along with brand." + }, + "pattern": { + "type": "string", + "description": "(Primary Item Aspect) Text describing the pattern used on the item. For example, paisley. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "paymentMethods": { + "type": "array", + "description": "The payment methods for the item, including the payment method types, brands, and instructions for the buyer.", + "items": { + "$ref": "#/components/schemas/PaymentMethod" + } + }, + "price": { + "description": "The cost of just the item. This amount does not include any adjustments such as discounts or shipping costs.

Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "priceDisplayCondition": { + "type": "string", + "description": "Indicates when in the buying flow the item's price can appear for minimum advertised price (MAP) items, which is the lowest price a retailer can advertise/show for this item. For implementation help, refer to eBay API documentation" + }, + "primaryItemGroup": { + "description": "The container that returns details of a primary item group (parent ID of an item group). An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

When an item group is created, one of the item variations, such as the red shirt size L, is chosen as the \"parent\". All the other items in the group are the children, such as the blue shirt size L, red shirt size M, etc.

Note: This container is returned only if the item_id in the request is for an item group (items with variations, such as color and size).", + "$ref": "#/components/schemas/ItemGroupSummary" + }, + "primaryProductReviewRating": { + "description": "The container that returns the product rating details, such as review count, rating histogram, and average rating.", + "$ref": "#/components/schemas/ReviewRating" + }, + "priorityListing": { + "type": "boolean", + "description": "This field is returned as true if the listing is part of a Promoted Listing campaign. Promoted Listings are available to Above Standard and Top Rated sellers with recent sales activity.

For more information, see Promoted Listings." + }, + "product": { + "description": "The container that returns the product information of the item.", + "$ref": "#/components/schemas/Product" + }, + "productFicheWebUrl": { + "type": "string", + "description": "The URL of a page containing the manufacturer's specification of this item, which helps buyers make a purchasing decision. This information is available only for items that include the European energy efficiency rating (EEK) but is not available for all items with an EEK rating and is returned only if this information is available. The EEK rating of the item is returned in the energyEfficiencyClass field." + }, + "productSafetyLabels": { + "description": "This container provides product safety labels which were provided by the seller, for the listing.

The getProductSafetyLabels method of the Sell Metadata API can be used to retrieve the full set of available Product Safety pictogram labels and safety statements.", + "$ref": "#/components/schemas/ProductSafetyLabels" + }, + "qualifiedPrograms": { + "type": "array", + "description": "An array of the qualified programs available for the item, or for the item group when returned for the getItemsByItemGroup method, such as EBAY_PLUS, AUTHENTICITY_GUARANTEE, and AUTHENTICITY_VERIFICATION.

Note: The AUTHENTICITY_GUARANTEE value being returned by the getItemsByItemGroup method indicates that at least one item in the item group supports this program, but doesn't guarantee that the program is available to all items in the item group. To verify if the Authenticity Program is indeed available for the item that you are interested in, grab the items.itemId value for that item and use the getItem method. This method will return specific details on that particular item, including whether or not the Authenticity Guarantee Program is available for the item. Look for the qualifiedPrograms array and authenticityGuarantee container in the getItem response for this information.

eBay Plus is a premium account option for buyers, which provides benefits such as fast free domestic shipping and free returns on selected items. Top-Rated eBay sellers must opt in to eBay Plus to be able to offer the program on qualifying listings. Sellers must commit to next-day delivery of those items.

Note: eBay Plus is only available as a listing feature on the eBay Australia marketplace.

The eBay Authenticity Guarantee program enables third-party authenticators to perform authentication verification inspections on items such as watches and sneakers.", + "items": { + "type": "string" + } + }, + "quantityLimitPerBuyer": { + "type": "integer", + "description": "The maximum number for a specific item that one buyer can purchase.", + "format": "int32" + }, + "repairScore": { + "type": "string", + "description": "A score that describes how easy it is to repair the product. Score values range from 0.1 (hardest to repair) to 10.0 (easiest), always including a single decimal place." + }, + "reservePriceMet": { + "type": "boolean", + "description": "This indicates if the reserve price of the item has been met. A reserve price is set by the seller and is the minimum amount the seller is willing to sell the item for.

If the highest bid is not equal to or higher than the reserve price when the auction ends, the listing ends and the item is not sold.

Note: This is returned only for auctions that have a reserve price.

" + }, + "responsiblePersons": { + "type": "array", + "description": "This array provides information about one or more EU-based Responsible Persons or entities associated with the listing.", + "items": { + "$ref": "#/components/schemas/ResponsiblePerson" + } + }, + "returnTerms": { + "description": "The container that returns an overview of the seller's return policy.", + "$ref": "#/components/schemas/ItemReturnTerms" + }, + "seller": { + "description": "The container that returns basic and detailed about the seller of the item, such as name, feedback score, and contact information.", + "$ref": "#/components/schemas/SellerDetail" + }, + "sellerCustomPolicies": { + "type": "array", + "description": "A list of the custom policies that are applied to a listing.", + "items": { + "$ref": "#/components/schemas/SellerCustomPolicy" + } + }, + "sellerItemRevision": { + "type": "string", + "description": "An identifier generated/incremented when a seller revises the item. There are two types of item revisions: This ID is changed only when the seller makes a change to the item. This means you cannot use this value to determine if the quantity has changed." + }, + "shippingOptions": { + "type": "array", + "description": "An array of shipping options containers that have the details about cost, carrier, etc. of one shipping option.

Note: For items with calculated shipping, this array is only returned if the X-EBAY-C-ENDUSERCTX header is supplied. ", + "items": { + "$ref": "#/components/schemas/ShippingOption" + } + }, + "shipToLocations": { + "description": "The container that returns the geographic regions to be included and excluded that define where the item can be shipped.", + "$ref": "#/components/schemas/ShipToLocations" + }, + "shortDescription": { + "type": "string", + "description": "This text string is derived from the item condition and the item aspects (such as size, color, capacity, model, brand, etc.)." + }, + "size": { + "type": "string", + "description": "(Primary Item Aspect) The size of the item. For example, '7' for a size 7 shoe. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "sizeSystem": { + "type": "string", + "description": "(Primary Item Aspect) The sizing system of the country. All the item aspects, including this aspect, are returned in the localizedAspects container.

Valid Values:
AU (Australia),
BR (Brazil),
CN (China),
DE (Germany),
EU (European Union),
FR (France),
IT (Italy),
JP (Japan),
MX (Mexico),
US (USA),
UK (United Kingdom)

Code so that your app gracefully handles any future changes to this list. " + }, + "sizeType": { + "type": "string", + "description": "(Primary Item Aspect) Text describing a size group in which the item would be included, such as regular, petite, plus, big-and-tall or maternity. All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "subtitle": { + "type": "string", + "description": "A subtitle is optional and allows the seller to provide more information about the product, possibly including keywords that may assist with search results." + }, + "taxes": { + "type": "array", + "description": "The container for the tax information for the item.", + "items": { + "$ref": "#/components/schemas/Taxes" + } + }, + "title": { + "type": "string", + "description": "The seller-created title of the item.

Maximum Length: 80 characters" + }, + "topRatedBuyingExperience": { + "type": "boolean", + "description": "This indicates if the item a top-rated plus item. There are three benefits of a top-rated plus item: a minimum 30-day money-back return policy, shipping the items in 1 business day with tracking provided, and the added comfort of knowing this item is from experienced sellers with the highest buyer ratings. See the Top Rated Plus Items and Becoming a Top Rated Seller and qualifying for Top Rated Plus help topics for more information." + }, + "tyreLabelImageUrl": { + "type": "string", + "description": "The URL to the image that shows the information on the tyre label." + }, + "uniqueBidderCount": { + "type": "integer", + "description": "This integer value indicates the number of different eBay users who have placed one or more bids on an auction item. This field is only applicable to auction items.", + "format": "int32" + }, + "unitPrice": { + "description": "This is the price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "unitPricingMeasure": { + "type": "string", + "description": "The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" + }, + "warnings": { + "type": "array", + "description": "An array of warning messages. These types of errors do not prevent the method from executing but should be checked.", + "items": { + "$ref": "#/components/schemas/Error" + } + }, + "watchCount": { + "type": "integer", + "description": "The number of users that have added the item to their watch list.

Note: This field is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to Watch Count data in the Browse API.", + "format": "int32" + } + }, + "description": "The details of an item that can be purchased." + }, + "ItemCharityTerms": { + "type": "object", + "properties": { + "charityOrgId": { + "type": "string", + "description": "The eBay-assigned unique identifier of the charitable organization that will receive a percentage of the sales proceeds from the item." + }, + "donationPercentage": { + "type": "number", + "description": "The percentage of the purchase price of the item that the charitable organization (identified in the charityOrgId field) will receive for each sale." + }, + "LogoImage": { + "description": "The details of the charity's logo image, such as the size and URL.

Note: Currently, only the imageUrl is populated.", + "$ref": "#/components/schemas/Image" + }, + "name": { + "type": "string", + "description": "The name of the charity organization." + }, + "website": { + "type": "string", + "description": "The URL to the charity's eBay page." + } + }, + "description": "This type defines the fields for any applicable charity information associated with an item." + }, + "ItemGroup": { + "type": "object", + "properties": { + "commonDescriptions": { + "type": "array", + "description": "An array of containers for a description and the item IDs of all the items that have this exact description. Often the item variations within an item group all have the same description. Instead of repeating this description in the item details of each item, a description that is shared by at least one other item is returned in this container. If the description is unique, it is returned in the items.description field.", + "items": { + "$ref": "#/components/schemas/CommonDescriptions" + } + }, + "items": { + "type": "array", + "description": "An array of containers for all the item variation details, excluding the description.", + "items": { + "$ref": "#/components/schemas/Item" + } + }, + "warnings": { + "type": "array", + "description": "An array of warning messages. These types of errors do not prevent the method from executing but should be checked.", + "items": { + "$ref": "#/components/schemas/Error" + } + } + }, + "description": "The type that defines the fields for the item details." + }, + "ItemGroupSummary": { + "type": "object", + "properties": { + "itemGroupAdditionalImages": { + "type": "array", + "description": "An array of containers with the URLs for images that are in addition to the primary image of the item group. The primary image is returned in the itemGroupImage field.", + "items": { + "$ref": "#/components/schemas/Image" + } + }, + "itemGroupHref": { + "type": "string", + "description": "The HATEOAS reference of the parent page of the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. " + }, + "itemGroupId": { + "type": "string", + "description": "The unique identifier for the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. " + }, + "itemGroupImage": { + "description": "The URL of the primary image of the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. ", + "$ref": "#/components/schemas/Image" + }, + "itemGroupTitle": { + "type": "string", + "description": "The title of the item that appears on the item group page. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. " + }, + "itemGroupType": { + "type": "string", + "description": "An enumeration value that indicates the type of the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. For implementation help, refer to eBay API documentation" + } + }, + "description": "The type that defines the fields for the details of each item in an item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. When an item group is created, one of the item variations, such as the red shirt size L, is chosen as the \"parent\". All the other items in the group are the children, such as the blue shirt size L, red shirt size M, etc.

Note: This container is returned only if the item_id in the request is an item group (parent ID of an item with variations)." + }, + "ItemLocationImpl": { + "type": "object", + "properties": { + "addressLine1": { + "type": "string", + "description": "The first line of the street address." + }, + "addressLine2": { + "type": "string", + "description": "The second line of the street address. This field may contain such values as an apartment or suite number." + }, + "city": { + "type": "string", + "description": "The city in which the item is located.

Restriction: This field is populated in the search method response only when fieldgroups = EXTENDED." + }, + "country": { + "type": "string", + "description": "The two-letter ISO 3166 standard code that indicates the country in which the item is located. For implementation help, refer to eBay API documentation" + }, + "county": { + "type": "string", + "description": "The county in which the item is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code (or zip code in US) where the item is located. Sellers set a postal code for items when they are listed. The postal code is used for calculating proximity searches. It is anonymized when returned in itemLocation.postalCode via the API." + }, + "stateOrProvince": { + "type": "string", + "description": "The state or province in which the item is located." + } + }, + "description": "The type that defines the fields for the location of an item, such as information typically used for an address, including postal code, county, state/province, street address, city, and country (2-digit ISO code)." + }, + "ItemReturnTerms": { + "type": "object", + "properties": { + "extendedHolidayReturnsOffered": { + "type": "boolean", + "description": "This indicates if the seller has enabled the Extended Holiday Returns feature on the item. Extended Holiday Returns are only applicable during the US holiday season, and gives buyers extra time to return an item. This 'extra time' will typically extend beyond what is set through the returnPeriod value." + }, + "refundMethod": { + "type": "string", + "description": "An enumeration value that indicates how a buyer is refunded when an item is returned.

Valid Values: MONEY_BACK or MERCHANDISE_CREDIT

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + }, + "restockingFeePercentage": { + "type": "string", + "description": "This string field indicates the restocking fee percentage that the seller has set on the item. Sellers have the option of setting no restocking fee for an item, or they can set the percentage to 10, 15, or 20 percent. So, if the cost of the item was $100, and the restocking percentage was 20 percent, the buyer would be charged $20 to return that item, so instead of receiving a $100 refund, they would receive $80 due to the restocking fee." + }, + "returnInstructions": { + "type": "string", + "description": "Text written by the seller describing what the buyer needs to do in order to return the item." + }, + "returnMethod": { + "type": "string", + "description": "An enumeration value that indicates the alternative methods for a full refund when an item is returned. This field is returned if the seller offers the buyer an item replacement or exchange instead of a monetary refund.

Valid Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + }, + "returnPeriod": { + "description": "The amount of time the buyer has to return the item after the purchase date.", + "$ref": "#/components/schemas/TimeDuration" + }, + "returnsAccepted": { + "type": "boolean", + "description": "Indicates whether the seller accepts returns for the item." + }, + "returnShippingCostPayer": { + "type": "string", + "description": "This enumeration value indicates whether the buyer or seller is responsible for return shipping costs when an item is returned.

Valid Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + } + }, + "description": "The type that defines the fields for the seller's return policy." + }, + "ItemSummary": { + "type": "object", + "properties": { + "additionalImages": { + "type": "array", + "description": "An array of containers with the URLs for the images that are in addition to the primary image. The primary image is returned in the image.imageUrl field.", + "items": { + "$ref": "#/components/schemas/Image" + } + }, + "adultOnly": { + "type": "boolean", + "description": "This indicates if the item is for adults only. For more information about adult-only items on eBay, refer to the Adult items policy." + }, + "availableCoupons": { + "type": "boolean", + "description": "This boolean attribute indicates if coupons are available for the item.

Note: The Browse API only acknowledges item-level coupons. This field will only be returned as true if a coupon is linked with an item. It does not recognize store-level coupons offered by sellers across their entire store." + }, + "bidCount": { + "type": "integer", + "description": "This integer value indicates the total number of bids that have been placed for an auction item. This field is only returned for auction items.", + "format": "int32" + }, + "buyingOptions": { + "type": "array", + "description": "A comma separated list of all the purchase options available for the item.

Values Returned:", + "items": { + "type": "string" + } + }, + "categories": { + "type": "array", + "description": "This array returns the name and ID of each category associated with the item, including top level, branch, and leaf categories.", + "items": { + "$ref": "#/components/schemas/Category" + } + }, + "compatibilityMatch": { + "type": "string", + "description": "This indicates how well an item matches the compatibility_filter product attributes.

Valid Values: For implementation help, refer to eBay API documentation" + }, + "compatibilityProperties": { + "type": "array", + "description": "This container returns only the product attributes that are compatible with the item. These attributes were specified in the compatibility_filter in the request. This means that if you passed in 5 attributes and only 4 are compatible, only those 4 are returned. If none of the attributes are compatible, this container is not returned.", + "items": { + "$ref": "#/components/schemas/CompatibilityProperty" + } + }, + "condition": { + "type": "string", + "description": "The text describing the condition of the item, such as New or Used. For a list of condition names, refer to Item Condition IDs and Names." + }, + "conditionId": { + "type": "string", + "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, refer to Item Condition IDs and Names." + }, + "currentBidPrice": { + "description": "This container returns the current highest bid for an auction item. The value field shows the dollar value of the current highest bid, and the currency field (3-digit ISO code) denotes the currency associated with that bid value. This field is only returned for auction items.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "distanceFromPickupLocation": { + "description": "This container returns the distance away that the item is from the pickupPostalCode value that was supplied in the method request. This container is only returned if the \"local pickup\" filter fields are used in the request.", + "$ref": "#/components/schemas/TargetLocation" + }, + "energyEfficiencyClass": { + "type": "string", + "description": "This indicates the European energy efficiency rating (EEK) of the item. Energy efficiency ratings apply to products listed by commercial vendors in electronics categories only.

Currently, this field is only applicable for the Germany site, and is returned only if the seller specifies the energy efficiency rating through item specifics at listing time. Rating values include A+++, A++, A+, A, B, C, D, E, F, and G." + }, + "epid": { + "type": "string", + "description": "An ePID is the eBay product identifier of a product from the eBay product catalog. This indicates the product in which the item belongs." + }, + "image": { + "description": "The URL to the primary image of the item.", + "$ref": "#/components/schemas/Image" + }, + "itemAffiliateWebUrl": { + "type": "string", + "description": "The URL to the View Item page of the item which includes the affiliate tracking ID.

Note: In order to receive commissions on sales, eBay Partner Network affiliates must use this URL to forward buyers to the listing on the eBay marketplace.
The itemAffiliateWebUrl is returned only if:" + }, + "itemCreationDate": { + "type": "string", + "description": "The date and time when the item listing was created. This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

This field is always returned with itemSummaries." + }, + "itemEndDate": { + "type": "string", + "description": "A timestamp that indicates the date and time a listing is scheduled to end.

This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which can be converted into the local time of the buyer." + }, + "itemGroupHref": { + "type": "string", + "description": "The HATEOAS reference of the parent page of the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

Note: This field is returned only for item groups." + }, + "itemGroupType": { + "type": "string", + "description": "The indicates the item group type. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

Currently only the SELLER_DEFINED_VARIATIONS is supported and indicates this is an item group created by the seller.

Note: This field is returned only for item groups." + }, + "itemHref": { + "type": "string", + "description": "The URI for the Browse API getItem method, which can be used to retrieve more details about items in the search results." + }, + "itemId": { + "type": "string", + "description": "The unique RESTful identifier of the item." + }, + "itemLocation": { + "description": "This container returns the location of the item. This container consists of fields you typically see for an address, including postal code, county, state/province, street address, city, and country (2-digit ISO code).", + "$ref": "#/components/schemas/ItemLocationImpl" + }, + "itemOriginDate": { + "type": "string", + "description": "The date and time when the listing was first made available. This date will be retained if an item is relisted. This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

This timestamp is used to sort the response when the sort=newlyListed parameter is used.

This field is always returned with itemSummaries." + }, + "itemWebUrl": { + "type": "string", + "description": "The URL to the View Item page of the item. This enables you to include a \"Report Item on eBay\" hyperlink that takes the buyer to the View Item page on eBay. From there they can report any issues regarding this item to eBay." + }, + "leafCategoryIds": { + "type": "array", + "description": "The leaf category IDs of the item. When the item belongs to two leaf categories, the ID values are returned in the order primary, secondary.", + "items": { + "type": "string" + } + }, + "legacyItemId": { + "type": "string", + "description": "The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page." + }, + "listingMarketplaceId": { + "type": "string", + "description": "The ID of the eBay marketplace on which the seller listed the item. For implementation help, refer to eBay API documentation" + }, + "marketingPrice": { + "description": "This container is returned if the item is eligible for a seller discount and contains the item's original price, and the seller discount amount and percentage.", + "$ref": "#/components/schemas/MarketingPrice" + }, + "pickupOptions": { + "type": "array", + "description": "This container returns the local pickup options available to the buyer. This container is returned only if the user is searching for local pickup items and set the local pickup filters in the method request.", + "items": { + "$ref": "#/components/schemas/PickupOptionSummary" + } + }, + "price": { + "description": "The price of the item after it has been converted into another currency.

The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must do one or more of the following to view VAT-inclusive pricing:Note: For more information on VAT, refer to Your VAT Obligations in the UK & EU.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "priceDisplayCondition": { + "type": "string", + "description": "Indicates when in the buying flow the item's price can appear for minimum advertised price (MAP) items, which is the lowest price a retailer can advertise/show for this item. For implementation help, refer to eBay API documentation" + }, + "priorityListing": { + "type": "boolean", + "description": "This field is returned as true if the listing is part of a Promoted Listing campaign. Promoted Listings are available to Above Standard and Top Rated sellers with recent sales activity.

Note: Priority Listing is returned only with a Best Match sort and will not be returned for other sort options." + }, + "qualifiedPrograms": { + "type": "array", + "description": "An array of the qualified programs available for the item, such as EBAY_PLUS, AUTHENTICITY_GUARANTEE, and AUTHENTICITY_VERIFICATION.

eBay Plus is a premium account option for buyers, which provides benefits such as fast, free domestic shipping and free returns on selected items. Top-Rated eBay sellers must opt in to eBay Plus to be able to offer the program on qualifying listings. Sellers must commit to next-day delivery of those items.

Note: eBay Plus is only available as a listing feature on the eBay Australia marketplace.

The eBay Authenticity Guarantee program enables third-party authenticators to perform authentication verification inspections on items such as watches and sneakers.", + "items": { + "type": "string" + } + }, + "seller": { + "description": "This container returns basic information about the seller of the item, such as name, feedback score, etc.", + "$ref": "#/components/schemas/Seller" + }, + "shippingOptions": { + "type": "array", + "description": "This container returns the shipping options available to ship the item.", + "items": { + "$ref": "#/components/schemas/ShippingOptionSummary" + } + }, + "shortDescription": { + "type": "string", + "description": "This text string is derived from the item condition and the item aspects (such as size, color, capacity, model, brand, etc.) Sometimes the title does not provide enough information but the description is too big. Surfacing the shortDescription can often provide buyers with the additional information that could help them make a buying decision.

For example:
\"title\": \"Petrel U42W FPV Drone RC Quadcopter w/HD Camera Live Video One Key Off / Landing\",
\"shortDescription\": \"1 U42W Quadcopter. Syma X5SW-V3 Wifi FPV RC Drone Quadcopter 2.4Ghz 6-Axis Gyro with Headless Mode. Syma X20 Pocket Drone 2.4Ghz Mini RC Quadcopter Headless Mode Altitude Hold. One Key Take Off / Landing function: allow beginner to easy to fly the drone without any skill.\",

Restriction: This field is returned by the search method only when fieldgroups = EXTENDED." + }, + "thumbnailImages": { + "type": "array", + "description": "An array of thumbnail images for the item.", + "items": { + "$ref": "#/components/schemas/Image" + } + }, + "title": { + "type": "string", + "description": "The seller-created title of the item.

Maximum Length: 80 characters" + }, + "topRatedBuyingExperience": { + "type": "boolean", + "description": "This indicates if the item is a top-rated plus item. There are three benefits of a top-rated plus item: a minimum 30-day money-back return policy; shipping the item in 1 business day with tracking provided; and the added comfort of knowing that this item is from an experienced seller with the highest buyer ratings. For more information, refer to Look for Top Rated Plus Items and Seller performance overview." + }, + "tyreLabelImageUrl": { + "type": "string", + "description": "The URL to the image that shows the information on the tyre label." + }, + "unitPrice": { + "description": "The price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:
\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "unitPricingMeasure": { + "type": "string", + "description": "The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.
\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" + }, + "watchCount": { + "type": "integer", + "description": "The number of users that have added the item to their watch list.

Note: This field is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields indicating that you want access to Watch Count data in the Browse API.", + "format": "int32" + } + }, + "description": "The type that defines the fields for the details of a specific item." + }, + "Items": { + "type": "object", + "properties": { + "items": { + "type": "array", + "description": "An arraylist of all the items.", + "items": { + "$ref": "#/components/schemas/CoreItem" + } + }, + "total": { + "type": "integer", + "description": "The total number of items retrieved.", + "format": "int32" + }, + "warnings": { + "type": "array", + "description": "An array of warning messages. These types of errors do not prevent the method from executing but should be checked.", + "items": { + "$ref": "#/components/schemas/Error" + } + } + }, + "description": "Container for a list of items." + }, + "LegalAddress": { + "type": "object", + "properties": { + "addressLine1": { + "type": "string", + "description": "The first line of the street address." + }, + "addressLine2": { + "type": "string", + "description": "The second line of the street address. This field is not always used, but can be used for 'Suite Number' or 'Apt Number'." + }, + "city": { + "type": "string", + "description": "The city of the address." + }, + "country": { + "type": "string", + "description": "The two-letter ISO 3166 standard code for the country of the address. For implementation help, refer to eBay API documentation" + }, + "countryName": { + "type": "string", + "description": "The name of the country of the address." + }, + "county": { + "type": "string", + "description": "The name of the county of the address." + }, + "postalCode": { + "type": "string", + "description": "The postal code of the address." + }, + "stateOrProvince": { + "type": "string", + "description": "The state or province of the address." + } + }, + "description": "Type that defines the fields for the seller's address." + }, + "MarketingPrice": { + "type": "object", + "properties": { + "discountAmount": { + "description": "This container returns the monetary amount of the seller discount.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "discountPercentage": { + "type": "string", + "description": "This field expresses the percentage of the seller discount based on the value in the originalPrice container." + }, + "originalPrice": { + "description": "This container returns the monetary amount of the item without the discount.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "priceTreatment": { + "type": "string", + "description": "Indicates the pricing treatment (discount) that was applied to the price of the item.

Note: The pricing treatment affects the way and where the discounted price can be displayed. For implementation help, refer to eBay API documentation" + } + }, + "description": "The type that defines the fields that describe a seller discount." + }, + "PaymentMethod": { + "type": "object", + "properties": { + "paymentMethodType": { + "type": "string", + "description": "The payment method type, such as credit card or cash. For implementation help, refer to eBay API documentation" + }, + "paymentMethodBrands": { + "type": "array", + "description": "The payment method brands, including the payment method brand type and logo image.", + "items": { + "$ref": "#/components/schemas/PaymentMethodBrand" + } + }, + "paymentInstructions": { + "type": "array", + "description": "The payment instructions for the buyer, such as cash in person or contact seller.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + }, + "sellerInstructions": { + "type": "array", + "description": "The seller instructions to the buyer, such as accepts credit cards or see description.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + } } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "10000": { - "domain": "API_BROWSE", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + }, + "PaymentMethodBrand": { + "type": "object", + "properties": { + "paymentMethodBrandType": { + "type": "string", + "description": "The payment method brand, such as Visa or PayPal. For implementation help, refer to eBay API documentation" + }, + "logoImage": { + "description": "The details of the logo image, such as the size and URL.

Note: Currently, only the imageUrl is populated.", + "$ref": "#/components/schemas/Image" + } } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.shopping.cart" - ] - } - ] - } - } - }, - "components": { - "schemas": { - "AddCartItemInput": { - "type": "object", - "properties": { - "itemId": { - "type": "string", - "description": "The eBay RESTful identifier of the item you want added to the cart.

RESTful Item ID Format: v1|#|#
For example:
v1|2**********2|0
v1|1**********2|4**********2

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.

Maximum number of items in a cart: 100" - }, - "quantity": { - "type": "integer", - "description": "The number of this item the buyer wants to purchase. If this value is greater than the number available, the service will change this value to the number available. If this happens, a warning is returned.

Maximum: number available", - "format": "int32" - } - }, - "description": "The type that defines the fields for the addItems request." - }, - "AdditionalProductIdentity": { - "type": "object", - "properties": { - "productIdentity": { - "type": "array", - "description": "An array of the product identifier/value pairs for the product associated with the item. This is returned if the seller has associated the eBay Product Identifier (ePID) with the item and the request has fieldgroups set to PRODUCT.

The following table shows what is returned, based on the item information provided by the seller, when the fieldgroups set to PRODUCT.

ePID Provided Product ID(s) Provided Response
No No The AdditionalProductIdentity container is not returned.
No Yes The AdditionalProductIdentity container is not returned but the product identifiers specified by the seller are returned in the localizedAspects container.
Yes No The AdditionalProductIdentity container is returned listing the product identifiers of the product.
Yes Yes The AdditionalProductIdentity container is returned listing all the product identifiers of the product and the product identifiers specified by the seller are returned in the localizedAspects container.
", - "items": { - "$ref": "#/components/schemas/ProductIdentity" - } - } - }, - "description": "The type that defines the array of product identifiers associated with the item. This container is returned if the seller has associated the eBay Product Identifier (ePID) with the item and in the request fieldgroups is set to PRODUCT." - }, - "Address": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "The first line of the street address. Note: This is conditionally returned in the itemLocation field." - }, - "addressLine2": { - "type": "string", - "description": "The second line of the street address. This field is not always used, but can be used for 'Suite Number' or 'Apt Number'." - }, - "city": { - "type": "string", - "description": "The city of the address." - }, - "country": { - "type": "string", - "description": "The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation" - }, - "county": { - "type": "string", - "description": "The county of the address." - }, - "postalCode": { - "type": "string", - "description": "The postal code (or zip code in US) code of the address. Sellers set a postal code (or zip code in US) for items when they are listed. The postal code is used for calculating proximity searches. It is anonymized when returned in itemLocation.postalCode via the API." - }, - "stateOrProvince": { - "type": "string", - "description": "The state or province of the address. Note: This is conditionally returned in the itemLocation field." - } - }, - "description": "The type that defines the fields for an address." - }, - "Amount": { - "type": "object", - "properties": { - "currency": { - "type": "string", - "description": "The list of valid currencies. Each ISO 4217 currency code includes the currency name followed by the numeric value.

For example, the Canadian Dollar code (CAD) would take the following form: Canadian Dollar, 124. For implementation help, refer to eBay API documentation" - }, - "value": { - "type": "string", - "description": "The value of the discounted amount." - } - } - }, - "Aspect": { - "type": "object", - "properties": { - "localizedName": { - "type": "string", - "description": "The text representing the name of the aspect for the name/value pair, such as Brand." - }, - "localizedValues": { - "type": "array", - "description": "The text representing the value of the aspect for the name/value pair, such as Apple.", - "items": { - "type": "string" - } - } - }, - "description": "The type that defines the fields for the name/value pairs for the aspects of the product. For example: BRAND/Apple" - }, - "AspectDistribution": { - "type": "object", - "properties": { - "aspectValueDistributions": { - "type": "array", - "description": "An array of containers for the various values of the aspect and the match count and a HATEOAS reference ( refinementHref) for this aspect.", - "items": { - "$ref": "#/components/schemas/AspectValueDistribution" - } - }, - "localizedAspectName": { - "type": "string", - "description": "The name of an aspect, such as Brand, Color, etc." - } - }, - "description": "The type that define the fields for the aspect information. Aspects are the variations of an item, such as color, size, etc." - }, - "AspectGroup": { - "type": "object", - "properties": { - "aspects": { - "type": "array", - "description": "An array of the name/value pairs for the aspects of the product. For example: BRAND/Apple", - "items": { - "$ref": "#/components/schemas/Aspect" - } - }, - "localizedGroupName": { - "type": "string", - "description": "The name of a group of aspects.

In the following example, Product Identifiers and Process are product aspect group names. Under the group name are the product aspect name/value pairs.

Product Identifiers
   Brand/Apple
   Product Family/iMac

Processor
   Processor Type/Intel
   Processor Speed/3.10

" - } - } - }, - "AspectValueDistribution": { - "type": "object", - "properties": { - "localizedAspectValue": { - "type": "string", - "description": "The value of an aspect. For example, Red is a value for the aspect Color." - }, - "matchCount": { - "type": "integer", - "description": "The number of items with this aspect.", - "format": "int32" - }, - "refinementHref": { - "type": "string", - "description": "A HATEOAS reference for this aspect." - } - }, - "description": "The container that defines the fields for the conditions refinements. This container is returned when fieldgroups is set to ASPECT_REFINEMENTS or FULL in the request." - }, - "AttributeNameValue": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the product attribute, such as Make, Model, Year, etc." - }, - "value": { - "type": "string", - "description": "The value for the name attribute, such as BMW, R1200GS, 2011, etc." - } - }, - "description": "The type the defines attribute name/value pair fields that specify a product. The type of data depends on the context. For example, if you were using this to specify a specific vehicle, the attribute names would be Make, Model, Year, etc." - }, - "AuthenticityGuaranteeProgram": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "An indication that the item is qualified for the Authenticity Guarantee program." - }, - "termsWebUrl": { - "type": "string", - "description": "The URL to the Authenticity Guarantee program terms of use." - } - }, - "description": "A type that identifies whether the item is qualified for the Authenticity Guarantee program." - }, - "AuthenticityVerificationProgram": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "An indication that the item is from a verified seller." - }, - "termsWebUrl": { - "type": "string", - "description": "The URL to the Authenticity Verification program terms of use." - } - }, - "description": "A type that identifies whether the item is from a verified seller." - }, - "AutoCorrections": { - "type": "object", - "properties": { - "q": { - "type": "string", - "description": "The automatically spell-corrected keyword from the request." - } - } - }, - "AvailableCoupon": { - "type": "object", - "properties": { - "constraint": { - "description": "The limitations or restrictions of the coupon.", - "$ref": "#/components/schemas/CouponConstraint" - }, - "discountAmount": { - "description": "The discount amount after the coupon is applied.", - "$ref": "#/components/schemas/Amount" - }, - "discountType": { - "type": "string", - "description": "The type of discount that the coupon applies. For implementation help, refer to eBay API documentation" - }, - "message": { - "type": "string", - "description": "A description of the coupon.

Note: The value returned in the termsWebUrl field should appear for all experiences when displaying coupons. The value in the availableCoupons.message field must also be included, if returned in the API response." - }, - "redemptionCode": { - "type": "string", - "description": "The coupon code." - }, - "termsWebUrl": { - "type": "string", - "description": "The URL to the coupon terms of use.

Note: The value returned in the termsWebUrl field should appear for all experiences when displaying coupons. The value in the availableCoupons.message field must also be included, if returned in the API response." - } - } - }, - "BuyingOptionDistribution": { - "type": "object", - "properties": { - "buyingOption": { - "type": "string", - "description": "The container that returns the buying option type. This will be AUCTION or FIXED_PRICE or both. For details, see buyingOptions." - }, - "matchCount": { - "type": "integer", - "description": "The number of items having this buying option.", - "format": "int32" - }, - "refinementHref": { - "type": "string", - "description": "The HATEOAS reference for this buying option." - } - }, - "description": "The container that defines the fields for the buying options refinements. This container is returned when fieldgroups is set to BUYING_OPTION_REFINEMENTS or FULL in the request." - }, - "CartItem": { - "type": "object", - "properties": { - "cartItemId": { - "type": "string", - "description": "The identifier for the item being added to the cart. This is generated when the item is added to the cart." - }, - "cartItemSubtotal": { - "description": "This is the subtotal of cost of a specific item in the cart. This does not include taxes, shipping costs, discounts, etc. It is price * quantity.", - "$ref": "#/components/schemas/Amount" - }, - "image": { - "description": "The primary image of the item. This is the image that appears on the eBay view item page for this item.", - "$ref": "#/components/schemas/Image" - }, - "itemId": { - "type": "string", - "description": "The RESTful identifier of the item. This identifier is generated when the item was listed.

RESTful Item ID Format: v1|#|#
For example:
v1|2**********2|0
v1|1**********2|4**********2" - }, - "itemWebUrl": { - "type": "string", - "description": "The URL of the eBay view item page for the item." - }, - "price": { - "description": "The cost of the item.", - "$ref": "#/components/schemas/Price" - }, - "quantity": { - "type": "integer", - "description": "The number of this item the buyer wants to purchase.", - "format": "int32" - }, - "title": { - "type": "string", - "description": "The title of the item. This can be written by the seller or come from the eBay product catalog." - } - }, - "description": "The type that defines the fields for the individual items in a cart." - }, - "Category": { - "type": "object", - "properties": { - "categoryId": { - "type": "string", - "description": "The unique identifier of the primary item category of the item, as well as the secondary item category if item was listed in two categories." - } - }, - "description": "This type is used by the categories container in the response of the search method, and contains the primary item category ID of the item, as well as the secondary item category if the item was listed in two categories." - }, - "CategoryDistribution": { - "type": "object", - "properties": { - "categoryId": { - "type": "string", - "description": "The identifier of the category." - }, - "categoryName": { - "type": "string", - "description": "The name of the category, such as Baby & Toddler Clothing." - }, - "matchCount": { - "type": "integer", - "description": "The number of items in this category.", - "format": "int32" - }, - "refinementHref": { - "type": "string", - "description": "The HATEOAS reference of this category." - } - }, - "description": "The container that defines the fields for the category refinements. This container is returned when fieldgroups is set to CATEGORY_REFINEMENTS or FULL in the request." - }, - "CommonDescriptions": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "The item description that is used by more than one of the item variations." - }, - "itemIds": { - "type": "array", - "description": "A list of item ids that have this description.", - "items": { - "type": "string" - } - } - }, - "description": "The type that defines the fields for the item ids that all use a common description. Often the item variations within an item group all have the same description. Instead of repeating this description in the item details of each item, a description that is shared by at least one other item is returned in this container. If the description is unique, it is returned in the items.description field." - }, - "CompatibilityPayload": { - "type": "object", - "properties": { - "compatibilityProperties": { - "type": "array", - "description": "An array of attribute name/value pairs used to define a specific product. For example: If you wanted to specify a specific car, one of the name/value pairs would be
\"name\" : \"Year\",
\"value\" : \"2019\"

For a list of the attributes required for cars and trucks and motorcycles see Check compatibility in the Buy Integration Guide.

", - "items": { - "$ref": "#/components/schemas/AttributeNameValue" - } - } - }, - "description": "An array of attribute name/value pairs used to define a specific product. For example: If you wanted to specify a specific car, one of the name/value pairs would be
\"name\" : \"Year\",
\"value\" : \"2019\"

For a list of the attributes required for cars and trucks and motorcycles see Check compatibility in the Buy Integration Guide.

" - }, - "CompatibilityProperty": { - "type": "object", - "properties": { - "localizedName": { - "type": "string", - "description": "The name of the product attribute that as been translated to the language of the site." - }, - "name": { - "type": "string", - "description": "The name of the product attribute, such as Make, Model, Year, etc." - }, - "value": { - "type": "string", - "description": "The value for the name attribute, such as BMW, R1200GS, 2011, etc." - } - }, - "description": "This container returns the product attribute name/value pairs that are compatible with the keyword. These attributes are submitted in the compatibility_filter request field." - }, - "CompatibilityResponse": { - "type": "object", - "properties": { - "compatibilityStatus": { - "type": "string", - "description": "An enumeration value that tells you if the item is compatible with the product.

The values are: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - }, - "warnings": { - "type": "array", - "description": "An array of warning messages. These types of errors do not prevent the method from executing but should be checked.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "The type that defines the response fields for checkCompatibility. " - }, - "ConditionDistribution": { - "type": "object", - "properties": { - "condition": { - "type": "string", - "description": "The text describing the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "conditionId": { - "type": "string", - "description": "The identifier of the condition. For example, 1000 is the identifier for NEW.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "matchCount": { - "type": "integer", - "description": "The number of items having the condition.", - "format": "int32" - }, - "refinementHref": { - "type": "string", - "description": "The HATEOAS reference of this condition." - } - }, - "description": "The container that defines the fields for the conditions refinements. This container is returned when fieldgroups is set to CONDITION_REFINEMENTS or FULL in the request." - }, - "ConvertedAmount": { - "type": "object", - "properties": { - "convertedFromCurrency": { - "type": "string", - "description": "The three-letter ISO 4217 code representing the currency of the amount in the convertedFromValue field. This value is required or returned only if currency conversion/localization is required, and represents the pre-conversion currency. For implementation help, refer to eBay API documentation" - }, - "convertedFromValue": { - "type": "string", - "description": "The monetary amount before any conversion is performed, in the currency specified by the convertedFromCurrency field. This value is required or returned only if currency conversion/localization is required. The value field contains the converted amount of this value, in the currency specified by the currency field." - }, - "currency": { - "type": "string", - "description": "The three-letter ISO 4217 code representing the currency of the amount in the value field. If currency conversion/localization is required, this is the post-conversion currency of the amount in the value field.

Default: The currency of the authenticated user's country. For implementation help, refer to eBay API documentation" - }, - "value": { - "type": "string", - "description": "The monetary amount, in the currency specified by the currency field. If currency conversion/localization is required, this value is the converted amount, and the convertedFromValue field contains the amount in the original currency. " - } - }, - "description": "This type defines the monetary value of an amount. It can provide the amount in both the currency used on the eBay site where an item is being offered and the conversion of that value into another currency, if applicable." - }, - "CoreItem": { - "type": "object", - "properties": { - "additionalImages": { - "type": "array", - "description": "An array of containers with the URLs for the images that are in addition to the primary image. The primary image is returned in the image.imageUrl field.", - "items": { - "$ref": "#/components/schemas/Image" - } - }, - "adultOnly": { - "type": "boolean", - "description": "This indicates if the item is for adults only. For more information about adult-only items on eBay, see Adult items policy for sellers and Adult-Only items on eBay for buyers." - }, - "ageGroup": { - "type": "string", - "description": "(Primary Item Aspect) The age group for which the product is recommended. For example, newborn, infant, toddler, kids, adult, etc. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "authenticityGuarantee": { - "description": "A container for information about whether an item is qualified for the Authenticity Guarantee program.

Under the Authenticity Guarantee program, the seller ships a purchased item to a a third-party authenticator who inspects the item and provides an authentication card for it before the item is shipped to the buyer. If the buyer returns the item, the authenticator first verifies that it is the same item in the same condition before returning it to the seller.

Note: Refer to the Authenticity Guarantee page for more information.", - "$ref": "#/components/schemas/AuthenticityGuaranteeProgram" - }, - "authenticityVerification": { - "description": "A container for information about whether an item is from a verified seller.", - "$ref": "#/components/schemas/AuthenticityVerificationProgram" - }, - "availableCoupons": { - "type": "array", - "description": "A list of available coupons for the item.", - "items": { - "$ref": "#/components/schemas/AvailableCoupon" - } - }, - "bidCount": { - "type": "integer", - "description": "This integer value indicates the total number of bids that have been placed against an auction item. This field is returned only for auction items.", - "format": "int32" - }, - "brand": { - "type": "string", - "description": "(Primary Item Aspect) The name brand of the item, such as Nike, Apple, etc. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "buyingOptions": { - "type": "array", - "description": "A comma separated list of all the purchase options available for the item. The values returned are: Code so that your app gracefully handles any future changes to this list.", - "items": { - "type": "string" - } - }, - "categoryId": { - "type": "string", - "description": "The ID of the leaf category for this item. A leaf category is the lowest level in that category and has no children." - }, - "categoryPath": { - "type": "string", - "description": "Text that shows the category hierarchy of the item. For example: Computers/Tablets & Networking, Laptops & Netbooks, PC Laptops & Netbooks" - }, - "color": { - "type": "string", - "description": "(Primary Item Aspect) Text describing the color of the item. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "condition": { - "type": "string", - "description": "A short text description for the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "conditionDescription": { - "type": "string", - "description": "A full text description for the condition of the item. This field elaborates on the value specified in the condition field and provides full details for the condition of the item.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "conditionId": { - "type": "string", - "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "currentBidPrice": { - "description": "The container that returns the current highest bid for an auction item. The value (string) field shows the dollar value of the current highest bid, and the currency (3-digit ISO code) field denotes the currency associated with that bid value. This container will only be returned for auction items.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "description": { - "type": "string", - "description": "The full description of the item that was created by the seller. This can be plain text or rich content and can be very large." - }, - "eligibleForInlineCheckout": { - "type": "boolean", - "description": "This field indicates if the item can be purchased using the Buy Order API. " - }, - "enabledForGuestCheckout": { - "type": "boolean", - "description": "This indicates if the item can be purchased using Guest Checkout in the Order API. You can use this flag to exclude items from your inventory that are not eligible for Guest Checkout, such as gift cards." - }, - "energyEfficiencyClass": { - "type": "string", - "description": "This indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating.

The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models.

When the manufacturer's specifications for this item are available, the link to this information is returned in the productFicheWebUrl field." - }, - "epid": { - "type": "string", - "description": "An EPID is the eBay product identifier of a product from the eBay product catalog. This indicates the product in which the item belongs." - }, - "estimatedAvailabilities": { - "type": "array", - "description": "The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.", - "items": { - "$ref": "#/components/schemas/EstimatedAvailability" - } - }, - "gender": { - "type": "string", - "description": "(Primary Item Aspect) The gender for the item. This is used for items that could vary by gender, such as clothing. For example: male, female, or unisex. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "gtin": { - "type": "string", - "description": "The unique Global Trade Item number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value." - }, - "image": { - "description": "The URL of the primary image of the item. The other images of the item are returned in the additionalImages container.", - "$ref": "#/components/schemas/Image" - }, - "inferredEpid": { - "type": "string", - "description": "The ePID (eBay Product ID of a product from the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data.

If the seller provided an ePID for the item, the seller's value is returned in the epid field.

Note: This field is returned only for authorized Partners." - }, - "itemAffiliateWebUrl": { - "type": "string", - "description": "The URL of the View Item page of the item, which includes the affiliate tracking ID. This field is only returned if the eBay partner enables affiliate tracking for the item by including the X-EBAY-C-ENDUSERCTX request header in the method.

Note: eBay Partner Network, in order to be commissioned for your sales, you must use this URL to forward your buyer to the ebay.com site. " - }, - "itemEndDate": { - "type": "string", - "description": "This timestamp indicates the date and time up to which the item can be purchased. This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: This field is only returned for auction listings." - }, - "itemId": { - "type": "string", - "description": "The unique RESTful identifier of the item." - }, - "itemLocation": { - "description": "The physical location of the item.", - "$ref": "#/components/schemas/Address" - }, - "itemWebUrl": { - "type": "string", - "description": "The URL of the View Item page of the item. This enables you to include a \"Report Item on eBay\" link that takes the buyer to the View Item page on eBay. From there they can report any issues regarding this item to eBay." - }, - "legacyItemId": { - "type": "string", - "description": "The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page." - }, - "localizedAspects": { - "type": "array", - "description": "An array of containers that show the complete list of the aspect name/value pairs that describe the variation of the item.", - "items": { - "$ref": "#/components/schemas/TypedNameValue" - } - }, - "lotSize": { - "type": "integer", - "description": "The number of items in a lot. In other words, a lot size is the number of items that are being sold together.

A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below.

Item Lot Definition Lot Size
A package of 24 AA batteries A box of 10 packages 10
A P235/75-15 Goodyear tire 4 tires 4
Fashion Jewelry Rings Package of 100 assorted rings 100


Note: Lots are not supported in all categories. ", - "format": "int32" - }, - "marketingPrice": { - "description": "The original price and the discount amount and percentage.", - "$ref": "#/components/schemas/MarketingPrice" - }, - "material": { - "type": "string", - "description": "(Primary Item Aspect) Text describing what the item is made of. For example, silk. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "minimumPriceToBid": { - "description": "The minimum price of the next bid, which means to place a bid it must to equal to or greater than this amount. If the auction hasn't received any bids, the minimum bid price is the same as the starting bid. Otherwise, the minimum bid price is equal to the current bid plus the bid increment. For details about bid increments, see Automatic bidding.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "mpn": { - "type": "string", - "description": "The manufacturer's part number, which is a unique number that identifies a specific product. To identify the product, this is always used along with brand." - }, - "pattern": { - "type": "string", - "description": "(Primary Item Aspect) Text describing the pattern used on the item. For example, paisley. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "paymentMethods": { - "type": "array", - "description": "The payment methods for the item, including the payment method types, brands, and instructions for the buyer.", - "items": { - "$ref": "#/components/schemas/PaymentMethod" - } - }, - "price": { - "description": "The cost of just the item. This amount does not include any adjustments such as discounts or shipping costs.

Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "priceDisplayCondition": { - "type": "string", - "description": "Indicates when in the buying flow the item's price can appear for minimum advertised price (MAP) items, which is the lowest price a retailer can advertise/show for this item. For implementation help, refer to eBay API documentation" - }, - "primaryItemGroup": { - "description": "The container that returns details of a primary item group (parent ID of an item group). An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

When an item group is created, one of the item variations, such as the red shirt size L, is chosen as the \"parent\". All the other items in the group are the children, such as the blue shirt size L, red shirt size M, etc.

Note: This container is returned if the item_id in the request is for an item group (items with variations, such as color and size). This container is also returned on a request for item_group_ids.", - "$ref": "#/components/schemas/ItemGroupSummary" - }, - "primaryProductReviewRating": { - "description": "The container that returns the product rating details, such as review count, rating histogram, and average rating.", - "$ref": "#/components/schemas/ReviewRating" - }, - "priorityListing": { - "type": "boolean", - "description": "This field is returned as true if the listing is part of a Promoted Listing campaign. Promoted Listings are available to Above Standard and Top Rated sellers with recent sales activity.

For more information, see Promoted Listings." - }, - "product": { - "description": "The container that returns the product information of the item.", - "$ref": "#/components/schemas/Product" - }, - "productFicheWebUrl": { - "type": "string", - "description": "The URL of a page containing the manufacturer's specification of this item, which helps buyers make a purchasing decision. This information is available only for items that include the European energy efficiency rating (EEK) but is not available for all items with an EEK rating and is returned only if this information is available. The EEK rating of the item is returned in the energyEfficiencyClass field." - }, - "qualifiedPrograms": { - "type": "array", - "description": "An array of the qualified programs available for the item, such as EBAY_PLUS, AUTHENTICITY_GUARANTEE, and AUTHENTICITY_VERIFICATION.

eBay Plus is a premium account option for buyers, which provides benefits such as fast free domestic shipping and free returns on selected items. Top-Rated eBay sellers must opt in to eBay Plus to be able to offer the program on qualifying listings. Sellers must commit to next-day delivery of those items.

Note: eBay Plus is available only to buyers in Germany, Austria, and Australia marketplaces.

The eBay Authenticity Guarantee program enables third-party authenticators to perform authentication verification inspections on items such as watches and sneakers.", - "items": { - "type": "string" - } - }, - "quantityLimitPerBuyer": { - "type": "integer", - "description": "The maximum number for a specific item that one buyer can purchase.", - "format": "int32" - }, - "reservePriceMet": { - "type": "boolean", - "description": "This indicates if the reserve price of the item has been met. A reserve price is set by the seller and is the minimum amount the seller is willing to sell the item for.

If the highest bid is not equal to or higher than the reserve price when the auction ends, the listing ends and the item is not sold.

Note: This is returned only for auctions that have a reserve price.

" - }, - "returnTerms": { - "description": "The container that returns an overview of the seller's return policy.", - "$ref": "#/components/schemas/ItemReturnTerms" - }, - "seller": { - "description": "The container that returns basic and detailed about the seller of the item, such as name, feedback score, and contact information.", - "$ref": "#/components/schemas/SellerDetail" - }, - "sellerItemRevision": { - "type": "string", - "description": "An identifier generated/incremented when a seller revises the item. There are two types of item revisions: This ID is changed only when the seller makes a change to the item. This means you cannot use this value to determine if the quantity has changed." - }, - "shippingOptions": { - "type": "array", - "description": "An array of shipping options containers that have the details about cost, carrier, etc. of one shipping option. ", - "items": { - "$ref": "#/components/schemas/ShippingOption" - } - }, - "shipToLocations": { - "description": "The container that returns the geographic regions to be included and excluded that define where the item can be shipped.", - "$ref": "#/components/schemas/ShipToLocations" - }, - "shortDescription": { - "type": "string", - "description": "This text string is derived from the item condition and the item aspects (such as size, color, capacity, model, brand, etc.)." - }, - "size": { - "type": "string", - "description": "(Primary Item Aspect) The size of the item. For example, '7' for a size 7 shoe. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "sizeSystem": { - "type": "string", - "description": "(Primary Item Aspect) The sizing system of the country. All the item aspects, including this aspect, are returned in the localizedAspects container.

Valid Values:
AU (Australia),
BR (Brazil),
CN (China),
DE (Germany),
EU (European Union),
FR (France),
IT (Italy),
JP (Japan),
MX (Mexico),
US (USA),
UK (United Kingdom)

Code so that your app gracefully handles any future changes to this list. " - }, - "sizeType": { - "type": "string", - "description": "(Primary Item Aspect) Text describing a size group in which the item would be included, such as regular, petite, plus, big-and-tall or maternity. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "subtitle": { - "type": "string", - "description": "A subtitle is optional and allows the seller to provide more information about the product, possibly including keywords that may assist with search results." - }, - "taxes": { - "type": "array", - "description": "The container for the tax information for the item.", - "items": { - "$ref": "#/components/schemas/Taxes" - } - }, - "title": { - "type": "string", - "description": "The seller-created title of the item.

Maximum Length: 80 characters" - }, - "topRatedBuyingExperience": { - "type": "boolean", - "description": "This indicates if the item a top-rated plus item. There are three benefits of a top-rated plus item; a minimum 30-day money-back return policy, shipping the items in 1 business day with tracking provided, and the added comfort of knowing this item is from experienced sellers with the highest buyer ratings. See the Top Rated Plus Items and Becoming a Top Rated Seller and qualifying for Top Rated Plus help topics for more information." - }, - "tyreLabelImageUrl": { - "type": "string", - "description": "The URL to the image that shows the information on the tyre label." - }, - "uniqueBidderCount": { - "type": "integer", - "description": "This integer value indicates the number of different eBay users who have placed one or more bids on an auction item. This field is only applicable to auction items.", - "format": "int32" - }, - "unitPrice": { - "description": "This is the price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "unitPricingMeasure": { - "type": "string", - "description": "The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" - } - }, - "description": "An array of containers with the details for all of the items returned." - }, - "CouponConstraint": { - "type": "object", - "properties": { - "expirationDate": { - "type": "string", - "description": "This timestamp provides the expiration date of the coded coupon." - } - }, - "description": "This type is used to provide the expiration date of a coded coupon." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "This string value indicates the error category. There are three categories of errors: request errors, application errors, and system errors. " - }, - "domain": { - "type": "string", - "description": "The name of the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique code that identifies the particular error or warning that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of reference IDs that identify the specific request elements most closely associated to the error or warning, if any.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A detailed description of the condition that caused the error or warning, and information on what to do to correct the problem." - }, - "message": { - "type": "string", - "description": "A description of the condition that caused the error or warning." - }, - "outputRefIds": { - "type": "array", - "description": "An array of reference IDs that identify the specific response elements most closely associated to the error or warning, if any.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of warning and error messages that return one or more variables contextual information about the error or warning. This is often the field or value that triggered the error or warning.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "The name of the subdomain in which the error or warning occurred." - } - }, - "description": "The type that defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "This is the name of input field that caused an issue with the call request." - }, - "value": { - "type": "string", - "description": "This is the actual value that was passed in for the element specified in the name field." - } - }, - "description": "An array of name/value pairs that provide details regarding the error." - }, - "EstimatedAvailability": { - "type": "object", - "properties": { - "availabilityThreshold": { - "type": "integer", - "description": "This field is return only when the seller sets their 'display item quantity' preference to Display \"More than 10 available\" in your listing (if applicable). The value of this field will be \"10\", which is the threshold value.

Code so that your app gracefully handles any future changes to this value.", - "format": "int32" - }, - "availabilityThresholdType": { - "type": "string", - "description": " This field is return only when the seller sets their Display Item Quantity preference to Display \"More than 10 available\" in your listing (if applicable). The value of this field will be MORE_THAN. This indicates that the seller has more than the 'quantity display preference', which is 10, in stock for this item.

The following are the display item quantity preferences the seller can set.

Code so that your app gracefully handles any future changes to these preferences. For implementation help, refer to eBay API documentation" - }, - "deliveryOptions": { - "type": "array", - "description": "An array of available delivery options.

Valid Values: SHIP_TO_HOME, SELLER_ARRANGED_LOCAL_PICKUP, IN_STORE_PICKUP, PICKUP_DROP_OFF, or DIGITAL_DELIVERY

Code so that your app gracefully handles any future changes to this list. ", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "estimatedAvailabilityStatus": { - "type": "string", - "description": "An enumeration value representing the inventory status of this item.

Note: Be sure to review the itemEndDate field to determine whether the item is available for purchase.

Valid Values: IN_STOCK, LIMITED_STOCK, or OUT_OF_STOCK

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - }, - "estimatedAvailableQuantity": { - "type": "integer", - "description": "The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.", - "format": "int32" - }, - "estimatedSoldQuantity": { - "type": "integer", - "description": "The estimated number of this item that have been sold.", - "format": "int32" - } - }, - "description": "The type that defines the fields for the estimated item availability information." - }, - "Image": { - "type": "object", - "properties": { - "height": { - "type": "integer", - "description": "Reserved for future use. ", - "format": "int32" - }, - "imageUrl": { - "type": "string", - "description": "The URL of the image." - }, - "width": { - "type": "integer", - "description": "Reserved for future use. ", - "format": "int32" - } - }, - "description": "Type the defines the details of an image, such as size and image URL. Currently, only imageUrl is populated. The height and width were added for future use." - }, - "Item": { - "type": "object", - "properties": { - "additionalImages": { - "type": "array", - "description": "An array of containers with the URLs for the images that are in addition to the primary image. The primary image is returned in the image.imageUrl field.", - "items": { - "$ref": "#/components/schemas/Image" - } - }, - "adultOnly": { - "type": "boolean", - "description": "This indicates if the item is for adults only. For more information about adult-only items on eBay, see Adult items policy for sellers and Adult-Only items on eBay for buyers." - }, - "ageGroup": { - "type": "string", - "description": "(Primary Item Aspect) The age group for which the product is recommended. For example, newborn, infant, toddler, kids, adult, etc. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "authenticityGuarantee": { - "description": "A container for information about whether an item is qualified for the Authenticity Guarantee program.

Under the Authenticity Guarantee program, the seller ships a purchased item to a a third-party authenticator who inspects the item and provides an authentication card for it before the item is shipped to the buyer. If the buyer returns the item, the authenticator first verifies that it is the same item in the same condition before returning it to the seller.

Note: Refer to the Authenticity Guarantee page for more information.", - "$ref": "#/components/schemas/AuthenticityGuaranteeProgram" - }, - "authenticityVerification": { - "description": "A container for information about whether an item is from a verified seller.", - "$ref": "#/components/schemas/AuthenticityVerificationProgram" - }, - "availableCoupons": { - "type": "array", - "description": "A list of available coupons for the item.", - "items": { - "$ref": "#/components/schemas/AvailableCoupon" - } - }, - "bidCount": { - "type": "integer", - "description": "This integer value indicates the total number of bids that have been placed against an auction item. This field is returned only for auction items.", - "format": "int32" - }, - "brand": { - "type": "string", - "description": "(Primary Item Aspect) The name brand of the item, such as Nike, Apple, etc. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "buyingOptions": { - "type": "array", - "description": "A comma separated list of all the purchase options available for the item. The values returned are: Code so that your app gracefully handles any future changes to this list.", - "items": { - "type": "string" - } - }, - "categoryId": { - "type": "string", - "description": "The ID of the leaf category for this item. A leaf category is the lowest level in that category and has no children." - }, - "categoryPath": { - "type": "string", - "description": "Text that shows the category hierarchy of the item. For example: Computers/Tablets & Networking, Laptops & Netbooks, PC Laptops & Netbooks" - }, - "color": { - "type": "string", - "description": "(Primary Item Aspect) Text describing the color of the item. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "condition": { - "type": "string", - "description": "A short text description for the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "conditionDescription": { - "type": "string", - "description": "A full text description for the condition of the item. This field elaborates on the value specified in the condition field and provides full details for the condition of the item.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "conditionId": { - "type": "string", - "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "currentBidPrice": { - "description": "The container that returns the current highest bid for an auction item. The value (string) field shows the dollar value of the current highest bid, and the currency (3-digit ISO code) field denotes the currency associated with that bid value. This container will only be returned for auction items.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "description": { - "type": "string", - "description": "The full description of the item that was created by the seller. This can be plain text or rich content and can be very large." - }, - "eligibleForInlineCheckout": { - "type": "boolean", - "description": "This field indicates if the item can be purchased using the Buy Order API. " - }, - "enabledForGuestCheckout": { - "type": "boolean", - "description": "This indicates if the item can be purchased using Guest Checkout in the Order API. You can use this flag to exclude items from your inventory that are not eligible for Guest Checkout, such as gift cards." - }, - "energyEfficiencyClass": { - "type": "string", - "description": "This indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating.

The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models.

When the manufacturer's specifications for this item are available, the link to this information is returned in the productFicheWebUrl field." - }, - "epid": { - "type": "string", - "description": "An EPID is the eBay product identifier of a product from the eBay product catalog. This indicates the product in which the item belongs." - }, - "estimatedAvailabilities": { - "type": "array", - "description": "The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.", - "items": { - "$ref": "#/components/schemas/EstimatedAvailability" - } - }, - "gender": { - "type": "string", - "description": "(Primary Item Aspect) The gender for the item. This is used for items that could vary by gender, such as clothing. For example: male, female, or unisex. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "gtin": { - "type": "string", - "description": "The unique Global Trade Item number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value." - }, - "image": { - "description": "The URL of the primary image of the item. The other images of the item are returned in the additionalImages container.", - "$ref": "#/components/schemas/Image" - }, - "inferredEpid": { - "type": "string", - "description": "The ePID (eBay Product ID of a product from the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data.

If the seller provided an ePID for the item, the seller's value is returned in the epid field.

Note: This field is returned only for authorized Partners." - }, - "itemAffiliateWebUrl": { - "type": "string", - "description": "The URL of the View Item page of the item, which includes the affiliate tracking ID. This field is only returned if the eBay partner enables affiliate tracking for the item by including the X-EBAY-C-ENDUSERCTX request header in the method.

Note: eBay Partner Network, in order to be commissioned for your sales, you must use this URL to forward your buyer to the ebay.com site. " - }, - "itemEndDate": { - "type": "string", - "description": "This timestamp indicates the date and time up to which the item can be purchased. This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: This field is only returned for auction listings." - }, - "itemId": { - "type": "string", - "description": "The unique RESTful identifier of the item." - }, - "itemLocation": { - "description": "The physical location of the item.", - "$ref": "#/components/schemas/Address" - }, - "itemWebUrl": { - "type": "string", - "description": "The URL of the View Item page of the item. This enables you to include a \"Report Item on eBay\" link that takes the buyer to the View Item page on eBay. From there they can report any issues regarding this item to eBay." - }, - "legacyItemId": { - "type": "string", - "description": "The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page." - }, - "localizedAspects": { - "type": "array", - "description": "An array of containers that show the complete list of the aspect name/value pairs that describe the variation of the item.", - "items": { - "$ref": "#/components/schemas/TypedNameValue" - } - }, - "lotSize": { - "type": "integer", - "description": "The number of items in a lot. In other words, a lot size is the number of items that are being sold together.

A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below.

Item Lot Definition Lot Size
A package of 24 AA batteries A box of 10 packages 10
A P235/75-15 Goodyear tire 4 tires 4
Fashion Jewelry Rings Package of 100 assorted rings 100


Note: Lots are not supported in all categories. ", - "format": "int32" - }, - "marketingPrice": { - "description": "The original price and the discount amount and percentage.", - "$ref": "#/components/schemas/MarketingPrice" - }, - "material": { - "type": "string", - "description": "(Primary Item Aspect) Text describing what the item is made of. For example, silk. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "minimumPriceToBid": { - "description": "The minimum price of the next bid, which means to place a bid it must to equal to or greater than this amount. If the auction hasn't received any bids, the minimum bid price is the same as the starting bid. Otherwise, the minimum bid price is equal to the current bid plus the bid increment. For details about bid increments, see Automatic bidding.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "mpn": { - "type": "string", - "description": "The manufacturer's part number, which is a unique number that identifies a specific product. To identify the product, this is always used along with brand." - }, - "pattern": { - "type": "string", - "description": "(Primary Item Aspect) Text describing the pattern used on the item. For example, paisley. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "paymentMethods": { - "type": "array", - "description": "The payment methods for the item, including the payment method types, brands, and instructions for the buyer.", - "items": { - "$ref": "#/components/schemas/PaymentMethod" - } - }, - "price": { - "description": "The cost of just the item. This amount does not include any adjustments such as discounts or shipping costs.

Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "priceDisplayCondition": { - "type": "string", - "description": "Indicates when in the buying flow the item's price can appear for minimum advertised price (MAP) items, which is the lowest price a retailer can advertise/show for this item. For implementation help, refer to eBay API documentation" - }, - "primaryItemGroup": { - "description": "The container that returns details of a primary item group (parent ID of an item group). An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

When an item group is created, one of the item variations, such as the red shirt size L, is chosen as the \"parent\". All the other items in the group are the children, such as the blue shirt size L, red shirt size M, etc.

Note: This container is returned only if the item_id in the request is for an item group (items with variations, such as color and size).", - "$ref": "#/components/schemas/ItemGroupSummary" - }, - "primaryProductReviewRating": { - "description": "The container that returns the product rating details, such as review count, rating histogram, and average rating.", - "$ref": "#/components/schemas/ReviewRating" - }, - "priorityListing": { - "type": "boolean", - "description": "This field is returned as true if the listing is part of a Promoted Listing campaign. Promoted Listings are available to Above Standard and Top Rated sellers with recent sales activity.

For more information, see Promoted Listings." - }, - "product": { - "description": "The container that returns the product information of the item.", - "$ref": "#/components/schemas/Product" - }, - "productFicheWebUrl": { - "type": "string", - "description": "The URL of a page containing the manufacturer's specification of this item, which helps buyers make a purchasing decision. This information is available only for items that include the European energy efficiency rating (EEK) but is not available for all items with an EEK rating and is returned only if this information is available. The EEK rating of the item is returned in the energyEfficiencyClass field." - }, - "qualifiedPrograms": { - "type": "array", - "description": "An array of the qualified programs available for the item, such as EBAY_PLUS, AUTHENTICITY_GUARANTEE, and AUTHENTICITY_VERIFICATION.

Note: This container is only returned when the filters deliveryCountry and deliveryPostalCode are included in the request.

eBay Plus is a premium account option for buyers, which provides benefits such as fast free domestic shipping and free returns on selected items. Top-Rated eBay sellers must opt in to eBay Plus to be able to offer the program on qualifying listings. Sellers must commit to next-day delivery of those items.

Note: eBay Plus is available only to buyers in Germany, Austria, and Australia marketplaces.

The eBay Authenticity Guarantee program enables third-party authenticators to perform authentication verification inspections on items such as watches and sneakers.", - "items": { - "type": "string" - } - }, - "quantityLimitPerBuyer": { - "type": "integer", - "description": "The maximum number for a specific item that one buyer can purchase.", - "format": "int32" - }, - "reservePriceMet": { - "type": "boolean", - "description": "This indicates if the reserve price of the item has been met. A reserve price is set by the seller and is the minimum amount the seller is willing to sell the item for.

If the highest bid is not equal to or higher than the reserve price when the auction ends, the listing ends and the item is not sold.

Note: This is returned only for auctions that have a reserve price.

" - }, - "returnTerms": { - "description": "The container that returns an overview of the seller's return policy.", - "$ref": "#/components/schemas/ItemReturnTerms" - }, - "seller": { - "description": "The container that returns basic and detailed about the seller of the item, such as name, feedback score, and contact information.", - "$ref": "#/components/schemas/SellerDetail" - }, - "sellerItemRevision": { - "type": "string", - "description": "An identifier generated/incremented when a seller revises the item. There are two types of item revisions: This ID is changed only when the seller makes a change to the item. This means you cannot use this value to determine if the quantity has changed." - }, - "shippingOptions": { - "type": "array", - "description": "An array of shipping options containers that have the details about cost, carrier, etc. of one shipping option. ", - "items": { - "$ref": "#/components/schemas/ShippingOption" - } - }, - "shipToLocations": { - "description": "The container that returns the geographic regions to be included and excluded that define where the item can be shipped.", - "$ref": "#/components/schemas/ShipToLocations" - }, - "shortDescription": { - "type": "string", - "description": "This text string is derived from the item condition and the item aspects (such as size, color, capacity, model, brand, etc.)." - }, - "size": { - "type": "string", - "description": "(Primary Item Aspect) The size of the item. For example, '7' for a size 7 shoe. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "sizeSystem": { - "type": "string", - "description": "(Primary Item Aspect) The sizing system of the country. All the item aspects, including this aspect, are returned in the localizedAspects container.

Valid Values:
AU (Australia),
BR (Brazil),
CN (China),
DE (Germany),
EU (European Union),
FR (France),
IT (Italy),
JP (Japan),
MX (Mexico),
US (USA),
UK (United Kingdom)

Code so that your app gracefully handles any future changes to this list. " - }, - "sizeType": { - "type": "string", - "description": "(Primary Item Aspect) Text describing a size group in which the item would be included, such as regular, petite, plus, big-and-tall or maternity. All the item aspects, including this aspect, are returned in the localizedAspects container." - }, - "subtitle": { - "type": "string", - "description": "A subtitle is optional and allows the seller to provide more information about the product, possibly including keywords that may assist with search results." - }, - "taxes": { - "type": "array", - "description": "The container for the tax information for the item.", - "items": { - "$ref": "#/components/schemas/Taxes" - } - }, - "title": { - "type": "string", - "description": "The seller-created title of the item.

Maximum Length: 80 characters" - }, - "topRatedBuyingExperience": { - "type": "boolean", - "description": "This indicates if the item a top-rated plus item. There are three benefits of a top-rated plus item; a minimum 30-day money-back return policy, shipping the items in 1 business day with tracking provided, and the added comfort of knowing this item is from experienced sellers with the highest buyer ratings. See the Top Rated Plus Items and Becoming a Top Rated Seller and qualifying for Top Rated Plus help topics for more information." - }, - "tyreLabelImageUrl": { - "type": "string", - "description": "The URL to the image that shows the information on the tyre label." - }, - "uniqueBidderCount": { - "type": "integer", - "description": "This integer value indicates the number of different eBay users who have placed one or more bids on an auction item. This field is only applicable to auction items.", - "format": "int32" - }, - "unitPrice": { - "description": "This is the price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "unitPricingMeasure": { - "type": "string", - "description": "The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" - }, - "warnings": { - "type": "array", - "description": "An array of warning messages. These types of errors do not prevent the method from executing but should be checked.", - "items": { - "$ref": "#/components/schemas/Error" - } - }, - "watchCount": { - "type": "integer", - "description": "The number of users that have added the item to their watch list.

Note: This field is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to Watch Count data in the Browse API.", - "format": "int32" - } - }, - "description": "The details of an item that can be purchased." - }, - "ItemGroup": { - "type": "object", - "properties": { - "commonDescriptions": { - "type": "array", - "description": "An array of containers for a description and the item IDs of all the items that have this exact description. Often the item variations within an item group all have the same description. Instead of repeating this description in the item details of each item, a description that is shared by at least one other item is returned in this container. If the description is unique, it is returned in the items.description field.", - "items": { - "$ref": "#/components/schemas/CommonDescriptions" - } - }, - "items": { - "type": "array", - "description": "An array of containers for all the item variation details, excluding the description.", - "items": { - "$ref": "#/components/schemas/Item" - } - }, - "warnings": { - "type": "array", - "description": "An array of warning messages. These types of errors do not prevent the method from executing but should be checked.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "The type that defines the fields for the item details." - }, - "ItemGroupSummary": { - "type": "object", - "properties": { - "itemGroupAdditionalImages": { - "type": "array", - "description": "An array of containers with the URLs for images that are in addition to the primary image of the item group. The primary image is returned in the itemGroupImage field.", - "items": { - "$ref": "#/components/schemas/Image" - } - }, - "itemGroupHref": { - "type": "string", - "description": "The HATEOAS reference of the parent page of the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. " - }, - "itemGroupId": { - "type": "string", - "description": "The unique identifier for the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. " - }, - "itemGroupImage": { - "description": "The URL of the primary image of the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. ", - "$ref": "#/components/schemas/Image" - }, - "itemGroupTitle": { - "type": "string", - "description": "The title of the item that appears on the item group page. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. " - }, - "itemGroupType": { - "type": "string", - "description": "An enumeration value that indicates the type of the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. For implementation help, refer to eBay API documentation" - } - }, - "description": "The type that defines the fields for the details of each item in an item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. When an item group is created, one of the item variations, such as the red shirt size L, is chosen as the \"parent\". All the other items in the group are the children, such as the blue shirt size L, red shirt size M, etc.

Note: This container is returned only if the item_id in the request is an item group (parent ID of an item with variations)." - }, - "ItemLocationImpl": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "The first line of the street address." - }, - "addressLine2": { - "type": "string", - "description": "The second line of the street address. This field may contain such values as an apartment or suite number." - }, - "city": { - "type": "string", - "description": "The city in which the item is located.

Restriction: This field is populated in the search method response only when fieldgroups = EXTENDED." - }, - "country": { - "type": "string", - "description": "The two-letter ISO 3166 standard code that indicates the country in which the item is located. For implementation help, refer to eBay API documentation" - }, - "county": { - "type": "string", - "description": "The county in which the item is located." - }, - "postalCode": { - "type": "string", - "description": "The postal code (or zip code in US) where the item is located. Sellers set a postal code (or zip code in US) for items when they are listed. The postal code is used for calculating proximity searches. It is anonymized when returned in itemLocation.postalCode via the API." - }, - "stateOrProvince": { - "type": "string", - "description": "The state or province in which the item is located." - } - }, - "description": "The type that defines the fields for the location of an item, such as information typically used for an address, including postal code, county, state/province, street address, city, and country (2-digit ISO code)." - }, - "ItemReturnTerms": { - "type": "object", - "properties": { - "extendedHolidayReturnsOffered": { - "type": "boolean", - "description": "This indicates if the seller has enabled the Extended Holiday Returns feature on the item. Extended Holiday Returns are only applicable during the US holiday season, and gives buyers extra time to return an item. This 'extra time' will typically extend beyond what is set through the returnPeriod value." - }, - "refundMethod": { - "type": "string", - "description": "An enumeration value that indicates how a buyer is refunded when an item is returned.

Valid Values: MONEY_BACK or MERCHANDISE_CREDIT

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - }, - "restockingFeePercentage": { - "type": "string", - "description": "This string field indicates the restocking fee percentage that the seller has set on the item. Sellers have the option of setting no restocking fee for an item, or they can set the percentage to 10, 15, or 20 percent. So, if the cost of the item was $100, and the restocking percentage was 20 percent, the buyer would be charged $20 to return that item, so instead of receiving a $100 refund, they would receive $80 due to the restocking fee." - }, - "returnInstructions": { - "type": "string", - "description": "Text written by the seller describing what the buyer needs to do in order to return the item." - }, - "returnMethod": { - "type": "string", - "description": "An enumeration value that indicates the alternative methods for a full refund when an item is returned. This field is returned if the seller offers the buyer an item replacement or exchange instead of a monetary refund.

Valid Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - }, - "returnPeriod": { - "description": "The amount of time the buyer has to return the item after the purchase date.", - "$ref": "#/components/schemas/TimeDuration" - }, - "returnsAccepted": { - "type": "boolean", - "description": "Indicates whether the seller accepts returns for the item." - }, - "returnShippingCostPayer": { - "type": "string", - "description": "This enumeration value indicates whether the buyer or seller is responsible for return shipping costs when an item is returned.

Valid Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - } - }, - "description": "The type that defines the fields for the seller's return policy." - }, - "ItemSummary": { - "type": "object", - "properties": { - "additionalImages": { - "type": "array", - "description": "An array of containers with the URLs for the images that are in addition to the primary image. The primary image is returned in the image.imageUrl field.", - "items": { - "$ref": "#/components/schemas/Image" - } - }, - "adultOnly": { - "type": "boolean", - "description": "This indicates if the item is for adults only. For more information about adult-only items on eBay, see Adult items policy for sellers and Adult-Only items on eBay for buyers." - }, - "availableCoupons": { - "type": "boolean", - "description": "This boolean attribute indicates if coupons are available for the item." - }, - "bidCount": { - "type": "integer", - "description": "This integer value indicates the total number of bids that have been placed for an auction item. This field is only returned for auction items.", - "format": "int32" - }, - "buyingOptions": { - "type": "array", - "description": "A comma separated list of all the purchase options available for the item.

Values Returned: Code so that your app gracefully handles any future changes to this list.", - "items": { - "type": "string" - } - }, - "categories": { - "type": "array", - "description": "This container returns the primary category ID of the item (as well as the secondary category if the item was listed in two categories). ", - "items": { - "$ref": "#/components/schemas/Category" - } - }, - "compatibilityMatch": { - "type": "string", - "description": "This indicates how well the item matches the compatibility_filter product attributes.

Valid Values: EXACT or POSSIBLE

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - }, - "compatibilityProperties": { - "type": "array", - "description": "This container returns only the product attributes that are compatible with the item. These attributes were specified in the compatibility_filter in the request. This means that if you passed in 5 attributes and only 4 are compatible, only those 4 are returned. If none of the attributes are compatible, this container is not returned.", - "items": { - "$ref": "#/components/schemas/CompatibilityProperty" - } - }, - "condition": { - "type": "string", - "description": "The text describing the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "conditionId": { - "type": "string", - "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list.

Note: As of September 1, 2021, condition ID 2500 ('Seller Refurbished') is no longer a valid item condition in the Cell Phones & Smartphones category (category ID 9355) for the following marketplaces: US, Canada, UK, Germany, and Australia. This refurbished item condition has been replaced by three new refurbished values, which include 'Excellent - Refurbished' (condition ID 2010), 'Very Good - Refurbished' (condition ID 2020), and 'Good - Refurbished' (condition ID 2030)." - }, - "currentBidPrice": { - "description": "This container returns the current highest bid for an auction item. The value field shows the dollar value of the current highest bid, and the currency field (3-digit ISO code) denotes the currency associated with that bid value. This field is only returned for auction items.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "distanceFromPickupLocation": { - "description": "This container returns the distance away that the item is from the pickupPostalCode value that was supplied in the method request. This container is only returned if the 'local pickup' filter fields are used in the request.", - "$ref": "#/components/schemas/TargetLocation" - }, - "energyEfficiencyClass": { - "type": "string", - "description": "This indicates the European energy efficiency rating (EEK) of the item. Energy efficiency ratings apply to products listed by commercial vendors in electronics categories only.

Currently, this field is only applicable for the Germany site, and is only returned if the seller specified the energy efficiency rating through item specifics at listing time. Rating values include A+++, A++, A+, A, B, C, D, E, F, and G." - }, - "epid": { - "type": "string", - "description": "An ePID is the eBay product identifier of a product from the eBay product catalog. This indicates the product in which the item belongs." - }, - "image": { - "description": "The URL to the primary image of the item.", - "$ref": "#/components/schemas/Image" - }, - "itemAffiliateWebUrl": { - "type": "string", - "description": "The URL to the View Item page of the item, which includes the affiliate tracking ID. This field is only returned if the seller enables affiliate tracking for the item by including the X-EBAY-C-ENDUSERCTX request header in the method.

Note: eBay Partner Network, in order to receive a commission for your sales, you must use this URL to forward your buyer to the ebay.com site. " - }, - "itemEndDate": { - "type": "string", - "description": "The date and time up to which the item can be purchased. This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: This field is not returned for Good 'Til Cancelled (GTC) listings." - }, - "itemGroupHref": { - "type": "string", - "description": "The HATEOAS reference of the parent page of the item group. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

Note: This field is returned only for item groups." - }, - "itemGroupType": { - "type": "string", - "description": "The indicates the item group type. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

Currently only the SELLER_DEFINED_VARIATIONS is supported and indicates this is an item group created by the seller.

Note: This field is returned only for item groups.

Code so that your app gracefully handles any future changes to this list." - }, - "itemHref": { - "type": "string", - "description": "The URI for the Browse API getItem method, which can be used to retrieve more details about items in the search results. " - }, - "itemId": { - "type": "string", - "description": "The unique RESTful identifier of the item." - }, - "itemLocation": { - "description": "This container returns the location of the item. This container consists of fields you typically see for an address, including postal code, county, state/province, street address, city, and country (2-digit ISO code).", - "$ref": "#/components/schemas/ItemLocationImpl" - }, - "itemWebUrl": { - "type": "string", - "description": "The URL to the View Item page of the item. This enables you to include a \"Report Item on eBay\" hyperlink that takes the buyer to the View Item page on eBay. From there they can report any issues regarding this item to eBay." - }, - "legacyItemId": { - "type": "string", - "description": "The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page." - }, - "marketingPrice": { - "description": "This container is returned if the item is eligible for a seller discount and contains the item's original price, and the seller discount amount and percentage.", - "$ref": "#/components/schemas/MarketingPrice" - }, - "pickupOptions": { - "type": "array", - "description": "This container returns the local pickup options available to the buyer. This container is only returned if the user is searching for local pickup items and set the local pickup filters in the method request.", - "items": { - "$ref": "#/components/schemas/PickupOptionSummary" - } - }, - "price": { - "description": "The price of the item after it has been converted into another currency.

The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must do one or more of the following to see VAT-inclusive pricing: Note: For more information on VAT, refer to VAT Obligations in the EU.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "priceDisplayCondition": { - "type": "string", - "description": "Indicates when in the buying flow the item's price can appear for minimum advertised price (MAP) items, which is the lowest price a retailer can advertise/show for this item. For implementation help, refer to eBay API documentation" - }, - "priorityListing": { - "type": "boolean", - "description": "This field is returned as true if the listing is part of a Promoted Listing campaign. Promoted Listings are available to Above Standard and Top Rated sellers with recent sales activity.

For more information, see Promoted Listings." - }, - "qualifiedPrograms": { - "type": "array", - "description": "An array of the qualified programs available for the item, such as EBAY_PLUS, AUTHENTICITY_GUARANTEE, and AUTHENTICITY_VERIFICATION.

Note: This container is only returned when the filters deliveryCountry and deliveryPostalCode are included in the request.

eBay Plus is a premium account option for buyers, which provides benefits such as fast free domestic shipping and free returns on selected items. Top-Rated eBay sellers must opt in to eBay Plus to be able to offer the program on qualifying listings. Sellers must commit to next-day delivery of those items.

Note: eBay Plus is available only to buyers in Germany, Austria, and Australia marketplaces.

The eBay Authenticity Guarantee program enables third-party authenticators to perform authentication verification inspections on items such as watches and sneakers.", - "items": { - "type": "string" - } - }, - "seller": { - "description": "This container returns basic information about the seller of the item, such as name, feedback score, etc.", - "$ref": "#/components/schemas/Seller" - }, - "shippingOptions": { - "type": "array", - "description": "This container returns the shipping options available to ship the item.", - "items": { - "$ref": "#/components/schemas/ShippingOptionSummary" - } - }, - "shortDescription": { - "type": "string", - "description": "This text string is derived from the item condition and the item aspects (such as size, color, capacity, model, brand, etc.). Sometimes the title doesn't give enough information but the description is too big. Surfacing the shortDescription can often provide buyers with the additional information that could help them make a buying decision.

For example:

\" title\": \"Petrel U42W FPV Drone RC Quadcopter w/HD Camera Live Video One Key Off / Landing\",
\"shortDescription\": \"1 U42W Quadcopter. Syma X5SW-V3 Wifi FPV RC Drone Quadcopter 2.4Ghz 6-Axis Gyro with Headless Mode. Syma X20 Pocket Drone 2.4Ghz Mini RC Quadcopter Headless Mode Altitude Hold. One Key Take Off / Landing function: allow beginner to easy to fly the drone without any skill.\",


Restriction: This field is returned by the search method only when fieldgroups = EXTENDED." - }, - "thumbnailImages": { - "type": "array", - "description": "An array of thumbnail images for the item. ", - "items": { - "$ref": "#/components/schemas/Image" - } - }, - "title": { - "type": "string", - "description": "The seller-created title of the item.

Maximum Length: 80 characters" - }, - "topRatedBuyingExperience": { - "type": "boolean", - "description": "This indicates if the item is a top-rated plus item. There are three benefits of a top-rated plus item: a minimum 30-day money-back return policy, shipping the item in 1 business day with tracking provided, and the added comfort of knowing that this item is from an experienced seller with the highest buyer ratings. See the Top Rated Plus Items and Becoming a Top Rated Seller and qualifying for Top Rated Plus help topics for more information." - }, - "tyreLabelImageUrl": { - "type": "string", - "description": "The URL to the image that shows the information on the tyre label." - }, - "unitPrice": { - "description": "The price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "unitPricingMeasure": { - "type": "string", - "description": "The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" - }, - "watchCount": { - "type": "integer", - "description": "The number of users that have added the item to their watch list.

Note: This field is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to Watch Count data in the Browse API.", - "format": "int32" - } - }, - "description": "The type that defines the fields for the details of a specific item." - }, - "Items": { - "type": "object", - "properties": { - "items": { - "type": "array", - "description": "An arraylist of all the items.", - "items": { - "$ref": "#/components/schemas/CoreItem" - } - }, - "total": { - "type": "integer", - "description": "The total number of items retrieved.", - "format": "int32" - }, - "warnings": { - "type": "array", - "description": "An array of warning messages. These types of errors do not prevent the method from executing but should be checked.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "Container for a list of items." - }, - "LegalAddress": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "The first line of the street address." - }, - "addressLine2": { - "type": "string", - "description": "The second line of the street address. This field is not always used, but can be used for 'Suite Number' or 'Apt Number'." - }, - "city": { - "type": "string", - "description": "The city of the address." - }, - "country": { - "type": "string", - "description": "The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation" - }, - "countryName": { - "type": "string", - "description": "The name of the country of the address." - }, - "county": { - "type": "string", - "description": "The name of the county of the address." - }, - "postalCode": { - "type": "string", - "description": "The postal code of the address." - }, - "stateOrProvince": { - "type": "string", - "description": "The state or province of the address." - } - }, - "description": "Type that defines the fields for the seller's address." - }, - "MarketingPrice": { - "type": "object", - "properties": { - "discountAmount": { - "description": "This container returns the monetary amount of the seller discount. ", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "discountPercentage": { - "type": "string", - "description": "This field expresses the percentage of the seller discount based on the value in the originalPrice container." - }, - "originalPrice": { - "description": "This container returns the monetary amount of the item without the discount.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "priceTreatment": { - "type": "string", - "description": "Indicates the pricing treatment (discount) that was applied to the price of the item.

Note: The pricing treatment affects the way and where the discounted price can be displayed. For implementation help, refer to eBay API documentation" - } - }, - "description": "The type that defines the fields that describe a seller discount." - }, - "PaymentMethod": { - "type": "object", - "properties": { - "paymentMethodType": { - "type": "string", - "description": "The payment method type, such as credit card or cash. For implementation help, refer to eBay API documentation" - }, - "paymentMethodBrands": { - "type": "array", - "description": "The payment method brands, including the payment method brand type and logo image.", - "items": { - "$ref": "#/components/schemas/PaymentMethodBrand" - } - }, - "paymentInstructions": { - "type": "array", - "description": "The payment instructions for the buyer, such as cash in person or contact seller.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "sellerInstructions": { - "type": "array", - "description": "The seller instructions to the buyer, such as accepts credit cards or see description.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - } - } - }, - "PaymentMethodBrand": { - "type": "object", - "properties": { - "paymentMethodBrandType": { - "type": "string", - "description": "The payment method brand, such as Visa or PayPal. For implementation help, refer to eBay API documentation" - }, - "logoImage": { - "description": "The details of the logo image, such as the size and URL.

Note: Currently, only the imageUrl is populated.", - "$ref": "#/components/schemas/Image" - } - } - }, - "PickupOptionSummary": { - "type": "object", - "properties": { - "pickupLocationType": { - "type": "string", - "description": "This container returns the local pickup options available to the buyer. Possible values are ARRANGED_LOCATION and STORE." - } - }, - "description": "The type that defines the fields for the local pickup options that are available for the item. It is used by the pickupOptions container." - }, - "Price": { - "type": "object", - "properties": { - "convertedFromCurrency": { - "type": "string", - "description": "The three-letter ISO 4217 code representing the currency of the amount in the convertedFromValue field. This value is the pre-conversion currency. For implementation help, refer to eBay API documentation" - }, - "convertedFromValue": { - "type": "string", - "description": "The monetary amount before any conversion is performed, in the currency specified by the convertedFromCurrency field. This value is the pre-conversion amount. The value field contains the converted amount of this value, in the currency specified by the currency field." - }, - "currency": { - "type": "string", - "description": "The three-letter ISO 4217 code representing the currency of the amount in the value field. If currency conversion/localization was performed, this is the post-conversion currency of the amount in the value field.

Default: The currency of the user's country. For implementation help, refer to eBay API documentation" - }, - "value": { - "type": "string", - "description": "The amount of the currency specified in the currency field. The value of currency defaults to the standard currency used by the country of the eBay site offering the item. If currency conversion/localization was performed, this is the post-conversion amount.

Default: The currency of the user's country." - } - }, - "description": "The type that defines the fields for the monetary value and currency of the price of the item." - }, - "Product": { - "type": "object", - "properties": { - "additionalImages": { - "type": "array", - "description": "An array of containers with the URLs for the product images that are in addition to the primary image. ", - "items": { - "$ref": "#/components/schemas/Image" - } - }, - "additionalProductIdentities": { - "type": "array", - "description": "An array of product identifiers associated with the item. This container is returned if the seller has associated the eBay Product Identifier (ePID) with the item and in the request fieldgroups is set to PRODUCT.", - "items": { - "$ref": "#/components/schemas/AdditionalProductIdentity" - } - }, - "aspectGroups": { - "type": "array", - "description": "An array of containers for the product aspects. Each group contains the aspect group name and the aspect name/value pairs.", - "items": { - "$ref": "#/components/schemas/AspectGroup" - } - }, - "brand": { - "type": "string", - "description": "The brand associated with product. To identify the product, this is always used along with MPN (manufacturer part number)." - }, - "description": { - "type": "string", - "description": "The rich description of an eBay product, which might contain HTML." - }, - "gtins": { - "type": "array", - "description": "An array of all the possible GTINs values associated with the product. A GTIN is a unique Global Trade Item number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value.", - "items": { - "type": "string" - } - }, - "image": { - "description": "The primary image of the product. This is often a stock photo.", - "$ref": "#/components/schemas/Image" - }, - "mpns": { - "type": "array", - "description": "An array of all possible MPN values associated with the product. A MPNs is manufacturer part number of the product. To identify the product, this is always used along with brand.", - "items": { - "type": "string" - } - }, - "title": { - "type": "string", - "description": "The title of the product." - } - }, - "description": "The type that defines the fields for the product information of the item." - }, - "ProductIdentity": { - "type": "object", - "properties": { - "identifierType": { - "type": "string", - "description": "The type of product identifier, such as UPC and EAN." - }, - "identifierValue": { - "type": "string", - "description": "The product identifier value." - } - }, - "description": "The type that defines the fields for the product identifier type/value pairs of product associated with an item." - }, - "RatingHistogram": { - "type": "object", - "properties": { - "count": { - "type": "integer", - "description": "The total number of user ratings that the product has received.", - "format": "int32" - }, - "rating": { - "type": "string", - "description": "This is the average rating for the product. As part of a product review, users rate the product. Products are rated from one star (terrible) to five stars (excellent), with each star having a corresponding point value - one star gets 1 point, two stars get 2 points, and so on. If a product had one four-star rating and one five-star rating, its average rating would be 4.5, and this is the value that would appear in this field." - } - }, - "description": "The type that defines the fields for product ratings. Only products that are in the eBay product catalog can be reviewed and rated." - }, - "Refinement": { - "type": "object", - "properties": { - "aspectDistributions": { - "type": "array", - "description": "An array of containers for the all the aspect refinements.", - "items": { - "$ref": "#/components/schemas/AspectDistribution" - } - }, - "buyingOptionDistributions": { - "type": "array", - "description": "An array of containers for the all the buying option refinements.", - "items": { - "$ref": "#/components/schemas/BuyingOptionDistribution" - } - }, - "categoryDistributions": { - "type": "array", - "description": "An array of containers for the all the category refinements.", - "items": { - "$ref": "#/components/schemas/CategoryDistribution" - } - }, - "conditionDistributions": { - "type": "array", - "description": "An array of containers for the all the condition refinements.", - "items": { - "$ref": "#/components/schemas/ConditionDistribution" - } - }, - "dominantCategoryId": { - "type": "string", - "description": "The identifier of the category that most of the items are part of. " - } - }, - "description": "This type defines the fields for the various refinements of an item. You can use the information in this container to create histograms, which help shoppers choose exactly what they want." - }, - "Region": { - "type": "object", - "properties": { - "regionName": { - "type": "string", - "description": "A localized text string that indicates the name of the region. Taxes are generally charged at the state/province level or at the country level in the case of VAT tax. " - }, - "regionType": { - "type": "string", - "description": "An enumeration value that indicates the type of region for the tax jurisdiction.

Valid Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - } - }, - "description": "This type is used to provide region details for a tax jurisdiction." - }, - "RemoteShopcartResponse": { - "type": "object", - "properties": { - "cartItems": { - "type": "array", - "description": "An array of the items in the member's eBay cart.", - "items": { - "$ref": "#/components/schemas/CartItem" - } - }, - "cartSubtotal": { - "description": "This is the cost of all the items in the member's eBay cart. This does not include taxes, shipping costs, discounts, etc. It is the sum of each item's price * quantity.", - "$ref": "#/components/schemas/Amount" - }, - "cartWebUrl": { - "type": "string", - "description": "The URL of the member's eBay cart." - }, - "unavailableCartItems": { - "type": "array", - "description": "An array of items in the cart that are unavailable. This can be for a variety of reasons such as, when the listing has ended or the item is out of stock. Because a cart never expires, these items will remain in the cart until they are removed.", - "items": { - "$ref": "#/components/schemas/CartItem" - } - }, - "warnings": { - "type": "array", - "description": "An array of warning messages. These type of errors do not prevent the call from executing but should be checked.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "The type that defines the fields and containers for the member's eBay cart information." - }, - "RemoveCartItemInput": { - "type": "object", - "properties": { - "cartItemId": { - "type": "string", - "description": "The identifier of the item in the cart to be removed. This ID is generated when the item was added to the cart. " - } - }, - "description": "The type that defines the fields for the removeItem request." - }, - "ReviewRating": { - "type": "object", - "properties": { - "averageRating": { - "type": "string", - "description": "The average rating given to a product based on customer reviews." - }, - "ratingHistograms": { - "type": "array", - "description": "An array of containers for the product rating histograms that shows the review counts and the product rating.", - "items": { - "$ref": "#/components/schemas/RatingHistogram" - } - }, - "reviewCount": { - "type": "integer", - "description": "The total number of reviews for the item.", - "format": "int32" - } - }, - "description": "The type that defines the fields for the rating of a product review." - }, - "SearchByImageRequest": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The Base64 string of the image." - } - }, - "description": "The type that defines the fields for the image information." - }, - "SearchPagedCollection": { - "type": "object", - "properties": { - "autoCorrections": { - "description": "The auto-corrected inputs.", - "$ref": "#/components/schemas/AutoCorrections" - }, - "href": { - "type": "string", - "description": "The URI of the current page of results.

The following example of the search method returns items 1 thru 5 from the list of items found.

https://api.ebay.com/buy/v1/item_summary/search?q=shirt&limit=5&offset=0." - }, - "itemSummaries": { - "type": "array", - "description": "An array of the items on this page. The items are sorted according to the sorting method specified in the request.", - "items": { - "$ref": "#/components/schemas/ItemSummary" - } - }, - "limit": { - "type": "integer", - "description": "The value of the limit parameter submitted in the request, which is the maximum number of items to return on a page, from the result set. A result set is the complete set of items returned by the method.", - "format": "int32" - }, - "next": { - "type": "string", - "description": "The URI for the next page of results. This value is returned if there is an additional page of results to return from the result set.

The following example of the search method returns items 5 thru 10 from the list of items found.

https://api.ebay.com/buy/v1/item_summary/search?query=t-shirts&limit=5&offset=10 " - }, - "offset": { - "type": "integer", - "description": "This value indicates the offset used for current page of items being returned. Assume the initial request used an offset of 0 and a limit of 3. Then in the first page of results, this value would be 0, and items 1-3 are returned. For the second page, this value is 3 and so on.", - "format": "int32" - }, - "prev": { - "type": "string", - "description": "The URI for the previous page of results. This is returned if there is a previous page of results from the result set.

The following example of the search method returns items 1 thru 5 from the list of items found, which would be the first set of items returned.

https://api.ebay.com/buy/v1/item_summary/search?query=t-shirts&limit=5&offset=0" - }, - "refinement": { - "description": "The container for all the search refinements.", - "$ref": "#/components/schemas/Refinement" - }, - "total": { - "type": "integer", - "description": "The total number of items that match the input criteria.", - "format": "int32" - }, - "warnings": { - "type": "array", - "description": "The container with all the warnings for the request.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "The type that defines the fields for a paginated result set. The response consists of 0 or more sequenced pages where each page has 0 or more items. " - }, - "Seller": { - "type": "object", - "properties": { - "feedbackPercentage": { - "type": "string", - "description": "The percentage of the total positive feedback." - }, - "feedbackScore": { - "type": "integer", - "description": "The feedback score of the seller. This value is based on the ratings from eBay members that bought items from this seller.", - "format": "int32" - }, - "sellerAccountType": { - "type": "string", - "description": "Indicates if the seller is a business or an individual. This is determined when the seller registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in some countries.

This field is returned only on the following sites.

EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL

Valid Values: BUSINESS or INDIVIDUAL

Code so that your app gracefully handles any future changes to this list. " - }, - "username": { - "type": "string", - "description": "The user name created by the seller for use on eBay." - } - }, - "description": "The type that defines the fields for basic information about the seller of the item returned by the item_summary resource." - }, - "SellerDetail": { - "type": "object", - "properties": { - "feedbackPercentage": { - "type": "string", - "description": "The percentage of the total positive feedback." - }, - "feedbackScore": { - "type": "integer", - "description": "The feedback score of the seller. This value is based on the ratings from eBay members that bought items from this seller.", - "format": "int32" - }, - "sellerAccountType": { - "type": "string", - "description": "This indicates if the seller is a business or an individual. This is determined when the seller registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in the following countries:

This field is returned only on the following sites.

EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL

Valid Values: BUSINESS or INDIVIDUAL

Code so that your app gracefully handles any future changes to this list. " - }, - "sellerLegalInfo": { - "description": "The container with the seller's contact info and fields that are required by law.", - "$ref": "#/components/schemas/SellerLegalInfo" - }, - "username": { - "type": "string", - "description": "The user name created by the seller for use on eBay." - } - }, - "description": "The type that defines the fields for basic and detailed information about the seller of the item returned by the item resource." - }, - "SellerLegalInfo": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "The seller's business email address." - }, - "fax": { - "type": "string", - "description": "The seller' business fax number." - }, - "imprint": { - "type": "string", - "description": "This is a free-form string created by the seller. This is information often found on business cards, such as address. This is information used by some countries." - }, - "legalContactFirstName": { - "type": "string", - "description": "The seller's first name." - }, - "legalContactLastName": { - "type": "string", - "description": "The seller's last name." - }, - "name": { - "type": "string", - "description": "The name of the seller's business." - }, - "phone": { - "type": "string", - "description": "The seller's business phone number." - }, - "registrationNumber": { - "type": "string", - "description": "The seller's registration number. This is information used by some countries." - }, - "sellerProvidedLegalAddress": { - "description": "The container that returns the seller's address to be used to contact them.", - "$ref": "#/components/schemas/LegalAddress" - }, - "termsOfService": { - "type": "string", - "description": "This is a free-form string created by the seller. This is the seller's terms or condition, which is in addition to the seller's return policies." - }, - "vatDetails": { - "type": "array", - "description": "An array of the seller's VAT (value added tax) IDs and the issuing country. VAT is a tax added by some European countries.", - "items": { - "$ref": "#/components/schemas/VatDetail" - } - } - }, - "description": "The type that defines the fields for the contact information for a seller." - }, - "ShipToLocation": { - "type": "object", - "properties": { - "country": { - "type": "string", - "description": "The two-letter ISO 3166 standard of the country for where the item is to be shipped. For implementation help, refer to eBay API documentation" - }, - "postalCode": { - "type": "string", - "description": "The zip code (postal code) for where the item is to be shipped." - } - }, - "description": "The type that defines the fields for the country and postal code of where an item is to be shipped." - }, - "ShipToLocations": { - "type": "object", - "properties": { - "regionExcluded": { - "type": "array", - "description": "An array of containers that express the large geographical regions, countries, state/provinces, or special locations within a country where the seller is not willing to ship to.", - "items": { - "$ref": "#/components/schemas/ShipToRegion" - } - }, - "regionIncluded": { - "type": "array", - "description": "An array of containers that express the large geographical regions, countries, or state/provinces within a country where the seller is willing to ship to. Prospective buyers must look at the shipping regions under this container, as well as the shipping regions that are under the regionExcluded to see where the seller is willing to ship items. Sellers can specify that they ship 'Worldwide', but then add several large geographical regions (e.g. Asia, Oceania, Middle East) to the exclusion list, or sellers can specify that they ship to Europe and Africa, but then add several individual countries to the exclusion list.", - "items": { - "$ref": "#/components/schemas/ShipToRegion" + }, + "PickupOptionSummary": { + "type": "object", + "properties": { + "pickupLocationType": { + "type": "string", + "description": "This container returns the local pickup options available to the buyer. Possible values are ARRANGED_LOCATION and STORE." + } + }, + "description": "The type that defines the fields for the local pickup options that are available for the item. It is used by the pickupOptions container." + }, + "Product": { + "type": "object", + "properties": { + "additionalImages": { + "type": "array", + "description": "An array of containers with the URLs for the product images that are in addition to the primary image. ", + "items": { + "$ref": "#/components/schemas/Image" + } + }, + "additionalProductIdentities": { + "type": "array", + "description": "An array of product identifiers associated with the item. This container is returned if the seller has associated the eBay Product Identifier (ePID) with the item and in the request fieldgroups is set to PRODUCT.", + "items": { + "$ref": "#/components/schemas/AdditionalProductIdentity" + } + }, + "aspectGroups": { + "type": "array", + "description": "An array of containers for the product aspects. Each group contains the aspect group name and the aspect name/value pairs.", + "items": { + "$ref": "#/components/schemas/AspectGroup" + } + }, + "brand": { + "type": "string", + "description": "The brand associated with product. To identify the product, this is always used along with MPN (manufacturer part number)." + }, + "description": { + "type": "string", + "description": "The rich description of an eBay product, which might contain HTML." + }, + "gtins": { + "type": "array", + "description": "An array of all the possible GTINs values associated with the product. A GTIN is a unique Global Trade Item number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value.", + "items": { + "type": "string" + } + }, + "image": { + "description": "The primary image of the product. This is often a stock photo.", + "$ref": "#/components/schemas/Image" + }, + "mpns": { + "type": "array", + "description": "An array of all possible MPN values associated with the product. A MPNs is manufacturer part number of the product. To identify the product, this is always used along with brand.", + "items": { + "type": "string" + } + }, + "title": { + "type": "string", + "description": "The title of the product." + } + }, + "description": "The type that defines the fields for the product information of the item." + }, + "ProductIdentity": { + "type": "object", + "properties": { + "identifierType": { + "type": "string", + "description": "The type of product identifier, such as UPC and EAN." + }, + "identifierValue": { + "type": "string", + "description": "The product identifier value." + } + }, + "description": "The type that defines the fields for the product identifier type/value pairs of product associated with an item." + }, + "ProductSafetyLabelPictogram": { + "type": "object", + "properties": { + "pictogramDescription": { + "type": "string", + "description": "The description of the safety label pictogram." + }, + "pictogramId": { + "type": "string", + "description": "The identifier of the safety label pictogram." + }, + "pictogramUrl": { + "type": "string", + "description": "The URL of the safety label pictogram." + } + }, + "description": "This type is used to provide product safety pictogram(s) for the listing." + }, + "ProductSafetyLabelStatement": { + "type": "object", + "properties": { + "statementDescription": { + "type": "string", + "description": "A description of the nature of the product safety label statement." + }, + "statementId": { + "type": "string", + "description": "The identifier of the product safety label statement." + } + }, + "description": "This type is used to describe the seller provided product safety label statement." + }, + "ProductSafetyLabels": { + "type": "object", + "properties": { + "pictograms": { + "type": "array", + "description": "An array of seller provided comma-separated string values that provides identifier, URL, and description for one or more pictograms associated with the listing.", + "items": { + "$ref": "#/components/schemas/ProductSafetyLabelPictogram" + } + }, + "statements": { + "type": "array", + "description": "An array of seller provided comma-separated string values that provide identifier and description for one or more product safety statements associated with the listing.", + "items": { + "$ref": "#/components/schemas/ProductSafetyLabelStatement" + } + } + }, + "description": "This type contains seller provided product safety pictograms and statements for the listing." + }, + "RatingHistogram": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "description": "The total number of user ratings that the product has received.", + "format": "int32" + }, + "rating": { + "type": "string", + "description": "This is the average rating for the product. As part of a product review, users rate the product. Products are rated from one star (terrible) to five stars (excellent), with each star having a corresponding point value - one star gets 1 point, two stars get 2 points, and so on. If a product had one four-star rating and one five-star rating, its average rating would be 4.5, and this is the value that would appear in this field." + } + }, + "description": "The type that defines the fields for product ratings. Only products that are in the eBay product catalog can be reviewed and rated." + }, + "Refinement": { + "type": "object", + "properties": { + "aspectDistributions": { + "type": "array", + "description": "An array of containers for the all the aspect refinements.", + "items": { + "$ref": "#/components/schemas/AspectDistribution" + } + }, + "buyingOptionDistributions": { + "type": "array", + "description": "An array of containers for the all the buying option refinements.", + "items": { + "$ref": "#/components/schemas/BuyingOptionDistribution" + } + }, + "categoryDistributions": { + "type": "array", + "description": "An array of containers for the all the category refinements.", + "items": { + "$ref": "#/components/schemas/CategoryDistribution" + } + }, + "conditionDistributions": { + "type": "array", + "description": "An array of containers for the all the condition refinements.", + "items": { + "$ref": "#/components/schemas/ConditionDistribution" + } + }, + "dominantCategoryId": { + "type": "string", + "description": "The identifier of the category that most of the items are part of. " + } + }, + "description": "This type defines the fields for the various refinements of an item. You can use the information in this container to create histograms, which help shoppers choose exactly what they want." + }, + "Region": { + "type": "object", + "properties": { + "regionName": { + "type": "string", + "description": "A localized text string that indicates the name of the region. Taxes are generally charged at the state/province level or at the country level in the case of VAT tax. " + }, + "regionType": { + "type": "string", + "description": "An enumeration value that indicates the type of region for the tax jurisdiction.

Valid Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + } + }, + "description": "This type is used to provide region details for a tax jurisdiction." + }, + "ResponsiblePerson": { + "type": "object", + "properties": { + "addressLine1": { + "type": "string", + "description": "The first line of the Responsible Person's street address." + }, + "addressLine2": { + "type": "string", + "description": "The second line of the Responsible Person's address. This field is not always used, but can be used for secondary address information such as 'Suite Number' or 'Apt Number'." + }, + "city": { + "type": "string", + "description": "The city of the Responsible Person's street address." + }, + "companyName": { + "type": "string", + "description": "The name of the Responsible Person or entity." + }, + "contactUrl": { + "type": "string", + "description": "The contact URL of the Responsible Person or entity." + }, + "country": { + "type": "string", + "description": "The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation" + }, + "countryName": { + "type": "string", + "description": "The country name of the Responsible Person's street address." + }, + "county": { + "type": "string", + "description": "The county of the Responsible Person's street address." + }, + "email": { + "type": "string", + "description": "The email of the Responsible Person's street address." + }, + "phone": { + "type": "string", + "description": "The phone number of the Responsible Person's street address." + }, + "postalCode": { + "type": "string", + "description": "The postal code of the Responsible Person's street address." + }, + "stateOrProvince": { + "type": "string", + "description": "The state or province of the Responsible Person's street address." + }, + "types": { + "type": "array", + "description": "The type(s) associated with the Responsible Person or entity.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + } + }, + "description": "This type provides information, such as name and contact details, for an EU-based Responsible Person or entity, associated with the product." + }, + "ReviewRating": { + "type": "object", + "properties": { + "averageRating": { + "type": "string", + "description": "The average rating given to a product based on customer reviews." + }, + "ratingHistograms": { + "type": "array", + "description": "An array of containers for the product rating histograms that shows the review counts and the product rating.", + "items": { + "$ref": "#/components/schemas/RatingHistogram" + } + }, + "reviewCount": { + "type": "integer", + "description": "The total number of reviews for the item.", + "format": "int32" + } + }, + "description": "The type that defines the fields for the rating of a product review." + }, + "SearchByImageRequest": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The Base64 string of the image.

To get the Base64 image string, you can use sites such as https://codebeautify.org/image-to-base64-converter." + } + }, + "description": "The type that defines the fields for the image information." + }, + "SearchPagedCollection": { + "type": "object", + "properties": { + "autoCorrections": { + "description": "The auto-corrected inputs.", + "$ref": "#/components/schemas/AutoCorrections" + }, + "href": { + "type": "string", + "description": "The URI of the current page of results.

The following example of the search method returns items 1 thru 5 from the list of items found.
https://api.ebay.com/buy/v1/item_summary/search?q=shirt&limit=5&offset=0
" + }, + "itemSummaries": { + "type": "array", + "description": "An array of the items on this page. The items are sorted according to the sorting method specified in the request.", + "items": { + "$ref": "#/components/schemas/ItemSummary" + } + }, + "limit": { + "type": "integer", + "description": "The value of the limit parameter submitted in the request, which is the maximum number of items to return on a page, from the result set. A result set is the complete set of items returned by the method.", + "format": "int32" + }, + "next": { + "type": "string", + "description": "The URI for the next page of results. This value is returned if there is an additional page of results to return from the result set.

The following example of the search method returns items 5 thru 10 from the list of items found.
https://api.ebay.com/buy/v1/item_summary/search?query=t-shirts&limit=5&offset=10
" + }, + "offset": { + "type": "integer", + "description": "This value indicates the offset used for current page of items being returned. Assume the initial request used an offset of 0 and a limit of 3. Then in the first page of results, this value would be 0, and items 1-3 are returned. For the second page, this value is 3 and so on.", + "format": "int32" + }, + "prev": { + "type": "string", + "description": "The URI for the previous page of results. This is returned if there is a previous page of results from the result set.

The following example of the search method returns items 1 thru 5 from the list of items found, which would be the first set of items returned.
https://api.ebay.com/buy/v1/item_summary/search?query=t-shirts&limit=5&offset=0
" + }, + "refinement": { + "description": "The container for all the search refinements.", + "$ref": "#/components/schemas/Refinement" + }, + "total": { + "type": "integer", + "description": "The total number of items that match the input criteria.

Note: total is just an indicator of the number of listings for a given query. It could vary based on the number of listings with variations included in the result. It is strongly recommended that total not be used in pagination use cases. Instead, use next to determine the results on the next page.", + "format": "int32" + }, + "warnings": { + "type": "array", + "description": "The container with all the warnings for the request.", + "items": { + "$ref": "#/components/schemas/Error" + } + } + }, + "description": "The type that defines the fields for a paginated result set. The response consists of 0 or more sequenced pages where each page has 0 or more items." + }, + "Seller": { + "type": "object", + "properties": { + "feedbackPercentage": { + "type": "string", + "description": "The percentage of the total positive feedback." + }, + "feedbackScore": { + "type": "integer", + "description": "The feedback score of the seller. This value is based on the ratings from eBay members that bought items from this seller.", + "format": "int32" + }, + "sellerAccountType": { + "type": "string", + "description": "Indicates if the seller is a business or an individual. This is determined when the seller registers with eBay:This designation is required by the tax laws in some countries.

This field is returned only on the following sites:

EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL

Valid Values: BUSINESS or INDIVIDUAL" + }, + "username": { + "type": "string", + "description": "The user name created by the seller for use on eBay.

Note: Effective September 26, 2025, select developers will no longer receive username data for U.S. users through this field. Instead, an immutable user ID will be returned in its place. For more information, please refer to Data Handling Compliance. " + } + }, + "description": "The type that defines the fields for basic information about the seller of the item returned by the item_summary resource." + }, + "SellerCustomPolicy": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "The seller-defined description of the policy." + }, + "label": { + "type": "string", + "description": "The seller-defined label for an individual custom policy." + }, + "type": { + "type": "string", + "description": "The type of custom policy, such as PRODUCT_COMPLIANCE or TAKE_BACK. For implementation help, refer to eBay API documentation" + } + }, + "description": "The container for custom policies that apply to a listed item." + }, + "SellerDetail": { + "type": "object", + "properties": { + "feedbackPercentage": { + "type": "string", + "description": "The percentage of the total positive feedback." + }, + "feedbackScore": { + "type": "integer", + "description": "The feedback score of the seller. This value is based on the ratings from eBay members that bought items from this seller.", + "format": "int32" + }, + "sellerAccountType": { + "type": "string", + "description": "This indicates if the seller is a business or an individual. This is determined when the seller registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in the following countries:

This field is applicable only on the following marketplaces:
Note: This field will be returned empty on unsupported marketplaces.
Valid Values: BUSINESS or INDIVIDUAL" + }, + "sellerLegalInfo": { + "description": "The container with the seller's contact info and fields that are required by law.", + "$ref": "#/components/schemas/SellerLegalInfo" + }, + "userId": { + "type": "string", + "description": "The unique identifier of an eBay user across all eBay sites. This value does not change, even when a user changes their username." + }, + "username": { + "type": "string", + "description": "The user name created by the seller for use on eBay.

Note: Effective September 26, 2025, select developers will no longer receive username data for U.S. users through this field. Instead, an immutable user ID will be returned in its place. For more information, please refer to Data Handling Compliance. " + } + }, + "description": "The type that defines the fields for basic and detailed information about the seller of the item returned by the item resource." + }, + "SellerLegalInfo": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The seller's business email address." + }, + "fax": { + "type": "string", + "description": "The seller' business fax number." + }, + "imprint": { + "type": "string", + "description": "This is a free-form string created by the seller. This is information often found on business cards, such as address. This is information used by some countries." + }, + "legalContactFirstName": { + "type": "string", + "description": "The seller's first name." + }, + "legalContactLastName": { + "type": "string", + "description": "The seller's last name." + }, + "name": { + "type": "string", + "description": "The name of the seller's business." + }, + "phone": { + "type": "string", + "description": "The seller's business phone number." + }, + "registrationNumber": { + "type": "string", + "description": "The seller's registration number. This is information used by some countries." + }, + "sellerProvidedLegalAddress": { + "description": "The container that returns the seller's address to be used to contact them.", + "$ref": "#/components/schemas/LegalAddress" + }, + "termsOfService": { + "type": "string", + "description": "This is a free-form string created by the seller. This is the seller's terms or condition, which is in addition to the seller's return policies." + }, + "vatDetails": { + "type": "array", + "description": "An array of the seller's VAT (value added tax) IDs and the issuing country. VAT is a tax added by some European countries.", + "items": { + "$ref": "#/components/schemas/VatDetail" + } + }, + "economicOperator": { + "description": "Provides required information about the manufacturer and/or supplier of the item.", + "$ref": "#/components/schemas/EconomicOperator" + }, + "weeeNumber": { + "type": "string", + "description": "The Waste Electrical and Electronic Equipment (WEEE) registration number required for any seller to place electrical and electronic equipment on the market in Germany. This manufacturer number is assigned to the first distributors of electrical and electronic equipment and comprises a country code and an 8-digit sequence of digits (e.g. ā€œWEEE Reg. No. DE 12345678ā€)." + } + }, + "description": "The type that defines the fields for the contact information for a seller." + }, + "ShipToLocation": { + "type": "object", + "properties": { + "country": { + "type": "string", + "description": "The two-letter ISO 3166 standard of the country for where the item is to be shipped. For implementation help, refer to eBay API documentation" + }, + "postalCode": { + "type": "string", + "description": "The zip code (postal code) for where the item is to be shipped." + } + }, + "description": "The type that defines the fields for the country and postal code of where an item is to be shipped." + }, + "ShipToLocations": { + "type": "object", + "properties": { + "regionExcluded": { + "type": "array", + "description": "An array of containers that express the large geographical regions, countries, state/provinces, or special locations within a country where the seller is not willing to ship to.", + "items": { + "$ref": "#/components/schemas/ShipToRegion" + } + }, + "regionIncluded": { + "type": "array", + "description": "An array of containers that express the large geographical regions, countries, or state/provinces within a country where the seller is willing to ship to. Prospective buyers must look at the shipping regions under this container, as well as the shipping regions that are under the regionExcluded to see where the seller is willing to ship items. Sellers can specify that they ship 'Worldwide', but then add several large geographical regions (e.g. Asia, Oceania, Middle East) to the exclusion list, or sellers can specify that they ship to Europe and Africa, but then add several individual countries to the exclusion list.", + "items": { + "$ref": "#/components/schemas/ShipToRegion" + } + } + }, + "description": "The type that defines the fields that include and exclude geographic regions affecting where the item can be shipped. The seller defines these regions when listing the item." + }, + "ShipToRegion": { + "type": "object", + "properties": { + "regionId": { + "type": "string", + "description": "The unique identifier of the shipping region. The value returned here is dependent on the corresponding regionType value. The regionId value for a region does not vary based on the eBay marketplace. However, the corresponding regionName value for a region is a localized, text-based description of the shipping region.

If the regionType value is WORLDWIDE, the regionId value will also be WORLDWIDE.

If the regionType value is WORLD_REGION, the regionId value will be one of the following: AFRICA, AMERICAS, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EUROPEAN_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, SOUTH_AMERICA, SOUTHEAST_ASIA or CHANNEL_ISLANDS.

If the regionType value is COUNTRY, the regionId value will be the two-letter code for the country, as defined in the ISO 3166 standard.

If the regionType value is STATE_OR_PROVINCE, the regionId value will either be the two-letter code for US states and DC (as defined on this Social Security Administration page), or the two-letter code for Canadian provinces (as defined by this Canada Post page).

If the regionType value is COUNTRY_REGION, the regionId value may be one of following: _AH (if a seller is not willing to ship to Alaska/Hawaii), _PR (if the seller is not willing to ship to US Protectorates), _AP (if seller is not willing to ship to a US Army or Fleet Post Office), and PO_BOX (if the seller is not willing to ship to a Post Office Box)." + }, + "regionName": { + "type": "string", + "description": "A localized text string that indicates the name of the shipping region. The value returned here is dependent on the corresponding regionType value.

If the regionType value is WORLDWIDE, the regionName value will show Worldwide.

If the regionType value is WORLD_REGION, the regionName value will be a localized text string for one of the following large geographical regions: Africa, Americas, Asia, Australia, Central America and Caribbean, Europe, European Union, Greater China, Middle East, North America, Oceania, South America, Southeast Asia, or Channel Islands.

If the regionType value is COUNTRY, the regionName value will be a localized text string for any country in the world.

If the regionType value is STATE_OR_PROVINCE, the regionName value will be a localized text string for any US state or Canadian province.

If the regionType value is COUNTRY_REGION, the regionName value may be a localized version of one of the following: Alaska/Hawaii, US Protectorates, APO/FPO (Army or Fleet Post Office), or PO BOX." + }, + "regionType": { + "type": "string", + "description": "An enumeration value that indicates the level or type of shipping region.

Valid Values: For more detail on the actual regionName/regionId values that will be returned based on the regionType value, see the regionId and/or regionName field descriptions.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + } + }, + "description": "This type is used provide details about included and excluded shipping regions." + }, + "ShippingOption": { + "type": "object", + "properties": { + "additionalShippingCostPerUnit": { + "description": "Any per item additional shipping costs for a multi-item purchase. For example, let's say the shipping cost for a power cord is $3. But for an additional cord, the shipping cost is only $1. So if you bought 3 cords, the shippingCost would be $3 and this value would be $2 ($1 for each additional item).", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "cutOffDateUsedForEstimate": { + "type": "string", + "description": "The deadline date that the item must be purchased by in order to be received by the buyer within the delivery window ( maxEstimatedDeliveryDate and minEstimatedDeliveryDate fields). This field is returned only for items that are eligible for 'Same Day Handling'. For these items, the value of this field is what is displayed in the Delivery line on the View Item page.

This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer." + }, + "fulfilledThrough": { + "type": "string", + "description": "If the item is being shipped by the eBay Global Shipping program, this field returns GLOBAL_SHIPPING.

If the item is being shipped using the eBay International Shipping program, this field returns INTERNATIONAL_SHIPPING.

Otherwise, this field is null. For implementation help, refer to eBay API documentation" + }, + "guaranteedDelivery": { + "type": "boolean", + "description": "Although this field is still returned, it can be ignored since eBay Guaranteed Delivery is no longer a supported feature on any marketplace. This field may get removed from the schema in the future." + }, + "importCharges": { + "description": "The Global Shipping Program import charges for this item.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "maxEstimatedDeliveryDate": { + "type": "string", + "description": "The end date of the delivery window (latest projected delivery date). This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: For the best accuracy, always include the location of where the item is be shipped in the contextualLocation values of the X-EBAY-C-ENDUSERCTX request header. " + }, + "minEstimatedDeliveryDate": { + "type": "string", + "description": "The start date of the delivery window (earliest projected delivery date). This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: For the best accuracy, always include the location of where the item is be shipped in the contextualLocation values of the X-EBAY-C-ENDUSERCTX request header." + }, + "quantityUsedForEstimate": { + "type": "integer", + "description": "The number of items used when calculating the estimation information.

This field will reflect the value input in the quantity_for_shipping_estimate query parameter.", + "format": "int32" + }, + "shippingCarrierCode": { + "type": "string", + "description": "The name of the shipping provider, such as FedEx, or USPS." + }, + "shippingCost": { + "description": "The final shipping cost for all the items after all discounts are applied.

This container will reflect the cost for the quantity specified through the quantity_for_shipping_estimate query parameter.

Note: The cost does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive cost. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "shippingCostType": { + "type": "string", + "description": "Indicates the class of the shipping cost.

Valid Values: FIXED or CALCULATED

Code so that your app gracefully handles any future changes to this list. " + }, + "shippingServiceCode": { + "type": "string", + "description": "The type of shipping service. For example, USPS First Class." + }, + "shipToLocationUsedForEstimate": { + "description": "The container that returns the country and postal code of where the item is to be shipped. These values come from the contextualLocation values in the X-EBAY-C-ENDUSERCTX request header. If the header is not submitted, marketplace is used.", + "$ref": "#/components/schemas/ShipToLocation" + }, + "trademarkSymbol": { + "type": "string", + "description": "Any trademark symbol, such as ™ or ®, that needs to be shown in superscript next to the shipping service name." + }, + "type": { + "type": "string", + "description": "The type of a shipping option, such as EXPEDITED, ONE_DAY, STANDARD, ECONOMY, PICKUP, etc." + } + }, + "description": "The type that defines the fields for the details of a shipping provider." + }, + "ShippingOptionSummary": { + "type": "object", + "properties": { + "guaranteedDelivery": { + "type": "boolean", + "description": "Although this field is still returned, it can be ignored since eBay Guaranteed Delivery is no longer a supported feature on any marketplace. This field may get removed from the schema in the future." + }, + "maxEstimatedDeliveryDate": { + "type": "string", + "description": "The end date of the delivery window (latest projected delivery date). This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: For the best accuracy, always include the contextualLocation values in the X-EBAY-C-ENDUSERCTX request header.
Note: Estimated delivery dates are not returned for CBT items." + }, + "minEstimatedDeliveryDate": { + "type": "string", + "description": "The start date of the delivery window (earliest projected delivery date). This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: For the best accuracy, always include the contextualLocation values in the X-EBAY-C-ENDUSERCTX request header.
Note: Estimated delivery dates are not returned for CBT items." + }, + "shippingCost": { + "description": "This is the estimated price to ship the item.

The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must do one or more of the following to see VAT-inclusive pricing:Note:For more information on VAT, refer to Your VAT Obligations in the UK & EU.", + "$ref": "#/components/schemas/ConvertedAmount" + }, + "shippingCostType": { + "type": "string", + "description": "Indicates the type of shipping used to ship the item. Possible values are FIXED (flat-rate shipping) and CALCULATED (shipping cost calculated based on item and buyer location)." + } + }, + "description": "The type that defines the fields for the shipping information." + }, + "TargetLocation": { + "type": "object", + "properties": { + "unitOfMeasure": { + "type": "string", + "description": "This value shows the unit of measurement used to measure the distance between the location of the item and the buyer's location. This value is typically mi or km." + }, + "value": { + "type": "string", + "description": "This value indicates the distance (measured in the measurement unit in the unitOfMeasure field) between the item location and the buyer's location." + } + }, + "description": "The type that defines the fields for the distance between the item location and the buyer's location. " + }, + "TaxJurisdiction": { + "type": "object", + "properties": { + "region": { + "description": "The region of the tax jurisdiction.", + "$ref": "#/components/schemas/Region" + }, + "taxJurisdictionId": { + "type": "string", + "description": "The identifier of the tax jurisdiction." + } + }, + "description": "The type that defines the fields for the tax jurisdiction details." + }, + "Taxes": { + "type": "object", + "properties": { + "ebayCollectAndRemitTax": { + "type": "boolean", + "description": "This field is only returned if true, and indicates that eBay will collect tax (sales tax, Goods and Services tax, or VAT) for at least one line item in the order, and remit the tax to the taxing authority of the buyer's residence. " + }, + "includedInPrice": { + "type": "boolean", + "description": "This indicates if tax was applied for the cost of the item." + }, + "shippingAndHandlingTaxed": { + "type": "boolean", + "description": "This indicates if tax is applied for the shipping cost." + }, + "taxJurisdiction": { + "description": "The container that returns the tax jurisdiction.", + "$ref": "#/components/schemas/TaxJurisdiction" + }, + "taxPercentage": { + "type": "string", + "description": "The percentage of tax." + }, + "taxType": { + "type": "string", + "description": "This field indicates the type of tax that may be collected for the item. For implementation help, refer to eBay API documentation" + } + }, + "description": "The type that defines the tax fields." + }, + "TimeDuration": { + "type": "object", + "properties": { + "unit": { + "type": "string", + "description": "An enumeration value that indicates the units of the time span (e.g., HOURS). The enumeration value in this field defines the period of time being used to measure the duration.

Refer to TimeDurationUnitEnum for the list of supported values. For implementation help, refer to eBay API documentation" + }, + "value": { + "type": "integer", + "description": "Retrieves the duration of the time span (no units). The value in this field indicates the number of years, months, days, hours, or minutes in the defined period.", + "format": "int32" + } + }, + "description": "The type that defines the fields for a period of time in the time-measurement units supplied." + }, + "TypedNameValue": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The text representing the name of the aspect for the name/value pair, such as Color." + }, + "type": { + "type": "string", + "description": "This indicates if the value being returned is a string or an array of values.

Valid Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + }, + "value": { + "type": "string", + "description": "The value of the aspect for the name/value pair, such as Red." + } + }, + "description": "The type that defines the fields for the name/value pairs for item aspects." + }, + "VatDetail": { + "type": "object", + "properties": { + "issuingCountry": { + "type": "string", + "description": "The two-letter ISO 3166 standard of the country issuing the seller's VAT (value added tax) ID. VAT is a tax added by some European countries. For implementation help, refer to eBay API documentation" + }, + "vatId": { + "type": "string", + "description": "The seller's VAT (value added tax) ID. VAT is a tax added by some European countries." + } + }, + "description": "The type the defines the fields for the VAT (value add tax) information." } - } - }, - "description": "The type that defines the fields that include and exclude geographic regions affecting where the item can be shipped. The seller defines these regions when listing the item." - }, - "ShipToRegion": { - "type": "object", - "properties": { - "regionId": { - "type": "string", - "description": "The unique identifier of the shipping region. The value returned here is dependent on the corresponding regionType value. The regionId value for a region does not vary based on the eBay marketplace. However, the corresponding regionName value for a region is a localized, text-based description of the shipping region.

If the regionType value is WORLDWIDE, the regionId value will also be WORLDWIDE.

If the regionType value is WORLD_REGION, the regionId value will be one of the following: AFRICA, AMERICAS, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EUROPEAN_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, SOUTH_AMERICA, SOUTHEAST_ASIA or CHANNEL_ISLANDS.

If the regionType value is COUNTRY, the regionId value will be the two-letter code for the country, as defined in the ISO 3166 standard.

If the regionType value is STATE_OR_PROVINCE, the regionId value will either be the two-letter code for US states and DC (as defined on this Social Security Administration page), or the two-letter code for Canadian provinces (as defined by this Canada Post page).

If the regionType value is COUNTRY_REGION, the regionId value may be one of following: _AH (if a seller is not willing to ship to Alaska/Hawaii), _PR (if the seller is not willing to ship to US Protectorates), _AP (if seller is not willing to ship to a US Army or Fleet Post Office), and PO_BOX (if the seller is not willing to ship to a Post Office Box)." - }, - "regionName": { - "type": "string", - "description": "A localized text string that indicates the name of the shipping region. The value returned here is dependent on the corresponding regionType value.

If the regionType value is WORLDWIDE, the regionName value will show Worldwide.

If the regionType value is WORLD_REGION, the regionName value will be a localized text string for one of the following large geographical regions: Africa, Americas, Asia, Australia, Central America and Caribbean, Europe, European Union, Greater China, Middle East, North America, Oceania, South America, Southeast Asia, or Channel Islands.

If the regionType value is COUNTRY, the regionName value will be a localized text string for any country in the world.

If the regionType value is STATE_OR_PROVINCE, the regionName value will be a localized text string for any US state or Canadian province.

If the regionType value is COUNTRY_REGION, the regionName value may be a localized version of one of the following: Alaska/Hawaii, US Protectorates, APO/FPO (Army or Fleet Post Office), or PO BOX." - }, - "regionType": { - "type": "string", - "description": "An enumeration value that indicates the level or type of shipping region.

Valid Values: For more detail on the actual regionName/regionId values that will be returned based on the regionType value, see the regionId and/or regionName field descriptions.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - } - }, - "description": "This type is used provide details about included and excluded shipping regions." - }, - "ShippingOption": { - "type": "object", - "properties": { - "additionalShippingCostPerUnit": { - "description": "Any per item additional shipping costs for a multi-item purchase. For example, let's say the shipping cost for a power cord is $3. But for an additional cord, the shipping cost is only $1. So if you bought 3 cords, the shippingCost would be $3 and this value would be $2 ($1 for each additional item).", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "cutOffDateUsedForEstimate": { - "type": "string", - "description": "The deadline date that the item must be purchased by in order to be received by the buyer within the delivery window ( maxEstimatedDeliveryDate and minEstimatedDeliveryDate fields). This field is returned only for items that are eligible for 'Same Day Handling'. For these items, the value of this field is what is displayed in the Delivery line on the View Item page.

This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer." - }, - "fulfilledThrough": { - "type": "string", - "description": "If the item is being shipped by eBay's Global Shipping Program, this field returns GLOBAL_SHIPPING. Otherwise this field is null. For implementation help, refer to eBay API documentation" - }, - "guaranteedDelivery": { - "type": "boolean", - "description": "Indicates if the seller has committed to shipping the item with eBay Guaranteed Delivery. With eBay Guaranteed Delivery, the seller is committed to getting the line item to the buyer within 4 business days or less. See the Buying items with eBay Guaranteed Delivery help topic for more details about eBay Guaranteed Delivery." - }, - "importCharges": { - "description": "The Global Shipping Program import charges for this item.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "maxEstimatedDeliveryDate": { - "type": "string", - "description": "The end date of the delivery window (latest projected delivery date). This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: For the best accuracy, always include the location of where the item is be shipped in the contextualLocation values of the X-EBAY-C-ENDUSERCTX request header. " - }, - "minEstimatedDeliveryDate": { - "type": "string", - "description": "The start date of the delivery window (earliest projected delivery date). This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: For the best accuracy, always include the location of where the item is be shipped in the contextualLocation values of the X-EBAY-C-ENDUSERCTX request header." - }, - "quantityUsedForEstimate": { - "type": "integer", - "description": "The number of items used when calculating the estimation information.", - "format": "int32" - }, - "shippingCarrierCode": { - "type": "string", - "description": "The name of the shipping provider, such as FedEx, or USPS." - }, - "shippingCost": { - "description": "The final shipping cost for all the items after all discounts are applied.

Note: The cost does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive cost. For more information on VAT, refer to VAT Obligations in the EU.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "shippingCostType": { - "type": "string", - "description": "Indicates the class of the shipping cost.

Valid Values: FIXED or CALCULATED

Code so that your app gracefully handles any future changes to this list. " - }, - "shippingServiceCode": { - "type": "string", - "description": "The type of shipping service. For example, USPS First Class." - }, - "shipToLocationUsedForEstimate": { - "description": "The container that returns the country and postal code of where the item is to be shipped. These values come from the contextualLocation values in the X-EBAY-C-ENDUSERCTX request header. If the header is not submitted, marketplace is used.", - "$ref": "#/components/schemas/ShipToLocation" - }, - "trademarkSymbol": { - "type": "string", - "description": "Any trademark symbol, such as ™ or ®, that needs to be shown in superscript next to the shipping service name." - }, - "type": { - "type": "string", - "description": "The type of a shipping option, such as EXPEDITED, ONE_DAY, STANDARD, ECONOMY, PICKUP, etc." - } - }, - "description": "The type that defines the fields for the details of a shipping provider." - }, - "ShippingOptionSummary": { - "type": "object", - "properties": { - "guaranteedDelivery": { - "type": "boolean", - "description": "Indicates if the seller has committed to shipping the item with eBay Guaranteed Delivery. With eBay Guaranteed Delivery, the seller is committed to getting the line item to the buyer within 4 business days or less. See the Buying items with eBay Guaranteed Delivery help topic for more details about eBay Guaranteed Delivery." - }, - "maxEstimatedDeliveryDate": { - "type": "string", - "description": "The end date of the delivery window (latest projected delivery date). This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: For the best accuracy, always include the contextualLocation values in the X-EBAY-C-ENDUSERCTX request header." - }, - "minEstimatedDeliveryDate": { - "type": "string", - "description": "The start date of the delivery window (earliest projected delivery date). This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which you can convert into the local time of the buyer.

Note: For the best accuracy, always include the contextualLocation values in the X-EBAY-C-ENDUSERCTX request header." - }, - "shippingCost": { - "description": "This is the estimated price to ship the item.

The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must do one or more of the following to see VAT-inclusive pricing: Note: For more information on VAT, refer to VAT Obligations in the EU.", - "$ref": "#/components/schemas/ConvertedAmount" - }, - "shippingCostType": { - "type": "string", - "description": "Indicates the type of shipping used to ship the item. Possible values are FIXED (flat-rate shipping) and CALCULATED (shipping cost calculated based on item and buyer location)." - } - }, - "description": "The type that defines the fields for the shipping information." - }, - "TargetLocation": { - "type": "object", - "properties": { - "unitOfMeasure": { - "type": "string", - "description": "This value shows the unit of measurement used to measure the distance between the location of the item and the buyer's location. This value is typically mi or km." - }, - "value": { - "type": "string", - "description": "This value indicates the distance (measured in the measurement unit in the unitOfMeasure field) between the item location and the buyer's location." - } - }, - "description": "The type that defines the fields for the distance between the item location and the buyer's location. " - }, - "TaxJurisdiction": { - "type": "object", - "properties": { - "region": { - "description": "The region of the tax jurisdiction.", - "$ref": "#/components/schemas/Region" - }, - "taxJurisdictionId": { - "type": "string", - "description": "The identifier of the tax jurisdiction." - } - }, - "description": "The type that defines the fields for the tax jurisdiction details." - }, - "Taxes": { - "type": "object", - "properties": { - "ebayCollectAndRemitTax": { - "type": "boolean", - "description": "This field is only returned if true, and indicates that eBay will collect tax (sales tax, Goods and Services tax, or VAT) for at least one line item in the order, and remit the tax to the taxing authority of the buyer's residence. " - }, - "includedInPrice": { - "type": "boolean", - "description": "This indicates if tax was applied for the cost of the item." - }, - "shippingAndHandlingTaxed": { - "type": "boolean", - "description": "This indicates if tax is applied for the shipping cost." - }, - "taxJurisdiction": { - "description": "The container that returns the tax jurisdiction.", - "$ref": "#/components/schemas/TaxJurisdiction" - }, - "taxPercentage": { - "type": "string", - "description": "The percentage of tax." - }, - "taxType": { - "type": "string", - "description": "This field indicates the type of tax that may be collected for the item. For implementation help, refer to eBay API documentation" - } }, - "description": "The type that defines the tax fields." - }, - "TimeDuration": { - "type": "object", - "properties": { - "unit": { - "type": "string", - "description": "An enumeration value that indicates the units (such as hours) of the time span. The enumeration value in this field defines the period of time being used to measure the duration.

Valid Values: YEAR, MONTH, DAY, HOUR, CALENDAR_DAY, BUSINESS_DAY, MINUTE, SECOND, or MILLISECOND

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - }, - "value": { - "type": "integer", - "description": "Retrieves the duration of the time span (no units).The value in this field indicates the number of years, months, days, hours, or minutes in the defined period. ", - "format": "int32" - } - }, - "description": "The type that defines the fields for a period of time in the time-measurement units supplied." - }, - "TypedNameValue": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The text representing the name of the aspect for the name/value pair, such as Color." - }, - "type": { - "type": "string", - "description": "This indicates if the value being returned is a string or an array of values.

Valid Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" - }, - "value": { - "type": "string", - "description": "The value of the aspect for the name/value pair, such as Red." - } - }, - "description": "The type that defines the fields for the name/value pairs for item aspects." - }, - "UpdateCartItemInput": { - "type": "object", - "properties": { - "cartItemId": { - "type": "string", - "description": "The identifier of the item in the cart to be updated. This ID is generated when the item was added to the cart." - }, - "quantity": { - "type": "integer", - "description": "The new quantity for the item that is being updated.", - "format": "int32" - } - }, - "description": "The type that defines the fields for the updateQuantity request." - }, - "VatDetail": { - "type": "object", - "properties": { - "issuingCountry": { - "type": "string", - "description": "The two-letter ISO 3166 standard of the country issuing the seller's VAT (value added tax) ID. VAT is a tax added by some European countries. For implementation help, refer to eBay API documentation" - }, - "vatId": { - "type": "string", - "description": "The seller's VAT (value added tax) ID. VAT is a tax added by some European countries." - } - }, - "description": "The type the defines the fields for the VAT (value add tax) information." - } - }, - "securitySchemes": { - "api_auth": { - "type": "oauth2", - "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": { - "clientCredentials": { - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope/buy.item.bulk": "Retrieve eBay items in bulk.", - "https://api.ebay.com/oauth/api_scope": "View public data from eBay" - } - }, - "authorizationCode": { - "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope/buy.shopping.cart": " This scope would allow signed in user to access shopping carts" + "securitySchemes": { + "api_auth": { + "type": "oauth2", + "description": "The security definitions for this API. Please check individual operations for applicable scopes.", + "flows": { + "clientCredentials": { + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope/buy.item.bulk": "Retrieve eBay items in bulk.", + "https://api.ebay.com/oauth/api_scope": "View public data from eBay" + } + } + } } - } } - } } - } } \ No newline at end of file diff --git a/specs/buy_deal_v1_oas3.json b/specs/buy_deal_v1_oas3.json index 1c343625..748e2ef8 100644 --- a/specs/buy_deal_v1_oas3.json +++ b/specs/buy_deal_v1_oas3.json @@ -2,7 +2,7 @@ "openapi": "3.0.0", "info": { "title": "Deal API", - "description": "Note: This is a \"Limited(Limited Release) API available only to select developers approved by business units.

This API allows third-party developers to search for and retrieve details about eBay deals and events, as well as the items associated with those deals and events.", + "description": "Note: This is a \"Limited(Limited Release) API available only to select developers approved by business units. For information on how to obtain access to this API in production, see the Buy APIs Requirements.

This API allows third-party developers to search for and retrieve details about eBay deals and events, as well as the items associated with those deals and events.", "contact": { "name": "eBay Inc," }, @@ -29,13 +29,13 @@ "tags": [ "deal_item" ], - "description": "This method retrieves a paginated set of deal items. The result set contains all deal items associated with the specified search criteria and marketplace ID. Request headers This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide. Restrictions This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions. eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "description": "This method retrieves a paginated set of deal items. The result set contains all deal items associated with the specified search criteria and marketplace ID.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", "operationId": "getDealItems", "parameters": [ { "name": "category_ids", "in": "query", - "description": "The unique identifier of the eBay category for the search.", + "description": "This query parameter specifies the unique identifier of the eBay category for the search.

For details see Get Categories for Buy APIs.", "required": false, "schema": { "type": "string" @@ -44,7 +44,7 @@ { "name": "commissionable", "in": "query", - "description": "A filter for commissionable deals. Restriction: This filter is currently only supported for the US marketplace.", + "description": "This query parameter allows the response to filter by commissionable items.

If set to true, only commissionable items will be returned in the response. If set to false, commissionable items will not be returned in the response.

Note: This filter is currently only supported for the US marketplace.", "required": false, "schema": { "type": "string" @@ -53,7 +53,7 @@ { "name": "delivery_country", "in": "query", - "description": "A filter for items that can be shipped to the specified country.", + "description": "This query parameter allows the response to only return items that can be shipped to the specified country (2-digit ISO code).", "required": false, "schema": { "type": "string" @@ -71,7 +71,7 @@ { "name": "offset", "in": "query", - "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0", + "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0", "required": false, "schema": { "type": "string" @@ -80,11 +80,20 @@ { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "A header used to specify the eBay marketplace ID.", + "description": "This header identifies the eBay marketplace.

See HTTP request headers for supported marketplace ID values.", "required": true, "schema": { "type": "string" } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers section of the Buying Integration Guide.", + "required": false, + "schema": { + "type": "string" + } } ], "responses": { @@ -174,22 +183,31 @@ "tags": [ "event" ], - "description": "This method retrieves the details for an eBay event. The result set contains detailed information associated with the specified event ID, such as applicable coupons, start and end dates, and event terms. Request headers This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide. Restrictions This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions. eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "description": "This method retrieves the details for an eBay event. The result set contains detailed information associated with the specified event ID, such as applicable coupons, start and end dates, and event terms.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. ", "operationId": "getEvent", "parameters": [ { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "A header used to specify the eBay marketplace ID.", + "description": "This header identifies the eBay marketplace.

See HTTP request headers for supported marketplace ID values.", "required": true, "schema": { "type": "string" } }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers section of the Buying Integration Guide.", + "required": false, + "schema": { + "type": "string" + } + }, { "name": "event_id", "in": "path", - "description": "The unique identifier for the eBay event.", + "description": "This path parameters specifies the unique identifier for the eBay event being retrieved.

Use the getEvents method to retrieve event IDs.", "required": true, "schema": { "type": "string" @@ -261,13 +279,13 @@ "tags": [ "event" ], - "description": "This method returns paginated results containing all eBay events for the specified marketplace. Request headers This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide. Restrictions This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions. eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "description": "This method returns paginated results containing all eBay events for the specified marketplace.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. ", "operationId": "getEvents", "parameters": [ { "name": "limit", "in": "query", - "description": "The maximum number of items, from the current result set, returned on a single page. Default: 20 Maximum Value: 100", + "description": "The maximum number of items, from the current result set, returned on a single page.

Default: 20

Maximum Value: 100", "required": false, "schema": { "type": "string" @@ -276,7 +294,7 @@ { "name": "offset", "in": "query", - "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0", + "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0", "required": false, "schema": { "type": "string" @@ -285,11 +303,20 @@ { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "A header used to specify the eBay marketplace ID.", + "description": "This header identifies the eBay marketplace.

See HTTP request headers for supported marketplace ID values.", "required": true, "schema": { "type": "string" } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers section of the Buying Integration Guide.", + "required": false, + "schema": { + "type": "string" + } } ], "responses": { @@ -364,13 +391,13 @@ "tags": [ "event_item" ], - "description": "This method returns a paginated set of event items. The result set contains all event items associated with the specified search criteria and marketplace ID. Request headers This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide. Restrictions This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions. eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site.", + "description": "This method returns a paginated set of event items. The result set contains all event items associated with the specified search criteria and marketplace ID.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. ", "operationId": "getEventItems", "parameters": [ { "name": "category_ids", "in": "query", - "description": "The unique identifier of the eBay category for the search. Maximum Value: 1", + "description": "This query parameter specifies the unique identifiers of the eBay categories for the search.

For details see Get Categories for Buy APIs.

Maximum Value: 1", "required": false, "schema": { "type": "string" @@ -379,7 +406,7 @@ { "name": "delivery_country", "in": "query", - "description": "A filter for items that can be shipped to the specified country.", + "description": "This query parameter allows the response to only return items that can be shipped to the specified country (2-digit ISO code).", "required": false, "schema": { "type": "string" @@ -388,7 +415,7 @@ { "name": "event_ids", "in": "query", - "description": "The unique identifiers for the eBay events. Maximum Value: 1", + "description": "This query parameter specifies the unique identifiers for the eBay event items being retrieved.

Use the getEvents method to retrieve event IDs.

Maximum Value: 1", "required": true, "schema": { "type": "string" @@ -397,7 +424,7 @@ { "name": "limit", "in": "query", - "description": "The maximum number of items, from the current result set, returned on a single page. Default: 20", + "description": "The maximum number of items, from the current result set, returned on a single page.

Default: 20", "required": false, "schema": { "type": "string" @@ -406,7 +433,7 @@ { "name": "offset", "in": "query", - "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0", + "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0", "required": false, "schema": { "type": "string" @@ -415,11 +442,20 @@ { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "A header used to specify the eBay marketplace ID.", + "description": "This header identifies the eBay marketplace.

See HTTP request headers for supported marketplace ID values.", "required": true, "schema": { "type": "string" } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers section of the Buying Integration Guide.", + "required": false, + "schema": { + "type": "string" + } } ], "responses": { @@ -522,11 +558,11 @@ "properties": { "currency": { "type": "string", - "description": "The three-letter ISO 4217 code representing the currency of the amount in the value field. Default: The currency of the authenticated user's country. For implementation help, refer to eBay API documentation" + "description": "The three-letter ISO 4217 code representing the currency of the amount in the value field.

Default: The currency of the authenticated user's country. For implementation help, refer to eBay API documentation" }, "value": { "type": "string", - "description": "The monetary value, in the currency specified by the currency field." + "description": "The monetary value, in the currency specified by the currency field." } }, "description": "The currency and value of the item." @@ -600,7 +636,7 @@ }, "itemGroupId": { "type": "string", - "description": "The unique identifier for the deal item group. This is the parent item ID for the seller-defined variations. Note: This field is returned for multiple-SKU items." + "description": "The unique identifier for the deal item group. This is the parent item ID for the seller-defined variations.

Note: This field is returned for multiple-SKU items." }, "itemGroupType": { "type": "string", @@ -608,7 +644,7 @@ }, "itemId": { "type": "string", - "description": "The unique identifier for the deal item. Note: This field is only returned for single-SKU items." + "description": "The unique identifier for the deal item.

Note: This field is only returned for single-SKU items." }, "itemWebUrl": { "type": "string", @@ -623,7 +659,7 @@ "$ref": "#/components/schemas/MarketingPrice" }, "price": { - "description": "The price for the deal item. Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "description": "The price for the deal item.

Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", "$ref": "#/components/schemas/Amount" }, "qualifiedPrograms": { @@ -646,12 +682,12 @@ "description": "The title of the deal item." }, "unitPrice": { - "description": "The price per unit for the deal item. Some European countries require listings for certain types of products to include the price per unit so that buyers can accurately compare prices. For example: "unitPricingMeasure": "100g", "unitPrice": {   "value": "7.99",   "currency": "GBP"", + "description": "The price per unit for the deal item. Some European countries require listings for certain types of products to include the price per unit so that buyers can accurately compare prices.

For example:

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
", "$ref": "#/components/schemas/Amount" }, "unitPricingMeasure": { "type": "string", - "description": "The designation used to specify the quantity of the deal item, such as size, weight, volume, and count. This helps buyers compare prices. For example, the following tells the buyer that the item is 7.99 per 100 grams. "unitPricingMeasure": "100g", "unitPrice": {   "value": "7.99",   "currency": "GBP"" + "description": "The designation used to specify the quantity of the deal item, such as size, weight, volume, and count. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" } }, "description": "The detailed data returned for the deal item." @@ -672,7 +708,7 @@ }, "limit": { "type": "integer", - "description": "The maximum number of items, from the current result set, returned on a single page. Default: 20", + "description": "The maximum number of items, from the current result set, returned on a single page.

Default: 20", "format": "int32" }, "next": { @@ -681,7 +717,7 @@ }, "offset": { "type": "integer", - "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0", + "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0", "format": "int32" }, "prev": { @@ -852,7 +888,7 @@ }, "itemGroupId": { "type": "string", - "description": "The unique identifier for the event item group. This is the parent item ID for the seller-defined variations. Note: This field is returned for multiple-SKU items." + "description": "The unique identifier for the event item group. This is the parent item ID for the seller-defined variations.

Note: This field is returned for multiple-SKU items." }, "itemGroupType": { "type": "string", @@ -860,7 +896,7 @@ }, "itemId": { "type": "string", - "description": "The unique identifier for the event item. Note: This field is only returned for single-SKU items." + "description": "The unique identifier for the event item.

Note: This field is only returned for single-SKU items." }, "itemWebUrl": { "type": "string", @@ -898,12 +934,12 @@ "description": "The title of the event item." }, "unitPrice": { - "description": "The price per unit for the event item. Some European countries require listings for certain types of products to include the price per unit so that buyers can accurately compare prices. For example: "unitPricingMeasure": "100g", "unitPrice": {   "value": "7.99",   "currency": "GBP"", + "description": "The price per unit for the event item. Some European countries require listings for certain types of products to include the price per unit so that buyers can accurately compare prices.

For example:

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
", "$ref": "#/components/schemas/Amount" }, "unitPricingMeasure": { "type": "string", - "description": "The designation used to specify the quantity of the event item, such as size, weight, volume, and count. This helps buyers compare prices. For example, the following tells the buyer that the item is 7.99 per 100 grams. "unitPricingMeasure": "100g", "unitPrice": {   "value": "7.99",   "currency": "GBP"" + "description": "The designation used to specify the quantity of the event item, such as size, weight, volume, and count. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" } }, "description": "The detailed data returned for the event item." @@ -924,7 +960,7 @@ }, "limit": { "type": "integer", - "description": "The maximum number of items, from the current result set, returned on a single page. Default: 20", + "description": "The maximum number of items, from the current result set, returned on a single page.

Default: 20", "format": "int32" }, "next": { @@ -933,7 +969,7 @@ }, "offset": { "type": "integer", - "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0", + "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0", "format": "int32" }, "prev": { @@ -964,7 +1000,7 @@ }, "limit": { "type": "integer", - "description": "The maximum number of items, from the current result set, returned on a single page. Default: 20", + "description": "The maximum number of items, from the current result set, returned on a single page.

Default: 20", "format": "int32" }, "next": { @@ -973,7 +1009,7 @@ }, "offset": { "type": "integer", - "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0", + "description": "The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0", "format": "int32" }, "prev": { @@ -1019,7 +1055,7 @@ }, "discountPercentage": { "type": "string", - "description": "The percentage of the seller discount based on the value returned in the originalPrice field." + "description": "The percentage of the seller discount based on the value returned in the originalPrice field." }, "originalPrice": { "description": "The monetary value of the item prior to the discount.", @@ -1027,7 +1063,7 @@ }, "priceTreatment": { "type": "string", - "description": "The pricing treatment (discount) that was applied to the price of the item. Note: The pricing treatment affects how and where the discounted price can be displayed. For implementation help, refer to eBay API documentation" + "description": "The pricing treatment (discount) that was applied to the price of the item.

Note: The pricing treatment affects how and where the discounted price can be displayed. For implementation help, refer to eBay API documentation" } }, "description": "A type that describes the seller discount." @@ -1036,12 +1072,12 @@ "type": "object", "properties": { "shippingCost": { - "description": "The final shipping cost for all items after all discounts are applied. Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "description": "The final shipping cost for all items after all discounts are applied.

Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", "$ref": "#/components/schemas/Amount" }, "shippingCostType": { "type": "string", - "description": "The class of the shipping cost. Valid Values: FIXED or CALCULATED Code so that your app gracefully handles any future changes to this list." + "description": "The class of the shipping cost.

Valid Values: FIXED or CALCULATED

Code so that your app gracefully handles any future changes to this list. " } }, "description": "The details provided for the shipping provider, such as shipping cost and type." diff --git a/specs/buy_feed_v1_beta_oas3.json b/specs/buy_feed_v1_beta_oas3.json index a9c395bf..32713b43 100644 --- a/specs/buy_feed_v1_beta_oas3.json +++ b/specs/buy_feed_v1_beta_oas3.json @@ -2,7 +2,7 @@ "openapi": "3.0.0", "info": { "title": "Item Feed Service", - "description": "The Feed API provides the ability to download TSV_GZIP feed files containing eBay items and an hourly snapshot file of the items that have changed within an hour for a specific category, date and marketplace.

In addition to the API, there is an open source Feed SDK written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.

", + "description": "Note: This is a \"Limited(Limited Release) API available only to select developers approved by business units. For information on how to obtain access to this API in production, see the Buy APIs Requirements.

The Feed API provides the ability to download TSV_GZIP feed files containing eBay items and an hourly snapshot file of the items that have changed within an hour for a specific category, date and marketplace.

In addition to the API, there is an open source Feed SDK written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.

", "contact": { "name": "eBay Inc," }, @@ -10,7 +10,7 @@ "name": "eBay API License Agreement", "url": "https://go.developer.ebay.com/api-license-agreement" }, - "version": "v1_beta.15.0" + "version": "v1_beta.35.2" }, "servers": [ { @@ -29,13 +29,22 @@ "tags": [ "item" ], - "description": "This method lets you download a TSV_GZIP (tab separated value gzip) Item feed file. The feed file contains all the items from all the child categories of the specified category. The first line of the file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section. There are two types of item feed files generated: A daily Item feed file containing all the newly listed items for a specific category, date, and marketplace (feed_scope = NEWLY_LISTED) A weekly Item Bootstrap feed file containing all the items in a specific category and marketplace (feed_scope = ALL_ACTIVE) Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future. URLs for this method Production URL: https://api.ebay.com/buy/feed/v1_beta/ Sandbox URL: https://api.sandbox.ebay.com/buy/feed/v1_beta/ Downloading feed files Item feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file. In addition to the API, there is an open source Feed SDK written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file. Note: The response is always a TSV_GZIP file. However for documentation purposes, the response is shown as JSON fields so that the value returned in each column can be explained. The order of the response fields, shows you the order of the columns in the feed file. Restrictions For a list of supported sites and other restrictions, see API Restrictions.", + "description": "This method lets you download a TSV_GZIP (tab separated value gzip) Item feed file. The feed file contains all the items from all the child categories of the specified category. The first line of the file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section.

There are two types of item feed files generated:
Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
Note:The downloaded file will be gzipped automatically, so there is no reason to supply Accept-Encoding:gzip as a header. If this header is supplied, the downloaded file will be compressed twice, and this has no extra benefit.

Downloading feed files

Item feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file.For more information about using these headers, see Retrieve a gzip feed file.

In addition to the API, there is an open source Feed SDK written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.

Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.", "operationId": "getItemFeed", "parameters": [ + { + "name": "Accept", + "in": "header", + "description": "The formats that the client accepts for the response.

A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format.

Default: application/json,text/tab-separated-values", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions.", + "description": "The ID of the eBay marketplace where the item is hosted. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions.", "required": true, "schema": { "type": "string" @@ -44,7 +53,7 @@ { "name": "Range", "in": "header", - "description": "This header specifies the range in bytes of the chunks of the gzip file being returned. Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.   Range bytes=0-10485760 For more information about using this headers, see Retrieving a gzip feed file. Maximum: 100 MB (10MB in the Sandbox)", + "description": "This header specifies the range in bytes of the chunks of the gzip file being returned.

Format: bytes=startpos-endpos

For example, the following retrieves the first 10 MBs of the feed file.

  Range bytes=0-10485760

For more information about using this header, see Retrieving a gzip feed file.

Maximum: 100 MB (10MB in the Sandbox)", "required": true, "schema": { "type": "string" @@ -53,7 +62,7 @@ { "name": "feed_scope", "in": "query", - "description": "Specifies the type of feed file to return. Valid Values: NEWLY_LISTED - Returns the daily Item feed file containing all items that were listed on the day specified by the date parameter in the category specified by the category_id parameter. The items are Good 'Til Cancelled and non-Good 'Til Cancelled items. If the item is a non-Good 'Til Cancelled item, the item's end date will be returned in the itemEndDate column. /item?feed_scope=NEWLY_LISTED&category_id=15032&date=20170925 ALL_ACTIVE - Returns the weekly Item Bootstrap feed file containing all the 'Good 'Til Cancelled' items in the category specified by the category_id parameter. Note: Bootstrap files are generated every Tuesday and the file is available on Wednesday. However, the exact time the file is available can vary so we recommend you download the Bootstrap file on Thursday. The items in the file are the items that were in the specified category on Sunday. /item?feed_scope=ALL_ACTIVE&category_id=15032", + "description": "This query parameter specifies the type of feed file to return.

Valid Values: ", "required": true, "schema": { "type": "string" @@ -62,7 +71,7 @@ { "name": "category_id", "in": "query", - "description": "An eBay top-level category ID of the items to be returned in the feed file. The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplaces, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field. For example:   "categoryTreeNodeLevel": 1 For details see Get Categories for Buy APIs. Restriction: Must be a top-level (L1) category", + "description": "This query parameter specifies the eBay top-level category ID of the items to be returned in the feed file.

The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplace, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field.

For example:
  \"categoryTreeNodeLevel\": 1

For details see Get Categories for Buy APIs.

Restriction: Must be a top-level (L1) category other than Real Estate. Items listed under Real Estate L1 categories are excluded from all feeds in all marketplaces.", "required": true, "schema": { "type": "string" @@ -71,7 +80,7 @@ { "name": "date", "in": "query", - "description": "The date of the daily Item feed file (feed_scope=NEWLY_LISTED) you want. The date is required only for the daily Item feed file. If you specify a date for the Item Bootstrap file (feed_scope=ALL_ACTIVE), the date is ignored and the latest file is returned. The date the Item Bootstrap feed file was generated is returned in the Last-Modified response header. The Item feed files are generated every day and there are always 14 files available. The daily Item feed files are available each day after 9AM MST (US Mountain Standard Time), which is -7 hours UTC time. There is a 48 hour latency when generating the Item feed files. This means you can download the file for July 10th on July 12 after 9AM MST. Note: For categories with a large number of items, the latency can be up to 72 hours. Format: yyyyMMdd Requirements: Required when feed_scope=NEWLY_LISTED Must be within 3-14 days in the past", + "description": "This query parameter specifies the date of the daily Item feed file (feed_scope=NEWLY_LISTED) you want to retrieve.

The date is required only for the daily Item feed file. If you specify a date for the Item Bootstrap file (feed_scope=ALL_ACTIVE), the date is ignored and the latest file is returned. The date the Item Bootstrap feed file was generated is returned in the Last-Modified response header.

The Item feed files are generated every day and there are 14 daily files available.

Note: The daily Item feed files are available each day after 9AM MST (US Mountain Standard Time), which is -7 hours UTC time.

There is a 48 hour latency when generating the Item feed files. This means you can download the file for July 10th on July 12 after 9AM MST.

For categories with a large number of items, the latency can be up to 72 hours.

Format: yyyyMMdd

Requirements: ", "required": false, "schema": { "type": "string" @@ -85,13 +94,13 @@ "Content-range": { "schema": { "type": "string", - "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." + "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." } }, "Last-Modified": { "schema": { "type": "string", - "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" + "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" } } }, @@ -104,7 +113,7 @@ } }, "204": { - "description": "No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details." + "description": "No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details." }, "206": { "description": "Partial Content", @@ -112,13 +121,13 @@ "Content-range": { "schema": { "type": "string", - "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." + "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." } }, "Last-Modified": { "schema": { "type": "string", - "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" + "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" } } }, @@ -152,7 +161,7 @@ "13005": { "domain": "API_FEED", "category": "REQUEST", - "description": "The 'date' {date} submitted is invalid. The date can be 3 to 9 days in the past. The format is yyyyMMdd." + "description": "The 'date' {feedDate} submitted is invalid. Either the date format is wrong, or the files are not available for the specific date. Valid values: {earliestDate} to {latestDate} in the past. The format is yyyyMMdd." }, "13007": { "domain": "API_FEED", @@ -222,14 +231,34 @@ } } }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "13023": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "Insufficient permissions to access this API for the marketplace {marketplaceId}. Please contact eBay Technical Support for further assistance." + }, + "13024": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "Insufficient permissions to access this API for the category {category_id}. Please contact eBay Technical Support for further assistance." + } + } + } + }, "404": { "description": "Not found" }, + "409": { + "description": "Conflict" + }, "416": { "description": "Range not satisfiable" }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "x-response-codes": { "errors": { "13006": { @@ -255,13 +284,22 @@ "tags": [ "item_group" ], - "description": "This method lets you download a TSV_GZIP (tab separated value gzip) Item Group feed file. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. There are two types of item group feed files generated: A daily Item Group feed file containing the item group variation information associated with items returned in the Item feed file for a specific day, category, and marketplace. (feed_scope = NEWLY_LISTED) A weekly Item Group Bootstrap feed file containing all the item group variation information associated with items returned in the Item Bootstrap feed file for all the items in a specific category. (feed_scope = ALL_ACTIVE) Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future. The contents of these feed files are based on the contents of the corresponding daily Item or Item Bootstrap feed file. When a new Item or Item Bootstrap feed file is generated, the service reads the file and if an item in the file has a primaryItemGroupId value, which indicates the item is part of an item group, it uses that value to return the item group (parent item) information for that item in the corresponding Item Group or Item Group Bootstrap feed file. This information includes the name/value pair of the aspects of the items in this group returned in the variesByLocalizedAspects column. For example, if the item was a shirt some of the variation names could be Size, Color, etc. Also the images for the various aspects are returned in the additionalImageUrls column. The first line in any feed file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section. Combining the Item Group and Item feed files The Item Group or Item Group Bootstrap feed file contains details about the item group (parent item), including the item group ID itemGroupId. You match the value of itemGroupId from the Item Group feed file with the value of primaryItemGroupId from the corresponding daily Item or Item Bootstrap feed file. URLs for this method Production URL: https://api.ebay.com/buy/feed/v1_beta/ Sandbox URL: https://api.sandbox.ebay.com/buy/feed/v1_beta/ Downloading feed files Item Group feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file. Note: The response is always only a TSV_GZIP file. However for documentation purposes, the response is shown as JSON fields so that the value returned in each column can be explained. The order of the response fields, shows you the order of the columns in the feed file. Restrictions For a list of supported sites and other restrictions, see API Restrictions.", + "description": "This method lets you download a TSV_GZIP (tab separated value gzip) Item Group feed file. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

There are two types of item group feed files generated:
Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
Note:The downloaded file will be gzipped automatically, so there is no reason to supply Accept-Encoding:gzip as a header. If this header is supplied, the downloaded file will be compressed twice, and this has no extra benefit.
The contents of these feed files are based on the contents of the corresponding daily Item or Item Bootstrap feed file. When a new Item or Item Bootstrap feed file is generated, the service reads the file and if an item in the file has a primaryItemGroupId value, which indicates the item is part of an item group, it uses that value to return the item group (parent item) information for that item in the corresponding Item Group or Item Group Bootstrap feed file.

This information includes the name/value pair of the aspects of the items in this group returned in the variesByLocalizedAspects column. For example, if the item was a shirt some of the variation names could be Size, Color, etc. Also the images for the various aspects are returned in the additionalImageUrls column.

The first line in any feed file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section.

Combining the Item Group and Item feed files

The Item Group or Item Group Bootstrap feed file contains details about the item group (parent item), including the item group ID itemGroupId. You match the value of itemGroupId from the Item Group feed file with the value of primaryItemGroupId from the corresponding daily Item or Item Bootstrap feed file.

Downloading feed files

Item Group feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieve a gzip feed file.

Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.", "operationId": "getItemGroupFeed", "parameters": [ + { + "name": "Accept", + "in": "header", + "description": "The formats that the client accepts for the response.

A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate error codes that are returned in JSON format.

Default: application/json,text/tab-separated-values", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions.", + "description": "The ID of the eBay marketplace where the item is hosted. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions.", "required": true, "schema": { "type": "string" @@ -270,7 +308,7 @@ { "name": "Range", "in": "header", - "description": "This header specifies the range in bytes of the chunks of the gzip file being returned. Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.   Range bytes=0-10485760 For more information about using this headers, see Retrieving a gzip feed file. Maximum: 100 MB (10MB in the Sandbox)", + "description": "This header specifies the range in bytes of the chunks of the gzip file being returned.

Format: bytes=startpos-endpos

For example, the following retrieves the first 10 MBs of the feed file.

  Range bytes=0-10485760

For more information about using this header, see Retrieving a gzip feed file.

Maximum: 100 MB (10MB in the Sandbox)", "required": false, "schema": { "type": "string" @@ -279,7 +317,7 @@ { "name": "feed_scope", "in": "query", - "description": "Specifies the type of file to return. Valid Values: NEWLY_LISTED - Returns the Item Group feed file containing the item group variation information for items in the daily Item feed file that were associated with an item group. The items in this type of Item feed file are items that were listed on the day specified by the date parameter in the category specified by the category_id parameter. The items will be Good 'Til Cancelled and non-Good 'Til Cancelled items. If the item is a non-Good 'Til Cancelled item, the item's end date will be returned in the itemEndDate column. /item_group?feed_scope=NEWLY_LISTED&category_id=15032&date=20170925 ALL_ACTIVE - Returns the weekly Item Group Bootstrap file containing the item group variation information for items in the weekly Item Bootstrap feed file that were associated with an item group. The items are 'Good 'Til Cancelled' items in the category specified by the category_id parameter. Note: Bootstrap files are generated every Tuesday and the file is available on Wednesday. However, the exact time the file is available can vary so we recommend you download the Bootstrap file on Thursday. The item groups in the file are for the items that were in the specified category on Sunday. /item_group?feed_scope=ALL_ACTIVE&category_id=15032", + "description": "This query parameter specifies the type of file to return.

Valid Values:

Restriction: Must be a top-level category other than Real Estate. Items listed under Real Estate L1 categories are excluded from all feeds in all marketplaces.", "required": true, "schema": { "type": "string" @@ -297,7 +335,7 @@ { "name": "date", "in": "query", - "description": "The date of the daily Item Group feed file (feed_scope=NEWLY_LISTED) you want. The date is required only for the daily Item Group feed file. If you specify a date for the Item Group Bootstrap file (feed_scope=ALL_ACTIVE), the date is ignored and the latest file is returned. The date the Item Group Bootstrap feed file was generated is returned in the Last-Modified response header. The Item Group feed files are generated every day and there are always 14 files available. There is a 48 hour latency when generating the files. This means on July 10, the latest feed file you can download is July 8. Note: The generated files are stored using MST (US Mountain Standard Time), which is -7 hours UTC time. Format: yyyyMMdd Requirement: Requirements: Required only when feed_scope=NEWLY_LISTED Must be within 3-14 days in the past", + "description": " This query parameter specifies the date of the daily Item Group feed file (feed_scope=NEWLY_LISTED) you want.

The date is required only for the daily Item Group feed file. If you specify a date for the Item Group Bootstrap file (feed_scope=ALL_ACTIVE), the date is ignored and the latest file is returned. The date the Item Group Bootstrap feed file was generated is returned in the Last-Modified response header.

The Item Group feed files are generated every day and there are 14 daily files available.

There is a 48 hour latency when generating the files. This means on July 10, the latest feed file you can download is July 8.

Note: The generated files are stored using MST (US Mountain Standard Time), which is -7 hours UTC time.
Format: yyyyMMdd

Requirements: ", "required": false, "schema": { "type": "string" @@ -311,13 +349,13 @@ "Content-range": { "schema": { "type": "string", - "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." + "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." } }, "Last-Modified": { "schema": { "type": "string", - "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" + "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" } } }, @@ -330,7 +368,7 @@ } }, "204": { - "description": "No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details." + "description": "No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details." }, "206": { "description": "Partial Content", @@ -338,13 +376,13 @@ "Content-range": { "schema": { "type": "string", - "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." + "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." } }, "Last-Modified": { "schema": { "type": "string", - "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" + "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" } } }, @@ -378,7 +416,7 @@ "13005": { "domain": "API_FEED", "category": "REQUEST", - "description": "The 'date' {date} submitted is invalid. The date can be 3 to 9 days in the past. The format is yyyyMMdd." + "description": "The 'date' {feedDate} submitted is invalid. Either the date format is wrong, or the files are not available for the specific date. Valid values: {earliestDate} to {latestDate} in the past. The format is yyyyMMdd." }, "13007": { "domain": "API_FEED", @@ -448,14 +486,34 @@ } } }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "13023": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "Insufficient permissions to access this API for the marketplace {marketplaceId}. Please contact eBay Technical Support for further assistance." + }, + "13024": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "Insufficient permissions to access this API for the category {category_id}. Please contact eBay Technical Support for further assistance." + } + } + } + }, "404": { "description": "Not found" }, + "409": { + "description": "Conflict" + }, "416": { "description": "Range not satisfiable" }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "x-response-codes": { "errors": { "13006": { @@ -481,13 +539,22 @@ "tags": [ "item_snapshot" ], - "description": "The Hourly Snapshot feed file is generated each hour every day for all categories. This method lets you download an Hourly Snapshot TSV_GZIP (tab separated value gzip) feed file containing the details of all the items that have changed within the specified day and hour for a specific category. This means to generate the 8AM file of items that have changed from 8AM and 8:59AM, the service starts at 9AM. You can retrieve the 8AM snapshot file at 10AM. Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future. You can use the response from this method to update the item details of items stored in your database. By comparing the value of itemSnapshotDate for the same item you will be able to tell which information is the latest. Important: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated. URLs for this method Production URL: https://api.ebay.com/buy/feed/v1_beta/ Sandbox URL: https://api.sandbox.ebay.com/buy/feed/v1_beta/ Downloading feed files Hourly snapshot feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file. Note: The response is always a TSV_GZIP file. However for documentation purposes, the response is shown as JSON fields so that the value returned in each column can be explained. The order of the response fields, shows you the order of the columns in the feed file. Restrictions For a list of supported sites and other restrictions, see API Restrictions.", + "description": "The Hourly Snapshot feed file is generated each hour every day for most categories. This method lets you download an Hourly Snapshot TSV_GZIP (tab-separated value gzip) feed file containing the details of all the items that have changed within the specified day and hour for a specific category. This means to generate the 8AM file of items that have changed from 8AM and 8:59AM, the service starts at 9AM. You can retrieve the 8AM snapshot file at 10AM.

Snapshot feeds now include new listings. You can check itemCreationDate to identify listings that were newly created within the specified hour.

Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.

You can use the response from this method to update the item details of items stored in your database. By looking at the value of itemSnapshotDate for a given item, you will be able to tell which information is the latest.
Important: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated.
Note:The downloaded file will be gzipped automatically, so there is no reason to supply Accept-Encoding:gzip as a header. If this header is supplied, the downloaded file will be compressed twice, and this has no extra benefit.

Downloading feed files

Hourly snapshot feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file.

Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.", "operationId": "getItemSnapshotFeed", "parameters": [ + { + "name": "Accept", + "in": "header", + "description": "The formats that the client accepts for the response.

A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate error codes that are returned in JSON format.

Default: application/json,text/tab-separated-values", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions.", + "description": "The ID of the eBay marketplace where the item is hosted. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions.", "required": true, "schema": { "type": "string" @@ -496,7 +563,7 @@ { "name": "Range", "in": "header", - "description": "This header specifies the range in bytes of the chunks of the gzip file being returned. Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.   Range bytes=0-10485760 For more information about using this headers, see Retrieving a gzip feed file. Maximum: 100 MB (10MB in the Sandbox)", + "description": "This header specifies the range in bytes of the chunks of the gzip file being returned.

Format: bytes=startpos-endpos

For example, the following retrieves the first 10 MBs of the feed file.

  Range bytes=0-10485760

For more information about using this header, see Retrieving a gzip feed file.

Maximum: 100 MB (10MB in the Sandbox)", "required": true, "schema": { "type": "string" @@ -505,7 +572,7 @@ { "name": "category_id", "in": "query", - "description": "An eBay top-level category ID of the items to be returned in the feed file. The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplace, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field. For example:   "categoryTreeNodeLevel": 1 For details see Get Categories for Buy APIs. Restriction: Must be a top-level category", + "description": "This query parameter specifies the eBay top-level category ID of the items to be returned in the feed file.

The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplace, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field.

For example:
  \"categoryTreeNodeLevel\": 1

For details see Get Categories for Buy APIs.

Restriction: Must be a top-level category other than Real Estate. Items listed under Real Estate L1 categories are excluded from all feeds in all marketplaces.", "required": true, "schema": { "type": "string" @@ -514,7 +581,7 @@ { "name": "snapshot_date", "in": "query", - "description": "The hour of the incremental feed file you want, for a particular day. There are always 14 days of Hourly Snapshot feed files available. If you specify that you want the 9AM file for July 15, 2017 (2017-07-15T09:00:00.000Z), the data in the feed file will be items that changed after 9AM on July 15, 2017. Restrictions: Files are generated on the hour, so minutes and seconds are always zeros.    (2017-07-12T09:00:00.000Z) Format: UTC format (yyyy-MM-ddThh:00:00.000Z)", + "description": "This query parameter specifies the date and hour of the snapshot feed file you want to retrieve.

Each file contains the items that changed within the hour in the specified category. So, the 9AM file contains the items that changed between 9AM and 9:59AM on the day specified. It takes 2 hours to generate a snapshot file, which means to get the file for 9AM the earliest you could submit the call is at 11AM.

There are 7 days of Hourly Snapshot feed files available.

Note: The Feed API uses GMT, so you must convert your local time to GMT. For example, if you lived in California and wanted the September 15th 7pm file, you would submit the following call:

item_snapshot?category_id=625&snapshot_date=2017-09-16T02:00:00.000Z

Format: UTC yyyy-MM-ddThh:00:00.000Z

Note: Files are generated on the hour, so minutes and seconds are always zeros.", "required": true, "schema": { "type": "string" @@ -528,13 +595,13 @@ "Content-range": { "schema": { "type": "string", - "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." + "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." } }, "Last-Modified": { "schema": { "type": "string", - "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" + "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" } } }, @@ -547,7 +614,7 @@ } }, "204": { - "description": "No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details." + "description": "No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details." }, "206": { "description": "Partial Content", @@ -555,13 +622,13 @@ "Content-range": { "schema": { "type": "string", - "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." + "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." } }, "Last-Modified": { "schema": { "type": "string", - "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" + "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" } } }, @@ -574,7 +641,7 @@ } }, "400": { - "description": "Bad request", + "description": "Bad Request", "x-response-codes": { "errors": { "13000": { @@ -655,9 +722,29 @@ } } }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "13023": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "Insufficient permissions to access this API for the marketplace {marketplaceId}. Please contact eBay Technical Support for further assistance." + }, + "13024": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "Insufficient permissions to access this API for the category {category_id}. Please contact eBay Technical Support for further assistance." + } + } + } + }, "404": { "description": "Not found" }, + "409": { + "description": "Conflict" + }, "416": { "description": "Range not satisfiable" }, @@ -683,36 +770,36 @@ ] } }, - "/product": { + "/item_priority": { "get": { "tags": [ - "product" + "item_priority" ], - "description": "Each day an Item feed file is generated for every top-level (L1) category. This file contains all the newly listed items for that day that are in the category including all its child categories. Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future. The service reads this Item feed file and if an item in the Item feed file has an epid (eBay Product Id) value, the service uses that value to return the product information for that item in the Product feed file for that day and category. This method lets you download the Product TSV_GZIP (tab separated value gzip) feed file containing the product information for items in the Item feed file that were associated with a product. The first line of the file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section. To store all the item details provided by the Feed API, you would use the getItemFeed, getItemDescriptionFeed, getItemGroupFeed, and getProductFeed methods using the same parameters. For example:     /item?feed_scope=NEWLY_LISTED&category_id=625&date=20170918     /item_description?feed_scope=NEWLY_LISTED&category_id=625&date=20170918     /item-group?feed_scope=NEWLY_LISTED&category_id=625&date=20170918     /product?feed_scope=NEWLY_LISTED&category_id=625&date=20170918 Combining the Product and Item feed files The Product feed file contains details about the product, including the product epid. You match the value of epid from the Product feed file with the value of epid from the Item feed file for the same day and category. Downloading feed files Product feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file. URLs for this method Production URL: https://api.ebay.com/buy/feed/v1_beta/ Sandbox URL: https://api.sandbox.ebay.com/buy/feed/v1_beta/ Note: The response is always a TSV_GZIP file. However for documentation purposes, the response is shown as JSON fields so that the value returned in each column can be explained. The order of the response fields, shows you the order of the columns in the feed file. Restrictions For a list of supported sites and other restrictions, see API Restrictions.", - "operationId": "getProductFeed", + "description": "Using this method, you can download a TSV_GZIP (tab separated value gzip) Item Priority feed file, which allows you to track changes (deltas) in the status of your priority items, such as when an item is added or removed from a campaign. The delta feed tracks the changes to the status of items within a category you specify in the input URI. You can also specify a specific date for the feed you want returned.

Important! You must consume the daily feeds (Item, Item Group) before consuming the Item Priority feed. This ensures that your inventory is up to date.


Note: The downloaded file will be gzipped automatically, so there is no reason to supply Accept-Encoding:gzip as a header. If this header is supplied, the downloaded file will be compressed twice, and this has no extra benefit.

Downloading feed files

Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
Priority Item feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieve a gzip feed file.

In addition to the API, there is an open source Feed SDK written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.

Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.", + "operationId": "getItemPriorityFeed", "parameters": [ { - "name": "X-EBAY-C-MARKETPLACE-ID", + "name": "Accept", "in": "header", - "description": "The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions.", + "description": "The formats that the client accepts for the response.

A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate error codes that are returned in JSON format.

Default: application/json,text/tab-separated-values", "required": true, "schema": { "type": "string" } }, { - "name": "Range", + "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "This header specifies the range in bytes of the chunks of the gzip file being returned. Format: bytes=startpos-endpos For example, this retrieves the first 10 MBs of the feed file: bytes=0-10485760 For more information about using this headers, see Retrieving a gzip feed file. Maximum: 100 MB (10MB in the Sandbox)", + "description": "The ID of the eBay marketplace where the item is hosted. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, Buy API Support by Marketplace.", "required": true, "schema": { "type": "string" } }, { - "name": "feed_scope", - "in": "query", - "description": "Specifies the type of product feed file to return. Valid Values: NEWLY_LISTED - Returns the file containing the product information for items in the NEWLY_LISTED Item feed file that were associated with a product. The items in this type of Item feed file are items that were listed on the day specified by the date parameter in the category specified by the category_id parameter. The items will be Good 'Til Cancelled and non-Good 'Til Cancelled items. If the item is a non-Good 'Til Cancelled item, the item's end date will be returned in the itemEndDate column. /product?feed_scope=NEWLY_LISTED&category_id=15032&date=20170925 ALL_ACTIVE (bootstrap) - Returns the file containing the product information for items in the ALL_ACTIVE Item feed file that were associated with a product. The items in this type of Item feed file are all the 'Good 'Til Cancelled' items in the category specified by the category_id parameter. Note: Bootstrap files are generated every Tuesday and the file is available on Wednesday. However, the exact time the file is available can vary so we recommend you download the Bootstrap file on Thursday. The products in the file are the products that were in the specified category on Sunday. /product?feed_scope=ALL_ACTIVE&category_id=15032", + "name": "Range", + "in": "header", + "description": "Header specifying content range to be retrieved. Only supported range is bytes.

Example : bytes = 0-102400.", "required": true, "schema": { "type": "string" @@ -721,7 +808,7 @@ { "name": "category_id", "in": "query", - "description": "An eBay top-level category ID of the items to be returned in the feed file. The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplaces, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field. For example:   "categoryTreeNodeLevel": 1 For details see Get Categories for Buy APIs. Restriction: Must be a top-level category", + "description": "This query parameter specifies the eBay top-level category ID of the items to be returned in the feed file.

The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplaces, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field.

For example:
  \"categoryTreeNodeLevel\": 1

For details see Get the eBay categories of a marketplace.

Restriction: Must be a top-level category other than Real Estate. Items listed under Real Estate L1 categories are excluded from all feeds in all marketplaces.", "required": true, "schema": { "type": "string" @@ -730,8 +817,8 @@ { "name": "date", "in": "query", - "description": "The date of the feed file you want. This is needed only when feed_scope=NEWLY_LISTED. If you specify a date and feed_scope=ALL_ACTIVE, the date is ignored and the latest file is returned. The date of the file is returned in the Last-Modified response header. The Product feed files are generated every day and there are always 14 daily feed files available. There is a 48 hour latency when generating the files. This means on July 10, the latest feed file you can download is July 8. In other words, if you wanted the file generated on July 10th, you would need to wait until July 12th. Note: The generated files are stored using MST (US Mountain Standard Time), which is -7 hours UTC time. Format: yyyyMMdd Requirements: Must be within 3-14 days in the past Required when feed_scope=NEWLY_LISTED", - "required": false, + "description": "This query parameter specifies the date of the feed you want returned.

This can be up to 14 days in the past but cannot be set to a date in the future.

Format: yyyyMMdd

Note: The daily Item feed files are available each day after 9AM MST (US Mountain Standard Time), which is -7 hours UTC time.

There is a 48 hour latency when generating the Item feed files. This means you can download the file for July 10th on July 12 after 9AM MST.

For categories with a large number of items, the latency can be up to 72 hours.", + "required": true, "schema": { "type": "string" } @@ -744,26 +831,26 @@ "Content-range": { "schema": { "type": "string", - "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." + "description": "The content range for the current request. Typically in the format : 0-100/1000 where 0-100 is the content length of the current response and 1000 is the total content length. In case of a 416 status code, content-range would be */1000, which denotes an invalid range header." } }, "Last-Modified": { "schema": { "type": "string", - "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" + "description": "Signifies the date when the files are generated. For example : Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT." } } }, "content": { "text/tab-separated-values": { "schema": { - "$ref": "#/components/schemas/ProductResponse" + "$ref": "#/components/schemas/ItemPriorityResponse" } } } }, "204": { - "description": "No Content
This code is returned when there are no products that meet the criteria for this feed file. See Feed File Filters for details." + "description": "No Content" }, "206": { "description": "Partial Content", @@ -771,20 +858,20 @@ "Content-range": { "schema": { "type": "string", - "description": "The content-range response header indicates where in the full resource this partial chunk of data belongs. It returns the lower and upper values in bytes (specified by the Range header) of the chunk and the total size of the file being downloaded in bytes.

Maximum range: 100 MB

The following is an example of a content-range response, where 0-10 is the lower and upper limit in bytes and 1000 is the total size of the file in bytes.

  0-10/1000

The following example of a content-range response indicates the value of the Range header is invalid and a 416 status code is returned.

   */1000

For more information and examples, see Retrieving a gzip feed file." + "description": "The content range for the current request. Typically in the format : 0-100/1000 where 0-100 is the content length of the current response and 1000 is the total content length. In case of a 416 status code, content-range would be */1000, which denotes an invalid range header." } }, "Last-Modified": { "schema": { "type": "string", - "description": "Returns the generated date of the feed file, which will be the latest file available. For example:
Last-Modified  Wed, 21 Oct 2015 07:28:00 GMT" + "description": "Signifies the date when the files are generated. For example : Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT." } } }, "content": { "text/tab-separated-values": { "schema": { - "$ref": "#/components/schemas/ProductResponse" + "$ref": "#/components/schemas/ItemPriorityResponse" } } } @@ -798,11 +885,6 @@ "category": "REQUEST", "description": "The request contains data that is invalid. Correct the request and submit the call again. For help, see the API Reference documentation for this call." }, - "13003": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feed_scope' {feed_scope} submitted is invalid. Valid values: {feedScopes}" - }, "13004": { "domain": "API_FEED", "category": "REQUEST", @@ -811,17 +893,7 @@ "13005": { "domain": "API_FEED", "category": "REQUEST", - "description": "The 'date' {date} submitted is invalid. The date can be 3 to 9 days in the past. The format is yyyyMMdd." - }, - "13007": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The feed file requested cannot be found. It is possible the file requested is in the process of being generated. Either change the date or try the call again later." - }, - "13009": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The mandatory 'feed_scope' query parameter is missing. Valid values: {feedScopes}" + "description": "The 'date' {feedDate} submitted is invalid. Either the date format is wrong, or the files are not available for the specific date. Valid values: {earliestDate} to {latestDate} in the past. The format is yyyyMMdd." }, "13010": { "domain": "API_FEED", @@ -858,11 +930,6 @@ "category": "REQUEST", "description": "The 'Range' request header format is invalid. Format: 'bytes=start position-end position'. For help, see the API Reference documentation for this call." }, - "13017": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'Range' header is invalid. Please verify that the start and end positions are correct. For help, see the API Reference documentation for this call." - }, "13018": { "domain": "API_FEED", "category": "REQUEST", @@ -881,14 +948,52 @@ } } }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "13023": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "Insufficient permissions to access this API for the marketplace {marketplaceId}. Please contact eBay Technical support for further assistance." + }, + "13024": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "Insufficient permissions to access this API for the category {category_id}. Please contact eBay Technical support for further assistance." + } + } + } + }, "404": { - "description": "Not found" + "description": "Not found", + "x-response-codes": { + "errors": { + "13007": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The feed file requested cannot be found. It is possible the file requested is in the process of being generated. Either change the date or try the call again later." + } + } + } + }, + "409": { + "description": "Conflict" }, "416": { - "description": "Range not satisfiable" + "description": "Range not satisfiable", + "x-response-codes": { + "errors": { + "13017": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'Range' header is invalid. Please verify that the start and end positions are correct. For help, see the API Reference documentation for this call." + } + } + } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "x-response-codes": { "errors": { "13006": { @@ -903,7 +1008,7 @@ "security": [ { "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.product.feed" + "https://api.ebay.com/oauth/api_scope/buy.item.feed" ] } ] @@ -982,27 +1087,27 @@ "properties": { "itemId": { "type": "string", - "description": "The unique identifier of the eBay item." + "description": "The unique identifier of an item in eBay RESTful format. An example would be v1|1**********2|4**********2." }, "title": { "type": "string", - "description": "The seller created title of the item. This text is an escaped string when special characters are present, using the following rules: Double quotes (") and backslashes (\\) in the Title are escaped with a backslash (\\) character If there are any tabs (\\t), double quotes ("), or backslashes (\\) in the Title, the entire Title will be wrapped in double quotes. For example Before: Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\Tracking Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series After: "Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\\\Tracking" "Marvel Legends HULK 8\\" Figure Avengers Age of Ultron Studios 6\\" Series"" + "description": "The seller created title of the item. This text is an escaped string when special characters are present, using the following rules:

For example

Before:

Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking

Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series

After:

"Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\ Tracking"

"Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series"

" }, "imageUrl": { "type": "string", - "description": "The URL to the primary image of the item. This is the URL of the largest image available based on what the seller submitted." + "description": "The URL to the primary image of the item. This is the URL of the largest image available based on what the seller submitted." }, "category": { "type": "string", - "description": "The label of the category. For example: Toys & Hobbies|Action Figures|Comic Book Heroes" + "description": "The label of the category. For example: Toys & Hobbies|Action Figures|Comic Book Heroes " }, "categoryId": { "type": "string", - "description": "The ID of the category of the item. For example: The ID for Toys & Hobbies|Action Figures|Comic Book Heroes is 158671." + "description": "The ID of the category of the item. For example: The ID for Toys & Hobbies|Action Figures|Comic Book Heroes is 158671." }, "buyingOptions": { "type": "string", - "description": "A comma separated list of the purchase options available for the item, such as FIXED_PRICE, AUCTION. FIXED_PRICE - Returned for fixed-price items (non-auction) AUCTION - Returned for auction items without Buy It Now feature FIXED_PRICE and AUCTION - Returned for auction items enabled with the Buy It Now feature Code so that your app gracefully handles any future changes to this list." + "description": "A comma separated list of the purchase options available for the item. Currently the only supported option is FIXED_PRICE.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "sellerUsername": { "type": "string", @@ -1018,7 +1123,7 @@ }, "gtin": { "type": "string", - "description": "The unique Global Trade Item Number of the item as defined by http://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value." + "description": "The unique Global Trade Item Number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value." }, "brand": { "type": "string", @@ -1026,27 +1131,27 @@ }, "mpn": { "type": "string", - "description": "The manufacturer part number, which is a number that is used in combination with brand to identify a product." + "description": "The manufacturer part number, which is a number that is used in combination with brand to identify a product." }, "epid": { "type": "string", - "description": "The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling." + "description": "The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling." }, "conditionId": { "type": "string", - "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names. Code so that your app gracefully handles any future changes to this list." + "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list." }, "condition": { "type": "string", - "description": "The text describing the condition of the item. For a list of condition names, see Item Condition IDs and Names. Code so that your app gracefully handles any future changes to this list." + "description": "The text describing the condition of the item. For a list of condition names, see Item Condition IDs and Names." }, "priceValue": { "type": "string", - "description": "The price of the item. This price can be a discounted price. If it is discounted, information about the discount is returned in the originalPriceValue, originalPriceCurrency, discountAmount, and discountPercentage columns." + "description": "The price of the item, which can be a discounted price. If it is discounted, information about the discount is returned in the originalPriceValue, originalPriceCurrency, discountAmount, and discountPercentage columns.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU." }, "priceCurrency": { "type": "string", - "description": "The currency used for the price of the item. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation" + "description": "The currency used for the price of the item. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation" }, "primaryItemGroupId": { "type": "string", @@ -1054,15 +1159,15 @@ }, "primaryItemGroupType": { "type": "string", - "description": "The item group type. Supported value: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller. Code so that your app gracefully handles any future changes to this list." + "description": "The item group type. Supported value: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "itemEndDate": { "type": "string", - "description": "A timestamp indicating when the item's sale period will end based on its start date and duration. For Good 'Til Cancelled' items, no value is returned in this column. Format: UTC (yyyy-MM-ddThh:mm:ss.sssZ)." + "description": "A timestamp indicating when the item's sale period will end based on its start date and duration. For Good 'Til Cancelled items, no value is returned in this column.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ" }, "sellerItemRevision": { "type": "string", - "description": "An identifier generated/incremented when a seller revises the item. There are two types of item revisions; seller changes, such as changing the title and eBay system changes, such as changing the quantity when an item is purchased. This ID is changed only when the seller makes a change to the item." + "description": "An identifier generated/incremented when a seller revises the item. There are two types of item revisions: This ID is changed only when the seller makes a change to the item." }, "itemLocationCountry": { "type": "string", @@ -1070,32 +1175,32 @@ }, "localizedAspects": { "type": "string", - "description": "A semicolon separated list of the name/value pairs for the aspects of the item, which are BASE64 encoded. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;). Example without Label    Encoded Format:    encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue    Encoded Example (The delimiters are empathized):    U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==    Decoded:    Size:XL;Color:Red;Sleeves:Long Example with Label    Encoded Format:    encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|    Encoded Example (The delimiters are empathized):    UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=    Decoded:    Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7 Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string. For more information, see Encoded Aspects in the Buying Integration Guide." + "description": "A semicolon separated list of the name/value pairs for the aspects of the item, which are Base64 encoded. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;).

Example without Label

   Encoded Format:
   encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue

   Encoded Example (The delimiters are emphasized):
   U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==

   Decoded:
   Size:XL;Color:Red;Sleeves:Long


Example with Label

   Encoded Format:
   encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|

   Encoded Example (The delimiters are emphasized):
   UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=

   Decoded:
   Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7

Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string.

For more information, see Encoded Aspects in the Buying Integration Guide.

" }, "sellerTrustLevel": { "type": "string", - "description": "An enumeration value representing the eBay status of the seller. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "An enumeration value representing the eBay status of the seller.

Valid Values: TOP_RATED, ABOVE_STANDARD, or an empty value.

An empty value indicates a return of anything other than TOP_RATED or ABOVE_STANDARD.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" }, "availability": { "type": "string", - "description": "An enumeration value representing the item's availability (possibility of being purchased). Values: AVAILABLE TEMPORARILY_UNAVAILABLE UNAVAILABLE Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "An enumeration value representing the item's availability (possibility of being purchased).

Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" }, "imageAlteringProhibited": { "type": "boolean", - "description": "A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image. Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only." + "description": "A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image.

Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only.

" }, "estimatedAvailableQuantity": { "type": "integer", - "description": "The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.", + "description": "The estimated quantity of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is very difficult to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.

Note: If the seller of an item has the available threshold setting turned on, the value of this field will be null, and the availability of the item will instead be expressed through the availabilityThresholdType and availabilityThreshold fields.", "format": "int32" }, "availabilityThresholdType": { "type": "string", - "description": "This column has a value only when the seller sets their Display Item Quantity preference to Display "More than 10 available" in your listing (if applicable). The value of this column will be MORE_THAN. This indicates that the seller has more than the 'Display Item Quantity', which is 10, in stock for this item. The following are the Display Item Quantity preferences the seller can set. Display "More than 10 available" in your listing (if applicable) If the seller enables this preference, this column will have a value as long as there are more than 10 of this item in inventory. If the quantity is equal to 10 or drops below 10, this column will be null and the estimated quantity of the item is returned in the estimatedAvailableQuantity column. Display the exact quantity in your items If the seller enables this preference, the availabilityThresholdType and availabilityThreshold columns will be null and the estimated quantity of the item is returned in the estimatedAvailableQuantity column. Note: Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. Code so that your app gracefully handles any future changes to these preferences. For implementation help, refer to eBay API documentation" + "description": " This column has a value only when the seller sets their availability threshold preference. The value of this column will show MORE_THAN, which indicates that the seller has more than the available threshold preference in stock for this item. Because the quantity of an item can change several times within a second, it is very difficult to return the exact quantity.

Note: This field and the availabilityThreshold field will be returned as null if the actual quantity meets or drops below the threshold value, and then the buyer will want to look at the value in the estimatedAvailableQuantity field. For implementation help, refer to eBay API documentation" }, "availabilityThreshold": { "type": "integer", - "description": "This column has a value only when the seller sets their 'display item quantity' preference to Display "More than 10 available" in your listing (if applicable). The value of this column will be "10", which is the threshold value. Code so that your app gracefully handles any future changes to this value.", + "description": "This column has a value only when the seller sets their availability threshold preference. The value of this column will be \"10\", which is the threshold value.

Note: This field and the availabilityThresholdType field will be returned as null if the actual quantity meets or drops below the threshold value, and then the buyer will want to look at the value in the estimatedAvailableQuantity field.", "format": "int32" }, "returnsAccepted": { @@ -1104,211 +1209,401 @@ }, "returnPeriodValue": { "type": "integer", - "description": "The amount of time the buyer has to return the item after the purchase date. This can be the number of years, months, or days depending on returnPeriodUnit. For example, if this value is '30', and the returnPeriodUnit value is 'DAY', the return period is 30 days.", + "description": "The amount of days that the buyer has to return the item after the purchase date. For example, if this value is '30', the return period is 30 days.", "format": "int32" }, "returnPeriodUnit": { "type": "string", - "description": "An enumeration value that indicates the period of time being used to measure the duration, such as business days or months, or years. See the TimeDurationUnitEnum type for a list of possible time-measuring units. For implementation help, refer to eBay API documentation" + "description": "An enumeration value that indicates the period of time being used to measure the duration, such as business days, months, or years.

TimeDurationUnitEnum is a common type shared by multiple eBay APIs and fields to express the time unit, but for return period duration, this value will always be DAY. For implementation help, refer to eBay API documentation" }, "refundMethod": { "type": "string", - "description": "An enumeration value that indicates how a buyer is refunded when an item is returned. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "An enumeration value that indicates how a buyer is refunded when an item is returned.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation" }, "returnMethod": { "type": "string", - "description": "An enumeration value that indicates the alternative methods for a full refund when an item is returned. This column will have data if the seller offers the buyer an item replacement or exchange instead of a monetary refund. For implementation help, refer to eBay API documentation" + "description": "An enumeration value that indicates the alternative methods for a full refund when an item is returned. This column will have data if the seller offers the buyer an item replacement or exchange instead of a monetary refund.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation" }, "returnShippingCostPayer": { "type": "string", - "description": "The party responsible for the return shipping costs when an item is returned. Valid Values: BUYER or SELLER Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "The party responsible for the return shipping costs when an item is returned.

Valid Values: BUYER or SELLER

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" }, "acceptedPaymentMethods": { "type": "string", - "description": "Indicates the credit card service that will be used to process the transaction. If this column contains PAYPAL, you can use the Buy Order API to checkout and purchase the item. If this column is empty, you must use another method for checkout." + "description": "This field is returned empty. For a list of payment methods available for a marketplace, see eBay help pages or the actual View Item page.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "deliveryOptions": { "type": "string", - "description": "A comma separated list of delivery options for the item, such as SHIP_TO_HOME and SELLER_ARRANGED_LOCAL_PICKUP. This column lets you filter out items that cannot be shipped to the buyer. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "A comma-separated list of available delivery options. This column lets you filter out items than cannot be shipped to the buyer.

Valid Values: SHIP_TO_HOME, SELLER_ARRANGED_LOCAL_PICKUP, IN_STORE_PICKUP, and PICKUP_DROP_OFF.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" }, "shipToIncludedRegions": { "type": "string", - "description": "A pipe (|) separated alphabetical list of the geographic countries and regions where the seller will ship the item. If a region is specified, you will need to subtract any countries and regions returned in the shipToExcludedRegions column to fully understand where the seller will ship. The COUNTRY: list is separated from the REGION: list with a semicolon (;). Format Example: COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA; Country Values: The two-letter ISO 3166 standard code of the country. Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE Code so that your app gracefully handles any future changes to this list." + "description": "A pipe (|) separated alphabetical list of the geographic countries and regions where the seller will ship the item.

If a region is specified, you will need to subtract any countries and regions returned in the shipToExcludedRegions column to fully understand where the seller will ship.

The COUNTRY: list is separated from the REGION: list with a semicolon (;).

Format Example:
COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA;

Country Values: The two-letter ISO 3166 standard code of the country.

Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE

Code so that your app gracefully handles any future changes to this list." }, "shipToExcludedRegions": { "type": "string", - "description": "A pipe (|) separated alphabetical list of the geographic countries and regions where the item cannot be shipped. These countries and regions refine (restrict) the shipToIncludedRegions list. The COUNTRY: list is separated from the REGION: list with a semicolon (;). Format Example: COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA; Country Values: The two-letter ISO 3166 standard code of the country. Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE Code so that your app gracefully handles any future changes to this list." + "description": "A pipe (|) separated alphabetical list of the geographic countries and regions where the item cannot be shipped.

These countries and regions refine (restrict) the shipToIncludedRegions list. The COUNTRY: list is separated from the REGION: list with a semicolon (;).

Format Example:
COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA;

Country Values: The two-letter ISO 3166 standard code of the country.

Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE

Code so that your app gracefully handles any future changes to this list." }, "inferredEpid": { "type": "string", - "description": "The ePID (eBay Product ID of a product from the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data. If the seller provided an ePID for the item, the seller's value is returned in the epid column." + "description": "The ePID (eBay Product ID of a product in the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data.

If the seller actually provided an ePID at listing time for the item, the ePID value is returned in the epid column instead." }, "inferredGtin": { "type": "string", - "description": "The GTIN (Global Trade Item Number) of the product as defined by http://www.gtin.info, which as been programmatically determined by eBay. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value. If the seller provided a GTIN for the item, the seller's value is returned in the gtin column." + "description": "The GTIN (Global Trade Item Number) of the product as defined by https://www.gtin.info, which as been programmatically determined by eBay. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value.

If the seller provided a GTIN for the item, the seller's value is returned in the gtin column." }, "inferredBrand": { "type": "string", - "description": "The name brand for the item, such as Nike or Apple, which has been programmatically determined by eBay. To identify the product, this is always used along with MPN. If the seller provided a brand for the item, the seller's value is returned in the brand column." + "description": "The name brand for the item, such as Nike or Apple, which has been programmatically determined by eBay. To identify the product, this is always used along with MPN.

If the seller provided a brand for the item, the seller's value is returned in the brand column." }, "inferredMpn": { "type": "string", - "description": "The MPN (Manufacturer's Part Number) for the item, which has been programmatically determined by eBay. To identify the product, this is always used along with brand. If the seller provided a MPN for the item, the seller's value is returned in the mpn column." + "description": "The MPN (Manufacturer's Part Number) for the item, which has been programmatically determined by eBay. To identify the product, this is always used along with brand.

If the seller provided a MPN for the item, the seller's value is returned in the mpn column." }, "inferredLocalizedAspects": { "type": "string", - "description": "A semicolon separated list of the name/value pairs for the aspects of the item, which are BASE64 encoded. These aspects have been programmatically determined by eBay. If the seller provided aspects for the item, the seller's values are returned in the localizedAspects column. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;). Example without Label    Encoded Format:    encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue    Encoded Example (The delimiters are empathized):    U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==    Decoded:    Size:XL;Color:Red;Sleeves:Long Example with Label    Encoded Format:    encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|    Encoded Example (The delimiters are empathized):    UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=    Decoded:    Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7 Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string. For more information, see Encoded Aspects in the Buying Integration Guide." + "description": "A semicolon separated list of the name/value pairs for the aspects of the item, which are Base64 encoded. These aspects have been programmatically determined by eBay. If the seller provided aspects for the item, the seller's values are returned in the localizedAspects column.

The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;).

Example without Label

   Encoded Format:
   encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue

   Encoded Example (The delimiters are emphasized):
   U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==

   Decoded:
   Size:XL;Color:Red;Sleeves:Long


Example with Label

   Encoded Format:
   encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|

   Encoded Example (The delimiters are emphasized):
   UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=

   Decoded:
   Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7

Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string.

For more information, see Encoded Aspects in the Buying Integration Guide.

" }, "additionalImageUrls": { "type": "string", - "description": "A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values." + "description": "A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values." }, "originalPriceValue": { "type": "string", - "description": "The original selling price of the item. This lets you surface a strikethrough price for the item." + "description": "The original selling price of the item. This lets you surface a strikethrough price for the item. " }, "originalPriceCurrency": { "type": "string", - "description": "The currency of the originalPriceValue of the item and the discountAmount. For implementation help, refer to eBay API documentation" + "description": "The currency of the originalPriceValue of the item and the discountAmount. For implementation help, refer to eBay API documentation" }, "discountAmount": { "type": "string", - "description": "The calculated amount of the discount (originalPriceValue - priceValue). For example, if originalPriceValue is 70 and priceValue is 56, this value would be 14. Note: The currency shown in originalPriceCurrency is used for both discountAmount and originalPriceCurrency." + "description": "The calculated amount of the discount (originalPriceValue - priceValue). For example, if originalPriceValue is 70 and priceValue is 56, this value would be 14.

Note: The currency shown in originalPriceCurrency is used for both discountAmount and originalPriceCurrency.

" }, "discountPercentage": { "type": "string", - "description": "The calculated discount percentage. For example, if originalPriceValue is 70 and discountAmount is 14, this value will be 20." + "description": "The calculated discount percentage. For example, if originalPriceValue is 70 and discountAmount is 14, this value will be 20." }, "energyEfficiencyClass": { "type": "string", - "description": "Indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating. The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models. To retrieve the manufacturer's specifications for this item, when they are available, use the getItem method in the Browse API. The information is returned in the productFicheWebUrl field." + "description": "Indicates the European energy efficiency rating (EEK) of the item. Data is returned in this column only if the seller specified the energy efficiency rating.

The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models.

To retrieve the manufacturer's specifications for this item, when they are available, use the getItem method in the Browse API. The information is returned in the productFicheWebUrl field." }, "qualifiedPrograms": { "type": "string", - "description": "A pipe separated list of the qualified programs available for the item. Currently, the only qualified program returned is EBAY_PLUS. Note: The EBAY_PLUS program is supported only on the EBAY_DE and EBAY_AU marketplaces. This means the qualifiedPrograms column will be populated only in feed files for these marketplaces. Program Values: EBAY_PLUS" + "description": "A pipe separated list of the qualified programs available for the item.

Valid Values:
" }, "lotSize": { "type": "integer", - "description": "The number of items in a lot. In other words, a lot size is the number of items that are being sold together. A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below. For example: Item Lot Definition Lot Size A package of 24 AA batteries A box of 10 packages 10 A P235/75-15 Goodyear tire 4 tires 4 Fashion Jewelry Rings Package of 100 assorted rings 100 Note: Lots are not supported in all categories.", + "description": "The number of items in a lot. In other words, a lot size is the number of items that are being sold together.

A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below.

For example:

Item Lot Definition Lot Size
A package of 24 AA batteries A box of 10 packages 10
A P235/75-15 Goodyear tire 4 tires 4
Fashion Jewelry Rings Package of 100 assorted rings 100


Note: Lots are not supported in all categories. ", "format": "int32" }, "lengthUnitOfMeasure": { "type": "string", - "description": "The unit of measurement used for the package dimensions, such as INCH, FEET, CENTIMETER, or METER. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "The unit of measurement used for the package dimensions, such as INCH, FEET, CENTIMETER, or METER.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation" }, "packageWidth": { "type": "string", - "description": "The width of the shipping package that contains the item." + "description": "The width of the shipping package that contains the item.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "packageHeight": { "type": "string", - "description": "The height of the shipping package that contains the item." + "description": "The height of the shipping package that contains the item.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "packageLength": { "type": "string", - "description": "The length of the shipping package that contains the item." + "description": "The length of the shipping package that contains the item.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "weightUnitOfMeasure": { "type": "string", - "description": "The unit of measurement used for the package weight, such as POUND, KILOGRAM, OUNCE, or GRAM. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "The unit of measurement used for the package weight, such as POUND, KILOGRAM, OUNCE, or GRAM.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation" }, "packageWeight": { "type": "string", - "description": "The weight of the package that contains the item." + "description": "The weight of the package that contains the item.

Important! This field no longer returns values and is scheduled for deprecation.

" + }, + "shippingCarrierCode": { + "type": "string", + "description": "The name of the shipping provider, such as FedEx, or USPS.

Important! This field no longer returns values and is scheduled for deprecation.

" + }, + "shippingServiceCode": { + "type": "string", + "description": "The type of shipping service. For example, USPS First Class.

Important! This field no longer returns values and is scheduled for deprecation.

" + }, + "shippingType": { + "type": "string", + "description": "The type of a shipping option, such as EXPEDITED, ONE_DAY, STANDARD, ECONOMY, PICKUP, etc." + }, + "shippingCost": { + "type": "string", + "description": "The final shipping cost for all the items after all discounts are applied.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU." + }, + "shippingCostType": { + "type": "string", + "description": "Indicates the class of the shipping cost.

Valid Values: FIXED or CALCULATED." + }, + "additionalShippingCostPerUnit": { + "type": "string", + "description": "Any per item additional shipping costs for a multi-item purchase. For example, let's say the shipping cost for a power cord is $3. But for an additional cord, the shipping cost is only $1. So if you bought 3 cords, the shippingCost would be $3 and this value would be $2 ($1 for each additional item).

Important! This field no longer returns values and is scheduled for deprecation.

" + }, + "quantityUsedForEstimate": { + "type": "integer", + "description": "The number of items used when calculating the estimation information.

Important! This field no longer returns values and is scheduled for deprecation.

", + "format": "int32" + }, + "unitPrice": { + "type": "string", + "description": "This is the price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" + }, + "unitPricingMeasure": { + "type": "string", + "description": "The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" + }, + "legacyItemId": { + "type": "string", + "description": "The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page." + }, + "alerts": { + "type": "string", + "description": "A pipe-separated list of alerts available for the item.

For example, if the DELAYED_DELIVERY alert was returned for an item, it would indicate a delay in shipping by the seller." + }, + "sellerAccountType": { + "type": "string", + "description": "A string value that specifies whether the seller is a business or an individual. This is determined when the seller registers with eBay. If the seller registers for a business account, the value returned in this field will be BUSINESS. If the seller registers for a private account, the value returned in this field will be INDIVIDUAL.

Note: This designation is required by the tax laws in some countries.

This field is returned only on the following sites: EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, and EBAY_PL.

Code so that your app gracefully handles any future changes to this list.

Valid Values: BUSINESS or INDIVIDUAL" + }, + "tyreLabelImageUrl": { + "type": "string", + "description": "The URL to the image that shows the information on the tyre label." + }, + "priorityListingPayload": { + "type": "string", + "description": "EPN (eBay Partner Network) publishers append this value to their affiliate tracking URL when using an EPN tracking link to track changes that occur to Priority Listing items.

Example:amdata=enc%3AAQAFAAAAkB1DmsmXf%2BqZ%2BCEMGdebW6oR75GCMdBmc4MCQ%2FCEPqgKHbT0jdWhPwfY5LdUs6HTaP0eBlwKE7Smy2eDslewF7l3xjwWxjqwzNAnsYgxn2PiGkTKbiQSQytFUiymdtANpk1qOnBOoMGMK%2BWsji7jYlvySSs9o9s24TxD6RqWZpNrltzOU7mfnv3H40SZ3YESzg%3D%3D

See Creating an EPN Tracking Link for information on EPN tracking links." + }, + "itemCreationDate": { + "type": "string", + "description": "A timestamp indicating when the item was created.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ" + }, + "itemWebUrl": { + "type": "string", + "description": "The URL of the View Item page of the item.

For example:

Single SKU:
https://www.ebay.de/itm/2********0

MSKU:
https://www.ebay.com/itm/2********9?var=5********2" + }, + "defaultImageUrl": { + "type": "string", + "description": "URL to the gallery or default image of the item. The other images of the item are returned in the additionalImageUrls field.

For example

https://i.ebayimg.com/00/s/M********w/z/W********p/$_1.JPG?set_id=8********F" + }, + "itemAffiliateWebUrl": { + "type": "string", + "description": "The URL of the View Item page of the item, with the affiliate tracking ID appended to it.

For example

https://www.ebay.de/itm/2********0?mkevt=1&mkcid=1&mkrid=707-53477-19255-0&campid=CAMPAIGNID&toolid=2***6&customid=CUSTOMID" + }, + "ageGroup": { + "type": "string", + "description": "The age group that the product is recommended for.

Valid values: newborn, infant, toddler, kids, adult." + }, + "color": { + "type": "string", + "description": "The color of the item." + }, + "pattern": { + "type": "string", + "description": "Text describing the pattern used on the item. For example, paisley.

Note: All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "size": { + "type": "string", + "description": "The size of the item." + }, + "gender": { + "type": "string", + "description": "In cases where items could vary by gender, this specifies for which gender the product is intended. Possible values include male, female, and unisex." + }, + "material": { + "type": "string", + "description": "The material that the item is made of." + }, + "totalUnits": { + "type": "string", + "description": "For an item that is priced by the unit, the total number of units that are on offer. For example, if the item is priced by the meter and 50 cm is on offer, the totalUnits would be 0.5 m." + }, + "ecoParticipationFeeValue": { + "type": "string", + "description": "The amount of the Eco Participation Fee, a fee paid toward the eventual disposal of the purchased item." + }, + "ecoParticipationFeeCurrency": { + "type": "string", + "description": "The currency in which the Eco Participation Fee for the item is paid." + }, + "takeBackPolicyLabel": { + "type": "string", + "description": "The seller-defined label of the TAKE_BACK custom policy for the item. A TAKE_BACK policy describes the seller's regulatory responsibility to take back a purchased item for disposal when the buyer purchases a new one." + }, + "takeBackPolicyDescription": { + "type": "string", + "description": "The seller-defined description of the TAKE_BACK custom policy for the item." + }, + "hazmatSignalWordId": { + "type": "string", + "description": "The ID of the signal word for the hazardous material." + }, + "hazmatSignalWord": { + "type": "string", + "description": "The localized signal word for the hazardous material, such as 'Danger'." + }, + "hazmatStatementIds": { + "type": "string", + "description": "The IDs of hazardous material statements, separated by the pipe symbol. For example:

H200|H221" + }, + "hazmatStatementDescriptions": { + "type": "string", + "description": "The Base64 encoded descriptions of hazardous material statements, separated by the pipe symbol. For example:

encoded(Unstable explosives)|encoded(Flammable gas)" + }, + "hazmatPictogramIds": { + "type": "string", + "description": "The IDs of hazardous material pictograms, separated by the pipe symbol. For example:

SGH01|SGH02" + }, + "hazmatPictogramDescriptions": { + "type": "string", + "description": "The Base64 encoded descriptions of hazardous material pictograms, separated by the pipe symbol. For example:

encoded(exploding bomb)|encoded(flame)" + }, + "hazmatPictogramImageUrls": { + "type": "string", + "description": "The image URLs of hazardous material pictograms, separated by the pipe symbol. For example:

https://img1|https://img2" + }, + "hazmatAdditionalInformation": { + "type": "string", + "description": "Base64 encoded additional information about the hazardous material." + }, + "repairScore": { + "type": "string", + "description": "A score that describes how easy it is to repair the product. Score values range from 0.1 (hardest to repair) to 10.0 (easiest), always including a single decimal place." + }, + "conditionDescriptors": { + "type": "string", + "description": "Note: Condition descriptors are currently only available for the following trading card categories:
This field contains a list of the name/value pairs for the condition descriptors of the item, which are Base64 encoded. The descriptors are separated as follows: Note: The separators ( : ; | ) are not encoded. You must decode each name, and value or values separately. You cannot decode the entire string.
The name and value are numeric IDs that map to the name and value, respectively, of a condition descriptor. A condition descriptor name-value pair provides more information about an item's condition in a structured way. Descriptors are name-value attributes that can be either from a closed set or open text. For more information on the numeric IDs and their text equivalents, use the getItemConditionPolicies method of the Metadata API." + }, + "sellerUserId": { + "type": "string", + "description": "The unique identifier of an eBay user across all eBay sites. This value does not change, even when a user changes their username." } }, - "description": "The type that defines the columns returned in the Item feed file." + "description": "The type that defines the columns returned in the Item feed file." }, "ItemGroup": { "type": "object", "properties": { "itemGroupId": { "type": "string", - "description": "The unique identifier for the item group. This ID is returned in the primaryItemGroupId column of the Item Feed file." + "description": "The unique identifier for the item group. This ID is returned in the primaryItemGroupId column of the Item Feed file." }, "itemGroupType": { "type": "string", - "description": "The item group type. For example: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller. Code so that your app gracefully handles any future changes to this list." + "description": "The item group type. For example: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "title": { "type": "string", - "description": "The seller created title of the item group. This text is an escaped string when special characters are present, using the following rules: Double quotes (") and backslashes (\\) in the Title are escaped with a backslash (\\) character If there are any tabs (\\t), double quotes ("), or backslashes (\\) in the Title, the entire Title will be wrapped in double quotes. For example Before: Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\Tracking Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series After: "Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\\\Tracking" "Marvel Legends HULK 8\\" Figure Avengers Age of Ultron Studios 6\\" Series"" + "description": "The seller created title of the item group. This text is an escaped string when special characters are present, using the following rules:

For example

Before:

Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking

Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series

After:

"Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\ Tracking"

"Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series"

" }, "variesByLocalizedAspects": { "type": "string", - "description": "A pipe separated (|) list of the aspect (variation) names for this item group. The aspect name is BASE64 encoded. Note: This column can contain multiple values.    Encoded Format:    aspectName|aspectName    Encoded Example (The delimiters are empathized):    Q29sb3I=|U2l6ZQ==    Decoded:    Color|Size" + "description": "A pipe separated (|) list of the aspect (variation) names for this item group. The aspect name is Base64 encoded. Note: This column can contain multiple values.

   Encoded Format:
   aspectName|aspectName

   Encoded Example (The delimiters are emphasized):
   Q29sb3I=|U2l6ZQ==

   Decoded:
   Color|Size

" }, "imageUrl": { "type": "string", - "description": "The URL to the primary image of the item. The other images of the item group are returned in the additionalImageUrls column." + "description": "The URL to the primary image of the item. The other images of the item group are returned in the additionalImageUrls column." }, "additionalImageUrls": { "type": "string", - "description": "A pipe separated (|) list of URLs for the additional images for the item group. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values." + "description": "A pipe separated (|) list of URLs for the additional images for the item group. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values." }, "imageAlteringProhibited": { "type": "boolean", - "description": "A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image. Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only." + "description": "A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image.

Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only.

" } }, - "description": "The type that defines the columns returned in the Item Group feed file." + "description": "The type that defines the columns returned in the Item Group feed file." }, "ItemGroupResponse": { "type": "object", "properties": { "itemGroups": { "type": "array", - "description": "The container for the array of items groups returned by the getItemGroupFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values for each item. The header labels match the fields that are described in the Response fields section.", + "description": "The container for the array of items groups returned by the getItemGroupFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values for each item. The header labels match the fields that are described in the Response fields section.", "items": { "$ref": "#/components/schemas/ItemGroup" } } }, - "description": "The type that defines the array for the items returned in the Item Group feed file." + "description": "The type that defines the array for the items returned in the Item Group feed file." + }, + "ItemPriority": { + "type": "object", + "properties": { + "itemId": { + "type": "string", + "description": "The unique identifier of an item in eBay RESTful format. An example would be v1|1********2|4********2." + }, + "priorityListingPayload": { + "type": "string", + "description": "EPN (eBay Partner Network) publishers append this value to their affiliate tracking URL when using an EPN tracking link to track changes that occur to Priority Listing items.

Example:_trkparms=ispr%3D1&amdata=enc%3AAQAFAAAAkB1DmsmXf%2BqZ%2BCEMGdebW6oR75GCMdBmc4MCQ%2FCEPqgKHbT0jdWhPwfY5LdUs6HTaP0eBlwKE7Smy2eDslewF7l3xjwWxjqwzNAnsYgxn2PiGkTKbiQSQytFUiymdtANpk1qOnBOoMGMK%2BWsji7jYlvySSs9o9s24TxD6RqWZpNrltzOU7mfnv3H40SZ3YESzg%3D%3D

See Creating an EPN Tracking Link for information on EPN tracking links." + }, + "changeMetadata": { + "type": "string", + "description": "Status change indicator of the listing.

Values: Note: When a listing is removed from the campaign, PriorityListingPayload will be empty.

When multiple status changes are returned for a listing, the changeMetadata value will be a pipe-separated string (e.g., ADDED_TO_CAMPAIGN|TRACKING_PAYLOAD_REFRESHED).

To use the returned value, you will need to separate the string by pipe (|)." + } + } + }, + "ItemPriorityResponse": { + "type": "object", + "properties": { + "itemDelta": { + "type": "array", + "description": "The container for the array of items returned by the getItemPriorityFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values on each line. The header labels match the fields that are described in the Response fields section.", + "items": { + "$ref": "#/components/schemas/ItemPriority" + } + } + } }, "ItemResponse": { "type": "object", "properties": { "items": { "type": "array", - "description": "The container for the array of items returned by the getItemFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values on each line. The header labels match the fields that are described in the Response fields section.", + "description": "The container for the array of items returned by the getItemFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values on each line. The header labels match the fields that are described in the Response fields section.", "items": { "$ref": "#/components/schemas/Item" } } }, - "description": "The type that defines the array for the items returned in the Item feed file." + "description": "The type that defines the array for the items returned in the Item feed file. " }, "ItemSnapshot": { "type": "object", "properties": { "itemId": { "type": "string", - "description": "The unique identifier of the eBay item." + "description": "The unique identifier of an item in eBay RESTful format. An example would be v1|1**********2|4**********2." }, "availability": { "type": "string", - "description": "An enumeration value representing the item's availability (possibility of being purchased). Values: AVAILABLE TEMPORARILY_UNAVAILABLE UNAVAILABLE Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "An enumeration value representing the item's availability (possibility of being purchased).

Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" }, "title": { "type": "string", - "description": "The seller created title of the item. This text is an escaped string when special characters are present, using the following rules: Double quotes (") and backslashes (\\) in the Title are escaped with a backslash (\\) character If there are any tabs (\\t), double quotes ("), or backslashes (\\) in the Title, the entire Title will be wrapped in double quotes. For example Before: Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\Tracking Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series After: "Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\\\Tracking" "Marvel Legends HULK 8\\" Figure Avengers Age of Ultron Studios 6\\" Series"" + "description": "The seller created title of the item. This text is an escaped string when special characters are present, using the following rules:

For example

Before:

Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking

Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series

After:

"Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\ Tracking"

"Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series"

" }, "imageUrl": { "type": "string", - "description": "The URL to the primary image of the item. This is the URL of the largest image available based on what the seller submitted." + "description": "The URL to the primary image of the item. This is the URL of the largest image available based on what the seller submitted. " }, "category": { "type": "string", - "description": "The label of the category of the item. For example: Toys & Hobbies|Action Figures|Comic Book Heroes ." + "description": "The label of the category of the item. For example: Toys & Hobbies|Action Figures|Comic Book Heroes . " }, "categoryId": { "type": "string", - "description": "The ID of the category of the item. For example: The ID for Toys & Hobbies|Action Figures|Comic Book Heroes is 158671." + "description": "The ID of the category of the item. For example: The ID for Toys & Hobbies|Action Figures|Comic Book Heroes is 158671." }, "buyingOptions": { "type": "string", - "description": "A comma separated list of the purchase options available for the item, such as FIXED_PRICE, AUCTION. Code so that your app gracefully handles any future changes to this list. Note: This column can contain multiple values." + "description": "A comma separated list of the purchase options available for the item. Currently the only supported option is FIXED_PRICE.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "sellerUsername": { "type": "string", @@ -1324,7 +1619,7 @@ }, "gtin": { "type": "string", - "description": "The unique Global Trade Item Number of the item as defined by http://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value." + "description": "The unique Global Trade Item Number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value." }, "brand": { "type": "string", @@ -1332,27 +1627,27 @@ }, "mpn": { "type": "string", - "description": "The manufacturer part number, which is a number that is used in combination with brand to identify a product." + "description": "The manufacturer part number, which is a number that is used in combination with brand to identify a product." }, "epid": { "type": "string", - "description": "The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling." + "description": "The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling." }, "conditionId": { "type": "string", - "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names. Code so that your app gracefully handles any future changes to this list." + "description": "The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list." }, "condition": { "type": "string", - "description": "The text describing the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names. Code so that your app gracefully handles any future changes to this list." + "description": "The text describing the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names." }, "priceValue": { "type": "string", - "description": "The price of the item. Note: This price can be a discounted price." + "description": "The price of the item, which can be a discounted price.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU." }, "priceCurrency": { "type": "string", - "description": "The currency used for the price of the item. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation" + "description": "The currency used for the price of the item. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation" }, "primaryItemGroupId": { "type": "string", @@ -1360,15 +1655,15 @@ }, "primaryItemGroupType": { "type": "string", - "description": "The item group type. Supported value: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller. Code so that your app gracefully handles any future changes to this list." + "description": "The item group type. Supported value: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "itemEndDate": { "type": "string", - "description": "A timestamp indicating when the item's sale period will end based on its start date and duration. For Good 'Til Cancelled' items, no value is returned in this column. Format: UTC (yyyy-MM-ddThh:mm:ss.sssZ)." + "description": "A timestamp indicating when the item's sale period will end based on its start date and duration. For Good 'Til Cancelled items, no value is returned in this column.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ" }, "sellerItemRevision": { "type": "string", - "description": "An identifier generated/incremented when a seller revises the item. There are two types of item revisions; seller changes, such as changing the title and eBay system changes, such as changing the quantity when an item is purchased. This ID is changed only when the seller makes a change to the item." + "description": "An identifier generated/incremented when a seller revises the item. There are two types of item revisions: This ID is changed only when the seller makes a change to the item." }, "itemLocationCountry": { "type": "string", @@ -1376,49 +1671,49 @@ }, "localizedAspects": { "type": "string", - "description": "A semicolon separated list of the name/value pairs for the aspects of the item, which are BASE64 encoded. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;). Example without Label    Encoded Format:    encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue    Encoded Example (The delimiters are empathized):    U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==    Decoded:    Size:XL;Color:Red;Sleeves:Long Example with Label    Encoded Format:    encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|    Encoded Example (The delimiters are empathized):    UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=    Decoded:    Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7 Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string. For more information, see Encoded Aspects in the Buying Integration Guide." + "description": "A semicolon separated list of the name/value pairs for the aspects of the item, which are Base64 encoded. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;).

Example without Label

   Encoded Format:
   encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue

   Encoded Example (The delimiters are emphasized):
   U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==

   Decoded:
   Size:XL;Color:Red;Sleeves:Long


Example with Label

   Encoded Format:
   encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|

   Encoded Example (The delimiters are emphasized):
   UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=

   Decoded:
   Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7

Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string.

For more information, see Encoded Aspects in the Buying Integration Guide.

" }, "sellerTrustLevel": { "type": "string", - "description": "An enumeration value representing the eBay status of the seller. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "An enumeration value representing the eBay status of the seller.

Valid Values: TOP_RATED, ABOVE_STANDARD, or an empty value.

An empty value indicates a return of anything other than TOP_RATED or ABOVE_STANDARD.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" }, "imageAlteringProhibited": { "type": "boolean", - "description": "A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image. Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only." + "description": "A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image.

Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only.

" }, "estimatedAvailableQuantity": { "type": "integer", - "description": "The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.", + "description": "The estimated quantity of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is very difficult to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.

Note: If the seller of an item has the available threshold setting turned on, the value of this field will be null, and the availability of the item will instead be expressed through the availabilityThresholdType and availabilityThreshold fields.", "format": "int32" }, "availabilityThresholdType": { "type": "string", - "description": "This column has a value only when the seller sets their Display Item Quantity preference to Display "More than 10 available" in your listing (if applicable). The value of this column will be MORE_THAN. This indicates that the seller has more than the 'Display Item Quantity', which is 10, in stock for this item. The following are the Display Item Quantity preferences the seller can set. Display "More than 10 available" in your listing (if applicable) If the seller enables this preference, this column will have a value as long as there are more than 10 of this item in inventory. If the quantity is equal to 10 or drops below 10, this column will be null and the estimated quantity of the item is returned in the estimatedAvailableQuantity column. Display the exact quantity in your items If the seller enables this preference, the availabilityThresholdType and availabilityThreshold columns will be null and the estimated quantity of the item is returned in the estimatedAvailableQuantity column. Note: Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. Code so that your app gracefully handles any future changes to these preferences. For implementation help, refer to eBay API documentation" + "description": " This column has a value only when the seller sets their availability threshold preference. The value of this column will show MORE_THAN, which indicates that the seller has more than the available threshold preference in stock for this item. Because the quantity of an item can change several times within a second, it is very difficult to return the exact quantity.

Note: This field and the availabilityThreshold field will be returned as null if the actual quantity meets or drops below the threshold value, and then the buyer will want to look at the value in the estimatedAvailableQuantity field. For implementation help, refer to eBay API documentation" }, "availabilityThreshold": { "type": "integer", - "description": "This column has a value only when the seller sets their 'display item quantity' preference to Display "More than 10 available" in your listing (if applicable). The value of this column will be "10", which is the threshold value. Code so that your app gracefully handles any future changes to this value.", + "description": "This column has a value only when the seller sets their availability threshold preference.

The value of this column will be \"10\", which is the threshold value.

Note: This field and the availabilityThresholdType field will be returned as null if the actual quantity meets or drops below the threshold value, and then the buyer will want to look at the value in the estimatedAvailableQuantity field.", "format": "int32" }, "itemSnapshotDate": { "type": "string", - "description": "This timestamp denotes the date and time the changes for that item were picked up and added to the snapshot feed file. For example, let's say you have a snapshot feed file and also ran the getItem method. When you compare the same item information from the two sources, you see that the price in the getItem method response is different from the price in the snapshot feed file. By knowing the date and time you submitted the getItem method, you can use the itemSnapshotDate data to determine which price is the most current for this item." + "description": "This timestamp denotes the date and time the changes for that item were picked up and added to the snapshot feed file.

For example, let's say you have a snapshot feed file and also ran the getItem method. When you compare the same item information from the two sources, you see that the price in the getItem method response is different from the price in the snapshot feed file. By knowing the date and time you submitted the getItem method, you can use the itemSnapshotDate data to determine which price is the most current for this item.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ" }, "originalPriceValue": { "type": "string", - "description": "The original selling price of the item. This lets you surface a strikethrough price for the item." + "description": "The original selling price of the item. This lets you surface a strikethrough price for the item. " }, "originalPriceCurrency": { "type": "string", - "description": "The currency of the originalPriceValue of the item and the discountAmount. For implementation help, refer to eBay API documentation" + "description": "The currency of the originalPriceValue of the item and the discountAmount. For implementation help, refer to eBay API documentation" }, "discountAmount": { "type": "string", - "description": "The calculated amount of the discount (originalPriceValue - priceValue). For example, if originalPriceValue is 70 and priceValue is 56, this value would be 14. Note: The currency shown in originalPriceCurrency is used for both discountAmount and originalPriceCurrency." + "description": "The calculated amount of the discount (originalPriceValue - priceValue). For example, if originalPriceValue is 70 and priceValue is 56, this value would be 14.

Note: The currency shown in originalPriceCurrency is used for both discountAmount and originalPriceCurrency." }, "discountPercentage": { "type": "string", - "description": "The calculated discount percentage. For example, if originalPriceValue is 70 and discountAmount is 14, this value will be 20." + "description": "The calculated discount percentage. For example, if originalPriceValue is 70 and discountAmount is 14, this value will be 20." }, "returnsAccepted": { "type": "boolean", @@ -1426,116 +1721,286 @@ }, "returnPeriodValue": { "type": "integer", - "description": "The amount of time the buyer has to return the item after the purchase date. This can be the number of years, months, or days depending on returnPeriodUnit. For example, if this value is '30', and the returnPeriodUnit value is 'DAY', the return period is 30 days.", + "description": "The amount of days that the buyer has to return the item after the purchase date. For example, if this value is 30, the return period is 30 days.", "format": "int32" }, "returnPeriodUnit": { "type": "string", - "description": "An enumeration value representing the period of time being used to measure the duration, such as business days or months, or years. See the TimeDurationUnitEnum type for a list of possible time-measuring units. For implementation help, refer to eBay API documentation" + "description": "An enumeration value that indicates the period of time being used to measure the duration, such as business days, months, or years.

TimeDurationUnitEnum is a common type shared by multiple eBay APIs and fields to express the time unit, but for return period duration, this value will always be DAY. For implementation help, refer to eBay API documentation" }, "refundMethod": { "type": "string", - "description": "An enumeration value representing how a buyer is refunded when an item is returned. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "An enumeration value representing how a buyer is refunded when an item is returned.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation" }, "returnMethod": { "type": "string", - "description": "An enumeration value that indicates the alternative methods for a full refund when an item is returned. This column will have data if the seller offers the buyer an item replacement or exchange instead of a monetary refund. For implementation help, refer to eBay API documentation" + "description": "An enumeration value that indicates the alternative methods for a full refund when an item is returned. This column will have data if the seller offers the buyer an item replacement or exchange instead of a monetary refund.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation" }, "returnShippingCostPayer": { "type": "string", - "description": "An enumeration value that indicates the party responsible for the return shipping costs when an item is returned. Valid Values: BUYER or SELLER Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "An enumeration value that indicates the party responsible for the return shipping costs when an item is returned.

Valid Values: BUYER or SELLER

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" }, "energyEfficiencyClass": { "type": "string", - "description": "Indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating. The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models. To retrieve the manufacturer's specifications for this item, when they are available, use the getItem method in the Browse API. The information is returned in the productFicheWebUrl field." + "description": "Indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating.

The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models.

To retrieve the manufacturer's specifications for this item, when they are available, use the getItem method in the Browse API. The information is returned in the productFicheWebUrl field." }, "additionalImageUrls": { "type": "string", - "description": "A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values." + "description": "A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values." }, "deliveryOptions": { "type": "string", - "description": "A comma separated list of delivery options for the item, such as SHIP_TO_HOME and SELLER_ARRANGED_LOCAL_PICKUP. This column lets you filter out items that cannot be shipped to the buyer. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "A comma-separated list of available delivery options. This column lets you filter out items than cannot be shipped to the buyer.

Valid Values: SHIP_TO_HOME, SELLER_ARRANGED_LOCAL_PICKUP, IN_STORE_PICKUP, and PICKUP_DROP_OFF.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" }, "shipToIncludedRegions": { "type": "string", - "description": "A pipe (|) separated alphabetical list of the geographic countries and regions where the seller will ship the item. If a region is specified, you will need to subtract any countries and regions returned in the shipToExcludedRegions column to fully understand where the seller will ship. The COUNTRY: list is separated from the REGION: list with a semicolon (;). Format Example: COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA; Country Values: The two-letter ISO 3166 standard code of the country. Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE Code so that your app gracefully handles any future changes to this list." + "description": "A pipe (|) separated alphabetical list of the geographic countries and regions where the seller will ship the item.

If a region is specified, you will need to subtract any countries and regions returned in the shipToExcludedRegions column to fully understand where the seller will ship.

The COUNTRY: list is separated from the REGION: list with a semicolon (;).

Format Example:
COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA;

Country Values: The two-letter ISO 3166 standard code of the country.

Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE

Code so that your app gracefully handles any future changes to this list." }, "shipToExcludedRegions": { "type": "string", - "description": "A pipe (|) separated alphabetical list of the geographic countries and regions where the item cannot be shipped. These countries and regions refine (restrict) the shipToIncludedRegions list. The COUNTRY: list is separated from the REGION: list with a semicolon (;). Format Example: COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA; Country Values: The two-letter ISO 3166 standard code of the country. Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE Code so that your app gracefully handles any future changes to this list." + "description": "A pipe (|) separated alphabetical list of the geographic countries and regions where the item cannot be shipped. These countries and regions refine (restrict) the shipToIncludedRegions list.

The COUNTRY: list is separated from the REGION: list with a semicolon (;).

Format Example:
COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA;

Country Values: The two-letter ISO 3166 standard code of the country.

Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE

Code so that your app gracefully handles any future changes to this list." }, "acceptedPaymentMethods": { "type": "string", - "description": "Indicates the credit card service that will be used to process the transaction. If this column contains PAYPAL, you can use the Buy Order API to checkout and purchase the item. If this column is empty, you must use another method for checkout." + "description": "This field is returned empty. For a list of payment methods available for a marketplace, see eBay help pages or the actual View Item page.

Important! This field no longer returns values and is scheduled for deprecation.

" }, "qualifiedPrograms": { "type": "string", - "description": "A pipe separated list of the qualified programs available for the item, such as EBAY_PLUS" + "description": "A pipe separated list of the qualified programs available for the item, such as EBAY_PLUS and AUTHENTICITY_GUARANTEE.

eBay Plus is a premium account option for buyers, which provides benefits such as fast free domestic shipping and free returns on selected items. Top-Rated eBay sellers must opt in to eBay Plus to be able to offer the program on qualifying listings. Sellers must commit to next-day delivery of those items. Note: eBay Plus is available only to buyers in Germany, Austria, and Australia marketplaces.

The eBay Authenticity Guarantee program enables third-party authenticators to perform authentication verification inspections on items such as watches and sneakers." }, "lotSize": { "type": "integer", - "description": "The number of items in a lot. In other words, a lot size is the number of items that are being sold together. A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below. For example: Item Lot Definition Lot Size A package of 24 AA batteries A box of 10 packages 10 A P235/75-15 Goodyear tire 4 tires 4 Fashion Jewelry Rings Package of 100 assorted rings 100 Note: Lots are not supported in all categories.", + "description": "The number of items in a lot. In other words, a lot size is the number of items that are being sold together.

A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below.

Item Lot Definition Lot Size
A package of 24 AA batteries A box of 10 packages 10
A P235/75-15 Goodyear tire 4 tires 4
Fashion Jewelry Rings Package of 100 assorted rings 100


Note: Lots are not supported in all categories. ", "format": "int32" - } - }, - "description": "The type that defines the columns returned in the Hourly Snapshot feed file. Note: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated." - }, - "ItemSnapshotResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "description": "The container for the array of items returned by the getItemSnapshotFeed method. Note: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated.", - "items": { - "$ref": "#/components/schemas/ItemSnapshot" - } - } - }, - "description": "The type that defines the array for the items returned in the Hourly Snapshot feed file." - }, - "Product": { - "type": "object", - "properties": { - "epid": { + }, + "shippingCarrierCode": { "type": "string", - "description": "The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling." + "description": "The name of the shipping provider, such as FedEx, or USPS.

Important! This field no longer returns values and is scheduled for deprecation.

" }, - "title": { + "shippingServiceCode": { + "type": "string", + "description": "The type of shipping service. For example, USPS First Class.

Important! This field no longer returns values and is scheduled for deprecation.

" + }, + "shippingType": { + "type": "string", + "description": "The type of a shipping option, such as EXPEDITED, ONE_DAY, STANDARD, ECONOMY, PICKUP, etc." + }, + "shippingCost": { + "type": "string", + "description": "The final shipping cost for all the items after all discounts are applied.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU." + }, + "shippingCostType": { + "type": "string", + "description": "Indicates the class of the shipping cost.

Valid Values: FIXED or CALCULATED

Code so that your app gracefully handles any future changes to this list. " + }, + "additionalShippingCostPerUnit": { + "type": "string", + "description": "Any per item additional shipping costs for a multi-item purchase. For example, let's say the shipping cost for a power cord is $3. But for an additional cord, the shipping cost is only $1. So if you bought 3 cords, the shippingCost would be $3 and this value would be $2 ($1 for each additional item).

Important! This field no longer returns values and is scheduled for deprecation.

" + }, + "quantityUsedForEstimate": { + "type": "integer", + "description": "The number of items used when calculating the shipping estimation information.

Important! This field no longer returns values and is scheduled for deprecation.

", + "format": "int32" + }, + "unitPrice": { + "type": "string", + "description": "This is the price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" + }, + "unitPricingMeasure": { + "type": "string", + "description": "The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

\"unitPricingMeasure\": \"100g\",
\"unitPrice\": {
  \"value\": \"7.99\",
  \"currency\": \"GBP\"
" + }, + "inferredEpid": { "type": "string", - "description": "The title of the product. This text is an escaped string when special characters are present, using the following rules: Double quotes (") and backslashes (\\) in the Title are escaped with a backslash (\\) character If there are any tabs (\\t), double quotes ("), or backslashes (\\) in the Title, the entire Title will be wrapped in double quotes. For example Before: Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\Tracking Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series After: "Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\\\Tracking" "Marvel Legends HULK 8\\" Figure Avengers Age of Ultron Studios 6\\" Series"" + "description": "The ePID (eBay Product ID of a product in the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data.

If the seller actually provided an ePID at listing time for the item, the ePID value is returned in the epid column instead." + }, + "itemCreationDate": { + "type": "string", + "description": "A timestamp indicating when the item was created.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ" + }, + "legacyItemId": { + "type": "string", + "description": "The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page." + }, + "alerts": { + "type": "string", + "description": "A pipe-separated list of alerts available for the item.

For example, if the DELAYED_DELIVERY alert was returned for an item, it would indicate a delay in shipping by the seller." + }, + "sellerAccountType": { + "type": "string", + "description": "A string value that specifies whether the seller is a business or an individual. This is determined when the seller registers with eBay. If the seller registers for a business account, the value returned in this field will be BUSINESS. If the seller registers for a private account, the value returned in this field will be INDIVIDUAL.

Note: This designation is required by the tax laws in some countries.

This field is returned only on the following sites: EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, and EBAY_PL.

Code so that your app gracefully handles any future changes to this list.

Valid Values: BUSINESS or INDIVIDUAL" + }, + "tyreLabelImageUrl": { + "type": "string", + "description": "The URL to the image that shows the information on the tyre label." + }, + "ageGroup": { + "type": "string", + "description": "The age group that the product is recommended for.

Valid values: newborn, infant, toddler, kids, adult." + }, + "color": { + "type": "string", + "description": "The color of the item." + }, + "pattern": { + "type": "string", + "description": "(Primary Item Aspect) Text describing the pattern used on the item. For example, paisley.

Note: All the item aspects, including this aspect, are returned in the localizedAspects container." + }, + "size": { + "type": "string", + "description": "The size of the item." + }, + "gender": { + "type": "string", + "description": "In cases where items could vary by gender, this specifies for which gender the product is intended. Possible values include male, female, and unisex." + }, + "material": { + "type": "string", + "description": "The material that the item is made of." + }, + "totalUnits": { + "type": "string", + "description": "For an item that is priced by the unit, the total number of units that are on offer. For example, if the item is priced by the meter and 50 cm is on offer, the totalUnits would be 0.5 m." + }, + "defaultImageUrl": { + "type": "string", + "description": "URL to the gallery or default image of the item. The other images of the item are returned in the additionalImageUrls field.

For example

https://i.ebayimg.com/00/s/M********w/z/W********p/$_1.JPG?set_id=8********F" + }, + "itemWebUrl": { + "type": "string", + "description": "The URL of the View Item page of the item.

For example:

Single SKU:
https://www.ebay.de/itm/2********0

MSKU:
https://www.ebay.com/itm/2********9?var=5********2" + }, + "itemAffiliateWebUrl": { + "type": "string", + "description": "The URL of the View Item page of the item, with the affiliate tracking ID appended to it.

For example

https://www.ebay.de/itm/2********0?mkevt=1&mkcid=1&mkrid=707-53477-19255-0&campid=CAMPAIGNID&toolid=2***6&customid=CUSTOMID" }, "description": { "type": "string", - "description": "The description of the product, which is BASE64 encoded." + "description": "The seller created description of the item.

For example:

Brand-new, unused, and unworn. Not in original packaging." }, - "imageUrl": { + "changeMetadata": { "type": "string", - "description": "The URL to the primary product image. This is the URL of the largest image available based on what the seller submitted." + "description": "Status change indicator of the listing.

Values: " }, - "additionalImageUrls": { + "ecoParticipationFeeValue": { + "type": "string", + "description": "The amount of the Eco Participation Fee, a fee paid toward the eventual disposal of the purchased item." + }, + "ecoParticipationFeeCurrency": { + "type": "string", + "description": "The currency in which the Eco Participation Fee for the item is paid." + }, + "takeBackPolicyLabel": { + "type": "string", + "description": "The seller-defined label of the TAKE_BACK custom policy for the item. A TAKE_BACK policy describes the seller's regulatory responsibility to take back a purchased item for disposal when the buyer purchases a new one." + }, + "takeBackPolicyDescription": { + "type": "string", + "description": "The seller-defined description of the TAKE_BACK custom policy for the item." + }, + "authenticityGuaranteeServiceId": { + "type": "string", + "description": "The unique identifier for the Authenticity Guarantee service associated with the item." + }, + "authenticityGuaranteeSelection": { "type": "string", - "description": "A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values." + "description": "An indication of whether the Authenticity Guarantee service is optional or mandatory for the item. For implementation help, refer to eBay API documentation" }, - "localizedProductAspects": { + "authenticityGuaranteeFeeValue": { "type": "string", - "description": "A list of the name/value pairs for the aspects of the product, which are BASE64 encoded. The aspect label, is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;). Example without Label Encoded: encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue Decoded: Size:XL;Color:Red;Sleeves:Long Example with Label Encoded: encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|encodedName:encodedValue Decoded: Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7 Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string. For more information, see Encoded Aspects in the Buying Integration Guide." + "description": "The price of the Authenticity Guarantee service for the item.

Note: The price returned in this field indicates the service fee for a single item quantity." + }, + "authenticityGuaranteeFeeCurrency": { + "type": "string", + "description": "The currency used for the Authenticity Guarantee service fee." + }, + "couponDiscountType": { + "type": "string", + "description": "The type of discount that the coupon applies." + }, + "couponRedemptionCode": { + "type": "string", + "description": "The redemption code for the coupon." + }, + "couponMessage": { + "type": "string", + "description": "A description of the coupon." + }, + "couponTermsWebUrl": { + "type": "string", + "description": "The URL to the coupon terms of use." + }, + "couponDiscountValue": { + "type": "string", + "description": "The discount amount after the coupon is applied." + }, + "couponDiscountCurrency": { + "type": "string", + "description": "The currency used to specify the coupon discount value." + }, + "couponExpirationDate": { + "type": "string", + "description": "The expiration date for the coupon.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ" + }, + "hazmatSignalWordId": { + "type": "string", + "description": "The ID of the signal word for the hazardous material." + }, + "hazmatSignalWord": { + "type": "string", + "description": "The localized signal word for the hazardous material, such as 'Danger'." + }, + "hazmatStatementIds": { + "type": "string", + "description": "The IDs of hazardous material statements, separated by the pipe symbol. For example:

H200|H221" + }, + "hazmatStatementDescriptions": { + "type": "string", + "description": "The Base64 encoded descriptions of hazardous material statements, separated by the pipe symbol. For example:

encoded(Unstable explosives)|encoded(Flammable gas)" + }, + "hazmatPictogramIds": { + "type": "string", + "description": "The IDs of hazardous material pictograms, separated by the pipe symbol. For example:

SGH01|SGH02" + }, + "hazmatPictogramDescriptions": { + "type": "string", + "description": "The Base64 encoded descriptions of hazardous material pictograms, separated by the pipe symbol. For example:

encoded(exploding bomb)|encoded(flame)" + }, + "hazmatPictogramImageUrls": { + "type": "string", + "description": "The image URLs of hazardous material pictograms, separated by the pipe symbol. For example:

https://img1|https://img2" + }, + "hazmatAdditionalInformation": { + "type": "string", + "description": "Base64 encoded additional information about the hazardous material." + }, + "repairScore": { + "type": "string", + "description": "A score that describes how easy it is to repair the product. Score values range from 0.1 (hardest to repair) to 10.0 (easiest), always including a single decimal place." + }, + "conditionDescriptors": { + "type": "string", + "description": "Note: Condition descriptors are currently only available for the following trading card categories:
This field contains a list of the name/value pairs for the condition descriptors of the item, which are Base64 encoded. The descriptors are separated as follows: Note: The separators ( : ; | ) are not encoded. You must decode each name, and value or values separately. You cannot decode the entire string.

The name and value are numeric IDs that map to the name and value, respectively, of a condition descriptor. A condition descriptor name-value pair provides more information about an item's condition in a structured way. Descriptors are name-value attributes that can be either from a closed set or open text. For more information on the numeric IDs and their text equivalents, use the getItemConditionPolicies method of the Metadata API." + }, + "sellerUserId": { + "type": "string", + "description": "The unique identifier for an eBay user across all eBay sites. This value does not change, even when a user changes their username." } }, - "description": "The type that defines the columns returned in the getProductFeed feed file." + "description": "The type that defines the columns returned in the Hourly Snapshot feed file.

Note: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated.

" }, - "ProductResponse": { + "ItemSnapshotResponse": { "type": "object", "properties": { - "products": { + "items": { "type": "array", - "description": "The container for the array of products returned by the getProdutFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values on each line. The header labels match the fields that are described in the Response fields section.", + "description": "The container for the array of items returned by the getItemSnapshotFeed method.

Note: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated.

", "items": { - "$ref": "#/components/schemas/Product" + "$ref": "#/components/schemas/ItemSnapshot" } } }, - "description": "The type that defines the array for the products returned in the Product feed file." + "description": "The type that defines the array for the items returned in the Hourly Snapshot feed file." } }, "securitySchemes": { @@ -1546,8 +2011,7 @@ "clientCredentials": { "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", "scopes": { - "https://api.ebay.com/oauth/api_scope/buy.item.feed": "View curated feeds of eBay items", - "https://api.ebay.com/oauth/api_scope/buy.product.feed": " This scope would allow applications to access product feeds." + "https://api.ebay.com/oauth/api_scope/buy.item.feed": "View curated feeds of eBay items" } } } diff --git a/specs/buy_marketing_v1_beta_oas3.json b/specs/buy_marketing_v1_beta_oas3.json index 2766ef6f..73adec6c 100644 --- a/specs/buy_marketing_v1_beta_oas3.json +++ b/specs/buy_marketing_v1_beta_oas3.json @@ -10,7 +10,7 @@ "name": "eBay API License Agreement", "url": "https://go.developer.ebay.com/api-license-agreement" }, - "version": "v1_beta.1.0" + "version": "v1_beta.2.0" }, "servers": [ { @@ -24,46 +24,46 @@ } ], "paths": { - "/merchandised_product/get_also_bought_products": { + "/merchandised_product": { "get": { "tags": [ "merchandised_product" ], - "description": "This call returns products that were also bought when shoppers bought the product specified in the request. Showing 'also bought' products inspires up-selling and cross-selling. You specify the product by one of the following: epid - eBay Product ID gtin - Global Trade Item Number (UPC, ISBN, EAN) brand (brand name, such as Nike) plus mpn (Manufacturer's Part Number) Restrictions For a list of supported sites and other restrictions, see API Restrictions. Note: A maximum of 12 products are returned. The call will return up to 12 products, but it can be less than 12. If the number of products found is less than 12, the call will return all of the products matching the criteria.", - "operationId": "getAlsoBoughtByProduct", + "description": "This method returns an array of products based on the category and metric specified. This includes details of the product, such as the eBay product ID (EPID), title, and user reviews and ratings for the product. You can use the epid returned by this method in the Browse API search method to retrieve items for this product.

Restrictions

", + "operationId": "getMerchandisedProducts", "parameters": [ { - "name": "brand", + "name": "aspect_filter", "in": "query", - "description": "The brand of the product. Restriction: This must be used along with mpn. Required: You must specify one epid, or one gtin, or one brand plus mpn pair.", + "description": "This value specifies the aspect name/value pairs used to further refine product results.

For example:
   /buy/marketing/v1_beta/merchandised_product?category_id=31388&metric_name=BEST_SELLING&aspect_filter=Brand:Canon

You can use the Browse API search method with the fieldgroups=ASPECT_REFINEMENTS field to return the aspects of a product. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/marketing/types/gct:MarketingAspectFilter", "required": false, "schema": { "type": "string" } }, { - "name": "epid", + "name": "category_id", "in": "query", - "description": "The eBay product identifier of a product. Required: You must specify one epid, or one gtin, or one brand plus mpn pair.", - "required": false, + "description": "This query parameter limits the products returned to a specific eBay category.

The list of eBay category IDs is not published and category IDs are not all the same across all the eBay maketplace. You can use the following techniques to find a category by site:
Maximum: 1

Required: 1 ", + "required": true, "schema": { "type": "string" } }, { - "name": "gtin", + "name": "limit", "in": "query", - "description": "The unique Global Trade Item Number of the item as defined by http://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number value. Required: You must specify one epid, or one gtin, or one brand plus mpn pair.", + "description": "This value specifies the maximum number of products to return in a result set.

Note: Maximum value means the method will return up to that many products per set, but it can be less than this value. If the number of products found is less than this value, the method will return all of the products matching the criteria.
Default: 8

Maximum: 100", "required": false, "schema": { "type": "string" } }, { - "name": "mpn", + "name": "metric_name", "in": "query", - "description": "The manufacturer part number of the product. Restriction: This must be used along with brand. Required: You must specify one epid, or one gtin, or one brand plus mpn pair.", - "required": false, + "description": "This value filters the result set by the specified metric. Only products in this metric are returned.

Note: Currently, the only metric supported is BEST_SELLING.
Default: BEST_SELLING

Maximum: 1

Required: 1", + "required": true, "schema": { "type": "string" } @@ -71,7 +71,7 @@ ], "responses": { "200": { - "description": "This call returns products that were also bought when shoppers bought the product specified in the request. Showing 'also bought' products inspires up-selling and cross-selling. You specify the product by one of the following: epid - eBay Product ID gtin - Global Trade Item Number (UPC, ISBN, EAN) brand (brand name, such as Nike) plus mpn (Manufacturer's Part Number) Restrictions For a list of supported sites and other restrictions, see API Restrictions. Note: A maximum of 12 products are returned. The call will return up to 12 products, but it can be less than 12. If the number of products found is less than 12, the call will return all of the products matching the criteria.", + "description": "OK", "content": { "application/json": { "schema": { @@ -80,59 +80,63 @@ } } }, - "204": { - "description": "No Content" - }, "400": { "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } + "x-response-codes": { + "errors": { + "70001": { + "domain": "API_MARKETING", + "category": "REQUEST", + "description": "A metric_name is required to make the API call." + }, + "70002": { + "domain": "API_MARKETING", + "category": "REQUEST", + "description": "The metric_name {metric_name} is invalid." + }, + "70003": { + "domain": "API_MARKETING", + "category": "REQUEST", + "description": "A categoryId is required to make the API call." + }, + "70004": { + "domain": "API_MARKETING", + "category": "REQUEST", + "description": "The category id {categoryId} is invalid" + }, + "70005": { + "domain": "API_MARKETING", + "category": "REQUEST", + "description": "The 'limit' value should be between 1 and 100 (inclusive)." + }, + "70006": { + "domain": "API_MARKETING", + "category": "REQUEST", + "description": "The 'limit' value must be an integer value." } } } }, "409": { "description": "Conflict", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } + "x-response-codes": { + "errors": { + "70007": { + "domain": "API_MARKETING", + "category": "BUSINESS", + "description": "The marketplace value {marketplace} is not supported. The supported values are: {marketplaces}." } } } }, "500": { "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } + "x-response-codes": { + "errors": { + "70000": { + "domain": "API_MARKETING", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." } } } @@ -146,241 +150,50 @@ } ] } - }, - "/merchandised_product/get_also_viewed_products": { - "get": { - "tags": [ - "merchandised_product" - ], - "description": "This call returns products that were also viewed when shoppers viewed the product specified in the request. Showing 'also viewed' products encourages up-selling and cross-selling. You specify the product by one of the following: epid - eBay Product ID gtin - Global Trade Item Number (UPC, ISBN, EAN) brand (brand name, such as Nike) plus mpn (Manufacturer's Part Number) Restrictions For a list of supported sites and other restrictions, see API Restrictions. Note: A maximum of 12 products are returned. The call will return up to 12 products, but it can be less than 12. If the number of products found is less than 12, the call will return all of the products matching the criteria.", - "operationId": "getAlsoViewedByProduct", - "parameters": [ - { - "name": "brand", - "in": "query", - "description": "The brand of the product. Restriction: This must be used along with mpn. Required: You must specify one epid, or one gtin, or one brand plus mpn pair.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "epid", - "in": "query", - "description": "The eBay product identifier of a product. Required: You must specify one epid, or one gtin, or one brand plus mpn pair.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "gtin", - "in": "query", - "description": "The unique Global Trade Item Number of the item as defined by http://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number value. Required: You must specify one epid, or one gtin, or one brand plus mpn pair.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "mpn", - "in": "query", - "description": "The manufacturer part number of the product. Restriction: This must be used along with brand.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "This call returns products that were also viewed when shoppers viewed the product specified in the request. Showing 'also viewed' products encourages up-selling and cross-selling. You specify the product by one of the following: epid - eBay Product ID gtin - Global Trade Item Number (UPC, ISBN, EAN) brand (brand name, such as Nike) plus mpn (Manufacturer's Part Number) Restrictions For a list of supported sites and other restrictions, see API Restrictions. Note: A maximum of 12 products are returned. The call will return up to 12 products, but it can be less than 12. If the number of products found is less than 12, the call will return all of the products matching the criteria.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BestSellingProductResponse" - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } - } - } - } + } + }, + "components": { + "schemas": { + "Amount": { + "type": "object", + "properties": { + "currency": { + "type": "string", + "description": "The three-letter ISO 4217 code representing the currency of the amount in the value field. For implementation help, refer to eBay API documentation" }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } - } - } - } + "value": { + "type": "string", + "description": "The monetary amount, in the currency specified by the currency field. " } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.marketing" - ] - } - ] - } - }, - "/merchandised_product": { - "get": { - "tags": [ - "merchandised_product" - ], - "description": "This call returns an array of products based on the category and metric specified. This includes details of the product, such as the eBay product ID (EPID), title, and user reviews and ratings for the product. You can use the epid returned by this call in the Browse API search call to retrieve items for this product. Restrictions For a list of supported sites and other restrictions, see API Restrictions.", - "operationId": "getMerchandisedProducts", - "parameters": [ - { - "name": "aspect_filter", - "in": "query", - "description": "The aspect name/value pairs used to further refine product results. For example:    /buy/marketing/v1_beta/merchandised_product?category_id=31388&metric_name=BEST_SELLING&aspect_filter=Brand:Canon You can use the Browse API search call with the fieldgroups=ASPECT_REFINEMENTS field to return the aspects of a product. For implementation help, refer to eBay API documentation at https://developer.ebay.com/devzone/rest/api-ref/marketing/types/MarketingAspectFilter.html", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "category_id", - "in": "query", - "description": "This query parameter limits the products returned to a specific eBay category. The list of eBay category IDs is not published and category IDs are not all the same across all the eBay maketplace. You can use the following techniques to find a category by site: Use the Category Changes page. Use the Taxonomy API. For details see Get Categories for Buy APIs. Use the Browse API and submit the following call to get the dominantCategoryId for an item. /buy/browse/v1/item_summary/search?q=keyword&fieldgroups=ASPECT_REFINEMENTS Maximum: 1 Required: 1", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "This value specifies the maximum number of products to return in a result set. Note: Maximum value means the call will return up to that many products per set, but it can be less than this value. If the number of products found is less than this value, the call will return all of the products matching the criteria. Default: 8 Maximum: 100", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "metric_name", - "in": "query", - "description": "This value filters the result set by the specified metric. Only products in this metric are returned. Currently, the only metric supported is BEST_SELLING. Default: BEST_SELLING Maximum: 1 Required: 1", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "This call returns an array of products based on the category and metric specified. This includes details of the product, such as the eBay product ID (EPID), title, and user reviews and ratings for the product. You can use the epid returned by this call in the Browse API search call to retrieve items for this product. Restrictions For a list of supported sites and other restrictions, see API Restrictions.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BestSellingProductResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } - } - } + "description": "This type defines the monetary value of an amount and the currency used." + }, + "BestSellingProductResponse": { + "type": "object", + "properties": { + "merchandisedProducts": { + "type": "array", + "description": "An array of containers for the products.", + "items": { + "$ref": "#/components/schemas/MerchandisedProduct" } }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } - } - } + "warnings": { + "type": "array", + "description": "The container with all the warnings for the input request.", + "items": { + "$ref": "#/components/schemas/Error" } } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.marketing" - ] - } - ] - } - } - }, - "components": { - "schemas": { + "description": "The type that defines the fields for the best selling product information." + }, "Error": { "type": "object", "properties": { "category": { "type": "string", - "description": "This string value indicates the error category. There are three categories of errors: request errors, application errors, and system errors." + "description": "This string value indicates the error category. There are three categories of errors: request errors, application errors, and system errors. " }, "domain": { "type": "string", @@ -436,51 +249,17 @@ }, "value": { "type": "string", - "description": "This is the actual value that was passed in for the element specified in the name field." + "description": "This is the actual value that was passed in for the element specified in the name field." } }, - "description": "An array of name/value pairs that provide more details regarding error condition." - }, - "Amount": { - "type": "object", - "properties": { - "currency": { - "type": "string", - "description": "A three-letter ISO 4217 code that indicates the currency of the amount in the value field. For implementation help, refer to eBay API documentation" - }, - "value": { - "type": "string", - "description": "The monetary amount, in the currency specified by the currency field." - } - }, - "description": "This type defines the monetary value of an amount and the currency used." - }, - "BestSellingProductResponse": { - "type": "object", - "properties": { - "merchandisedProducts": { - "type": "array", - "description": "An array of containers for the products.", - "items": { - "$ref": "#/components/schemas/MerchandisedProduct" - } - }, - "warnings": { - "type": "array", - "description": "The container with all the warnings for the input request.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "The type that defines the fields for the best selling product information." + "description": "An array of name/value pairs that provide details regarding the error." }, "Image": { "type": "object", "properties": { "height": { "type": "integer", - "description": "Reserved for future use.", + "description": " Reserved for future use. ", "format": "int32" }, "imageUrl": { @@ -489,11 +268,11 @@ }, "width": { "type": "integer", - "description": "Reserved for future use.", + "description": " Reserved for future use. ", "format": "int32" } }, - "description": "Type the defines the details of an image, such as size and URL. Currently only imageUrl is getting populated. The height and width were added for future use." + "description": "Type the defines the details of an image, such as size and URL. Currently only imageUrl is getting populated. The height and width were added for future use." }, "MarketPriceDetail": { "type": "object", @@ -525,7 +304,7 @@ }, "epid": { "type": "string", - "description": "The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search call to retrieve items for this product." + "description": "The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product." }, "image": { "description": "The container for the product image.", @@ -540,7 +319,7 @@ }, "ratingAspects": { "type": "array", - "description": "An array of containers for ratings of the product aspects, such as "Is it a good value".", + "description": "An array of containers for ratings of the product aspects, such as \"Is it a good value\".", "items": { "$ref": "#/components/schemas/RatingAspect" } @@ -552,7 +331,7 @@ }, "reviewCount": { "type": "integer", - "description": "The total number of eBay users that wrote a review for the product.", + "description": "The total number of eBay users that wrote a review for the product. ", "format": "int32" }, "title": { @@ -598,7 +377,7 @@ }, "percentage": { "type": "string", - "description": "The percentage of the aspect rating value. ratingAspectDistributions.percentage = ratingAspectDistributions.count / ratingAspects.count" + "description": "The percentage of the aspect rating value.

ratingAspectDistributions.percentage = ratingAspectDistributions.count / ratingAspects.count" }, "value": { "type": "string", diff --git a/specs/buy_offer_v1_beta_oas3.json b/specs/buy_offer_v1_beta_oas3.json index 06b9bff9..cb14fc81 100644 --- a/specs/buy_offer_v1_beta_oas3.json +++ b/specs/buy_offer_v1_beta_oas3.json @@ -2,7 +2,7 @@ "openapi": "3.0.0", "info": { "title": "Buy Offer API", - "description": "The Buy Offer API enables Partners to place proxy bids for a buyer and retrieve the auctions where the buyer is bidding. By placing a proxy bid, the buyer is agreeing to purchase the item if they win the auction.

", + "description": "Note: This is a \"Limited(Limited Release) API available only to select developers approved by business units. For information on how to obtain access to this API in production, see the Buy APIs Requirements.

The Buy Offer API enables Partners to place proxy bids for a buyer and retrieve the auctions where the buyer is bidding. By placing a proxy bid, the buyer is agreeing to purchase the item if they win the auction.", "contact": { "name": "eBay Inc," }, @@ -10,7 +10,7 @@ "name": "eBay API License Agreement", "url": "https://go.developer.ebay.com/api-license-agreement" }, - "version": "v1_beta.0.0" + "version": "v1_beta.0.1" }, "servers": [ { @@ -29,13 +29,13 @@ "tags": [ "bidding" ], - "description": "This method retrieves the bidding details that are specific to the buyer of the specified auction. This must be an auction where the buyer has already placed a bid. To retrieve the bidding information you use a user access token and pass in the item ID of the auction. You can also retrieve general bidding details about the auction, such as start price, minimum bid price, and the count of unique bidders, using the Browse API getItem method. URLs for this method Production URL: https://api.ebay.com/buy/offer/v1_beta/bidding/ Sandbox URL: https://api.sandbox.ebay.com/buy/offer/v1_beta/bidding/ Restrictions For a list of supported sites and other restrictions, see API Restrictions.", + "description": "This method retrieves the bidding details that are specific to the buyer of the specified auction. This must be an auction where the buyer has already placed a bid.

To retrieve the bidding information you use a user access token and pass in the item ID of the auction. You can also retrieve general bidding details about the auction, such as minimum bid price and the count of unique bidders, using the Browse API getItems method.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

", "operationId": "getBidding", "parameters": [ { "name": "item_id", "in": "path", - "description": "The eBay RESTful identifier of an item that you want the buyer's bidding information. This ID is returned by the Browse and Feed API methods. RESTful Item ID example: v1|272394640372|0 For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview. Restriction: The buyer must have placed a bid for this item.", + "description": "This path parameter specifies the unique eBay RESTful identifier of an item for which you want the buyer's bidding information.

This ID is returned by the Browse and Feed API methods.

RESTful Item ID example: v1|2**********2|0

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.

Restriction: The buyer must have placed a bid for this item. ", "required": true, "schema": { "type": "string" @@ -44,7 +44,7 @@ { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "The ID of the eBay marketplace where the buyer is based. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions.", + "description": "The ID of the eBay marketplace where the buyer is based. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions.", "required": true, "schema": { "type": "string" @@ -66,11 +66,6 @@ "description": "Bad Request", "x-response-codes": { "errors": { - "120001": { - "domain": "API_OFFER", - "category": "REQUEST", - "description": "The item ID {item_id} was not found. Check that this is an active auction item ID." - }, "120015": { "domain": "API_OFFER", "category": "REQUEST", @@ -80,6 +75,18 @@ "domain": "API_OFFER", "category": "REQUEST", "description": "The Marketplace {marketplace_id} is not supported. Supported values are [marketplace_ids]." + } + } + } + }, + "404": { + "description": "Not found", + "x-response-codes": { + "errors": { + "120001": { + "domain": "API_OFFER", + "category": "REQUEST", + "description": "The item ID {item_id} was not found. Check that this is an active auction item ID." }, "120033": { "domain": "API_OFFER", @@ -89,9 +96,6 @@ } } }, - "404": { - "description": "Not found" - }, "500": { "description": "Internal Server Error", "x-response-codes": { @@ -119,13 +123,13 @@ "tags": [ "bidding" ], - "description": "This method uses a user access token to place a proxy bid for the buyer on a specific auction item. The item must offer AUCTION as one of the buyingOptions. To place a bid, you pass in the item ID of the auction as a URI parameter and the buyer's maximum bid amount (maxAmount ) in the payload. By placing a proxy bid, the buyer is agreeing to purchase the item if they win the auction. After this bid is placed, if someone else outbids the buyer a bid, eBay automatically bids again for the buyer up to the amount of their maximum bid. When the bid exceeds the buyer's maximum bid, eBay will notify them that they have been outbid. To find auctions, you can use the Browse API to search for items and use a filter to return only auction items. For example: /buy/browse/v1/item_summary/search?q=iphone&filter=buyingOptions:{AUCTION} URLs for this method Production URL: https://api.ebay.com/buy/offer/v1_beta/bidding/ Sandbox URL: https://api.sandbox.ebay.com/buy/offer/v1_beta/bidding/ Restrictions For a list of supported sites and other restrictions, see API Restrictions.", + "description": "This method uses a user access token to place a proxy bid for the buyer on a specific auction item. The item must offer AUCTION as one of the buyingOptions.

To place a bid, you pass in the item ID of the auction as a URI parameter and the buyer's maximum bid amount (maxAmount ) in the payload. By placing a proxy bid, the buyer is agreeing to purchase the item if they win the auction.

After this bid is placed, if someone else outbids the buyer a bid, eBay automatically bids again for the buyer up to the amount of their maximum bid. When the bid exceeds the buyer's maximum bid, eBay will notify them that they have been outbid.

To find auctions, you can use the Browse API to search for items and use a filter to return only auction items. For example:

/buy/browse/v1/item_summary/search?q=iphone&filter=buyingOptions:{AUCTION}

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.", "operationId": "placeProxyBid", "parameters": [ { "name": "item_id", "in": "path", - "description": "The eBay RESTful identifier of an item you want to bid on. This ID is returned by the Browse and Feed API methods. RESTful Item ID Example: v1|272394640372|0 For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.", + "description": "This path parameter specifies the unique eBay RESTful identifier of an item you want to bid on.

This ID is returned by the Browse and Feed Beta API methods.

RESTful Item ID Example: v1|2**********2|0

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.", "required": true, "schema": { "type": "string" @@ -134,7 +138,16 @@ { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "The ID of the eBay marketplace where the buyer is based. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions.", + "description": "The ID of the eBay marketplace where the buyer is based. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", "required": true, "schema": { "type": "string" @@ -166,16 +179,6 @@ "description": "Bad request", "x-response-codes": { "errors": { - "120001": { - "domain": "API_OFFER", - "category": "REQUEST", - "description": "The item ID {item_id} was not found. Check that this is an active auction item ID." - }, - "120007": { - "domain": "API_OFFER", - "category": "REQUEST", - "description": "The bid amount is too high." - }, "120011": { "domain": "API_OFFER", "category": "REQUEST", @@ -205,22 +208,21 @@ "domain": "API_OFFER", "category": "REQUEST", "description": "The Marketplace {marketplaceId} is not supported. Supported values are {allowedMarketplaces}." - }, - "120018": { - "domain": "API_OFFER", - "category": "REQUEST", - "description": "For this auction, the bid amount cannot have decimals." - }, - "120032": { - "domain": "API_OFFER", - "category": "REQUEST", - "description": "This requires the user's consent for adult items." } } } }, "404": { - "description": "Not found" + "description": "Not found", + "x-response-codes": { + "errors": { + "120001": { + "domain": "API_OFFER", + "category": "REQUEST", + "description": "The item ID {item_id} was not found. Check that this is an active auction item ID." + } + } + } }, "409": { "description": "Conflict", @@ -251,6 +253,11 @@ "category": "BUSINESS", "description": "You are not eligible to bid on this item due to seller restrictions." }, + "120007": { + "domain": "API_OFFER", + "category": "REQUEST", + "description": "The bid amount is too high." + }, "120008": { "domain": "API_OFFER", "category": "BUSINESS", @@ -271,6 +278,11 @@ "category": "BUSINESS", "description": "The auction has ended." }, + "120018": { + "domain": "API_OFFER", + "category": "REQUEST", + "description": "For this auction, the bid amount cannot have decimals." + }, "120019": { "domain": "API_OFFER", "category": "BUSINESS", @@ -335,6 +347,11 @@ "domain": "API_OFFER", "category": "BUSINESS", "description": "This requires credit card verification." + }, + "120032": { + "domain": "API_OFFER", + "category": "REQUEST", + "description": "This requires the user's consent for adult items." } } } @@ -369,7 +386,7 @@ "properties": { "currency": { "type": "string", - "description": "The three-letter ISO 4217 code representing the currency of the amount in the value field. For implementation help, refer to eBay API documentation" + "description": "The three-letter ISO 4217 code representing the currency of the amount in the value field. For implementation help, refer to eBay API documentation" }, "value": { "type": "string", @@ -387,7 +404,7 @@ }, "auctionStatus": { "type": "string", - "description": "An enumeration value that represents the current state of the auction, such as ENDED or LIVE. For implementation help, refer to eBay API documentation" + "description": "An enumeration value that represents the current state of the auction, such as ACTIVE or ENDED.

If this value is ENDED and the value of highBidder is true, this indicates the buyer has won the auction. For implementation help, refer to eBay API documentation" }, "bidCount": { "type": "integer", @@ -399,12 +416,12 @@ "$ref": "#/components/schemas/Amount" }, "currentProxyBid": { - "description": "The buyer's proxy bid, which is the maxAmount specified in the request.", + "description": "The buyer's proxy bid, which is the maxAmount specified in the request. ", "$ref": "#/components/schemas/ProxyBid" }, "highBidder": { "type": "boolean", - "description": "Indicates if the buyer is the highest bidder." + "description": "Indicates if the buyer is the highest bidder. " }, "itemId": { "type": "string", @@ -412,11 +429,11 @@ }, "reservePriceMet": { "type": "boolean", - "description": "This indicates if the reserve price of the item has been met. A reserve price is set by the seller and is the minimum amount the seller is willing to sell the item for. If the highest bid is not equal to or higher than the reserve price when the auction ends, the listing ends and the item is not sold. Note: This is returned only for auctions that have a reserve price." + "description": "This indicates if the reserve price of the item has been met. A reserve price is set by the seller and is the minimum amount the seller is willing to sell the item for.

If the highest bid is not equal to or higher than the reserve price when the auction ends, the listing ends and the item is not sold.

Note: This is returned only for auctions that have a reserve price.

" }, "suggestedBidAmounts": { "type": "array", - "description": "The suggested bid amount for the next bid. Note: These are generated suggestions and do not guarantee the buyer will win the bid. This means these suggestions do not take into account the max bid amount of other bidders. The buyer can be outbid even if they submit the highest suggested bid.", + "description": "The suggested bid amount for the next bid. Note: These are generated suggestions and do not guarantee the buyer will win the bid. This means these suggestions do not take into account the max bid amount of other bidders. The buyer can be outbid even if they submit the highest suggested bid.", "items": { "$ref": "#/components/schemas/Amount" } @@ -493,11 +510,11 @@ "type": "object", "properties": { "maxAmount": { - "description": "The amount of the proxy bid to be placed. This is the maximum amount the buyer is willing to pay for the item. Note: Currency for the bid must be the currency specified by the seller when listing the item. If the currency has been converted, the seller's currency will be returned in the convertedFromCurrency field. VAT (value added tax) does not need to be added to the proxy bid amount even if VAT applies.", + "description": "The amount of the proxy bid to be placed. This is the maximum amount the buyer is willing to pay for the item.

Note: ", "$ref": "#/components/schemas/Amount" }, "userConsent": { - "description": "Specifics whether buyer wants to give their consent to bid on adult-only items. For a buyer to bid on an adult-only item, you must collect their consent using this field and they must agree to the Terms of Use. For more information about adult-only items on eBay, see Adult-Only items on eBay. Default: false", + "description": "Specifies whether the buyer wants to give their consent to bid on adult-only items. For a buyer to bid on an adult-only item, you must collect their consent using this field, and they must agree to the Terms of Use.

For more information about adult-only items on eBay, see Adult-Only items on eBay.

Default: false

", "$ref": "#/components/schemas/UserConsent" } }, @@ -532,7 +549,7 @@ "properties": { "adultOnlyItem": { "type": "boolean", - "description": "The type that defines the fields for buyer consent to bid on adult-only items. For more information about adult-only items on eBay, see Adult-Only items on eBay." + "description": "The type that defines the fields for buyer consent to bid on adult-only items.

This field must be included in the placeProxyBid request and set to true if the buyer is bidding on an adult-only item.

For more information about adult-only items on eBay, see Adult-Only items on eBay." } }, "description": "The type that defines the fields for collecting the buyers consent." @@ -542,7 +559,15 @@ "api_auth": { "type": "oauth2", "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": {} + "flows": { + "authorizationCode": { + "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope/buy.offer.auction": "View and manage bidding activities for auctions" + } + } + } } } } diff --git a/specs/buy_order_v1_beta_oas3.json b/specs/buy_order_v1_beta_oas3.json deleted file mode 100644 index f1274ebb..00000000 --- a/specs/buy_order_v1_beta_oas3.json +++ /dev/null @@ -1,5896 +0,0 @@ -{ - "openapi": "3.0.0", - "info": { - "title": "Order API", - "description": "The Order API provides interfaces that lets shoppers pay for items (for both eBay guest and eBay member buyers). It also lets them track the payment and shipping status of the order. It enables eBay partners to use the Post Order API for returns and cancellations for eBay member buyers.

The Order API has the following resources:

", - "contact": { - "name": "eBay Inc," - }, - "license": { - "name": "eBay API License Agreement", - "url": "https://developer.ebay.com/products/license" - }, - "version": "v1_beta.20.0" - }, - "servers": [ - { - "url": "https://apix.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/buy/order/v1" - } - } - }, - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/buy/order/v1" - } - } - } - ], - "paths": { - "/checkout_session/{checkoutSessionId}/apply_coupon": { - "post": { - "tags": [ - "checkout_session" - ], - "description": "(Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay proxy guest checkout session and applies it to all the eligible items in the order. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions Maximum: One coupon per order For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "applyCoupon", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used to apply a coupon to a checkout session.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used to apply a coupon to a checkout session.", - "$ref": "#/components/schemas/CouponRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "16002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon does not exist. The coupon was ignored and no discount was applied to this order." - }, - "16003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon has expired. No discount was applied to this order." - }, - "16004": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon has not been activated. The coupon was ignored and no discount was applied to this order." - }, - "16006": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order." - }, - "16022": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order." - }, - "16024": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon provided could not be applied. You may proceed with this session or provide another coupon." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "16000": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for any of the items in the order. The coupon was ignored and no discount was applied to this order." - }, - "16001": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "You cannot apply multiple coupons to the same order. No discount was applied to this order." - }, - "16005": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order." - }, - "16007": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This coupon has already been used. The coupon was ignored and no discount was applied to this order." - }, - "16008": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This coupon is no longer valid. The coupon was ignored and no discount was applied to this order." - }, - "16009": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order." - }, - "16010": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the currency being used by the items. The coupon was ignored and no discount was applied to this order." - }, - "16011": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon has not been activated. The coupon was ignored and no discount was applied to this order." - }, - "16012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the {fieldName}. The coupon was ignored and no discount was applied to this order." - }, - "16013": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for any of the item categories in the order. The coupon was ignored and no discount was applied to this order." - }, - "16014": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the selected payment method. The coupon was ignored and no discount was applied to this order." - }, - "16015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the selected shipping option. The coupon was ignored and no discount was applied to this order." - }, - "16016": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is valid only for items that are shipped domestically. The coupon was ignored and no discount was applied to this order." - }, - "16017": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is valid only for items that are shipped internationally. The coupon was ignored and no discount was applied to this order." - }, - "16018": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The buyer is not eligible for this coupon. The coupon was ignored and no discount was applied to this order." - }, - "16019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for guest eBay checkouts. The coupon was ignored and no discount was applied to this order." - }, - "16021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the {fieldName}. The coupon was ignored and no discount was applied to this order." - }, - "16023": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "You cannot apply multiple coupons to the same order. The coupon was ignored and no discount was applied to this order." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - }, - "16020": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "Your application is not eligible for this coupon. The coupon was ignored and no discount was applied to this order." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - } - }, - "/checkout_session/{checkoutSessionId}": { - "get": { - "tags": [ - "checkout_session" - ], - "description": "This method returns the details of the specified eBay member checkout session. The checkoutSessionId is passed in as a URI parameter and is required. This method has no request payload. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "getCheckoutSession", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - } - }, - "/checkout_session/initiate": { - "post": { - "tags": [ - "checkout_session" - ], - "description": "This method creates a eBay member checkout session, which is the first step in performing a checkout. You use this method to create a checkout session before you can process a checkout. This method assumes (and checks for) payment using PayPal, which is linked to the buyer's eBay account. You can use the updatePaymentInfo method to pay by a credit card. If the address submitted cannot be validated, a warning message will be returned. The method returns a checkoutSessionId that you use as a URI parameter in subsequent checkout methods. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. Tip: To test the entire checkout flow, you might need a "test" credit card. You can generate a credit card number from http://www.getcreditcardnumbers.com. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "initiateCheckoutSession", - "requestBody": { - "description": "The container for the fields used by the initiateCheckoutSession method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the initiateCheckoutSession method.", - "$ref": "#/components/schemas/CreateSignInCheckoutSessionRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - }, - "15043": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item {itemId} cannot be purchased using this API and has been removed from the cart. The purchase can be done on ebay.com." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15048": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The value of {fieldName} is too long. For more information, see the documentation for this call." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15011": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "You have exceeded the maximum number of {maxLineItems} line items. Correct the request and resubmit the call." - }, - "15012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." - }, - "15013": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity value is greater than the quantity available. Correct the quantity value and resubmit the call." - }, - "15014": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call." - }, - "15015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information." - }, - "15016": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The buyer is the seller of the item, which is not allowed." - }, - "15017": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not available for purchase at this time. Try to purchase this item at later time." - }, - "15018": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not available for purchase. This can be for several reason such as, the listing has ended, this is an auction time, etc. Remove the item and resubmit the call." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15024": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the buyer's payment method. Please check or provide another payment method for this order." - }, - "15026": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not shippable to the specified shipping address." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "15028": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item {itemId} is not available for purchase because it cannot be shipped to {country}." - }, - "15031": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not purchasable because the buyer has been blocked by the seller." - }, - "15044": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "At least one of the items in the cart cannot be purchased using this API. The purchase can be done on eBay, through the eBay app or eBay website." - }, - "15045": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items." - }, - "15047": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - } - }, - "/checkout_session/{checkoutSessionId}/place_order": { - "post": { - "tags": [ - "checkout_session" - ], - "description": "This method creates the purchase order, pays for the items, and terminates the specified eBay member checkout session. The checkoutSessionId is passed in as a URI parameter and is required. Although there is not a request payload, for this method you must pass in { } in the request body. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. Note: If the credit card is declined, the checkout session is unusable. You will need to create a new checkout session for the order using the initiateCheckoutSession method.", - "operationId": "placeOrder", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PurchaseOrderSummary" - } - } - }, - "x-response-codes": { - "errors": { - "15005": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "Some of the line items were not purchased. Use the Order API getPurchaseOrder call to check the payment status of each line item." - }, - "15006": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The order has already been placed for the checkout session submitted and no modifications can be made. Use the Order API getPurchaseOrder call to get the purchase order details." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15004": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "If this is a eBay member checkout, this error indicates that the buyer does not have a PayPal account linked to their eBay account. If this is a guest checkout, this indicates that the buyer's credit card information is missing. In both cases, submit the buyer's credit card information." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15020": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "During the checkout process the item has been changed. Create a new checkout session for this item using the initiateCheckoutSession call." - }, - "15023": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The payment cannot be processed due to insufficient funds or other issues with funding source. To complete this order, use the appropriate initiate checkout session call to create a new session and provide a new payment method." - }, - "15024": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the buyer's payment method. Please check or provide another payment method for this order." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "15030": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place the order, the user must have accepted the PayPal User Agreement and Privacy Policy. If they have explicitly accepted these, pass in true in the paymentTermsAccepted field. For more information, see the documentation for this call." - }, - "15045": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items." - }, - "17000": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The payment cannot be processed due to insufficient funds or other issues with funding source. To complete this order, use the appropriate initiate checkout session call to create a new session and provide a new payment method." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - } - }, - "/checkout_session/{checkoutSessionId}/remove_coupon": { - "post": { - "tags": [ - "checkout_session" - ], - "description": "(Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay member checkout session. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is specified in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "removeCoupon", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used to remove a coupon from a checkout session.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used to remove a coupon from a checkout session.", - "$ref": "#/components/schemas/CouponRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "16025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon was not applied to this cart." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - } - }, - "/checkout_session/{checkoutSessionId}/update_payment_info": { - "post": { - "tags": [ - "checkout_session" - ], - "description": "This method changes the payment method information of the specified eBay member checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updatePaymentInfo", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updatePaymentInfo method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updatePaymentInfo method.", - "$ref": "#/components/schemas/UpdatePaymentInformation" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15022": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "Some of the items cannot be purchased using a credit card and must be removed from the checkout session." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - } - }, - "/checkout_session/{checkoutSessionId}/update_quantity": { - "post": { - "tags": [ - "checkout_session" - ], - "description": "This method changes the quantity of the specified line item in an eBay member checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateQuantity", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateQuantity method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateQuantity method.", - "$ref": "#/components/schemas/UpdateQuantity" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." - }, - "15013": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity value is greater than the quantity available. Correct the quantity value and resubmit the call." - }, - "15014": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - } - }, - "/checkout_session/{checkoutSessionId}/update_shipping_address": { - "post": { - "tags": [ - "checkout_session" - ], - "description": "This method changes the shipping address for in an eBay member checkout session. All the line items in an order must be shipped to the same address, but the shipping method can be specific to the line item. Note: If the address submitted cannot be validated, a warning message will be returned. This does not prevent the method from executing, but you may want to verify the address. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateShippingAddress", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateShippingAddress method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateShippingAddress method.", - "$ref": "#/components/schemas/ShippingAddressImpl" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15048": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The value of {fieldName} is too long. For more information, see the documentation for this call." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15026": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not shippable to the specified shipping address." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "15047": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - } - }, - "/checkout_session/{checkoutSessionId}/update_shipping_option": { - "post": { - "tags": [ - "checkout_session" - ], - "description": "This method changes the shipping method for the specified line item in an eBay member checkout session. The shipping option can be set for each line item. This gives the shopper the ability choose the cost of shipping for each line item. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateShippingOption", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned checkout session ID, for a specific eBay marketplace, that is returned by initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateShippingOption method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateShippingOption method.", - "$ref": "#/components/schemas/UpdateShippingOption" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - } - }, - "/guest_checkout_session/{checkoutSessionId}/apply_coupon": { - "post": { - "tags": [ - "guest_checkout_session" - ], - "description": "(Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay guest checkout session and applies it to all the eligible items in the order. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions The PayPal Smart Button eBay guest payment flow does not support using coupons. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "applyGuestCoupon", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used to apply a coupon to a checkout session.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used to apply a coupon to a checkout session.", - "$ref": "#/components/schemas/CouponRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15032": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." - }, - "16002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon does not exist. The coupon was ignored and no discount was applied to this order." - }, - "16003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon has expired. No discount was applied to this order." - }, - "16004": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon has not been activated. The coupon was ignored and no discount was applied to this order." - }, - "16006": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order." - }, - "16022": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order." - }, - "16024": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon provided could not be applied. You may proceed with this session or provide another coupon." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "16000": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for any of the items in the order. The coupon was ignored and no discount was applied to this order." - }, - "16001": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "You cannot apply multiple coupons to the same order. No discount was applied to this order." - }, - "16005": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order." - }, - "16007": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This coupon has already been used. The coupon was ignored and no discount was applied to this order." - }, - "16008": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This coupon is no longer valid. The coupon was ignored and no discount was applied to this order." - }, - "16009": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order." - }, - "16010": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the currency being used by the items. The coupon was ignored and no discount was applied to this order." - }, - "16011": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon has not been activated. The coupon was ignored and no discount was applied to this order." - }, - "16012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the {fieldName}. The coupon was ignored and no discount was applied to this order." - }, - "16013": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for any of the item categories in the order. The coupon was ignored and no discount was applied to this order." - }, - "16014": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the selected payment method. The coupon was ignored and no discount was applied to this order." - }, - "16015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the selected shipping option. The coupon was ignored and no discount was applied to this order." - }, - "16016": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is valid only for items that are shipped domestically. The coupon was ignored and no discount was applied to this order." - }, - "16017": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is valid only for items that are shipped internationally. The coupon was ignored and no discount was applied to this order." - }, - "16018": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The buyer is not eligible for this coupon. The coupon was ignored and no discount was applied to this order." - }, - "16019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for guest eBay checkouts. The coupon was ignored and no discount was applied to this order." - }, - "16021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the {fieldName}. The coupon was ignored and no discount was applied to this order." - }, - "16023": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "You cannot apply multiple coupons to the same order. The coupon was ignored and no discount was applied to this order." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - }, - "16020": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "Your application is not eligible for this coupon. The coupon was ignored and no discount was applied to this order." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/guest_checkout_session/{checkoutSessionId}": { - "get": { - "tags": [ - "guest_checkout_session" - ], - "description": "This method returns the details of the specified guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. This method has no request payload. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "getGuestCheckoutSession", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/guest_checkout_session/initiate": { - "post": { - "tags": [ - "guest_checkout_session" - ], - "description": "This method creates an eBay guest checkout session, which is the first step in performing a checkout. The method returns a checkoutSessionId that you use as a URI parameter in subsequent checkout methods. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. TIP: To test the entire checkout flow, you might need a "test" credit card. You can generate a credit card number from http://www.getcreditcardnumbers.com. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "initiateGuestCheckoutSession", - "requestBody": { - "description": "The container for the fields used by the initiateGuestCheckoutSession method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the initiateGuestCheckoutSession method.", - "$ref": "#/components/schemas/CreateGuestCheckoutSessionRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - }, - "15043": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item {itemId} cannot be purchased using this API and has been removed from the cart. The purchase can be done on ebay.com." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15048": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The value of {fieldName} is too long. For more information, see the documentation for this call." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15011": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "You have exceeded the maximum number of {maxLineItems} line items. Correct the request and resubmit the call." - }, - "15012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." - }, - "15013": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity value is greater than the quantity available. Correct the quantity value and resubmit the call." - }, - "15014": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call." - }, - "15015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information." - }, - "15017": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not available for purchase at this time. Try to purchase this item at later time." - }, - "15018": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not available for purchase. This can be for several reason such as, the listing has ended, this is an auction time, etc. Remove the item and resubmit the call." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15026": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not shippable to the specified shipping address." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "15028": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item {itemId} is not available for purchase because it cannot be shipped to {country}." - }, - "15031": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not purchasable because the buyer has been blocked by the seller." - }, - "15044": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "At least one of the items in the cart cannot be purchased using this API. The purchase can be done on eBay, through the eBay app or eBay website." - }, - "15045": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items." - }, - "15047": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/guest_checkout_session/{checkoutSessionId}/initiate_payment": { - "post": { - "tags": [ - "guest_checkout_session" - ], - "description": "This method is used only in the PayPal Smart Button eBay guest payment flow. It sets the payment to the PayPal Checkout, which enables eBay guests to pay for their items with or without having a PayPal account without leaving your App or site. You can use this payment flow whether you are PCI compliant or not. To pay for items, buyers can either: Sign into their PayPal account and use any payment method associated with that account. Without a PayPal account, they can pay using a credit card or a direct debit from their bank account. For details about this flow, see PayPal Smart Button eBay guest payment flow. Requirement: To use this method you must integrate with PayPal's checkout.js on the client side. API URLs To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions If you want to apply or remove a coupon, you must do that before using this method. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "initiateGuestPayment", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the initiateGuestPayment method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the initiateGuestPayment method.", - "$ref": "#/components/schemas/InitiatePaymentRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15022": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "Some of the items cannot be purchased using a credit card and must be removed from the checkout session." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/guest_checkout_session/{checkoutSessionId}/place_order": { - "post": { - "tags": [ - "guest_checkout_session" - ], - "description": "This method creates the purchase order, pays for the items, and terminates the specified guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. Request headers This method requires specific request headers. For details see, HTTP request headers section. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. Note: If the credit card is declined, the checkout session is unusable. You will need to create a new checkout session for the order using the initiateGuestCheckoutSession method.", - "operationId": "placeGuestOrder", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific, eBay marketplace that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the placeGuestOrder method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the placeGuestOrder method.", - "$ref": "#/components/schemas/GuestPlaceOrderRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PurchaseOrderSummary" - } - } - }, - "x-response-codes": { - "errors": { - "15005": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "Some of the line items were not purchased. Use the Order API getPurchaseOrder call to check the payment status of each line item." - }, - "15006": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The order has already been placed for the checkout session submitted and no modifications can be made. Use the Order API getPurchaseOrder call to get the purchase order details." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15004": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "If this is a eBay member checkout, this error indicates that the buyer does not have a PayPal account linked to their eBay account. If this is a guest checkout, this indicates that the buyer's credit card information is missing. In both cases, submit the buyer's credit card information." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15033": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The payment cannot be processed because the payment information is invalid. You will need to create a new checkout session and submit corrected payment information." - }, - "15046": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "One or more of the mandatory values is missing for marketingChannels and/or marketingTypes. For help, refer to the placeGuestOrder call documentation." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15020": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "During the checkout process the item has been changed. Create a new checkout session for this item using the initiateCheckoutSession call." - }, - "15023": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The payment cannot be processed due to insufficient funds or other issues with funding source. To complete this order, use the appropriate initiate checkout session call to create a new session and provide a new payment method." - }, - "15024": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the buyer's payment method. Please check or provide another payment method for this order." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "15030": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place the order, the user must have accepted the PayPal User Agreement and Privacy Policy. If they have explicitly accepted these, pass in true in the paymentTermsAccepted field. For more information, see the documentation for this call." - }, - "15045": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items." - }, - "17000": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The payment cannot be processed due to insufficient funds or other issues with funding source. To complete this order, use the appropriate initiate checkout session call to create a new session and provide a new payment method." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/guest_checkout_session/{checkoutSessionId}/remove_coupon": { - "post": { - "tags": [ - "guest_checkout_session" - ], - "description": "(Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is specified in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions The PayPal Smart Button eBay guest payment flow does not support using coupons. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "removeGuestCoupon", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used to remove a coupon from a checkout session.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used to remove a coupon from a checkout session.", - "$ref": "#/components/schemas/CouponRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15032": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." - }, - "15033": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The payment cannot be processed because the payment information is invalid. You will need to create a new checkout session and submit corrected payment information." - }, - "16025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon was not applied to this cart." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/guest_checkout_session/{checkoutSessionId}/update_payment_info": { - "post": { - "tags": [ - "guest_checkout_session" - ], - "description": "This method changes the payment method information of the specified guest checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateGuestPaymentInfo", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateGuestPaymentInfo method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateGuestPaymentInfo method.", - "$ref": "#/components/schemas/UpdatePaymentInformation" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15032": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15022": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "Some of the items cannot be purchased using a credit card and must be removed from the checkout session." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/guest_checkout_session/{checkoutSessionId}/update_quantity": { - "post": { - "tags": [ - "guest_checkout_session" - ], - "description": "This method changes the quantity of the specified line item in an eBay guest checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateGuestQuantity", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateGuestQuantity method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateGuestQuantity method.", - "$ref": "#/components/schemas/UpdateQuantity" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15032": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." - }, - "15013": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity value is greater than the quantity available. Correct the quantity value and resubmit the call." - }, - "15014": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/guest_checkout_session/{checkoutSessionId}/update_shipping_address": { - "post": { - "tags": [ - "guest_checkout_session" - ], - "description": "This method changes the shipping address for the order in an eBay guest checkout session. All the line items in an order must be shipped to the same address, but the shipping method can be specific to the line item. Note: If the address submitted cannot be validated, a warning message will be returned. This does not prevent the method from executing, but you may want to verify the address. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateGuestShippingAddress", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateGuestShippingAddress method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateGuestShippingAddress method.", - "$ref": "#/components/schemas/ShippingAddressImpl" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15032": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." - }, - "15048": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The value of {fieldName} is too long. For more information, see the documentation for this call." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15026": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not shippable to the specified shipping address." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "15047": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/guest_checkout_session/{checkoutSessionId}/update_shipping_option": { - "post": { - "tags": [ - "guest_checkout_session" - ], - "description": "This method changes the shipping method for the specified line item in an eBay guest checkout session. The shipping option can be set for each line item. This gives the shopper the ability choose the cost of shipping for each line item. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateGuestShippingOption", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateGuestShippingOption method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateGuestShippingOption method.", - "$ref": "#/components/schemas/UpdateShippingOption" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15032": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order" - ] - } - ] - } - }, - "/proxy_guest_checkout_session/{checkoutSessionId}/apply_coupon": { - "post": { - "tags": [ - "proxy_guest_checkout_session" - ], - "description": "(Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay proxy guest checkout session and applies it to all the eligible items in the order. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions Maximum: One coupon per order For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "applyProxyGuestCoupon", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used to apply a coupon to a checkout session.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used to apply a coupon to a checkout session.", - "$ref": "#/components/schemas/CouponRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "16002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon does not exist. The coupon was ignored and no discount was applied to this order." - }, - "16003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon has expired. No discount was applied to this order." - }, - "16004": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon has not been activated. The coupon was ignored and no discount was applied to this order." - }, - "16006": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order." - }, - "16022": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order." - }, - "16024": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon provided could not be applied. You may proceed with this session or provide another coupon." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "16000": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for any of the items in the order. The coupon was ignored and no discount was applied to this order." - }, - "16001": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "You cannot apply multiple coupons to the same order. No discount was applied to this order." - }, - "16005": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order." - }, - "16007": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This coupon has already been used. The coupon was ignored and no discount was applied to this order." - }, - "16008": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This coupon is no longer valid. The coupon was ignored and no discount was applied to this order." - }, - "16009": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order." - }, - "16010": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the currency being used by the items. The coupon was ignored and no discount was applied to this order." - }, - "16011": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon has not been activated. The coupon was ignored and no discount was applied to this order." - }, - "16012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the {fieldName}. The coupon was ignored and no discount was applied to this order." - }, - "16013": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for any of the item categories in the order. The coupon was ignored and no discount was applied to this order." - }, - "16014": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the selected payment method. The coupon was ignored and no discount was applied to this order." - }, - "16015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the selected shipping option. The coupon was ignored and no discount was applied to this order." - }, - "16016": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is valid only for items that are shipped domestically. The coupon was ignored and no discount was applied to this order." - }, - "16017": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is valid only for items that are shipped internationally. The coupon was ignored and no discount was applied to this order." - }, - "16018": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The buyer is not eligible for this coupon. The coupon was ignored and no discount was applied to this order." - }, - "16019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for guest eBay checkouts. The coupon was ignored and no discount was applied to this order." - }, - "16021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The coupon is not valid for the {fieldName}. The coupon was ignored and no discount was applied to this order." - }, - "16023": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "You cannot apply multiple coupons to the same order. The coupon was ignored and no discount was applied to this order." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - }, - "16020": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "Your application is not eligible for this coupon. The coupon was ignored and no discount was applied to this order." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - } - }, - "/proxy_guest_checkout_session/{checkoutSessionId}": { - "get": { - "tags": [ - "proxy_guest_checkout_session" - ], - "description": "This method returns the details of the specified eBay proxy guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. This method has no request payload. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "getProxyGuestCheckoutSession", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - } - }, - "/proxy_guest_checkout_session/initiate": { - "post": { - "tags": [ - "proxy_guest_checkout_session" - ], - "description": "This method creates an eBay proxy guest checkout session, which is a payment flow that requires integration with a VSP (vault service provider), such as Braintree. The VSP handles only the methods within this flow that contain payment information. This method returns the details of the order and a marketplace specific checkoutSessionId that you use as a URI parameter in subsequent proxy_guest_checkout_session resource checkout methods. For details about the VSP payment flow, see Vault service eBay guest payment flow. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. TIP: To test the entire checkout flow, you might need a "test" credit card. You can generate a credit card number from http://www.getcreditcardnumbers.com. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "initiateProxyGuestCheckoutSession", - "requestBody": { - "description": "The container for the fields used by the initiateProxyGuestCheckoutSession method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the initiateProxyGuestCheckoutSession method.", - "$ref": "#/components/schemas/CheckoutSessionRequestWithoutPayment" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - }, - "15043": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item {itemId} cannot be purchased using this API and has been removed from the cart. The purchase can be done on ebay.com." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15048": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The value of {fieldName} is too long. For more information, see the documentation for this call." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15011": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "You have exceeded the maximum number of {maxLineItems} line items. Correct the request and resubmit the call." - }, - "15012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." - }, - "15013": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity value is greater than the quantity available. Correct the quantity value and resubmit the call." - }, - "15014": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call." - }, - "15015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information." - }, - "15017": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not available for purchase at this time. Try to purchase this item at later time." - }, - "15018": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not available for purchase. This can be for several reason such as, the listing has ended, this is an auction time, etc. Remove the item and resubmit the call." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15026": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not shippable to the specified shipping address." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "15028": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item {itemId} is not available for purchase because it cannot be shipped to {country}." - }, - "15031": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not purchasable because the buyer has been blocked by the seller." - }, - "15044": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "At least one of the items in the cart cannot be purchased using this API. The purchase can be done on eBay, through the eBay app or eBay website." - }, - "15045": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items." - }, - "15047": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - } - }, - "/proxy_guest_checkout_session/{checkoutSessionId}/place_order": { - "post": { - "tags": [ - "proxy_guest_checkout_session" - ], - "description": "This method creates the proxy guest purchase order, pays for the items, and terminates the specified guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "placeProxyGuestOrder", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the placeProxyGuestOrder method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the placeProxyGuestOrder method.", - "$ref": "#/components/schemas/GuestPlaceOrderRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PurchaseOrderSummary" - } - } - }, - "x-response-codes": { - "errors": { - "15005": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "Some of the line items were not purchased. Use the Order API getPurchaseOrder call to check the payment status of each line item." - }, - "15006": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The order has already been placed for the checkout session submitted and no modifications can be made. Use the Order API getPurchaseOrder call to get the purchase order details." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15004": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "If this is a eBay member checkout, this error indicates that the buyer does not have a PayPal account linked to their eBay account. If this is a guest checkout, this indicates that the buyer's credit card information is missing. In both cases, submit the buyer's credit card information." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15033": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The payment cannot be processed because the payment information is invalid. You will need to create a new checkout session and submit corrected payment information." - }, - "15046": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "One or more of the mandatory values is missing for marketingChannels and/or marketingTypes. For help, refer to the placeGuestOrder call documentation." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15020": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "During the checkout process the item has been changed. Create a new checkout session for this item using the initiateCheckoutSession call." - }, - "15023": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The payment cannot be processed due to insufficient funds or other issues with funding source. To complete this order, use the appropriate initiate checkout session call to create a new session and provide a new payment method." - }, - "15024": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the buyer's payment method. Please check or provide another payment method for this order." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "15030": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place the order, the user must have accepted the PayPal User Agreement and Privacy Policy. If they have explicitly accepted these, pass in true in the paymentTermsAccepted field. For more information, see the documentation for this call." - }, - "15045": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items." - }, - "17000": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The payment cannot be processed due to insufficient funds or other issues with funding source. To complete this order, use the appropriate initiate checkout session call to create a new session and provide a new payment method." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - } - }, - "/proxy_guest_checkout_session/{checkoutSessionId}/remove_coupon": { - "post": { - "tags": [ - "proxy_guest_checkout_session" - ], - "description": "(Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay proxy guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is specified in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "removeProxyGuestCoupon", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used to remove a coupon from a checkout session.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used to remove a coupon from a checkout session.", - "$ref": "#/components/schemas/CouponRequest" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15033": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The payment cannot be processed because the payment information is invalid. You will need to create a new checkout session and submit corrected payment information." - }, - "16025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The coupon was not applied to this cart." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - } - }, - "/proxy_guest_checkout_session/{checkoutSessionId}/update_payment_info": { - "post": { - "tags": [ - "proxy_guest_checkout_session" - ], - "description": "This method adds or changes the payment information of the specified proxy guest checkout session. This endpoint is invoked by the VSP (vault service provider) on behalf of the eBay partner. For details about the VSP payment flow, see Vault service eBay guest payment flow. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateProxyGuestPaymentInfo", - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "The oAuth token. Note: The eBay partner must include this header in the request.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "X-EBAY-C-DATE", - "in": "header", - "description": "The UTC timestamp of the request, which is generated and added to the request by the VSP.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "The eBay marketplace ID. For a list of supported sites, see API Restrictions in the Order API overview. Note: The eBay partner must include this header in the request.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "X-EBAY-C-REQUEST-NONCE", - "in": "header", - "description": "A UUID (a 128-bit universal unique ID), which is generated and added to the request by the VSP.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "X-EBAY-C-SIGNATURE", - "in": "header", - "description": "The HMAC signature, which is generated and added to the request by the VSP.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateProxyGuestPaymentInfo method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateProxyGuestPaymentInfo method.", - "$ref": "#/components/schemas/UpdatePaymentInformation" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - }, - "15043": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item {itemId} cannot be purchased using this API and has been removed from the cart. The purchase can be done on ebay.com." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15034": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The signature is invalid. Please verify that the signature is generated according to the spec." - }, - "15036": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The version in the X-EBAY-C-SIGNATURE header is not supported." - }, - "15037": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The credential in the X-EBAY-C-SIGNATURE header is not valid." - }, - "15038": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The algorithm in the X-EBAY-C-SIGNATURE header is not supported." - }, - "15039": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The timestamp in the X-EBAY-C-DATE header is invalid or beyond the allowed range." - }, - "15040": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The nonce in the X-EBAY-C-REQUEST-NONCE header is invalid or has already been used." - }, - "15041": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The request body is invalid or empty. " - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15015": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15022": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "Some of the items cannot be purchased using a credit card and must be remove from the checkout session." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - } - }, - "/proxy_guest_checkout_session/{checkoutSessionId}/update_quantity": { - "post": { - "tags": [ - "proxy_guest_checkout_session" - ], - "description": "This method changes the quantity of the specified line item in an eBay proxy guest checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateProxyGuestQuantity", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateProxyGuestQuantity method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateProxyGuestQuantity method.", - "$ref": "#/components/schemas/UpdateQuantity" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15012": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." - }, - "15013": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity value is greater than the quantity available. Correct the quantity value and resubmit the call." - }, - "15014": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call." - }, - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - } - }, - "/proxy_guest_checkout_session/{checkoutSessionId}/update_shipping_address": { - "post": { - "tags": [ - "proxy_guest_checkout_session" - ], - "description": "This method changes the shipping address for the order in an eBay proxy guest checkout session. All the line items in an order must be shipped to the same address, but the shipping method can be specific to the line item. Note: If the address submitted cannot be validated, a warning message will be returned. This does not prevent the method from executing, but you may want to verify the address. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateProxyGuestShippingAddress", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateProxyGuestShippingAddress method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateProxyGuestShippingAddress method.", - "$ref": "#/components/schemas/ShippingAddressImpl" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - }, - "x-response-codes": { - "errors": { - "15007": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - }, - "15048": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The value of {fieldName} is too long. For more information, see the documentation for this call." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15026": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The item is not shippable to the specified shipping address." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - }, - "15047": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service." - } - } - } - }, - "500": { - "description": "Internal Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - } - }, - "/proxy_guest_checkout_session/{checkoutSessionId}/update_shipping_option": { - "post": { - "tags": [ - "proxy_guest_checkout_session" - ], - "description": "This method changes the shipping method for the specified line item in an eBay proxy guest checkout session. The shipping option can be set for each line item. This gives the shopper the ability choose the cost of shipping for each line item. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "updateProxyGuestShippingOption", - "parameters": [ - { - "name": "checkoutSessionId", - "in": "path", - "description": "The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The container for the fields used by the updateProxyGuestShippingOption method.", - "content": { - "application/json": { - "schema": { - "description": "The container for the fields used by the updateProxyGuestShippingOption method.", - "$ref": "#/components/schemas/UpdateShippingOption" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestCheckoutSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "15001": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." - }, - "15002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." - }, - "15003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The checkout session requested does not exist." - }, - "15025": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The App is not authorized to access this resource." - }, - "15029": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Resource Not Found" - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "15019": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." - }, - "15021": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "This checkout session cannot be updated because the order has already been placed." - }, - "15027": { - "domain": "API_ORDER", - "category": "BUSINESS", - "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "15000": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - } - }, - "/guest_purchase_order/{purchaseOrderId}": { - "get": { - "tags": [ - "guest_purchase_order" - ], - "description": "This method retrieves the details about a specific guest purchase order. It returns the line items, including purchase order status; dates created and modified; item quantity and listing data; payment and shipping information; and prices, taxes, and discounts and credits. The purchaseOrderId is passed in as a URI parameter and is required. This method has no request payload. The placeGuestOrder or method initiates the payment process, which can sometimes take a few minutes. You can use this method to not only get the details of a purchase order but to check the value of the purchaseOrderPaymentStatus field to determine if the order has been paid for. If the order has been paid for, this field will return PAID. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "getGuestPurchaseOrder", - "parameters": [ - { - "name": "purchaseOrderId", - "in": "path", - "description": "The unique identifier of a purchase order made by a guest buyer, for which details are to be retrieved. This value is returned by the placeGuestOrder method in the purchaseOrderId field. The purchaseOrderId is passed in as a URI parameter and is required.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuestPurchaseOrder" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "16002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The purchase order ID was not found." - }, - "16003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Access to the purchase order is not authorized." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "16001": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.guest.order", - "https://api.ebay.com/oauth/api_scope/buy.proxy.guest.order" - ] - } - ] - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/buy/order/v1" - } - } - } - ] - }, - "/purchase_order/{purchaseOrderId}": { - "get": { - "tags": [ - "purchase_order" - ], - "description": "This method retrieves the details about a specific eBay member purchase order. It returns the line items, including purchase order status; dates created and modified; item quantity and listing data; payment and shipping information; and prices, taxes, and discounts and credits. The purchaseOrderId is passed in as a URI parameter and is required. This method has no request payload. The placeOrder method initiates the payment process, which can sometimes take a few minutes. You can use this method to not only get the details of a purchase order but to check the value of the purchaseOrderPaymentStatus field to determine if the order has been paid for. If the order has been paid for, this field will return PAID. This method also returns the legacyItemId, legacyTransactionId, and legacyOrderId fields. The values in these fields enable eBay partners to use the Post Order API for eBay member checkouts, to process a return or cancellation. For more information, see Post order tasks in the Buy Integration Guide. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", - "operationId": "getPurchaseOrder", - "parameters": [ - { - "name": "purchaseOrderId", - "in": "path", - "description": "The unique identifier of a purchase order made by an eBay member, for which details are to be retrieved. This value is returned by the placeOrder method in the purchaseOrderId field. The purchaseOrderId is passed in as a URI parameter and is required.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PurchaseOrder" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "16002": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "The purchase order ID was not found." - }, - "16003": { - "domain": "API_ORDER", - "category": "REQUEST", - "description": "Access to the purchase order is not authorized." - } - } - } - }, - "403": { - "description": "Access Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "16001": { - "domain": "API_ORDER", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/buy.order.readonly", - "https://api.ebay.com/oauth/api_scope/buy.order" - ] - } - ] - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/buy/order/v1" - } - } - } - ] - } - }, - "components": { - "schemas": { - "Adjustment": { - "type": "object", - "properties": { - "amount": { - "description": "The container for the amount and currency of the adjustment.", - "$ref": "#/components/schemas/Amount" - }, - "label": { - "type": "string", - "description": "Text that describes the adjustment." - } - }, - "description": "The type that defines the fields for seller adjustments. An adjustment can be a credit or debit." - }, - "Amount": { - "type": "object", - "properties": { - "currency": { - "type": "string", - "description": "A three letter ISO 4217 code specifying the currency of the monetary amount. For implementation help, refer to eBay API documentation" - }, - "value": { - "type": "string", - "description": "The monetary amount." - } - }, - "description": "The type the defines the fields for the details of a monetary amount, in the currency used by the method and in the original currency, if the amount was converted between currencies." - }, - "BillingAddress": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "The first line of the street address. Maximum characters AU, CA, & US - 40 DE & GB - 35 All other marketplaces - 50" - }, - "addressLine2": { - "type": "string", - "description": "The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'." - }, - "city": { - "type": "string", - "description": "The city of the address." - }, - "country": { - "type": "string", - "description": "The two letter code representing the country of the address. For implementation help, refer to eBay API documentation" - }, - "county": { - "type": "string", - "description": "The county of the address." - }, - "firstName": { - "type": "string", - "description": "The buyer's first name." - }, - "lastName": { - "type": "string", - "description": "The buyer's last name." - }, - "postalCode": { - "type": "string", - "description": "The postal code of the address." - }, - "stateOrProvince": { - "type": "string", - "description": "The state or province of the address. Note: For the US marketplace, this is a 2 character value. For a list of these, see US State and Canada Province Codes." - } - }, - "description": "The type that defines the fields for an address. Maximum characters AU, CA, & US - 40 DE & GB - 35 All other marketplaces - 50" - }, - "CheckoutSessionRequestWithoutPayment": { - "type": "object", - "properties": { - "contactEmail": { - "type": "string", - "description": "The buyer's email address." - }, - "contactFirstName": { - "type": "string", - "description": "The buyer's first name." - }, - "contactLastName": { - "type": "string", - "description": "The buyer's last name." - }, - "lineItemInputs": { - "type": "array", - "description": "The type that defines the fields for a line item in an eBay guest checkout session. Maximum number of line items: 10", - "items": { - "$ref": "#/components/schemas/LineItemInput" - } - }, - "shippingAddress": { - "description": "The container that returns the shipping address for an eBay guest checkout session. sThe Order API supports only domestic shipping. For example, an item purchased on the EBAY_DE marketplace can be shipped only to an address in Germany. Note: If the address cannot be validated, a warning message is be returned along with the response.", - "$ref": "#/components/schemas/ShippingAddress" - } - }, - "description": "The type that defines the fields for initiateProxyGuestCheckoutSession request." - }, - "CheckoutSessionResponse": { - "type": "object", - "properties": { - "acceptedPaymentMethods": { - "type": "array", - "description": "The container that returns the payment method that can be used to purchase the items.", - "items": { - "$ref": "#/components/schemas/PaymentMethod" - } - }, - "appliedCoupons": { - "type": "array", - "description": "The container that returns the information for the coupons that were applied in the checkout session.", - "items": { - "$ref": "#/components/schemas/Coupon" - } - }, - "checkoutSessionId": { - "type": "string", - "description": "The checkoutSessionId submitted in the request." - }, - "expirationDate": { - "type": "string", - "description": "The time the checkout session will end. To purchase the items the order must be placed before this time." - }, - "lineItems": { - "type": "array", - "description": "An array of line items associated with the checkout session.", - "items": { - "$ref": "#/components/schemas/LineItem" - } - }, - "pricingSummary": { - "description": "The container that returns the grand total, costs, discounts, seller fees, and adjustments of all the line items.", - "$ref": "#/components/schemas/PricingSummary" - }, - "providedPaymentInstrument": { - "description": "The container that returns the payment methods that can be used for the checkout. This is returned only if you have used the updatePaymentInfo method to change the payment method.", - "$ref": "#/components/schemas/ProvidedPaymentInstrument" - }, - "shippingAddress": { - "description": "The container that returns the address to which the purchase order will be shipped.", - "$ref": "#/components/schemas/ShippingAddress" - }, - "warnings": { - "type": "array", - "description": "An array of any process errors or warnings that were generated during the method processing.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "Type that defines the fields for a checkout session." - }, - "Coupon": { - "type": "object", - "properties": { - "redemptionCode": { - "type": "string", - "description": "The redemption code of the coupon. Note: There can be only one redemption code per order." - } - }, - "description": "The type the defines the fields for the coupon information." - }, - "CouponRequest": { - "type": "object", - "properties": { - "redemptionCode": { - "type": "string", - "description": "The redemption code of the coupon. Maximum: one redemption code per order" - } - }, - "description": "The type that defines the fields for the coupon information used in the request." - }, - "CreateGuestCheckoutSessionRequest": { - "type": "object", - "properties": { - "contactEmail": { - "type": "string", - "description": "The buyer's email address." - }, - "contactFirstName": { - "type": "string", - "description": "The buyer's first name." - }, - "contactLastName": { - "type": "string", - "description": "The buyer's last name." - }, - "creditCard": { - "description": "The container that returns the credit card being used to pay for the items.", - "$ref": "#/components/schemas/CreditCard" - }, - "lineItemInputs": { - "type": "array", - "description": "The type that defines the fields for a line item in an eBay guest checkout session. Maximum number of line items: 10", - "items": { - "$ref": "#/components/schemas/LineItemInput" - } - }, - "shippingAddress": { - "description": "The container that returns the shipping address for an eBay guest checkout session. The Order API supports only domestic shipping. For example, an item purchased on the EBAY_DE marketplace can be shipped only to an address in Germany. Note: If the address cannot be validated, a warning message is be returned along with the response.", - "$ref": "#/components/schemas/ShippingAddress" - } - }, - "description": "The type that defines the fields used to create an eBay guest checkout session." - }, - "CreateSignInCheckoutSessionRequest": { - "type": "object", - "properties": { - "creditCard": { - "description": "The container that returns the buyer's credit card information.", - "$ref": "#/components/schemas/CreditCard" - }, - "lineItemInputs": { - "type": "array", - "description": "The container for the line item information fields in an eBay member checkout session. Maximum number of line items: 10", - "items": { - "$ref": "#/components/schemas/LineItemInput" - } - }, - "shippingAddress": { - "description": "The container for the shipping address information in an eBay member checkout session. The Order API supports only domestic shipping. For example, an item purchased on the EBAY_DE marketplace can be shipped only to an address in Germany. Note: If the address cannot be validated, a warning message is be returned along with the response.", - "$ref": "#/components/schemas/ShippingAddress" - } - }, - "description": "The type that defines the fields for creating a eBay member checkout session." - }, - "CreditCard": { - "type": "object", - "properties": { - "accountHolderName": { - "type": "string", - "description": "The name of the card holder under which the credit card was issued." - }, - "billingAddress": { - "description": "The container that returns the billing address of the card holder. Note: If the address cannot be validated, a warning message will be returned.", - "$ref": "#/components/schemas/BillingAddress" - }, - "brand": { - "type": "string", - "description": "The type of the credit car, such as Visa or MasterCard." - }, - "cardNumber": { - "type": "string", - "description": "The credit card number on the card." - }, - "cvvNumber": { - "type": "string", - "description": "The Card Verification Value of the credit card. This value is also known as the card verification code (CVC) or card security code (CSC). This is a three-digit number on VISA, MasterCard, and Discover branded credit and debit cards. On American Express branded cards, this is a four-digit numeric code. Note: This number is not the PIN associated with the card." - }, - "expireMonth": { - "type": "integer", - "description": "The month the credit card expires.", - "format": "int32" - }, - "expireYear": { - "type": "integer", - "description": "The year the credit card expires.", - "format": "int32" - } - }, - "description": "The type that defines the fields for the credit card that's used to pay for the items." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of error." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } - }, - "description": "The type that defines the fields for the error messages." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } - }, - "description": "An array of name/value pairs that provide more details regarding error condition." - }, - "EventLocation": { - "type": "object", - "properties": { - "city": { - "type": "string", - "description": "The city where the tracking event occurred." - }, - "country": { - "type": "string", - "description": "The two letter code representing the country of the address where the tracking event occurred. For implementation help, refer to eBay API documentation" - }, - "county": { - "type": "string", - "description": "The county where the tracking event occurred." - }, - "postalCode": { - "type": "string", - "description": "The postal code where the tracking event occurred." - }, - "stateOrProvince": { - "type": "string", - "description": "The state where the tracking event occurred." - } - }, - "description": "The type that defines the fields for the location of a tracking event." - }, - "GuestCheckoutSessionResponse": { - "type": "object", - "properties": { - "acceptedPaymentMethods": { - "type": "array", - "description": "The container that returns the payment method that can be used to purchase the items.", - "items": { - "$ref": "#/components/schemas/PaymentMethod" - } - }, - "appliedCoupons": { - "type": "array", - "description": "The container that returns the information for the coupons that were applied in the checkout session.", - "items": { - "$ref": "#/components/schemas/Coupon" - } - }, - "checkoutSessionId": { - "type": "string", - "description": "The checkoutSessionId submitted in the request." - }, - "expirationDate": { - "type": "string", - "description": "The time the checkout session will end. To purchase the items the order must be placed before this time." - }, - "lineItems": { - "type": "array", - "description": "An array of line items associated with the checkout session.", - "items": { - "$ref": "#/components/schemas/LineItem" - } - }, - "marketingMessages": { - "type": "array", - "description": "The container that returns the marketing consent fields. These fields show the legal marketing consent message to be shown to the buyer when they place the order, and the marketing channels, for example email, and marketing types, for example promotions, the buyer can choose to receive.", - "items": { - "$ref": "#/components/schemas/MarketingMessage" - } - }, - "pricingSummary": { - "description": "The container that returns the grand total, costs, discounts, seller fees, and adjustments of all the line items.", - "$ref": "#/components/schemas/PricingSummary" - }, - "providedPaymentInstrument": { - "description": "The container that returns the payment methods that can be used for the checkout. This is returned only if you have used the updatePaymentInfo method to change the payment method.", - "$ref": "#/components/schemas/ProvidedPaymentInstrument" - }, - "shippingAddress": { - "description": "The container that returns the address to which the purchase order will be shipped.", - "$ref": "#/components/schemas/ShippingAddress" - }, - "warnings": { - "type": "array", - "description": "An array of any process errors or warnings that were generated during the method processing.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "GuestPlaceOrderRequest": { - "type": "object", - "properties": { - "marketingTerms": { - "type": "array", - "description": "The container for the marketing channels, the types of messages the buyer can choose to receive, and the field to indicate whether the buyer wants to receive marketing materials from eBay. These fields are required for all marketplaces. See Marketing Consent Notice for details.", - "items": { - "$ref": "#/components/schemas/MarketingTerms" - } - } - }, - "description": "The type that defines the fields that enables the buyer to give or withhold their permission to receive marketing messages." - }, - "GuestPurchaseOrder": { - "type": "object", - "properties": { - "appliedCoupons": { - "type": "array", - "description": "The container that returns the information for the coupons that were applied in the order.", - "items": { - "$ref": "#/components/schemas/Coupon" - } - }, - "lineItems": { - "type": "array", - "description": "An array of the line items in the order.", - "items": { - "$ref": "#/components/schemas/OrderLineItem" - } - }, - "pricingSummary": { - "description": "The container that returns the monetary details of the order.", - "$ref": "#/components/schemas/PricingSummary" - }, - "purchaseOrderCreationDate": { - "type": "string", - "description": "The creation date of the purchase order." - }, - "purchaseOrderId": { - "type": "string", - "description": "The unique identifier of the purchase order. This value was returned in the purchaseOrderId field by the placeGuestOrder method." - }, - "purchaseOrderPaymentStatus": { - "type": "string", - "description": "The container for the status of the payment for the purchase order. For implementation help, refer to eBay API documentation" - }, - "purchaseOrderStatus": { - "type": "string", - "description": "An enumeration value that indicates the current status of the buyer's payment and any refund that applies to the purchase order. For implementation help, refer to eBay API documentation" - }, - "refundedAmount": { - "description": "The total amount of any refunds for the purchase order.", - "$ref": "#/components/schemas/Amount" - }, - "warnings": { - "type": "array", - "description": "The container for any warning messages.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "The type that defines the fields for a guest purchase order." - }, - "Image": { - "type": "object", - "properties": { - "height": { - "type": "integer", - "description": "Reserved for future use.", - "format": "int32" - }, - "imageUrl": { - "type": "string", - "description": "The URL of the image." - }, - "width": { - "type": "integer", - "description": "Reserved for future use.", - "format": "int32" - } - }, - "description": "The type the defines the fields for the details of an image, such as size and URL. Currently only imageUrl is getting populated. The height and width were added for future use." - }, - "InitiatePaymentRequest": { - "type": "object", - "properties": { - "paymentMethodBrandType": { - "type": "string", - "description": "The enumeration value that specifies the payment method company. Note: The only value supported for the initiateGuestPayment method is PAYPAL_CHECKOUT. For implementation help, refer to eBay API documentation" - }, - "paymentMethodType": { - "type": "string", - "description": "The enumeration value that specifies the payment method type. Note: The only value supported for the initiateGuestPayment method is WALLET. For implementation help, refer to eBay API documentation" - } - }, - "description": "Type that defines the fields for the initiateGuestPayment method." - }, - "LegacyReference": { - "type": "object", - "properties": { - "legacyItemId": { - "type": "string", - "description": "The legacy ID used to identify an item. This is used by the Post Order API Create Return Request method. This call initiates the item return process. For more information on how to use this field in the Post Order API, see Create a return request in the Buy Integration Guide. Restriction: The Post Order API can be used only with eBay member checkouts." - }, - "legacyOrderId": { - "type": "string", - "description": "The legacy ID of the order. This is used by the Post Order API Submit Cancellation Request method. This method initiates the item cancellation process. For more information on how to use this field in the Post Order API, see Using the Post Order API. Restriction: The Post Order API can be used only with eBay member checkouts." - }, - "legacyTransactionId": { - "type": "string", - "description": "The legacy ID of the transaction. This is used by the Post Order API Create Return Request call. This call initiates the item return process. For more information on how to use this field in the Post Order API, see Using the Post Order API in the Buy Integration Guide. Restriction: The Post Order API can be used only with eBay member checkouts." - } - }, - "description": "The type that defines the fields to support using the Post Order API for returns and cancellations. Restriction: The Post Order API can be used only with eBay member checkouts." - }, - "LineItem": { - "type": "object", - "properties": { - "baseUnitPrice": { - "description": "The cost of a single item in this line item. This is the starting point for computing the price during checkout session.", - "$ref": "#/components/schemas/Amount" - }, - "image": { - "description": "An eBay-assigned URL that points to an image of the item. eBay assigns the URL when the seller uploads the image.", - "$ref": "#/components/schemas/Image" - }, - "itemId": { - "type": "string", - "description": "A unique eBay-assigned ID value that identifies the item." - }, - "lineItemId": { - "type": "string", - "description": "A unique eBay-assigned ID value that identifies the line item in a checkout session." - }, - "netPrice": { - "description": "The total cost for the items in this line item taking into account the quantity and applying any seller item discounts, such as Buy 1 Get 1, and any coupon that applies to this item. Note: This also does not include any shipping discounts, shipping costs, fees, or seller adjustments.", - "$ref": "#/components/schemas/Amount" - }, - "promotions": { - "type": "array", - "description": "An array of promotions applied with the item of this line item.", - "items": { - "$ref": "#/components/schemas/Promotion" - } - }, - "quantity": { - "type": "integer", - "description": "The number of individual items ordered for this line item, as specified by the buyer.", - "format": "int32" - }, - "seller": { - "description": "The container that returns the information about the seller, such as their eBay user name.", - "$ref": "#/components/schemas/Seller" - }, - "shippingOptions": { - "type": "array", - "description": "An array of the shipping methods that are available for the line item. By default, the first one will be selected.", - "items": { - "$ref": "#/components/schemas/ShippingOption" - } - }, - "shortDescription": { - "type": "string", - "description": "This text string is derived from the item condition and the item aspects (such as size, color, capacity, model, brand, etc.)." - }, - "title": { - "type": "string", - "description": "The seller created title of the item." - } - }, - "description": "The container that returns an individual line item in a checkout transaction." - }, - "LineItemInput": { - "type": "object", - "properties": { - "itemId": { - "type": "string", - "description": "The eBay identifier of an item. This ID is returned by the Browse and Feed API methods. The ID must be in RESTful item ID format. For example: v1|262446562346|561248611424 or v1|112330214619|0. For more information about item ID for RESTful APIs, see the Legacy API compatibility. Each itemId will become a single line item. You can have a maximum of 10 itemId(s) per checkout. Maximum: 10" - }, - "quantity": { - "type": "integer", - "description": "The number of items ordered in this line item.", - "format": "int32" - } - }, - "description": "The type that defines the fields for a line item." - }, - "LineItemReference": { - "type": "object", - "properties": { - "lineItemId": { - "type": "string", - "description": "A unique eBay-assigned ID value to identify the line item in a purchase order." - }, - "quantity": { - "type": "integer", - "description": "The number of individual items ordered for this line item, as specified by the buyer.", - "format": "int32" - } - }, - "description": "Type the defines the fields for the line item ID and the quantity." - }, - "MarketingMessage": { - "type": "object", - "properties": { - "legalMessage": { - "type": "string", - "description": "This field returns the following marketing consent legal message. This message is to be shown to the buyer when they place the order. I agree to receive marketing offers, promotions, and surveys from eBay through emails." - }, - "marketingChannels": { - "type": "array", - "description": "A list of enumeration values representing the marketing channels, such as email, that the buyer can choose to receive. These are to be shown to the buyer when they place the order.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "marketingTypes": { - "type": "array", - "description": "A list of enumeration values representing the marketing types, such as OFFER, that the buyer can choose to receive. These are to be shown to the buyer when they place the order.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - } - }, - "description": "The type that defines the marketing consent fields. These fields show the legal message to be shown to the buyer, and the marketing channels and marketing type the buyer can choose to receive." - }, - "MarketingTerms": { - "type": "object", - "properties": { - "marketingChannels": { - "type": "array", - "description": "An enumeration value representing the available marketing channels, such as EMAIL. Valid Values: EMAIL", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "marketingTermsAccepted": { - "type": "boolean", - "description": "A boolean that indicates whether the buyer wants to receive marketing messages." - }, - "marketingTypes": { - "type": "array", - "description": "An enumeration value representing the available types of marketing messages. Valid Values: OFFER PROMOTION SURVEY Required: You must always pass in all these values, even if marketingTermsAccepted is set to false. See the Samples for an example.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - } - }, - "description": "The type that defines the fields used to let the buyer opt-in or opt-out-of receiving marketing messages. And the list of marketing channels and types." - }, - "OrderLineItem": { - "type": "object", - "properties": { - "baseUnitPrice": { - "description": "The cost of a single item in this line item.", - "$ref": "#/components/schemas/Amount" - }, - "image": { - "description": "The URL of the item's image.", - "$ref": "#/components/schemas/Image" - }, - "itemId": { - "type": "string", - "description": "The identifier of the item." - }, - "legacyReference": { - "description": "The container that returns fields to support using the Post Order API for returns and cancellations. For information about what is returned in these fields and how to use the Post Order API, see Using the Post Order API. Note: The Post Order API can be used only with eBay member checkouts.", - "$ref": "#/components/schemas/LegacyReference" - }, - "lineItemId": { - "type": "string", - "description": "The identifier of this line item. This is created by the initiateCheckoutSession for a member and initiateGuestCheckoutSession for a guest calls." - }, - "lineItemPaymentStatus": { - "type": "string", - "description": "An enumeration value that indicates the payment status of this line item. For implementation help, refer to eBay API documentation" - }, - "lineItemStatus": { - "type": "string", - "description": "An enumeration value that indicates the fulfillment state of this line item. For implementation help, refer to eBay API documentation" - }, - "netPrice": { - "description": "The total cost for the items in this line item taking into account the quantity and applying any seller item discounts, such as Buy 1 Get 1, and any coupon that applies to this item. Note : This does not include any shipping discounts, shipping costs, or seller adjustments.", - "$ref": "#/components/schemas/Amount" - }, - "orderId": { - "type": "string", - "description": "For future use. The unique order ID for this line item. This value is the new eBay unique order ID, which is being rolled out starting in Summer 2019. In the future, this will replace the lineItems.legacyReference fields you use in the Post Order API. For details see, Easier order management with updated order numbers." - }, - "promotions": { - "type": "array", - "description": "An array of promotions applied to the items in this line item.", - "items": { - "$ref": "#/components/schemas/Promotion" - } - }, - "quantity": { - "type": "integer", - "description": "The number of individual items in this line item.", - "format": "int32" - }, - "seller": { - "description": "The container for information about the seller offering this item, such as the seller's user name.", - "$ref": "#/components/schemas/Seller" - }, - "shippingDetail": { - "description": "Information about the shipping provider used for this line item.", - "$ref": "#/components/schemas/ShippingDetail" - }, - "title": { - "type": "string", - "description": "The seller created title of the item." - } - }, - "description": "The type that defines the fields for line item information in a purchase order." - }, - "PaymentInstrument": { - "type": "object", - "properties": { - "brand": { - "description": "The name of the credit card company (brand).", - "$ref": "#/components/schemas/PaymentMethodBrand" - }, - "paymentMethodType": { - "type": "string", - "description": "An enumeration value that indicates the method of payment, such as credit card. For implementation help, refer to eBay API documentation" - } - }, - "description": "The type that defines the fields for the reference information about the payment method." - }, - "PaymentInstrumentReference": { - "type": "object", - "properties": { - "externalReferenceId": { - "type": "string", - "description": "The identifier of the buyer's PayPal cart, which is returned by the initiateGuestPayment method. This ID is generated by PayPal and required for the PayPal Smart Button eBay guest payment flow." - }, - "lastFourDigitForCreditCard": { - "type": "string", - "description": "The last four digits of the credit card number being used to pay for the items." - } - }, - "description": "The type that defines the fields for the payment reference, such as last four digits of a credit card." - }, - "PaymentMethod": { - "type": "object", - "properties": { - "label": { - "type": "string", - "description": "Text indicating the payment type. For example, when paying by credit card, this label will be CC . When paying using PayPal Smart Button eBay guest payment flow the label will be WALLET." - }, - "logoImage": { - "description": "The URL of the image of the payment method logo.", - "$ref": "#/components/schemas/Image" - }, - "paymentMethodBrands": { - "type": "array", - "description": "An array of credit card brands that can be used as the payment method.", - "items": { - "$ref": "#/components/schemas/PaymentMethodBrand" - } - }, - "paymentMethodMessages": { - "type": "array", - "description": "The type that defines the fields for legal messages and buyer consent verification.", - "items": { - "$ref": "#/components/schemas/PaymentMethodMessage" - } - }, - "paymentMethodType": { - "type": "string", - "description": "An enumeration value that indicates the method of payment, such as credit card. For implementation help, refer to eBay API documentation" - } - }, - "description": "The type that defines the fields for the payment method." - }, - "PaymentMethodBrand": { - "type": "object", - "properties": { - "logoImage": { - "description": "The URL of the image of the credit card company (brand).", - "$ref": "#/components/schemas/Image" - }, - "paymentMethodBrandType": { - "type": "string", - "description": "An enumeration value that indicates the credit card company (brand). For implementation help, refer to eBay API documentation" - } - }, - "description": "The type that defines the fields for the credit card company (brand), which can be used as the payment method." - }, - "PaymentMethodMessage": { - "type": "object", - "properties": { - "legalMessage": { - "type": "string", - "description": "Information that eBay is legally obligated to show to the buyer. This field can be null, in which case do nothing. But if this field is not null, the value of this field must appear on the checkout page. Note: This field is not used for US purchases." - }, - "privacyPolicyWebUrl": { - "type": "string", - "description": "Reserved for future use." - }, - "requiredForUserConfirmation": { - "type": "boolean", - "description": "Reserved for future use." - }, - "userAgreementWebUrl": { - "type": "string", - "description": "Reserved for future use." - } - }, - "description": "The type that defines the fields for legal messages and buyer consent verification." - }, - "PricingSummary": { - "type": "object", - "properties": { - "additionalSavings": { - "description": "The total amount of the coupon discounts in the purchase order.", - "$ref": "#/components/schemas/Amount" - }, - "adjustment": { - "description": "The total amount of any seller adjustments. An adjustment can be a credit or debit. This is used to catch any monetary changes to the purchase order that are not already captured in one of the other fields.", - "$ref": "#/components/schemas/Adjustment" - }, - "deliveryCost": { - "description": "The shipping cost for all the line items before any shipping discounts are applied. Let's say there were 4 line items and the shipping cost for each line item is $5. One of the line items qualifies for free shipping. The deliveryCost value would be $20, which is the total cost for shipping all the line items before any discounts were appiled.", - "$ref": "#/components/schemas/Amount" - }, - "deliveryDiscount": { - "description": "The total amount of the order shipping discounts for the all line items, such as free shipping. Let's say there were 4 line items and the shipping cost for each line items is $5. One of the line items qualifies for free shipping. The deliveryDiscounts value would be 5, which is the value of the free shipping discount. Note: This will always be a negative number.", - "$ref": "#/components/schemas/Amount" - }, - "fee": { - "description": "The total amount of any fees for all the line items, such as a recycling fee.", - "$ref": "#/components/schemas/Amount" - }, - "importCharges": { - "description": "The sum of the Global Shipping Program import charges for all line items.", - "$ref": "#/components/schemas/Amount" - }, - "priceDiscount": { - "description": "The total amount of all the item discounts for all line items, such as Buy 1 Get 1 free. Let's say there were 4 line items. One of the line items qualifies for free shipping, which is $5 and two items qualify for a Buy 1 Get 1 offer, which is a $6 and a $15 discount. The priceDiscount value would be 21, which is the total of the two Buy 1 Get 1 discounts. The shipping discount is not included. It is returned in the deliveryDiscount field. Note: This will always be a negative number.", - "$ref": "#/components/schemas/Amount" - }, - "priceSubtotal": { - "description": "The total amount for all the line items taking into account the item quantity but before adding in taxes and shipping costs, or applying discounts, fees, and adjustments.", - "$ref": "#/components/schemas/Amount" - }, - "tax": { - "description": "The total amount of the taxes for all the line items.", - "$ref": "#/components/schemas/Amount" - }, - "total": { - "description": "The total of the purchase order. total = priceSubtotal + baseDeliveryCost + tax + importCharges + deliveryDiscounts + priceDiscount + adjustment. Note: deliveryDiscounts and priceDiscount are negative numbers.", - "$ref": "#/components/schemas/Amount" - } - }, - "description": "The type that defines the fields for the costs, discounts, and seller fees and adjustments of all the line items." - }, - "Promotion": { - "type": "object", - "properties": { - "discount": { - "description": "The discount amount on the applied promotional offer.", - "$ref": "#/components/schemas/Amount" - }, - "discountPercentage": { - "type": "string", - "description": "Note: This field is not return in the purchase order methods response." - }, - "message": { - "type": "string", - "description": "The text for the promotion title, which describes the promotion. For example, Buy 1 Get 1." - }, - "promotionCode": { - "type": "string", - "description": "An identifier of the promotion that was generated by the system when the promotion was created." - }, - "promotionType": { - "type": "string", - "description": "Indicates the kind of promotion. Some examples are: SellerDiscountedPromotionalOffer and COUPON." - } - }, - "description": "The type that defines the fields for the details of an item promotion." - }, - "ProvidedPaymentInstrument": { - "type": "object", - "properties": { - "paymentInstrumentReference": { - "description": "The container that returns the payment reference, such as last four digits of a credit card.", - "$ref": "#/components/schemas/PaymentInstrumentReference" - }, - "paymentMethodBrand": { - "description": "The container that returns the name and logo of the payment company (brand), such as Visa.", - "$ref": "#/components/schemas/PaymentMethodBrand" - }, - "paymentMethodType": { - "type": "string", - "description": "An enumeration value that indicates the method of payment, such as CREDIT_CARD. For implementation help, refer to eBay API documentation" - } - }, - "description": "The type that defines the fields for reference information about the payment method. This is returned only if you have used the updatePaymentInfo method to change the payment method." - }, - "PurchaseOrder": { - "type": "object", - "properties": { - "appliedCoupons": { - "type": "array", - "description": "The container that returns the information for the coupons that were applied in the order.", - "items": { - "$ref": "#/components/schemas/Coupon" - } - }, - "lineItems": { - "type": "array", - "description": "An array of line items in the purchase order.", - "items": { - "$ref": "#/components/schemas/OrderLineItem" - } - }, - "paymentInstrument": { - "description": "The payment method used for the purchase order.", - "$ref": "#/components/schemas/PaymentInstrument" - }, - "pricingSummary": { - "description": "The container that returns the monetary details of the order.", - "$ref": "#/components/schemas/PricingSummary" - }, - "purchaseOrderCreationDate": { - "type": "string", - "description": "The timestamp of when the purchase order was created." - }, - "purchaseOrderId": { - "type": "string", - "description": "The unique identifier of the purchase order. This value was returned in the purchaseOrderId field by the place order guest methods." - }, - "purchaseOrderPaymentStatus": { - "type": "string", - "description": "An enumeration value that indicates the status of the payment for the purchase order. For implementation help, refer to eBay API documentation" - }, - "purchaseOrderStatus": { - "type": "string", - "description": "The container for the current status of the buyer's payment and any refund that applies to the purchase order. For implementation help, refer to eBay API documentation" - }, - "refundedAmount": { - "description": "The total amount of any refunds for purchase order.", - "$ref": "#/components/schemas/Amount" - }, - "shippingAddress": { - "description": "The shipping address for the purchase order.", - "$ref": "#/components/schemas/ShippingAddress" - }, - "shippingFulfillments": { - "type": "array", - "description": "An array of the shipping providers and the purchase order delivery details.", - "items": { - "$ref": "#/components/schemas/ShippingFulfillment" - } - }, - "warnings": { - "type": "array", - "description": "An array of warning messages. These type of errors do not prevent the call from executing but should be checked.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "The type that defines the fields for a purchase order, including line items, costs and charges, payment method, and the purchase order status." - }, - "PurchaseOrderSummary": { - "type": "object", - "properties": { - "purchaseOrderHref": { - "type": "string", - "description": "The URI of the purchase order." - }, - "purchaseOrderId": { - "type": "string", - "description": "A unique identifier of the purchase order. When a checkout session completes, a purchase order ID is generated but this does not indicate that the item has been purchased. Note: If there is a problem with the payment information, the purchase order ID will be returned and the PurchaseOrderPaymentStatusEnum field will return FAILED." - }, - "purchaseOrderPaymentStatus": { - "type": "string", - "description": "An enumeration value that indicates the payment status for the purchase order. For implementation help, refer to eBay API documentation" - }, - "warnings": { - "type": "array", - "description": "An array of warning messages.", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "description": "The type that defines the fields for the summary of a purchase order." - }, - "Seller": { - "type": "object", - "properties": { - "feedbackPercentage": { - "type": "string", - "description": "The percentage of the total positive feedback." - }, - "feedbackScore": { - "type": "integer", - "description": "The feedback score of the seller. This value is based on the ratings from eBay members that bought items from this seller.", - "format": "int32" - }, - "sellerAccountType": { - "type": "string", - "description": "Indicates if the seller is a business or an individual. This is determined when the seller registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in some countries. This field is returned only on the following sites. EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL Valid values: BUSINESS INDIVIDUALCode so that your app gracefully handles any future changes to this list." - }, - "username": { - "type": "string", - "description": "The user name created by the seller for use on eBay." - } - }, - "description": "The type that defines the fields for the basic seller information." - }, - "ShipmentTrackingEvents": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A string describing the tracking event. For example: On FedEx vehicle for delivery" - }, - "eventDate": { - "type": "string", - "description": "The date of the shipment tracking event. UTC Format: yyyy-MM-ddThh:00:00.000Z For example: 2019-03-01T12:12:00.000Z" - }, - "eventType": { - "type": "string", - "description": "A normalized string for shipment tracking event. For example: OUT_FOR_DELIVERY" - }, - "location": { - "description": "Where the shipment tracking event occurred. For example: The city, state, postal code, and country of where the package was delivered.", - "$ref": "#/components/schemas/EventLocation" - } - }, - "description": "The type that defines the fields for the details of a shipping event, such as DELIVERED." - }, - "ShippingAddress": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "The first line of the street address where the item is being shipped." - }, - "addressLine2": { - "type": "string", - "description": "The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'." - }, - "city": { - "type": "string", - "description": "The city of the address where the item is being shipped." - }, - "country": { - "type": "string", - "description": "The two letter code representing the country of the address. For implementation help, refer to eBay API documentation" - }, - "county": { - "type": "string", - "description": "The county of the address where the item is being shipped." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the person receiving the package." - }, - "postalCode": { - "type": "string", - "description": "The postal code of the address where the item is being shipped." - }, - "recipient": { - "type": "string", - "description": "Name of the person receiving the package." - }, - "stateOrProvince": { - "type": "string", - "description": "The state or province of the address where the item is being shipped." - } - }, - "description": "The type that defines the fields for a shipping address. For restrictions, see Shipping restrictions." - }, - "ShippingAddressImpl": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "The first line of the street address." - }, - "addressLine2": { - "type": "string", - "description": "The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'." - }, - "city": { - "type": "string", - "description": "The city of the address." - }, - "country": { - "type": "string", - "description": "The two letter code representing the country of the address. For implementation help, refer to eBay API documentation" - }, - "county": { - "type": "string", - "description": "The county of the address." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the person receiving the package. Note: It is highly recommended that when entering the phone number you include the country code. For example, if a US phone number is 4081231234 you would enter +14081231234. If you do not include this code, the service will use the country specified in the country field. You can find the country code at https://countrycode.org." - }, - "postalCode": { - "type": "string", - "description": "The postal code of the address." - }, - "recipient": { - "type": "string", - "description": "Full name of the person receiving the purchase order." - }, - "stateOrProvince": { - "type": "string", - "description": "The state or province of the address. Note: For the US marketplace, this is a 2 character value. For a list of these, see US State and Canada Province Codes." - } - }, - "description": "The type that defines the shipping address fields. Note: If the address cannot be validated, a warning message is be returned along with the response." - }, - "ShippingDetail": { - "type": "object", - "properties": { - "maxEstimatedDeliveryDate": { - "type": "string", - "description": "The end of the date range in which the purchase order is expected to be delivered to the shipping address (final destination)." - }, - "minEstimatedDeliveryDate": { - "type": "string", - "description": "The beginning of the date range in which the purchase order is expected to be delivered to the shipping address (final destination)." - }, - "shippingCarrierCode": { - "type": "string", - "description": "The shipping provider, such as FedEx, or USPS for the line item." - }, - "shippingServiceCode": { - "type": "string", - "description": "A name of a shipping type. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx)." - } - }, - "description": "The type that defines the fields for the shipping information, such as delivery date estimates and shipping provider." - }, - "ShippingFulfillment": { - "type": "object", - "properties": { - "actualDeliveryDate": { - "type": "string", - "description": "The date the purchase order was delivered." - }, - "lineItemReferences": { - "type": "array", - "description": "The container the returns the fields for the line item ID and the quantity.", - "items": { - "$ref": "#/components/schemas/LineItemReference" - } - }, - "maxEstimatedDeliveryDate": { - "type": "string", - "description": "The end of the date range in which the purchase order is expected to be delivered to the shipping address." - }, - "minEstimatedDeliveryDate": { - "type": "string", - "description": "The beginning of the date range in which the purchase order is expected to be delivered to the shipping address." - }, - "shipmentTrackingEvents": { - "type": "array", - "description": "The container that returns all the shipment tracking events.", - "items": { - "$ref": "#/components/schemas/ShipmentTrackingEvents" - } - }, - "shipmentTrackingNumber": { - "type": "string", - "description": "The shipping provider number associated with the purchase order that can be used to track the package." - }, - "shipmentTrackingUrl": { - "type": "string", - "description": "The URL of the shipping provider's shipment tracking page." - }, - "shippedDate": { - "type": "string", - "description": "The date the seller gave the purchase order to the shipping provider." - }, - "shippingCarrierCode": { - "type": "string", - "description": "A name of the shipping provider, such as FedEx, or USPS." - }, - "shippingServiceCode": { - "type": "string", - "description": "A name of a shipping type. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx)." - } - }, - "description": "The type that defines the fields for the shipping details." - }, - "ShippingOption": { - "type": "object", - "properties": { - "baseDeliveryCost": { - "description": "The shipping cost using this shipping option for this line item before any shipping discounts.", - "$ref": "#/components/schemas/Amount" - }, - "deliveryDiscount": { - "description": "The monetary value of any delivery discount.", - "$ref": "#/components/schemas/Amount" - }, - "importCharges": { - "description": "The Global Shipping Program import charges for this line item.", - "$ref": "#/components/schemas/Amount" - }, - "maxEstimatedDeliveryDate": { - "type": "string", - "description": "The end of the date range in which the purchase order is expected to be delivered to the shipping address." - }, - "minEstimatedDeliveryDate": { - "type": "string", - "description": "The beginning of the date range in which the purchase order is expected to be delivered to the shipping address." - }, - "selected": { - "type": "boolean", - "description": "Indicates if the shipping method is selected." - }, - "shippingCarrierCode": { - "type": "string", - "description": "The shipping provider, such as FedEx, or USPS for the line item." - }, - "shippingOptionId": { - "type": "string", - "description": "A unique ID for the selected shipping option/method." - }, - "shippingServiceCode": { - "type": "string", - "description": "A name of a shipping type. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx)." - } - }, - "description": "The type that defines the fields for the shipping options." - }, - "UpdatePaymentInformation": { - "type": "object", - "properties": { - "creditCard": { - "description": "Container for the buyer's credit card information.", - "$ref": "#/components/schemas/CreditCard" - }, - "wallet": { - "description": "The container that returns the wallet payment token. Note: Currently, this is supported only for eBay Guest checkouts. Support for eBay Member checkouts will be available in 2019.", - "$ref": "#/components/schemas/Wallet" - } - }, - "description": "The type that defines the fields for payment information." - }, - "UpdateQuantity": { - "type": "object", - "properties": { - "lineItemId": { - "type": "string", - "description": "A unique eBay-assigned ID value that identifys a line item in a purchase order." - }, - "quantity": { - "type": "integer", - "description": "The number of individual items ordered in this line item, as specified by the buyer.", - "format": "int32" - } - }, - "description": "The type that defines the fields used to update the quantity of a line item." - }, - "UpdateShippingOption": { - "type": "object", - "properties": { - "lineItemId": { - "type": "string", - "description": "A unique eBay-assigned ID value that identifies the line item in a checkout session." - }, - "shippingOptionId": { - "type": "string", - "description": "A unique ID for the selected shipping option/method." - } - }, - "description": "The type that defines the fields used to update the shipping option of a line item." - }, - "Wallet": { - "type": "object", - "properties": { - "paymentToken": { - "type": "string", - "description": "This token is a payment nonce. A payment method nonce is a secure, one-time-use reference to payment information. It's the key element that allows your server to communicate sensitive payment information to the payment processor server without ever touching the raw data. The nonce is generated by the payment processor. Note: Currently, this is supported only for eBay Guest checkouts. Support for eBay Member checkouts will be available in 2019." - } - }, - "description": "The type that defines the fields for payment tokens. Note: Currently, this is supported only for eBay Guest checkouts. Support for eBay Member checkouts will be available in 2019." - } - }, - "securitySchemes": { - "api_auth": { - "type": "oauth2", - "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": { - "clientCredentials": { - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope/buy.guest.order": "Purchase eBay items off eBay" - } - }, - "authorizationCode": { - "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope/buy.order": "View and manage your purchases", - "https://api.ebay.com/oauth/api_scope/buy.order.readonly": "View your order details" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/specs/buy_order_v2_oas3.json b/specs/buy_order_v2_oas3.json new file mode 100644 index 00000000..d6ec646d --- /dev/null +++ b/specs/buy_order_v2_oas3.json @@ -0,0 +1,2701 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Order API", + "description": "Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Note: This is a \"Limited(Limited Release) API available only to select developers approved by business units.

The Order API provides interfaces that let shoppers pay for items. It also returns payment and shipping status of the order.", + "contact": { + "name": "eBay Inc," + }, + "license": { + "name": "eBay API License Agreement", + "url": "https://developer.ebay.com/join/api-license-agreement" + }, + "version": "v2.1.4" + }, + "servers": [ + { + "url": "https://apix.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/buy/order/v2" + } + } + }, + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/buy/order/v2" + } + } + } + ], + "paths": { + "/guest_checkout_session/{checkoutSessionId}/apply_coupon": { + "post": { + "tags": [ + "guest_checkout_session" + ], + "description": "Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! \"Limited(Limited Release) This method is only available to select developers approved by business units.


This method adds a coupon to an eBay guest checkout session and applies it to all the eligible items in the order.

The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is in the payload and is also required.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", + "operationId": "applyGuestCoupon", + "parameters": [ + { + "name": "checkoutSessionId", + "in": "path", + "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The container for the fields used to apply a coupon to a guest checkout session.", + "content": { + "application/json": { + "schema": { + "description": "The container for the fields used to apply a coupon to a guest checkout session.", + "$ref": "#/components/schemas/CouponRequest" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GuestCheckoutSessionResponseV2" + } + } + }, + "x-response-codes": { + "errors": { + "16026": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "You cannot apply multiple coupons to the same order. Check appliedCoupons to see which coupon is currently applied." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15001": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." + }, + "15002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." + }, + "15003": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The checkout session requested does not exist." + }, + "15025": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The App is not authorized to access this resource." + }, + "15029": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." + }, + "15032": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." + }, + "16002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The coupon does not exist. The coupon was ignored and no discount was applied to this order." + }, + "16003": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The coupon has expired. No discount was applied to this order." + }, + "16004": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The coupon has not been activated. The coupon was ignored and no discount was applied to this order." + }, + "16006": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order." + }, + "16022": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order." + }, + "16024": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The coupon provided could not be applied. You may proceed with this session or provide another coupon." + } + } + } + }, + "403": { + "description": "Access Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Resource Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15019": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." + }, + "15021": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This checkout session cannot be updated because the order has already been placed." + }, + "15027": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." + }, + "16000": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon is not valid for any of the items in the order. The coupon was ignored and no discount was applied to this order." + }, + "16001": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "You cannot apply multiple coupons to the same order. No discount was applied to this order." + }, + "16005": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order." + }, + "16007": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This coupon has already been used. The coupon was ignored and no discount was applied to this order." + }, + "16008": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This coupon is no longer valid. The coupon was ignored and no discount was applied to this order." + }, + "16009": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order." + }, + "16010": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon is not valid for the currency being used by the items. The coupon was ignored and no discount was applied to this order." + }, + "16012": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon is not valid for the {fieldName}. The coupon was ignored and no discount was applied to this order." + }, + "16013": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon is not valid for any of the item categories in the order. The coupon was ignored and no discount was applied to this order." + }, + "16014": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon is not valid for the selected payment method. The coupon was ignored and no discount was applied to this order." + }, + "16015": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon is not valid for the selected shipping option. The coupon was ignored and no discount was applied to this order." + }, + "16016": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon is valid only for items that are shipped domestically. The coupon was ignored and no discount was applied to this order." + }, + "16017": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon is valid only for items that are shipped internationally. The coupon was ignored and no discount was applied to this order." + }, + "16018": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The buyer is not eligible for this coupon. The coupon was ignored and no discount was applied to this order." + }, + "16019": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The coupon is not valid for guest eBay checkouts. The coupon was ignored and no discount was applied to this order." + }, + "16023": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "You cannot apply multiple coupons to the same order. The coupon was ignored and no discount was applied to this order." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15000": { + "domain": "API_ORDER", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + }, + "16020": { + "domain": "API_ORDER", + "category": "APPLICATION", + "description": "Your application is not eligible for this coupon. The coupon was ignored and no discount was applied to this order." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/buy.guest.order" + ] + } + ] + } + }, + "/guest_checkout_session/{checkoutSessionId}": { + "get": { + "tags": [ + "guest_checkout_session" + ], + "description": "Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! \"Limited(Limited Release) This method is only available to select developers approved by business units.


This method returns the details of the specified guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. This method has no request payload.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", + "operationId": "getGuestCheckoutSession", + "parameters": [ + { + "name": "checkoutSessionId", + "in": "path", + "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GuestCheckoutSessionResponseV2" + } + } + }, + "x-response-codes": { + "errors": { + "20000": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This order contains the item {itemId} that may be subject to certain importation permitting/licensing requirements. Please check applicable regulations for specific import restrictions in your country." + }, + "20001": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This item {itemId} ships via a freight carrier. For information regarding shipping, tracking, delivery, etc. check with the seller." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15003": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The checkout session requested does not exist." + }, + "15025": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The App is not authorized to access this resource." + }, + "15029": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." + } + } + } + }, + "403": { + "description": "Access Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Resource Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15027": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15000": { + "domain": "API_ORDER", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/buy.guest.order" + ] + } + ] + } + }, + "/guest_checkout_session/initiate": { + "post": { + "tags": [ + "guest_checkout_session" + ], + "description": "Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! \"Limited(Limited Release) This method is only available to select developers approved by business units.


This method creates an eBay guest checkout session, which is the first step in performing a checkout. The method returns a checkoutSessionId that you use as a URI parameter in subsequent guest checkout methods.

Note: This method also returns the X-EBAY-SECURITY-SIGNATURE response header, which is a token that is used to launch the Checkout with eBay widget. The Checkout with eBay widget allows eBay guests to pay for items without leaving your site. For details about the Checkout with eBay widget, see Integrating the Checkout with eBay button.
Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs.

TIP: To test the entire checkout flow, you might need a \"test\" credit card. You can generate a credit card number from http://www.getcreditcardnumbers.com.
For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", + "operationId": "initiateGuestCheckoutSession", + "parameters": [ + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the eBay marketplace where the order will occur.

See HTTP request headers for the marketplace ID values.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The container for the fields used by the initiateGuestCheckoutSession method.", + "content": { + "application/json": { + "schema": { + "description": "The container for the fields used by the initiateGuestCheckoutSession method.", + "$ref": "#/components/schemas/CreateGuestCheckoutSessionRequestV2" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "OK", + "headers": { + "X-EBAY-SECURITY-SIGNATURE": { + "schema": { + "type": "string", + "description": "A token that is used to launch the Checkout with eBay widget. For details about the Checkout with eBay widget, see Integrating the Checkout with eBay button" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GuestCheckoutSessionResponseV2" + } + } + }, + "x-response-codes": { + "errors": { + "15007": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." + }, + "15043": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item {itemId} cannot be purchased using this API and has been removed from the cart. The purchase can be done on ebay.com." + }, + "15055": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item is removed due to one or more reasons (out of stock, the desired quantity exceeds the quantity available, etc)." + }, + "20000": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This order contains the item {itemId} that may be subject to certain importation permitting/licensing requirements. Please check applicable regulations for specific import restrictions in your country." + }, + "20001": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This item {itemId} ships via a freight carrier. For information regarding shipping, tracking, delivery, etc. check with the seller." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15001": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." + }, + "15002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." + }, + "15029": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." + }, + "15048": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The value of {fieldName} is too long. For more information, see the documentation for this call." + }, + "17002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Invalid character(s) found in the shipping address. Please check name and shipping address fields, remove invalid character(s) and resubmit the call." + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15011": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "You have exceeded the maximum number of {maxLineItems} line items. Correct the request and resubmit the call." + }, + "15012": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." + }, + "15013": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item is either out of stock, or the desired quantity exceeds the quantity available. If out of stock, please wait for seller to restock. If desired quantity exceeds available quantity, please reduce the quantity value and try again." + }, + "15014": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call." + }, + "15015": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information." + }, + "15017": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The payment for the order line items in your cart could not be processed due to issues with one or more sellers." + }, + "15018": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item is not available for purchase. This can be for several reasons including the listing has ended. Remove the item and resubmit the call." + }, + "15019": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." + }, + "15026": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item is not shippable to the specified shipping address." + }, + "15027": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." + }, + "15028": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item {itemId} is not available for purchase because it cannot be shipped to {country}." + }, + "15031": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item is not purchasable because the buyer has been blocked by the seller." + }, + "15044": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "At least one of the items in the cart cannot be purchased using this API. The purchase can be done on eBay, through the eBay app or eBay website." + }, + "15045": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items." + }, + "15047": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service." + }, + "15053": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "Your desired item(s) are not available for purchase at this time. The unavailability of an item could be for any of several reasons, including the item being out of stock. Add available item(s) and resubmit the call." + }, + "20002": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This item {itemId} is currently unavailable to buy from the seller." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15000": { + "domain": "API_ORDER", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/buy.guest.order" + ] + } + ] + } + }, + "/guest_checkout_session/{checkoutSessionId}/remove_coupon": { + "post": { + "tags": [ + "guest_checkout_session" + ], + "description": "Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! \"Limited(Limited Release) This method is only available to select developers approved by business units.


This method removes a coupon from an eBay guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is specified in the payload and is also required.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", + "operationId": "removeGuestCoupon", + "parameters": [ + { + "name": "checkoutSessionId", + "in": "path", + "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The container for the fields used by the removeGuestCoupon method.", + "content": { + "application/json": { + "schema": { + "description": "The container for the fields used by the removeGuestCoupon method.", + "$ref": "#/components/schemas/CouponRequest" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GuestCheckoutSessionResponseV2" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15001": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." + }, + "15002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." + }, + "15003": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The checkout session requested does not exist." + }, + "15025": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The App is not authorized to access this resource." + }, + "15029": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." + }, + "15032": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." + }, + "15033": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The payment cannot be processed because the payment information is invalid. You will need to create a new checkout session and submit corrected payment information." + }, + "16025": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The coupon was not applied to this cart." + } + } + } + }, + "403": { + "description": "Access Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Resource Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15019": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." + }, + "15021": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This checkout session cannot be updated because the order has already been placed." + }, + "15027": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15000": { + "domain": "API_ORDER", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/buy.guest.order" + ] + } + ] + } + }, + "/guest_checkout_session/{checkoutSessionId}/update_quantity": { + "post": { + "tags": [ + "guest_checkout_session" + ], + "description": "Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! \"Limited(Limited Release) This method is only available to select developers approved by business units.


This method changes the quantity of the specified line item in an eBay guest checkout session.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", + "operationId": "updateGuestQuantity", + "parameters": [ + { + "name": "checkoutSessionId", + "in": "path", + "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The container for the fields used by the updateGuestQuantity method.", + "content": { + "application/json": { + "schema": { + "description": "The container for the fields used by the updateGuestQuantity method.", + "$ref": "#/components/schemas/UpdateQuantity" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GuestCheckoutSessionResponseV2" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15001": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." + }, + "15002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." + }, + "15003": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The checkout session requested does not exist." + }, + "15025": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The App is not authorized to access this resource." + }, + "15029": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." + }, + "15032": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." + } + } + } + }, + "403": { + "description": "Access Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Resource Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15012": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call." + }, + "15013": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item is either out of stock, or the desired quantity exceeds the quantity available. If out of stock, please wait for seller to restock. If desired quantity exceeds available quantity, please reduce the quantity value and try again." + }, + "15014": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call." + }, + "15019": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." + }, + "15021": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This checkout session cannot be updated because the order has already been placed." + }, + "15027": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." + }, + "15053": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "Your desired item(s) are not available for purchase at this time. The unavailability of an item could be for any of several reasons, including the item being out of stock. Add available item(s) and resubmit the call." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15000": { + "domain": "API_ORDER", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/buy.guest.order" + ] + } + ] + } + }, + "/guest_checkout_session/{checkoutSessionId}/update_shipping_address": { + "post": { + "tags": [ + "guest_checkout_session" + ], + "description": "Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! \"Limited(Limited Release) This method is only available to select developers approved by business units.


This method changes the shipping address for the order in an eBay guest checkout session. All the line items in an order must be shipped to the same address, but the shipping method can be specific to the line item.

Note: If the address submitted cannot be validated, a warning message will be returned. This does not prevent the method from executing, but you may want to verify the address.
For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", + "operationId": "updateGuestShippingAddress", + "parameters": [ + { + "name": "checkoutSessionId", + "in": "path", + "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The container for the fields used by the updateGuestShippingAddress method.", + "content": { + "application/json": { + "schema": { + "description": "The container for the fields used by the updateGuestShippingAddress method.", + "$ref": "#/components/schemas/ShippingAddressImpl" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GuestCheckoutSessionResponseV2" + } + } + }, + "x-response-codes": { + "errors": { + "15007": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address." + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15001": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." + }, + "15002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." + }, + "15003": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The checkout session requested does not exist." + }, + "15025": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The App is not authorized to access this resource." + }, + "15029": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." + }, + "15032": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." + }, + "15048": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The value of {fieldName} is too long. For more information, see the documentation for this call." + }, + "17002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Invalid character(s) found in the shipping address. Please check name and shipping address fields, remove invalid character(s) and resubmit the call." + } + } + } + }, + "403": { + "description": "Access Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Resource Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15019": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." + }, + "15021": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This checkout session cannot be updated because the order has already been placed." + }, + "15026": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The item is not shippable to the specified shipping address." + }, + "15027": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." + }, + "15047": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15000": { + "domain": "API_ORDER", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/buy.guest.order" + ] + } + ] + } + }, + "/guest_checkout_session/{checkoutSessionId}/update_shipping_option": { + "post": { + "tags": [ + "guest_checkout_session" + ], + "description": "Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! \"Limited(Limited Release) This method is only available to select developers approved by business units.


This method changes the shipping method for the specified line item in an eBay guest checkout session. The shipping option can be set for each line item. This gives the shopper the ability choose the cost of shipping for each line item.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", + "operationId": "updateGuestShippingOption", + "parameters": [ + { + "name": "checkoutSessionId", + "in": "path", + "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The container for the fields used by the updateGuestShippingOption method.", + "content": { + "application/json": { + "schema": { + "description": "The container for the fields used by the updateGuestShippingOption method.", + "$ref": "#/components/schemas/UpdateShippingOption" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GuestCheckoutSessionResponseV2" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15001": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call." + }, + "15002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. Correct the value and resubmit the call." + }, + "15003": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The checkout session requested does not exist." + }, + "15025": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The App is not authorized to access this resource." + }, + "15029": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}." + }, + "15032": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call." + } + } + } + }, + "403": { + "description": "Access Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Resource Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15019": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session." + }, + "15021": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "This checkout session cannot be updated because the order has already been placed." + }, + "15027": { + "domain": "API_ORDER", + "category": "BUSINESS", + "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "15000": { + "domain": "API_ORDER", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/buy.guest.order" + ] + } + ] + } + }, + "/guest_purchase_order/{purchaseOrderId}": { + "get": { + "tags": [ + "guest_purchase_order" + ], + "description": "Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! \"Limited(Limited Release) This method is only available to select developers approved by business units.


This method retrieves the details about a specific guest purchase order. It returns the line items, including purchase order status, dates created and modified, item quantity and listing data, payment and shipping information, and prices, taxes, discounts and credits.

The purchaseOrderId is passed in as a URI parameter and is required.

Note: The purchaseOrderId value is returned in the call-back URL that is sent through the new eBay pay widget. For more information about eBay managed payments and the new Order API payment flow, see Order API in the Buying Integration Guide.
You can use this method to not only get the details of a purchase order, but to check the value of the purchaseOrderPaymentStatus field to determine if the order has been paid for. If the order has been paid for, this field will return PAID.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview.", + "operationId": "getGuestPurchaseOrder", + "parameters": [ + { + "name": "purchaseOrderId", + "in": "path", + "description": "This path parameter specifies the unique identifier of a purchase order made by a guest buyer, for which details are to be retrieved.

Note: This value is returned in the response URL that is sent through the new eBay pay widget. For more information about eBay managed payments and the new Order API payment flow, see Order API in the Buying Integration Guide.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-ENDUSERCTX", + "in": "header", + "description": "This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GuestPurchaseOrderV2" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "16002": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "The purchase order ID was not found." + }, + "16003": { + "domain": "API_ORDER", + "category": "REQUEST", + "description": "Access to the purchase order is not authorized." + } + } + } + }, + "403": { + "description": "Access Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "16001": { + "domain": "API_ORDER", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/buy.guest.order" + ] + } + ] + }, + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/buy/order/v2" + } + } + } + ] + } + }, + "components": { + "schemas": { + "AddonService": { + "type": "object", + "properties": { + "serviceFee": { + "description": "The container that returns the amount and currency of the fee for an add-on service.", + "$ref": "#/components/schemas/Amount" + }, + "serviceTax": { + "description": "The container that returns the amount and currency of the sales tax applied against the add-on service fee. This tax is based on the state or territory in which the buyer is located.", + "$ref": "#/components/schemas/Amount" + }, + "serviceType": { + "type": "string", + "description": "An enumerated value that defines the type of add-on service. For implementation help, refer to eBay API documentation" + } + }, + "description": "A type that defines the fields for add-on services that may be applied or are automatically applied to an item in an order." + }, + "Adjustment": { + "type": "object", + "properties": { + "amount": { + "description": "The container that returns the amount and currency of an adjustment.", + "$ref": "#/components/schemas/Amount" + }, + "label": { + "type": "string", + "description": "The text indicating what the adjustment was for." + } + }, + "description": "A type that defines the fields for seller adjustments. An adjustment can be a credit or debit." + }, + "Amount": { + "type": "object", + "properties": { + "currency": { + "type": "string", + "description": "The currency used in the monetary transaction. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation" + }, + "value": { + "type": "string", + "description": "The amount of the currency specified in the currency field. The value of the currency defaults to the standard currency used by the country of the eBay site offering the item." + } + }, + "description": "The type defining the monetary value of an amount in the currency used in on the eBay site offering the item and the conversion of that value into another currency." + }, + "ApiPricingSummaryV2": { + "type": "object", + "properties": { + "additionalSavings": { + "description": "The total amount of the coupon discounts in the purchase order.", + "$ref": "#/components/schemas/Amount" + }, + "addonServicesFee": { + "description": "The total fee for add-on services among all line items.", + "$ref": "#/components/schemas/Amount" + }, + "adjustment": { + "description": "The total amount of any seller adjustments. An adjustment can be a credit or debit. This is used to catch any monetary changes to the order that are not already captured in one of the other fields.", + "$ref": "#/components/schemas/Adjustment" + }, + "deliveryCost": { + "description": "The delivery cost for all of the line items, after any delivery discounts are applied.

For example, there are four line items, and the delivery cost for each line item is $5. One of the line items qualifies for free delivery. The deliveryCost would be $15, which is the total cost for delivering all of the line items after the discount is applied.

Note: The cost includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/Amount" + }, + "deliveryDiscount": { + "description": "The total amount of the order delivery discounts for all of the line items, such as free shipping.", + "$ref": "#/components/schemas/Amount" + }, + "fee": { + "description": "The total amount of any fees for all the line items in the order, such as a recycling fee.", + "$ref": "#/components/schemas/Amount" + }, + "importCharges": { + "description": "The sum of all Global Shipping Program import charges, for all the line items in the order.", + "$ref": "#/components/schemas/Amount" + }, + "importDuties": { + "description": "The total sum of cross-border import duties calculated for all line items in the order, which is paid by the buyer at checkout.", + "$ref": "#/components/schemas/Amount" + }, + "importTax": { + "description": "The type of import tax applicable to the order, and the total amount of tax for all line items in the order.", + "$ref": "#/components/schemas/ImportTax" + }, + "priceDiscount": { + "description": "The total discount amount for all line items in the order.

For example, there are four line items in the order. Two of the line items qualify for a Buy 1, Get 1 offer, which is a $6 and a $15 discount. The priceDiscount value returned would be 21, which is the total of the two discounts.

Note: Delivery discount amounts, if applicable, are not reflected in the value returned in this field.", + "$ref": "#/components/schemas/Amount" + }, + "priceSubtotal": { + "description": "The total cost for all line items in the order, taking into account the item quantity, but before adding taxes and delivery costs, or applying discounts, fees, and adjustments.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/Amount" + }, + "tax": { + "description": "The total amount of taxes for all line items in the order.", + "$ref": "#/components/schemas/Amount" + }, + "total": { + "description": "The total cost of the order, which includes: (priceSubtotal - priceDiscount) + deliveryCost + tax +/- adjustment + fee + importCharges - additionalSavings.", + "$ref": "#/components/schemas/Amount" + } + }, + "description": "A type that returns cost details for all of the line items in the order, such as tax, item price, delivery cost, and discounts." + }, + "AuthenticityVerificationProgram": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "An informational message that applies to the Authenticity Guarantee program." + }, + "outcomeReason": { + "type": "string", + "description": "An informational message regarding the authentication outcome of an Authenticity Guarantee verification inspection.

Note: This field is conditionally returned when there is information that applies to the Authenticity Guarantee program." + }, + "status": { + "type": "string", + "description": "An enumerated value that indicates whether the order line item has passed or failed the Authenticity Guarantee verification inspection, or whether the inspection and/or results are still pending.

Note: This field is conditionally returned when the purchase is complete.

Valid Values: For implementation help, refer to eBay API documentation" + }, + "termsWebUrl": { + "type": "string", + "description": "The terms and conditions that apply to the Authenticity Guarantee program." + } + }, + "description": "A type that provides the status and outcome of an order line item going through the Authenticity Guarantee verification process." + }, + "CheckoutAddonService": { + "type": "object", + "properties": { + "selected": { + "type": "boolean", + "description": "This boolean indicates whether the service is selected or not." + }, + "serviceFee": { + "description": "The container that returns the amount and currency of the fee for an add-on service.", + "$ref": "#/components/schemas/Amount" + }, + "serviceId": { + "type": "string", + "description": "The unique identifier of the add-on service." + }, + "serviceTax": { + "description": "The container that returns the amount and currency of the sales tax applied against the add-on service fee. This tax is based on the state or territory in which the buyer is located.", + "$ref": "#/components/schemas/Amount" + }, + "serviceType": { + "type": "string", + "description": "The type of add-on service, such as AUTHENTICITY_GUARANTEE. For implementation help, refer to eBay API documentation" + } + }, + "description": "A type that defines the fields for add-on services that may be applied or are automatically applied to an item in an order." + }, + "ChkPricingSummaryV2": { + "type": "object", + "properties": { + "additionalSavings": { + "description": "The total amount of the coupon discounts in the purchase order.", + "$ref": "#/components/schemas/Amount" + }, + "adjustment": { + "description": "The total amount of any seller adjustments. An adjustment can be a credit or debit. This is used to catch any monetary changes to the order that are not already captured in one of the other fields.", + "$ref": "#/components/schemas/Adjustment" + }, + "deliveryCost": { + "description": "The delivery cost for all of the line items, after any delivery discounts are applied.

For example, there are four line items, and the delivery cost for each line item is $5. One of the line items qualifies for free delivery. The deliveryCost would be $15, which is the total cost for delivering all of the line items after the discount is applied.

Note: The cost includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/Amount" + }, + "fee": { + "description": "The total amount of any fees for all the line items in the order, such as a recycling fee.", + "$ref": "#/components/schemas/Amount" + }, + "importCharges": { + "description": "The sum of all Global Shipping Program import charges, for all the line items in the order.", + "$ref": "#/components/schemas/ImportChargesV2" + }, + "importTax": { + "description": "The type of import tax applicable to the order, and the total amount of tax for all line items in the order.", + "$ref": "#/components/schemas/ImportTax" + }, + "priceDiscount": { + "description": "The total discount amount for all line items in the order.

For example, there are four line items in the order. Two of the line items qualify for a Buy 1, Get 1 offer, which is a $6 and a $15 discount. The priceDiscount value returned would be 21, which is the total of the two discounts.

Note: Delivery discount amounts, if applicable, are not reflected in the value returned in this field.", + "$ref": "#/components/schemas/Amount" + }, + "priceSubtotal": { + "description": "The total cost for all line items in the order, taking into account the item quantity, but before adding taxes and delivery costs, or applying discounts, fees, and adjustments.

Note: The price includes the value-added tax (VAT) and/or Buyer Protection fee for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see tax-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/Amount" + }, + "tax": { + "description": "The total amount of taxes for all line items in the order.", + "$ref": "#/components/schemas/Amount" + }, + "total": { + "description": "The total cost of the order, which includes: (priceSubtotal - priceDiscount) + deliveryCost + tax +/- adjustment + fee + importCharges - additionalSavings.", + "$ref": "#/components/schemas/Amount" + } + }, + "description": "A type that returns cost details for all of the line items in the order, such as tax, item price, delivery cost, and discounts." + }, + "Coupon": { + "type": "object", + "properties": { + "redemptionCode": { + "type": "string", + "description": "The coupon redemption code." + } + }, + "description": "A type that defines the fields for the coupon information.

Note: This container is not returned for the getGuestPurchaseOrder method." + }, + "CouponRequest": { + "type": "object", + "properties": { + "redemptionCode": { + "type": "string", + "description": "The redemption code of the coupon.

Maximum: One redemption code per order" + } + }, + "description": "A type that defines the fields for the coupon information used in the request." + }, + "CreateGuestCheckoutSessionRequestV2": { + "type": "object", + "properties": { + "contactEmail": { + "type": "string", + "description": "The buyer's email address." + }, + "lineItemInputs": { + "type": "array", + "description": "An array used to define the line item(s) and desired quantity for an eBay guest checkout session.

Maximum: 10 line items", + "items": { + "$ref": "#/components/schemas/LineItemInput" + } + }, + "shippingAddress": { + "description": "A container that defines the shipping address for an eBay guest checkout session.

Note: If the address cannot be validated, a warning message is returned along with the response.", + "$ref": "#/components/schemas/ShippingAddress" + } + }, + "description": "A type that defines the fields used to create an eBay guest checkout session." + }, + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "This string value indicates the error category. There are three categories of errors: request errors, application errors, and system errors." + }, + "domain": { + "type": "string", + "description": "The name of the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique code that identifies the particular error or warning that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of reference IDs that identify the specific request elements most closely associated to the error or warning, if any.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A detailed description of the condition that caused the error or warning, and information on what what must be done to correct the problem." + }, + "message": { + "type": "string", + "description": "A description of the condition that caused the error or warning." + }, + "outputRefIds": { + "type": "array", + "description": "An array of reference IDs that identify the specific response elements most closely associated to the error or warning, if any.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of warning and error messages that return one or more variables contextual information about the error or warning. This is often the field or value that triggered the error or warning.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "The name of the subdomain in which the error or warning occurred." + } + }, + "description": "A type that defines the fields for the error messages." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the input field that caused an issue with the method request." + }, + "value": { + "type": "string", + "description": "The actual value that was passed in for the element specified in the name field." + } + }, + "description": "An array of name/value pairs that provide details regarding the error." + }, + "Fee": { + "type": "object", + "properties": { + "amount": { + "description": "A container for the currency type and monetary amount of the fee associated with the line item.", + "$ref": "#/components/schemas/Amount" + }, + "feeType": { + "type": "string", + "description": "The type of fee associated with the line item. For implementation help, refer to eBay API documentation" + } + }, + "description": "A breakdown of the fees associated with the line item." + }, + "GuestCheckoutSessionResponseV2": { + "type": "object", + "properties": { + "appliedCoupons": { + "type": "array", + "description": "A container that returns the information for the coupons that were applied in the guest checkout session.", + "items": { + "$ref": "#/components/schemas/Coupon" + } + }, + "checkoutSessionId": { + "type": "string", + "description": "The eBay-assigned guest checkout session ID. This ID is created after a successful initiateGuestCheckoutSession call." + }, + "lineItems": { + "type": "array", + "description": "An array of line items associated with the guest checkout session.", + "items": { + "$ref": "#/components/schemas/LineItem" + } + }, + "pricingSummary": { + "description": "A container that breaks down the costs for the order, including total cost, shipping cost, tax, fees, and any discounts.", + "$ref": "#/components/schemas/ChkPricingSummaryV2" + }, + "shippingAddress": { + "description": "A container that returns the address to which the purchase order will be shipped.", + "$ref": "#/components/schemas/ShippingAddress" + }, + "warnings": { + "type": "array", + "description": "An array of errors or warnings that were generated during the method processing.", + "items": { + "$ref": "#/components/schemas/Error" + } + } + }, + "description": "Guest session response v2 " + }, + "GuestPurchaseOrderV2": { + "type": "object", + "properties": { + "lineItems": { + "type": "array", + "description": "An array of line items in the order.", + "items": { + "$ref": "#/components/schemas/OrderLineItemV2" + } + }, + "pricingSummary": { + "description": "A container that breaks down the costs for the order, including total cost, shipping cost, tax, fees, and any discounts.", + "$ref": "#/components/schemas/ApiPricingSummaryV2" + }, + "purchaseOrderCreationDate": { + "type": "string", + "description": "The creation date of the purchase order." + }, + "purchaseOrderId": { + "type": "string", + "description": "The unique identifier of the purchase order." + }, + "purchaseOrderPaymentStatus": { + "type": "string", + "description": "A container that returns the payment status for the purchase order. For implementation help, refer to eBay API documentation" + }, + "purchaseOrderStatus": { + "type": "string", + "description": "An enumeration value that indicates the current status of the buyer's payment and any refund that applies to the purchase order. For implementation help, refer to eBay API documentation" + }, + "refundedAmount": { + "description": "The total amount of any refunds for the purchase order.", + "$ref": "#/components/schemas/Amount" + }, + "taxDetails": { + "type": "array", + "description": "Detailed tax information for items included in this order.", + "items": { + "$ref": "#/components/schemas/TaxDetails" + } + }, + "warnings": { + "type": "array", + "description": "A container for any warning messages.", + "items": { + "$ref": "#/components/schemas/Error" + } + } + }, + "description": "A type that defines the fields for a guest purchase order." + }, + "Image": { + "type": "object", + "properties": { + "imageUrl": { + "type": "string", + "description": "The URL for the image." + } + }, + "description": "A container that returns the URL for an image." + }, + "ImportChargesV2": { + "type": "object", + "properties": { + "amount": { + "description": "The amount of the import charge.", + "$ref": "#/components/schemas/Amount" + }, + "applicableChargeType": { + "type": "string", + "description": "The type of charge to apply to the order, such as import duties. For implementation help, refer to eBay API documentation" + } + }, + "description": "A type that defines the import charges that apply to an order." + }, + "ImportTax": { + "type": "object", + "properties": { + "amount": { + "description": "The total amount of import tax for all line items of an order.", + "$ref": "#/components/schemas/Amount" + }, + "importTaxType": { + "type": "string", + "description": "An enumeration value that indicates the type of import tax applicable to the order. Currently, the only applicable import tax is the Goods and Services tax (indicated with GST). The Goods and Services tax is only applicable to orders for the eBay Australia marketplace. For implementation help, refer to eBay API documentation" + } + }, + "description": "This container defines the type of import tax applicable to the order, and the total amount of tax for all line items in the order." + }, + "LegacyReference": { + "type": "object", + "properties": { + "legacyItemId": { + "type": "string", + "description": "The legacy ID used to identify an item.

This is used by the Post Order API Create Return Request method. This call initiates the item return process. For more information on how to use this field in the Post Order API, see Create a return request in the Buy Integration Guide.

Restriction: The Post Order API can be used only with eBay member checkouts." + }, + "legacyOrderId": { + "type": "string", + "description": "The legacy ID of the order.

This is used by the Post Order API Submit Cancellation Request method. This method initiates the item cancellation process. For more information on how to use this field in the Post Order API, see Using the Post Order API.

Restriction: The Post Order API can be used only with eBay member checkouts." + }, + "legacyTransactionId": { + "type": "string", + "description": "The legacy ID of the transaction.

This is used by the Post Order API Create Return Request call. This call initiates the item return process. For more information on how to use this field in the Post Order API, see Using the Post Order API in the Buy Integration Guide.

Restriction: The Post Order API can be used only with eBay member checkouts." + } + }, + "description": "A type that defines the fields to support using the Post Order API for returns and cancellations.

Restriction: The Post Order API can be used only with eBay member checkouts." + }, + "LineItem": { + "type": "object", + "properties": { + "addonServices": { + "type": "array", + "description": "An array of add-on services for the line item.", + "items": { + "$ref": "#/components/schemas/CheckoutAddonService" + } + }, + "authenticityVerification": { + "description": "A container returned for orders that are eligible for eBay's Authenticity Guarantee service. The seller ships Authenticity Guarantee service items to the authentication partner instead of the buyer. If the item is successfully authenticated, the authenticator will ship the item to the buyer.", + "$ref": "#/components/schemas/AuthenticityVerificationProgram" + }, + "baseUnitPrice": { + "description": "The cost of a single quantity of the line item. This is the starting point for computing the price during the checkout session.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/Amount" + }, + "fees": { + "type": "array", + "description": "A breakdown of the fees applicable to the line item.", + "items": { + "$ref": "#/components/schemas/Fee" + } + }, + "image": { + "description": "An eBay-assigned URL of the item image.", + "$ref": "#/components/schemas/Image" + }, + "itemId": { + "type": "string", + "description": "The eBay identifier of an item. This ID is returned by the Browse and Feed API methods. The ID is in RESTful item ID format.

For example: v1|2**********6|5**********4 or v1|1**********9|0.

For more information about item IDs for RESTful APIs, see Legacy API compatibility." + }, + "lineItemId": { + "type": "string", + "description": "A unique eBay-assigned ID value that identifies a line item in a checkout session." + }, + "netPrice": { + "description": "The total cost for the line item, taking into account the quantity, any seller item discounts, and any coupon that applies.

Note: This does not include any shipping discounts, shipping costs, fees, or seller adjustments.", + "$ref": "#/components/schemas/Amount" + }, + "promotions": { + "type": "array", + "description": "An array of promotions applied to the line item.", + "items": { + "$ref": "#/components/schemas/Promotion" + } + }, + "quantity": { + "type": "integer", + "description": "The quantity ordered for the line item.", + "format": "int32" + }, + "seller": { + "description": "A container that returns the information about the seller, such as their eBay user name.", + "$ref": "#/components/schemas/Seller" + }, + "shippingOptions": { + "type": "array", + "description": "An array of shipping options that are available for the line item. By default, the first one will be selected.

Note: The updateGuestShippingOption method can be used to change the shipping option.", + "items": { + "$ref": "#/components/schemas/ShippingOption" + } + }, + "taxDetails": { + "type": "array", + "description": "A container that returns the tax information for the line item.", + "items": { + "$ref": "#/components/schemas/TaxDetail" + } + }, + "title": { + "type": "string", + "description": "The seller-created title of the item." + } + }, + "description": "A type that defines the fields for an individual line item." + }, + "LineItemInput": { + "type": "object", + "properties": { + "itemId": { + "type": "string", + "description": "The unique eBay-assigned identifier of an item. This ID is returned by the Browse and Feed API methods. The ID must be in RESTful item ID format.

For example: v1|2**********6|5**********4 or v1|1**********9|0.

For more information about item IDs for RESTful APIs, see Legacy API compatibility.

Each itemId will become a single line item.

Maximum: 10 per session" + }, + "quantity": { + "type": "integer", + "description": "The quantity ordered in this line item.", + "format": "int32" + } + }, + "description": "A type that defines the fields for a line item." + }, + "OrderLineItemV2": { + "type": "object", + "properties": { + "addonServices": { + "type": "array", + "description": "An array of add-on services that apply to the order line item.", + "items": { + "$ref": "#/components/schemas/AddonService" + } + }, + "authenticityVerification": { + "description": "A container that is returned for orders that are eligible for eBay's Authenticity Guarantee program. The seller ships Authenticity Guarantee program items to the authentication partner instead of the buyer. If the item is successfully authenticated, the authenticator will ship the item to the buyer.", + "$ref": "#/components/schemas/AuthenticityVerificationProgram" + }, + "baseUnitPrice": { + "description": "The cost of a single quantity of the line item.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/Amount" + }, + "fees": { + "type": "array", + "description": "A breakdown of the fees applicable to the line item.", + "items": { + "$ref": "#/components/schemas/Fee" + } + }, + "image": { + "description": "An eBay-assigned URL of the item image.", + "$ref": "#/components/schemas/Image" + }, + "itemId": { + "type": "string", + "description": "The eBay identifier of an item. This ID is returned by the Browse and Feed API methods." + }, + "itemOnHold": { + "type": "boolean", + "description": "When this value is true it indicates that the item has been put on hold due to a violation of eBay Policy." + }, + "legacyReference": { + "description": "A container that returns fields to support using the Post Order API for returns and cancellations. For information about what is returned in these fields and how to use the Post Order API, see Using the Post Order API.

Note: The Post Order API can be used only with eBay member checkouts.", + "$ref": "#/components/schemas/LegacyReference" + }, + "lineItemId": { + "type": "string", + "description": "A unique eBay-assigned ID value that identifies a line item in a checkout session. This is created by the initiateGuestCheckoutSession." + }, + "lineItemPaymentStatus": { + "type": "string", + "description": "An enumeration value that indicates the payment status of the line item. For implementation help, refer to eBay API documentation" + }, + "lineItemStatus": { + "type": "string", + "description": "An enumeration value that indicates the fulfillment state of this line item.

Note: When there is no tracking information, the status will never change from FULFILLMENT_IN_PROGRESS; without tracking information, eBay has no way of knowing whether the order was delivered. For implementation help, refer to eBay API documentation" + }, + "netPrice": { + "description": "The total cost for the line item, taking into account the quantity, any seller item discounts, and any coupon that applies.

Note: This does not include any shipping discounts, shipping costs, fees, or seller adjustments.", + "$ref": "#/components/schemas/Amount" + }, + "orderId": { + "type": "string", + "description": "The unique order ID for the line item.

Maximum Length: 40 characters" + }, + "promotions": { + "type": "array", + "description": "An array of promotions applied to the line item.", + "items": { + "$ref": "#/components/schemas/Promotion" + } + }, + "quantity": { + "type": "integer", + "description": "The quantity ordered for the line item.", + "format": "int32" + }, + "seller": { + "description": "A container for information about the seller offering this item, such as the seller's user name.", + "$ref": "#/components/schemas/Seller" + }, + "shippingDetail": { + "description": "A container for information about the shipping details of the order.", + "$ref": "#/components/schemas/ShippingDetail" + }, + "taxDetails": { + "type": "array", + "description": "A container for the tax information for the line item.

Note: The information in this container is only returned when requested from the GB marketplace, when applicable.", + "items": { + "$ref": "#/components/schemas/TaxDetail" + } + }, + "title": { + "type": "string", + "description": "The seller-created title of the item." + } + }, + "description": "A type that defines the fields for line item information in a purchase order." + }, + "Promotion": { + "type": "object", + "properties": { + "discount": { + "description": "The details regarding the monetary value of the promotional discount.

Note: eBay Bucks are not supported.", + "$ref": "#/components/schemas/Amount" + }, + "message": { + "type": "string", + "description": "The text for the promotion title, which describes the promotion." + }, + "promotionType": { + "type": "string", + "description": "The kind of promotion. Some examples are: SellerDiscountedPromotionalOffer and COUPON." + } + }, + "description": "A container that returns the details of an item promotion." + }, + "Recipient": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "description": "The first name of the person receiving the purchase order." + }, + "lastName": { + "type": "string", + "description": "The last name of the person receiving the purchase order." + } + }, + "description": "A container that defines the full name of the person receiving the purchase order." + }, + "Region": { + "type": "object", + "properties": { + "regionName": { + "type": "string", + "description": "A localized text string that indicates the name of the region. Taxes are generally charged at the state/province level, or at the country level in the case of VAT tax." + }, + "regionType": { + "type": "string", + "description": "An enumeration value that indicates the type of region for the tax jurisdiction.

Valid Values: For implementation help, refer to eBay API documentation" + } + }, + "description": "A type that provides region details for a tax jurisdiction." + }, + "Seller": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "The user name created by the seller for use on eBay." + } + }, + "description": "A type that identifies the seller." + }, + "ShippingAddress": { + "type": "object", + "properties": { + "addressLine1": { + "type": "string", + "description": "The first line of the street address where the item is being shipped.

Maximum:" + }, + "addressLine2": { + "type": "string", + "description": "The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'.

Maximum:" + }, + "city": { + "type": "string", + "description": "The city of the address where the item is being shipped." + }, + "country": { + "type": "string", + "description": "The two letter code representing the country of the address. For implementation help, refer to eBay API documentation" + }, + "county": { + "type": "string", + "description": "The county of the address where the item is being shipped." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the person receiving the package.

Note: It is highly recommended that when entering the phone number you include the country code.

For example, if a US phone number is 4********4, you would enter +14********4. If you do not include this code, the service will use the country specified in the country field.

You can find the country code at https://countrycode.org.
" + }, + "postalCode": { + "type": "string", + "description": "The postal code of the address where the item is being shipped.

Note: This is optional when shipping to EBAY_HK (Hong Kong)." + }, + "recipient": { + "description": "The name of the person receiving the package.", + "$ref": "#/components/schemas/Recipient" + }, + "stateOrProvince": { + "type": "string", + "description": "The state or province of the address.

Note: For the US marketplace, this is a two-character value. For a list of valid values, see US State and Canada Province Codes. " + } + }, + "description": "A type that defines the fields for a shipping address. For restrictions, see Shipping restrictions.

Note: If the address cannot be validated, a warning message will be returned." + }, + "ShippingAddressImpl": { + "type": "object", + "properties": { + "addressLine1": { + "type": "string", + "description": "The first line of the street address where the item is being shipped.

Maximum:" + }, + "addressLine2": { + "type": "string", + "description": "The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'.

Maximum:" + }, + "city": { + "type": "string", + "description": "The city of the address where the item is being shipped." + }, + "country": { + "type": "string", + "description": "The two letter code representing the country of the address. For implementation help, refer to eBay API documentation" + }, + "county": { + "type": "string", + "description": "The county of the address where the item is being shipped." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the person receiving the package.

Note: It is highly recommended that when entering the phone number you include the country code.

For example, if a US phone number is 4********4, you would enter +14********4. If you do not include this code, the service will use the country specified in the country field.

You can find the country code at https://countrycode.org.
" + }, + "postalCode": { + "type": "string", + "description": "The postal code of the address where the item is being shipped.

Note: This is optional when shipping to EBAY_HK (Hong Kong)." + }, + "recipient": { + "description": "The name of the person receiving the package.", + "$ref": "#/components/schemas/Recipient" + }, + "stateOrProvince": { + "type": "string", + "description": "The state or province of the address.

Note: For the US marketplace, this is a two-character value. For a list of valid values, see US State and Canada Province Codes. " + } + }, + "description": "A type that defines the shipping address fields.

Note: If the address cannot be validated, a warning message is returned along with the response." + }, + "ShippingDetail": { + "type": "object", + "properties": { + "ebayShipping": { + "type": "boolean", + "description": "This value indicates whether shipping for this order is managed by eBay (true) or by the seller (omitted if false or not applicable to the transaction).

When true, the value in the pricingSummary.deliveryCost container indicates the shipping cost paid directly by the buyer to eBay." + }, + "maxEstimatedDeliveryDate": { + "type": "string", + "description": "The end of the date range in which the purchase order is expected to be delivered to the shipping address (final destination)." + }, + "minEstimatedDeliveryDate": { + "type": "string", + "description": "The beginning of the date range in which the purchase order is expected to be delivered to the shipping address (final destination)." + }, + "shippingCarrierCode": { + "type": "string", + "description": "The shipping provider for the line item, such as FedEx or USPS." + }, + "shippingServiceCode": { + "type": "string", + "description": "The name of the shipping service option. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx)." + } + }, + "description": "A type that defines the fields for the shipping information, such as delivery date estimates and shipping provider." + }, + "ShippingOption": { + "type": "object", + "properties": { + "baseDeliveryCost": { + "description": "The delivery cost using this shipping option, for this line item, before any delivery discounts are applied.

Note: The cost includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU.", + "$ref": "#/components/schemas/Amount" + }, + "deliveryDiscount": { + "description": "The monetary value of any delivery discounts.", + "$ref": "#/components/schemas/Amount" + }, + "ebayShipping": { + "type": "boolean", + "description": "This value indicates whether shipping for this order is managed by eBay (true) or by the seller (false)." + }, + "importCharges": { + "description": "The Global Shipping Program import charges for this line item.", + "$ref": "#/components/schemas/Amount" + }, + "maxEstimatedDeliveryDate": { + "type": "string", + "description": "The end of the date range in which the purchase order is expected to be delivered to the shipping address." + }, + "minEstimatedDeliveryDate": { + "type": "string", + "description": "The beginning of the date range in which the purchase order is expected to be delivered to the shipping address." + }, + "selected": { + "type": "boolean", + "description": "A field that indicates whether the shipping method is selected." + }, + "shippingCarrierCode": { + "type": "string", + "description": "The shipping provider for the line item, such as FedEx or USPS." + }, + "shippingOptionId": { + "type": "string", + "description": "A unique ID for the selected shipping option/method." + }, + "shippingServiceCode": { + "type": "string", + "description": "The name of the shipping service code. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx)." + } + }, + "description": "A type that defines the fields for the shipping options." + }, + "TaxClassificationDetail": { + "type": "object", + "properties": { + "amount": { + "description": "A container for the currency type and monetary amount of the tax collected for an item.", + "$ref": "#/components/schemas/Amount" + }, + "taxType": { + "type": "string", + "description": "Indicates the type of tax that has been collected for the item. For implementation help, refer to eBay API documentation" + } + }, + "description": "This type provides detailed information about the tax that has been collected for an item." + }, + "TaxDetail": { + "type": "object", + "properties": { + "includedInPrice": { + "type": "boolean", + "description": "A field that indicates whether tax was applied for the cost of the item and its shipping." + }, + "taxJurisdiction": { + "description": "A container that returns the tax jurisdiction information.", + "$ref": "#/components/schemas/TaxJurisdiction" + }, + "taxType": { + "type": "string", + "description": "A field that indicates the type of tax that may be collected for the item. For implementation help, refer to eBay API documentation" + } + }, + "description": "A type that defines the tax fields." + }, + "TaxDetails": { + "type": "object", + "properties": { + "amount": { + "description": "A container for the currency type and monetary amount of the tax item.", + "$ref": "#/components/schemas/Amount" + }, + "taxClassification": { + "type": "string", + "description": "Specifies what the tax item pertains to, such as a tangible object (ITEM_TAX), a service (SERVICE_TAX), or shipping fees (SHIPPING_TAX). For implementation help, refer to eBay API documentation" + }, + "taxClassificationDetails": { + "type": "array", + "description": "Provides a detailed accounting, by TaxType, of taxes collected for each item within an order.", + "items": { + "$ref": "#/components/schemas/TaxClassificationDetail" + } + } + }, + "description": "This type provides detailed information for taxes collected for each item within an order." + }, + "TaxJurisdiction": { + "type": "object", + "properties": { + "region": { + "description": "The region of the tax jurisdiction.", + "$ref": "#/components/schemas/Region" + }, + "taxJurisdictionId": { + "type": "string", + "description": "The identifier of the tax jurisdiction." + } + }, + "description": "The type that defines the fields for the tax jurisdiction details." + }, + "UpdateQuantity": { + "type": "object", + "properties": { + "lineItemId": { + "type": "string", + "description": "A unique eBay-assigned ID value that identifies a line item in a purchase order.

For example: v1|2**********6|5**********4 or v1|1**********9|0.

For more information about item IDs for RESTful APIs, see Legacy API compatibility." + }, + "quantity": { + "type": "integer", + "description": "The quantity of the line item that you wish to update.", + "format": "int32" + } + }, + "description": "A type that defines the fields used to update the quantity of a line item." + }, + "UpdateShippingOption": { + "type": "object", + "properties": { + "lineItemId": { + "type": "string", + "description": "A unique eBay-assigned ID value that identifies the line item in a checkout session.

For example: v1|2**********6|5**********4 or v1|1**********9|0.

For more information about item IDs for RESTful APIs, see Legacy API compatibility" + }, + "shippingOptionId": { + "type": "string", + "description": "A unique identifier of the selected shipping option/method." + } + }, + "description": "A type that defines the fields used to update the shipping option of a line item." + } + }, + "securitySchemes": { + "api_auth": { + "type": "oauth2", + "description": "The security definitions for this API. Please check individual operations for applicable scopes.", + "flows": { + "clientCredentials": { + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope/buy.guest.order": "Purchase eBay items off eBay" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specs/cancellation_oas3.json b/specs/cancellation_oas3.json index 6be8cc3d..538056ab 100644 --- a/specs/cancellation_oas3.json +++ b/specs/cancellation_oas3.json @@ -50,28 +50,6 @@ } } }, - "/cancellation/{cancelId}/confirm": { - "post": { - "description": "Buyer confirms the refund from a cancellation was received", - "operationId": "confirmRefundReceived", - "parameters": [ - { - "name": "cancelId", - "in": "path", - "description": "The unique eBay-assigned identifier of the cancellation request to be approved.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/cancellation": { "post": { "description": "Request or perform an order cancellation", diff --git a/specs/case_oas3.json b/specs/case_oas3.json index 45c9b1e9..97208a92 100644 --- a/specs/case_oas3.json +++ b/specs/case_oas3.json @@ -39,28 +39,6 @@ } } }, - "/casemanagement/{caseId}/close": { - "post": { - "description": "Buyer closes a case", - "operationId": "closeCase", - "parameters": [ - { - "name": "caseId", - "in": "path", - "description": "The unique identifier of a case. This URI parameter is required in order to identify the case for which an appeal will be filed against. The case is identified by the caseId that is passed in as part of the call URI.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/casemanagement/{caseId}": { "get": { "description": "Retrieve the details related to a specific case", @@ -83,88 +61,6 @@ } } }, - "/casemanagement/{caseId}/issue_refund": { - "post": { - "description": "Seller issues a refund for a case", - "operationId": "issueCaseRefund", - "parameters": [ - { - "name": "caseId", - "in": "path", - "description": "The unique identifier of a case. This URI parameter is required in order to identify the case for which an appeal will be filed against. The case is identified by the caseId that is passed in as part of the call URI.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/casemanagement/{caseId}/provide_shipment_info": { - "post": { - "description": "Buyer provides return shipment information", - "operationId": "provideReturnShipmentInfo", - "parameters": [ - { - "name": "caseId", - "in": "path", - "description": "The unique identifier of a case. This URI parameter is required in order to identify the case for which an appeal will be filed against. The case is identified by the caseId that is passed in as part of the call URI.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "shippingCarrierName", - "in": "body", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "trackingNumber", - "in": "body", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/casemanagement/{caseId}/provide_return_address": { - "post": { - "description": "Seller provides a return address to the buyer", - "operationId": "providesReturnAddress", - "parameters": [ - { - "name": "caseId", - "in": "path", - "description": "The unique identifier of a case. This URI parameter is required in order to identify the case for which an appeal will be filed against. The case is identified by the caseId that is passed in as part of the call URI.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/casemanagement/search": { "get": { "description": "This call is used to search for cases using multiple filter types.", diff --git a/specs/commerce_catalog_v1_beta_oas3.json b/specs/commerce_catalog_v1_beta_oas3.json index fb60433a..46ff2a8f 100644 --- a/specs/commerce_catalog_v1_beta_oas3.json +++ b/specs/commerce_catalog_v1_beta_oas3.json @@ -1,1953 +1,721 @@ { - "openapi": "3.0.0", - "info": { - "title": "Catalog API", - "description": "Use the Catalog API to search the eBay catalog for products on which to base a seller's item listing; to retrieve a product record by its eBay product identifier (ePID); to submit a catalog change request to modify an existing product or create a new product; and to manage catalog change requests.", - "contact": { - "name": "eBay Inc," + "openapi": "3.0.0", + "info": { + "title": "Catalog API", + "description": "The Catalog API allows users to search for and locate an eBay catalog product that is a direct match for the product that they wish to sell. Listing against an eBay catalog product helps insure that all listings (based off of that catalog product) have complete and accurate information. In addition to helping to create high-quality listings, another benefit to the seller of using catalog information to create listings is that much of the details of the listing will be prefilled, including the listing title, the listing description, the item specifics, and a stock image for the product (if available). Sellers will not have to enter item specifics themselves, and the overall listing process is a lot faster and easier.", + "contact": { + "name": "eBay Inc," + }, + "license": { + "name": "eBay API License Agreement", + "url": "https://developer.ebay.com/join/api-license-agreement" + }, + "version": "v1_beta.5.3" }, - "license": { - "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" - }, - "version": "v1_beta.3.1" - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/commerce/catalog/v1_beta" - } - } - } - ], - "paths": { - "/change_request/{change_request_id}": { - "get": { - "tags": [ - "change_request" - ], - "description": "Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be decommissioned in Q1 of 2020. Currently, this method may still return data for a valid change request ID, but the data will be static, the status will not change, and it will not be possible to make any changes to the change request. At any time, it is possible that all catalog change requests for a user will be removed, and then this method will just trigger this error: The specified change request ID was not found. (error code 75150). Use this call to retrieve the contents of a catalog change request based on its unique identifier, change_request_id. The change_request_id value was originally generated by the createChangeRequest call, and is returned by the getChangeRequests call in the changeRequests.changeRequestId field.", - "operationId": "getChangeRequest", - "deprecated": true, - "parameters": [ - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "Use this header to identify the authenticated user's business context. This header is currently limited to EBAY_US, EBAY_AU, EBAY_CA, and EBAY_GB values. If not included with your request, the marketplace value defaults to EBAY_US. Note that it does not indicate a language preference or end-user location.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Accept-Language", - "in": "header", - "description": "Use this header to specify the natural language in which the authenticated user desires the response.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "change_request_id", - "in": "path", - "description": "The unique identifier of the change request being requested. This value was originally generated by the createChangeRequest call, and is returned by the getChangeRequests call in the changeRequests.changeRequestId field.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChangeRequest" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "75007": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces} ." - }, - "75015": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Insufficient permissions to fulfill the request." - }, - "75150": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The specified change request ID was not found." - } - } - } - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "75000": { - "domain": "API_CATALOG", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - } - }, - "/change_request": { - "get": { - "tags": [ - "change_request" - ], - "description": "Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be decommissioned in Q1 of 2020. Currently, this method may still return existing change requests for a user, but the data will be static, the statuses will not change, and it will not be possible to make any changes to any of the change requests. At any time, it is possible that all catalog change requests for a user will be removed, and then this method will just return an empty changeRequests array. Use this call to search for and retrieve one or more catalog change requests that were submitted by the authenticated user based on their creation date, processing status, reference type or reference ID.", - "operationId": "getChangeRequests", - "deprecated": true, - "parameters": [ - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "Use this header to identify the authenticated user's business context. This header is currently limited to EBAY_US, EBAY_AU, EBAY_CA, and EBAY_GB values. If not included with your request, the marketplace value defaults to EBAY_US. Note that it does not indicate a language preference or end-user location.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Accept-Language", - "in": "header", - "description": "Use this header to specify the natural language in which the authenticated user desires the response.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "filter", - "in": "query", - "description": "One or more comma-separated criteria for narrowing down the collection of change requests returned by this call. These criteria correspond to specific fields in the response payload. Multiple filter criteria combine to further restrict the results. The available criteria are as follows: creationDate The time period during which qualifying change requests were created (the changeRequests.creationDate field). In the URI, this is expressed as a starting timestamp, with or without an ending timestamp (in brackets). The timestamps are in ISO 8601 format, which uses the 24-hour Universal Coordinated Time (UTC) clock. For example: creationDate:[2016-02-21T08:25:43.511Z..] identifies orders created on or after the given timestamp. creationDate:[2016-02-21T08:25:43.511Z..2016-04-21T08:25:43.511Z] identifies orders created between the given timestamps, inclusive. changeRequestStatus The degree to which qualifying change requests have been resolved (the changeRequests.changeRequestStatus field). For example: changeRequestStatus:{SUBMITTED} specifies change requests that have been submitted and are being processed. changeRequestStatus:{UNDER_REVIEW|APPROVED_WITH_MODIFICATIONS} specifies change requests that are being reviewed by eBay, and change requests that have been approved, but eBay has made some modifications such as correcting typographic errors. changeRequestStatus:{REJECTED} specifies change requests that have been rejected by eBay because of a violation. referenceId The identifier of an object of the type specified by the value of the referenceType parameter. For example, if the value of referenceType is INVENTORY_ITEM, this field should contain the seller's SKU for an inventory item. If you include this without the referenceType parameter, the filter will apply to objects of any reference type with this reference ID, if specified in the change request. This parameter can take multiple values. For example: referenceId:{234242|675756} referenceType The type of object that a requested catalog change is intended to support, if specified in the change request (the changeRequests.referenceType field). For example: referenceType:{INVENTORY_ITEM} indicates that the requested change will support the completion of an inventory item, which you can then use to create an offer. referenceType:{LISTING} indicates that the requested change will support the modification of an active product listing. referenceType:{LISTING_DRAFT} indicates that the requested change will support the completion of an offer, which you can then publish as a product listing. For implementation help, refer to eBay API documentation at https://developer.ebay.com/devzone/rest/api-ref/catalog/types/FilterField.html", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of change requests to return. This is the result set, a subset of the full collection of change requests that match the filter criteria of this call. Maximum: 200 Default: 50", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "The first change request to return based on its position in the returned collection of change requests. Use this parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the call retrieves change requests 11 thru 20 from the resulting collection of change requests. Note: This feature employs a zero-based list, where the first item in the list has an offset of 0. Default: 0 (zero)", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetChangeRequestsResponse" - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "75002": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The 'offset' value cannot be negative." - }, - "75004": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The 'limit' value should be between 1 and 200 (inclusive)." - }, - "75007": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces} ." - }, - "75015": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Insufficient permissions to fulfill the request." - }, - "75151": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The filter {filterName} is invalid. For more information, see the API call reference documentation." - } - } - } - }, - "403": { - "description": "Forbidden" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "75000": { - "domain": "API_CATALOG", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - }, - "post": { - "tags": [ - "change_request" - ], - "description": "Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be decommissioned in Q1 of 2020. This method is no longer supported for any eBay categories and will return this error if used: Change Request is not supported for this product at this moment. (error code 75157) When sellers are unable to identify an eBay catalog product on which to base their item listing, this call enables you to request that eBay update an existing product record or create a new product record that will successfully match the seller's inventory item.", - "operationId": "createChangeRequest", - "deprecated": true, - "parameters": [ - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "Use this header to identify the authenticated user's business context. This header is currently limited to EBAY_US, EBAY_AU, EBAY_CA, and EBAY_GB values. If not included with your request, the marketplace value defaults to EBAY_US. Note that it does not indicate a language preference or end-user location.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Accept-Language", - "in": "header", - "description": "Use this header to specify the natural language in which the authenticated user desires the response.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "Contains the full details of a specified catalog change request, including the type of request, the reason for a product update request, and the details of the new or updated product being suggested.", - "content": { - "application/json": { - "schema": { - "description": "Contains the full details of a specified catalog change request, including the type of request, the reason for a product update request, and the details of the new or updated product being suggested.", - "$ref": "#/components/schemas/CreateChangeRequestPayload" - } - } - }, - "required": false - }, - "responses": { - "202": { - "description": "Accepted" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "75007": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces} ." - }, - "75008": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Primary Category Id {primaryCategoryId} should not be repeated in Other Applicable Category Ids. For more information, see the API call reference documentation." - }, - "75015": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Insufficient permissions to fulfill the request." - }, - "75152": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The field {fieldName} is invalid. For more information, see the API call reference documentation." - }, - "75153": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The field {fieldName} is missing. For more information, see the API call reference documentation." - }, - "75154": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The field {fieldName} is not required for product creation. For more information, see the API call reference documentation." - }, - "75155": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Aspect values are missing. For more information, see the API call reference documentation." - }, - "75156": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Length of 'reasonForChangeRequest' should not exceed 250 characters." - }, - "75157": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Change Request is not supported for the product at this moment." - } - } - } - }, - "403": { - "description": "Forbidden" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "75000": { - "domain": "API_CATALOG", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - } - }, - "/product/{epid}": { - "get": { - "tags": [ - "product" - ], - "description": "This call retrieves details of the catalog product identified by the eBay product identifier (ePID) specified in the request. These details include the product's title and description, aspects and their values, associated images, applicable category IDs, and any recognized identifiers that apply to the product. For a new listing, you can use the search call to identify candidate products on which to base the listing, then use the getProduct call to present the full details of those candidate products to the seller to makea a final selection.", - "operationId": "getProduct", - "parameters": [ - { - "name": "epid", - "in": "path", - "description": "The ePID of the product being requested. This value can be discovered by issuing the search call and examining the value of the productSummaries.epid field for the desired returned product summary.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Product" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "75007": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces}." - }, - "75010": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The specified EPID value {epid} was not found." - }, - "75011": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The specified EPID value {epid} no longer exists. Its new value is {newepid}." - }, - "75015": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Insufficient permissions to fulfill the request." - }, - "75016": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The specified EPID value {epid} is no longer available." - } - } - } - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "75000": { - "domain": "API_CATALOG", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly" - ] - } - ] - } - }, - "/product_summary/search": { - "get": { - "tags": [ - "product_summary" - ], - "description": "This call searches for and retrieves summaries of one or more products in the eBay catalog that match the search criteria provided by a seller. The seller can use the summaries to select the product in the eBay catalog that corresponds to the item that the seller wants to offer for sale. When a corresponding product is found and adopted by the seller, eBay will use the product information to populate the item listing. The criteria supported by search include keywords, product categories, and category aspects. To see the full details of a selected product, use the getProduct call. In addition to product summaries, this call can also be used to identify refinements, which help you to better pinpoint the product you're looking for. A refinement consists of one or more aspect values and a count of the number of times that each value has been used in previous eBay listings. An aspect is a property (e.g. color or size) of an eBay category, used by sellers to provide details about the items they're listing. The refinement container is returned when you include the fieldGroups query parameter in the request with a value of ASPECT_REFINEMENTS or FULL. Example A seller wants to find a product that is "gray" in color, but doesn't know what term the manufacturer uses for that color. It might be Silver, Brushed Nickel, Pewter, or even Grey. The returned refinement container identifies all aspects that have been used in past listings for products that match your search criteria, along with all of the values those aspects have taken, and the number of times each value was used. You can use this data to present the seller with a histogram of the values of each aspect. The seller can see which color values have been used in the past, and how frequently they have been used, and selects the most likely value or values for their product. You issue the search call again with those values in the aspect_filter parameter to narrow down the collection of products returned by the call. Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. If you provide more than one of these parameters, they will be combined with a logical AND to further refine the returned collection of matching products. Note: This call requires that certain special characters in the query parameters be percent-encoded:     (space) = %20       , = %2C       : = %3A       [ = %5B       ] = %5D       { = %7B       | = %7C       } = %7D This requirement applies to all query parameter values. However, for readability, call examples and samples in this documentation will not use the encoding. This call returns product summaries rather than the full details of the products. To retrieve the full details of a product, use the getProduct call with an ePID.", - "operationId": "search", - "parameters": [ - { - "name": "aspect_filter", - "in": "query", - "description": "An eBay category and one or more aspects of that category, with the values that can be used to narrow down the collection of products returned by this call. Aspects are product attributes that can represent different types of information for different products. Every product has aspects, but different products have different sets of aspects. You can determine appropriate values for the aspects by first submitting this call without this parameter. It will return either the productSummaries.aspects container, the refinement.aspectDistributions container, or both, depending on the value of the fieldgroups parameter in the request. The productSummaries.aspects container provides the category aspects and their values that are associated with each returned product. The refinement.aspectDistributions container provides information about the distribution of values of the set of category aspects associated with the specified categories. In both cases sellers can select from among the returned aspects to use with this parameter. Note: You can also use the Taxonomy API's getItemAspectsForCategory call to retrieve detailed information about aspects and their values that are appropriate for your selected category. The syntax for the aspect_filter parameter is as follows (on several lines for readability; categoryId is required): aspect_filter=categoryId:category_id, aspect1:{valueA|valueB|...}, aspect2:{valueC|valueD|...},... A matching product must be within the specified category, and it must have least one of the values identified for every specified aspect. Note: Aspect names and values are case sensitive. Here is an example of an aspect_filter parameter in which 9355 is the category ID, Color is an aspect of that category, and Black and White are possible values of that aspect (on several lines for readability): GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search? aspect_filter=categoryId:9355,Color:{White|Black} Here is the aspect_filter with required URL encoding and a second aspect (on several lines for readability): GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search? aspect_filter=categoryId:9355,Color:%7BWhite%7CBlack%7D, Storage%20Capacity:%128GB%7C256GB%7D Note: You cannot use the aspect_filter parameter in the same call with either the gtin parameter or the mpn parameter. For implementation help, refer to eBay API documentation at https://developer.ebay.com/devzone/rest/api-ref/catalog/types/AspectFilter.html", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "category_ids", - "in": "query", - "description": "Important: Currently, only the first category_id value is accepted. One or more comma-separated category identifiers for narrowing down the collection of products returned by this call. Note: This parameter requires a valid category ID value. You can use the Taxonomy API's getCategorySuggestions call to retrieve appropriate category IDs for your product based on keywords. The syntax for this parameter is as follows: category_ids=category_id1,category_id2,... Here is an example of a call with the category_ids parameter: GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search? category_ids=178893 Note: Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. If you provide only the category_ids parameter, you cannot specify a top-level (L1) category.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "fieldgroups", - "in": "query", - "description": "The type of information to return in the response. Important: This parameter may not produce valid results if you also provide more than one value for the category_ids parameter. It is recommended that you avoid using this combination. Valid Values: ASPECT_REFINEMENTS — This returns the refinement container, which includes the category aspect and aspect value distributions that apply to the returned products. For example, if you searched for Ford Mustang, some of the category aspects might be Model Year, Exterior Color, Vehicle Mileage, and so on. Note: Aspects are category specific. FULL — This returns all the refinement containers and all the matching products. This value overrides the other values, which will be ignored. MATCHING_PRODUCTS — This returns summaries for all products that match the values you provide for the q and category_ids parameters. This does not affect your use of the ASPECT_REFINEMENTS value, which you can use in the same call. Code so that your app gracefully handles any future changes to this list. Default: MATCHING_PRODUCTS", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "gtin", - "in": "query", - "description": "A string consisting of one or more comma-separated Global Trade Item Numbers (GTINs) that identify products to search for. Currently the GTIN values can include EAN, ISBN, and UPC identifier types. Note: Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. You cannot use the gtin parameter in the same call with either the q parameter or the aspect_filter parameter.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of product summaries to return. This is the result set, a subset of the full collection of products that match the search or filter criteria of this call. Maximum: 200 Default: 50", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "mpn", - "in": "query", - "description": "A string consisting of one or more comma-separated Manufacturer Part Numbers (MPNs) that identify products to search for. This call will return all products that have one of the specified MPNs. MPNs are defined by manufacturers for their own products, and are therefore certain to be unique only within a given brand. However, many MPNs do turn out to be globally unique. Note: Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. You cannot use the mpn parameter in the same call with either the q parameter or the aspect_filter parameter.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "This parameter is reserved for internal or future use.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "q", - "in": "query", - "description": "A string consisting of one or more keywords to use to search for products in the eBay catalog. Note: This call searches the following product record fields: title, description, brand, and aspects.localizedName, which do not include product IDs. Wildcard characters (e.g. *) are not allowed. The keywords are handled as follows: If the keywords are separated by a comma (e.g. iPhone,256GB), the query returns products that have iPhone AND 256GB. If the keywords are separated by a space (e.g. "iPhone ipad" or "iPhone, ipad"), the query ignores any commas and returns products that have iPhone OR iPad. Note: Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. You cannot use the q parameter in the same call with either the gtin parameter or the mpn parameter.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProductSearchResponse" - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "75001": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The call must have a valid 'q', or 'category_ids' or 'gtin' or 'mpn' query parameter." - }, - "75004": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The 'limit' value should be between 1 and 200 (inclusive)." - }, - "75006": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Top level category browsing is not allowed. Please provide keywords or more filters for the applied top level category." - }, - "75007": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces} ." - }, - "75008": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The 'fieldgroups' value {fieldgroups} is invalid. The supported fieldgroups are: {supportedFieldgroups}" - }, - "75012": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The aspect_filter format is invalid. For more information, see the API call reference documentation." - }, - "75013": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The 'aspect_filter' query parameter must include a categoryId. For more information, see the API call reference documentation." - }, - "75014": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The categoryId in 'aspect_filter' query parameter is invalid. For more information, see the API call reference documentation." - }, - "75015": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Insufficient permissions to fulfill the request." - }, - "75017": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The specified GTIN value is invalid." - }, - "75018": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The call must be made with either 'q' or 'gtin/mpn'." - }, - "75019": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The call with 'gtin/mpn' cannot be made with aspect_filter." - } - } - } - }, - "403": { - "description": "Forbidden" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "75000": { - "domain": "API_CATALOG", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly" - ] - } - ] - } - }, - "/get_product_metadata": { - "get": { - "tags": [ - "product_metadata" - ], - "description": "This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified catalog product and its associated or suggested categories, as well as the values currently associated with that product. The array is a union (with duplicates removed) of all returned aspects. After using the search and getProduct calls to find a catalog product that matches a seller's inventory item, you may discover a matching product, but determine that one or more product details are missing or inaccurate. You can propose updates to the product's aspects and aspect values for the catalog by taking the following steps: Use the Taxonomy API's category_tree calls to discover the appropriate category or categories for the seller's inventory item. See Finding categories for a listing or promotion. Use getProductMetadata to determine the aspects of your selected categories and the values of those aspects that should be added to the aspects and values already associated with your product. Use the createChangeRequest call to to submit a change request to update the product in the eBay catalog for your seller's marketplace. Note: The X-EBAY-C-MARKETPLACE-ID request header is required to identify the user's business context. The eBay Product Identifier (ePID) for a catalog product is also required and is specified through the epid query parameter.", - "operationId": "getProductMetadata", - "parameters": [ - { - "name": "Accept-Language", - "in": "header", - "description": "This request header sets the natural language that will be provided in the field values of the response payload. Supported values for this header can be found in the Marketplace ID and language header values table.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "epid", - "in": "query", - "description": "The unique eBay product identifier of the catalog product that you want to update. The supported and applied aspects, constraints, and values for this eBay catalog product are returned.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "other_applicable_category_ids", - "in": "query", - "description": "Use only if you are also including the primary_category_id parameter in the request. Provide one or more comma-separated category IDs in this parameter. Sellers can use other_applicable_category_ids to retrieve information about the specified categories' associated aspects, constraints, and values, along with the same information for the category specified in the primary_category_id parameter, for the seller to assess, select, and populate for submission with the createChangeRequest call. eBay category IDs are returned by the Taxonomy API's category_tree calls.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "primary_category_id", - "in": "query", - "description": "Use only if the seller believes this product is associated with the wrong primary category. Use this parameter to submit the unique identifier of the primary category that the seller wants to use instead. This call retrieves information about the specified category's associated aspects, constraints, and values for the seller to assess, select, and populate for submission with the Catalog API's createChangeRequest call. If you exclude this parameter from your request, this call retrieves information about the aspects, constraints, and values of the specified product's current primary category and other applicable categories. If you include this parameter in your request, this call does not return any information about the specified product's current primary or other applicable categories, but only about the specified category. To retrieve information about any other categories, you must specify them with the other_applicable_category_ids parameter. eBay category IDs are returned by the Taxonomy API's category_tree calls.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "Use this header to specify the eBay marketplace identifier. Supported values for this header can be found in the MarketplaceIdEnum type definition.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProductMetadata" - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "75007": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces}" - }, - "75040": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The specified category ID is invalid." - }, - "75042": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Missing query param ePID." - }, - "75043": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The specified ePID is invalid." - }, - "75044": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The field Primary category Id is required when Other Applicable Category Ids is present." - }, - "75045": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The maximum number of Other Applicable Category Ids allowed is 4." + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/catalog/v1_beta" } - } } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "75000": { - "domain": "API_CATALOG", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + } + ], + "paths": { + "/product/{epid}": { + "get": { + "tags": [ + "product" + ], + "description": "This method retrieves details of the catalog product identified by the eBay product identifier (ePID) specified in the request. These details include the product's title and description, aspects and their values, associated images, applicable category IDs, and any recognized identifiers that apply to the product.

For a new listing, you can use the search method to identify candidate products on which to base the listing, then use the getProduct method to present the full details of those candidate products to the seller to make a a final selection.", + "operationId": "getProduct", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This method also uses the X-EBAY-C-MARKETPLACE-ID header to identify the seller's eBay marketplace. It is required for all supported marketplaces, except EBAY_US, which is the default.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "epid", + "in": "path", + "description": "The eBay product identifier (ePID) of the product being requested. This value can be discovered by issuing the search method and examining the value of the productSummaries.epid field for the desired returned product summary.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Product" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "75007": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces}." + }, + "75010": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The specified EPID value {epid} was not found." + }, + "75011": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The specified EPID value {epid} no longer exists. Its new value is {newepid}." + }, + "75015": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "Insufficient permissions to fulfill the request." + }, + "75016": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The specified EPID value {epid} is no longer available." + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "75000": { + "domain": "API_CATALOG", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly" + ] + } + ] + } + }, + "/product_summary/search": { + "get": { + "tags": [ + "product_summary" + ], + "description": "This method searches for and retrieves summaries of one or more products in the eBay catalog that match the search criteria provided by a seller. The seller can use the summaries to select the product in the eBay catalog that corresponds to the item that the seller wants to offer for sale. When a corresponding product is found and adopted by the seller, eBay will use the product information to populate the item listing. The criteria supported by search include keywords, product categories, and category aspects. To see the full details of a selected product, use the getProduct call.

In addition to product summaries, this method can also be used to identify refinements, which help you to better pinpoint the product you're looking for. A refinement consists of one or more aspect values and a count of the number of times that each value has been used in previous eBay listings. An aspect is a property (e.g. color or size) of an eBay category, used by sellers to provide details about the items they're listing. The refinement container is returned when you include the fieldGroups query parameter in the request with a value of ASPECT_REFINEMENTS or FULL.

Example
A seller wants to find a product that is \"gray\" in color, but doesn't know what term the manufacturer uses for that color. It might be Silver, Brushed Nickel, Pewter, or even Grey. The returned refinement container identifies all aspects that have been used in past listings for products that match your search criteria, along with all of the values those aspects have taken, and the number of times each value was used. You can use this data to present the seller with a histogram of the values of each aspect. The seller can see which color values have been used in the past, and how frequently they have been used, and selects the most likely value or values for their product. You issue the search method again with those values in the aspect_filter parameter to narrow down the collection of products returned by the call.


Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. If you provide more than one of these parameters, they will be combined with a logical AND to further refine the returned collection of matching products.

Note: This method requires that certain special characters in the query parameters be percent-encoded:

    (space) = %20       , = %2C       : = %3A       [ = %5B       ] = %5D       { = %7B       | = %7C       } = %7D

This requirement applies to all query parameter values. However, for readability, method examples and samples in this documentation will not use the encoding.


This method returns product summaries rather than the full details of the products. To retrieve the full details of a product, use the getProduct method with an ePID.", + "operationId": "search", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This method also uses the X-EBAY-C-MARKETPLACE-ID header to identify the seller's eBay marketplace. It is required for all supported marketplaces, except EBAY_US, which is the default. ", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "aspect_filter", + "in": "query", + "description": "An eBay category and one or more aspects of that category, with the values that can be used to narrow down the collection of products returned by this call.

Aspects are product attributes that can represent different types of information for different products. Every product has aspects, but different products have different sets of aspects.

You can determine appropriate values for the aspects by first submitting this method without this parameter. It will return either the productSummaries.aspects container, the refinement.aspectDistributions container, or both, depending on the value of the fieldgroups parameter in the request. The productSummaries.aspects container provides the category aspects and their values that are associated with each returned product. The refinement.aspectDistributions container provides information about the distribution of values of the set of category aspects associated with the specified categories. In both cases sellers can select from among the returned aspects to use with this parameter.

Note: You can also use the Taxonomy API's getItemAspectsForCategory method to retrieve detailed information about aspects and their values that are appropriate for your selected category.

The syntax for the aspect_filter parameter is as follows (on several lines for readability; categoryId is required):

aspect_filter=categoryId:category_id,
aspect1:{valueA|valueB|...},
aspect2:{valueC|valueD|...},.


A matching product must be within the specified category, and it must have least one of the values identified for every specified aspect.

Note: Aspect names and values are case sensitive.

Here is an example of an aspect_filter parameter in which 9355 is the category ID, Color is an aspect of that category, and Black and White are possible values of that aspect (on several lines for readability):

GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search?
aspect_filter=categoryId:9355,Color:{White|Black}


Here is the aspect_filter with required URL encoding and a second aspect (on several lines for readability):

GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search?
aspect_filter=categoryId:9355,Color:%7BWhite%7CBlack%7D,
Storage%20Capacity:%128GB%7C256GB%7D


Note: You cannot use the aspect_filter parameter in the same method with either the gtin parameter or the mpn parameter. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/commerce/catalog/types/catal:AspectFilter", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "category_ids", + "in": "query", + "description": " Important: Currently, only the first category_id value is accepted.

One or more comma-separated category identifiers for narrowing down the collection of products returned by this call.

Note: This parameter requires a valid category ID value. You can use the Taxonomy API's getCategorySuggestions method to retrieve appropriate category IDs for your product based on keywords.

The syntax for this parameter is as follows:

category_ids=category_id1,category_id2,.

Here is an example of a method with the category_ids parameter:

GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search?
category_ids=178893


Note: Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value.

If you provide only the category_ids parameter, you cannot specify a top-level (L1) category.
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "fieldgroups", + "in": "query", + "description": "The type of information to return in the response.

Important: This parameter may not produce valid results if you also provide more than one value for the category_ids parameter. It is recommended that you avoid using this combination.

Valid Values: Code so that your app gracefully handles any future changes to this list.

Default: MATCHING_PRODUCTS", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "gtin", + "in": "query", + "description": "A string consisting of one or more comma-separated Global Trade Item Numbers (GTINs) that identify products to search for. Currently the GTIN values can include EAN, ISBN, and UPC identifier types.

Note: Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value.

You cannot use the gtin parameter in the same method with either the q parameter or the aspect_filter parameter.
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The number of product summaries to return. This is the result set, a subset of the full collection of products that match the search or filter criteria of this call.

Maximum: 200
Default: 50", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "mpn", + "in": "query", + "description": "A string consisting of one or more comma-separated Manufacturer Part Numbers (MPNs) that identify products to search for. This method will return all products that have one of the specified MPNs.

MPNs are defined by manufacturers for their own products, and are therefore certain to be unique only within a given brand. However, many MPNs do turn out to be globally unique.

Note: Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value.

You cannot use the mpn parameter in the same method with either the q parameter or the aspect_filter parameter.
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "This parameter is reserved for internal or future use.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "q", + "in": "query", + "description": "A string consisting of one or more keywords to use to search for products in the eBay catalog.

Note: This method searches the following product record fields: title, description, brand, and aspects.localizedName, which do not include product IDs. Wildcard characters (e.g. *) are not allowed.

The keywords are handled as follows: Note: Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value.

You cannot use the q parameter in the same method with either the gtin parameter or the mpn parameter.
", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductSearchResponse" + } + } + } + }, + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "75001": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The call must have a valid 'q', or 'category_ids' or 'gtin' or 'mpn' query parameter." + }, + "75004": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The 'limit' value should be between 1 and 200 (inclusive)." + }, + "75006": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "Top level category browsing is not allowed. Please provide keywords or more filters for the applied top level category." + }, + "75007": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces} ." + }, + "75008": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The 'fieldgroups' value {fieldgroups} is invalid. The supported fieldgroups are: {supportedFieldgroups}" + }, + "75012": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The aspect_filter format is invalid. For more information, see the API call reference documentation." + }, + "75013": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The 'aspect_filter' query parameter must include a categoryId. For more information, see the API call reference documentation." + }, + "75014": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The categoryId in 'aspect_filter' query parameter is invalid. For more information, see the API call reference documentation." + }, + "75015": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "Insufficient permissions to fulfill the request." + }, + "75017": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The specified GTIN value is invalid." + }, + "75018": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The call must be made with either 'q' or 'gtin/mpn'." + }, + "75019": { + "domain": "API_CATALOG", + "category": "REQUEST", + "description": "The call with 'gtin/mpn' cannot be made with aspect_filter." + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "75000": { + "domain": "API_CATALOG", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly" + ] + } + ] } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } + } }, - "/get_product_metadata_for_categories": { - "get": { - "tags": [ - "product_metadata" - ], - "description": "This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified eBay categories. The array is a union (with duplicates removed) of all returned aspects. After using the search and getProduct calls to find a catalog product that matches a seller's inventory item, you may determine that a matching product does not exist in the eBay catalog. You can propose a new product for the catalog by taking the following steps: Use the Taxonomy API's category_tree calls to discover the appropriate category or categories for the seller's inventory item. See Finding categories for a listing or promotion. Use getProductMetadataForCategories to determine the aspects of your selected categories that should be associated with your new product. Use the createChangeRequest call to to submit a change request to add the new product to the eBay catalog for your seller's marketplace. Note: The X-EBAY-C-MARKETPLACE-ID request header is required to identify the user's business context. At least one eBay category ID is required and is specified through the primary_category_id query parameter.", - "operationId": "getProductMetadataForCategories", - "parameters": [ - { - "name": "Accept-Language", - "in": "header", - "description": "This request header sets the natural language that will be provided in the field values of the response payload. Supported values for this header can be found in the Marketplace ID and language header values table.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "other_applicable_category_ids", - "in": "query", - "description": "A string of comma-separated category IDs. if sellers want to specify more than the primary category under which to offer a product, they can use this parameter to retrieve the aspects associated with all of the additional specified categories. eBay category IDs are returned by the Taxonomy API's category_tree calls.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "primary_category_id", - "in": "query", - "description": "The unique identifier of the primary eBay category for which you will retrieve product aspects. eBay category IDs are returned by the Taxonomy API's category_tree calls.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "Use this header to specify the eBay marketplace identifier. Supported values for this header can be found under Supported marketplaces on the Catalog API Overview page.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProductMetadataForCategories" - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "75007": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Currently, the {marketplaceId} marketplace is not supported. The supported Marketplaces are: {allowedMarketplaces}" - }, - "75040": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The specified category ID is invalid." - }, - "75041": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "Missing query param primary category ID." - }, - "75045": { - "domain": "API_CATALOG", - "category": "REQUEST", - "description": "The maximum number of Other Applicable Category Ids allowed is 4." + "components": { + "schemas": { + "Aspect": { + "type": "object", + "properties": { + "localizedName": { + "type": "string", + "description": "The localized name of this category aspect." + }, + "localizedValues": { + "type": "array", + "description": "A list of the localized values of this category aspect.", + "items": { + "type": "string" + } + } + }, + "description": "This type contains the name and values of a category aspect." + }, + "AspectDistribution": { + "type": "object", + "properties": { + "aspectValueDistributions": { + "type": "array", + "description": "Contains information about one or more values of the category aspect identified by localizedAspectName. ", + "items": { + "$ref": "#/components/schemas/AspectValueDistribution" + } + }, + "localizedAspectName": { + "type": "string", + "description": "The localized name of an aspect that is associated with the category identified by dominantCategoryId." + } + }, + "description": "This type contains information about one category aspect that is associated with a specified category." + }, + "AspectValueDistribution": { + "type": "object", + "properties": { + "localizedAspectValue": { + "type": "string", + "description": "The localized value of the category aspect identified by refinement.aspectDistributions.localizedAspectName." + }, + "matchCount": { + "type": "integer", + "description": "The number of times the value of localizedAspectValue has been used for eBay product listings. By comparing this quantity to the matchCount for other values of the same aspect, you can present a histogram of the values to sellers, who can use that information to select which aspect value is most appropriate for their product. You can then include the user-selected value in the the search call's aspect_filter parameter to refine your search.", + "format": "int32" + }, + "refinementHref": { + "type": "string", + "description": "A HATEOAS reference that further refines the search with this particular localizedAspectValue." + } + }, + "description": "This type contains information about one value of a specified aspect. This value serves as a product refinement." + }, + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Identifies the type of erro." + }, + "domain": { + "type": "string", + "description": "Name for the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique number to identify the error.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A more detailed explanation of the error." + }, + "message": { + "type": "string", + "description": "Information on how to correct the problem, in the end user's terms and language where applicable." + }, + "outputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." + } + }, + "description": "This type defines the fields that can be returned in an error." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The object of the error." + }, + "value": { + "type": "string", + "description": "The value of the object." + } } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "75000": { - "domain": "API_CATALOG", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + }, + "Image": { + "type": "object", + "properties": { + "height": { + "type": "integer", + "description": "The height of the image in pixels.", + "format": "int32" + }, + "imageUrl": { + "type": "string", + "description": "The eBay Picture Services (EPS) URL of the image." + }, + "width": { + "type": "integer", + "description": "The width of the image in pixels.", + "format": "int32" + } + }, + "description": "This type contains information about a product image stored in eBay Picture Services (EPS)." + }, + "Product": { + "type": "object", + "properties": { + "additionalImages": { + "type": "array", + "description": "Contains information about additional images associated with this product. For the primary image, see the image container.", + "items": { + "$ref": "#/components/schemas/Image" + } + }, + "aspects": { + "type": "array", + "description": "Contains an array of the category aspects and their values that are associated with this product.", + "items": { + "$ref": "#/components/schemas/Aspect" + } + }, + "brand": { + "type": "string", + "description": "The manufacturer's brand name for this product." + }, + "compatibilityCount": { + "type": "integer", + "description": "The number of distinct motor vehicles that are compatible with the product.

This field is only applicable for and will only be returned for Parts & Accessory products on the eBay US Motors marketplace.", + "format": "int32" + }, + "description": { + "type": "string", + "description": "The rich description of this product, which might contain HTML." + }, + "ean": { + "type": "array", + "description": "A list of all European Article Numbers (EANs) that identify this product.", + "items": { + "type": "string" + } + }, + "epid": { + "type": "string", + "description": "The eBay product ID of this product." + }, + "gtin": { + "type": "array", + "description": "A list of all GTINs that identify this product. Currently this can include EAN, ISBN, and UPC identifier types.", + "items": { + "type": "string" + } + }, + "image": { + "description": "Contains information about the primary image of this product. For more images of this product, see the additionalImages container.", + "$ref": "#/components/schemas/Image" + }, + "isbn": { + "type": "array", + "description": "A list of all International Standard Book Numbers (ISBNs) that identify this product. ", + "items": { + "type": "string" + } + }, + "mpn": { + "type": "array", + "description": "A list of all MPN values that the manufacturer uses to identify this product.", + "items": { + "type": "string" + } + }, + "otherApplicableCategoryIds": { + "type": "array", + "description": "A list of category IDs (other than the value of primaryCategoryId) for all the leaf categories to which this product might belong.", + "items": { + "type": "string" + } + }, + "primaryCategoryId": { + "type": "string", + "description": "The identifier of the leaf category that eBay recommends using to list this product, based on previous listings of similar products. Products in the eBay catalog are not automatically associated with any particular category, but using an inappropriate category can make it difficult for prospective buyers to find the product. For other possible categories that might be used, see otherApplicableCategoryIds." + }, + "productWebUrl": { + "type": "string", + "description": "The URL for this product's eBay product page." + }, + "title": { + "type": "string", + "description": "The title of this product on eBay." + }, + "upc": { + "type": "array", + "description": "A list of Universal Product Codes (UPCs) that identify this product.", + "items": { + "type": "string" + } + }, + "version": { + "type": "string", + "description": "The current version number of this product record in the catalog." + } + }, + "description": "This type contains the full details of a specified product, including information about the product's identifiers, product images, aspects, and categories." + }, + "ProductSearchResponse": { + "type": "object", + "properties": { + "href": { + "type": "string", + "description": "This field is reserved for internal or future use. " + }, + "limit": { + "type": "integer", + "description": "The number of product summaries returned in the response. This is the result set, a subset of the full collection of products that match the search or filter criteria of this call. If the limit query parameter was included in the request, this field will have the same value.

Default: 50", + "format": "int32" + }, + "next": { + "type": "string", + "description": "This field is reserved for internal or future use. " + }, + "offset": { + "type": "integer", + "description": "This field is reserved for internal or future use. ", + "format": "int32" + }, + "prev": { + "type": "string", + "description": "This field is reserved for internal or future use. " + }, + "productSummaries": { + "type": "array", + "description": "Returned if the fieldGroups query parameter was omitted from the request, or if it was included with a value of MATCHING_PRODUCTS or FULL. This container provides an array of product summaries in the current result set for products that match the combination of the q, category_ids, and aspect_filter parameters that were provided in the request. Each product summary includes information about the product's identifiers, product images, aspects, the product page URL, and the getProduct URL for retrieving the product details.", + "items": { + "$ref": "#/components/schemas/ProductSummary" + } + }, + "refinement": { + "description": "Returned only if the fieldGroups query parameter was included in the request with a value of ASPECT_REFINEMENTS or FULL.

An aspect is a property of a category, used by sellers to provide details about the items they're listing. For example, the Cell Phones & Smartphones category (#9355) includes a Storage Capacity aspect.

This container provides information about the distribution of values of a set of category aspects. The category aspects are those associated with the category that eBay determines is most likely to cover the products that match the search criteria.", + "$ref": "#/components/schemas/Refinement" + }, + "total": { + "type": "integer", + "description": "This field is reserved for internal or future use. ", + "format": "int32" + } + }, + "description": "This type contains the specifications for the collection of products that match the search or filter criteria of a search call. A maximum of 200 product summaries is returned (the result set), fewer if you include the limit query parameter in the request. " + }, + "ProductSummary": { + "type": "object", + "properties": { + "additionalImages": { + "type": "array", + "description": "Contains information about additional images associated with this product. For the primary image, see the image container.", + "items": { + "$ref": "#/components/schemas/Image" + } + }, + "aspects": { + "type": "array", + "description": "Contains an array of the category aspects and their values that are associated with this product.", + "items": { + "$ref": "#/components/schemas/Aspect" + } + }, + "brand": { + "type": "string", + "description": "The manufacturer's brand name for this product." + }, + "ean": { + "type": "array", + "description": "A list of all European Article Numbers (EANs) that identify this product.", + "items": { + "type": "string" + } + }, + "epid": { + "type": "string", + "description": "The eBay product ID of this product." + }, + "gtin": { + "type": "array", + "description": "A list of all GTINs that identify this product. This includes all of the values returned in the ean, isbn, and upc fields.", + "items": { + "type": "string" + } + }, + "image": { + "description": "Contains information about the primary image of this product. For more images of this product, see the additionalImages container.", + "$ref": "#/components/schemas/Image" + }, + "isbn": { + "type": "array", + "description": "A list of all International Standard Book Numbers (ISBNs) that identify this product.", + "items": { + "type": "string" + } + }, + "mpn": { + "type": "array", + "description": "A list of all Manufacturer Product Number (MPN) values that the manufacturer uses to identify this product.", + "items": { + "type": "string" + } + }, + "productHref": { + "type": "string", + "description": "The URI of the getProduct call request that retrieves this product's details." + }, + "productWebUrl": { + "type": "string", + "description": "The URL for this product's eBay product page." + }, + "title": { + "type": "string", + "description": "The title of this product on eBay." + }, + "upc": { + "type": "array", + "description": "A list of Universal Product Codes (UPCs) that identify this product.", + "items": { + "type": "string" + } + } + }, + "description": "This type contains a summary of a specified product. The product summary includes information about the product's identifiers, product images, aspects, and the getProduct URL for retrieving the product details." + }, + "Refinement": { + "type": "object", + "properties": { + "aspectDistributions": { + "type": "array", + "description": "Contains information about one or more aspects that are associated with the category identified by dominantCategoryId.", + "items": { + "$ref": "#/components/schemas/AspectDistribution" + } + }, + "dominantCategoryId": { + "type": "string", + "description": "The ID of the category that eBay determines is most likely to cover the products matching the search criteria." + } + }, + "description": "This type identifies a product category and the aspects associated with that category. Each aspect distribution container returns the distribution of values that have been used for the aspect." + } + }, + "securitySchemes": { + "api_auth": { + "type": "oauth2", + "description": "The security definitions for this API. Please check individual operations for applicable scopes.", + "flows": { + "authorizationCode": { + "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly": " This scope would allow signed in user to read catalog data.", + "https://api.ebay.com/oauth/api_scope/sell.inventory": "View and manage your inventory and offers" + } + } } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - } - }, - "components": { - "schemas": { - "Aspect": { - "type": "object", - "properties": { - "localizedName": { - "type": "string", - "description": "The localized name of this category aspect." - }, - "localizedValues": { - "type": "array", - "description": "A list of the localized values of this category aspect.", - "items": { - "type": "string" - } - } - }, - "description": "This type contains the name and values of a category aspect." - }, - "AspectDistribution": { - "type": "object", - "properties": { - "aspectValueDistributions": { - "type": "array", - "description": "Contains information about one or more values of the category aspect identified by localizedAspectName.", - "items": { - "$ref": "#/components/schemas/AspectValueDistribution" - } - }, - "localizedAspectName": { - "type": "string", - "description": "The localized name of an aspect that is associated with the category identified by dominantCategoryId." - } - }, - "description": "This type contains information about one category aspect that is associated with a specified category." - }, - "AspectValueDistribution": { - "type": "object", - "properties": { - "localizedAspectValue": { - "type": "string", - "description": "The localized value of the category aspect identified by refinement.aspectDistributions.localizedAspectName." - }, - "matchCount": { - "type": "integer", - "description": "The number of times the value of localizedAspectValue has been used for eBay product listings. By comparing this quantity to the matchCount for other values of the same aspect, you can present a histogram of the values to sellers, who can use that information to select which aspect value is most appropriate for their product. You can then include the user-selected value in the the search call's aspect_filter parameter to refine your search.", - "format": "int32" - }, - "refinementHref": { - "type": "string", - "description": "A HATEOAS reference that further refines the search with this particular localizedAspectValue." - } - }, - "description": "This type contains information about one value of a specified aspect. This value serves as a product refinement." - }, - "CategoryAspect": { - "type": "object", - "properties": { - "aspectHelpText": { - "type": "string", - "description": "Returned only if this field is populated. This provides information and context for the category aspect. The help text can be presented to the seller to clarify the intended purpose of this aspect, and recommendations for its use. For example, the help text for the Country/Region of Manufacture aspect is: Specifying the country/region of manufacture can help streamline customs clearance." - }, - "constraint": { - "description": "Contains information about the input and formatting constraints of the category aspect, including the data type and format, input mode, occurrence, and cardinality.", - "$ref": "#/components/schemas/ProductAspectConstraint" - }, - "name": { - "type": "string", - "description": "The name of the category aspect." - }, - "values": { - "type": "array", - "description": "Not returned if the value of the constraint field is FREE_TEXT and there are no stored values for this aspect. Contains information about one or more supported values for the category identified by the name field), as well as constraint information for those values.", - "items": { - "$ref": "#/components/schemas/CategoryAspectValue" - } - } - }, - "description": "This type contains detailed information about each required and recommended aspect associated with an eBay category. These details include the aspect name, supported/possible values, and constraint information." - }, - "CategoryAspectValue": { - "type": "object", - "properties": { - "value": { - "type": "string", - "description": "A supported value of the corresponding category aspect (shown in the aspects.name field). Every supported value for the category aspect is shown in the aspects.values container." - }, - "valueConstraints": { - "type": "array", - "description": "Not returned if the value of the value field can always be selected for this aspect of the specified category (that is, when no constraints apply to using the value). Contains a list of the dependencies that identify when the value of the value field is available for the current aspect. Each dependency specifies the values of another aspect of the same category (a control aspect), for which the current value of the current aspect can also be selected by the seller. Example: A shirt is available in three sizes and three colors, but only the Small and Medium sizes come in Green. Thus for the Color aspect, the value Green is constrained by its dependency on Size (the control aspect). Only when the Size aspect value is Small or Medium, can the Color aspect value of Green be selected by the seller.", - "items": { - "$ref": "#/components/schemas/ValueConstraint" - } - } - }, - "description": "This type contains the supported values for a given category aspect name, as well as constraint information for specified category aspect values for a product." - }, - "ChangeRequest": { - "type": "object", - "properties": { - "changeRequestId": { - "type": "string", - "description": "The unique identifier of this change request. This value was originally generated by the createChangeRequest call and returned in the location code of that call's HTTP response header." - }, - "changeRequestStatus": { - "type": "string", - "description": "The current processing status of this change request. If the value of this field is APPROVED_WITH_MODIFICATIONS, the change request has been approved with one or more modifications applied by eBay. Check the processResolution.corrections response object for details about the modifications. If the value of this field is REJECTED, the change request has been rejected for violating eBay standards or for conflicting with an existing product record. Check the processResolution.violations response object for details about the rejection. Available values: APPROVED — Upon review, the change request has been approved as submitted. APPROVED_WITH_MODIFICATIONS — Upon review, the change request has been approved with one or more corrections applied by eBay. Check the processResolution.corrections response object for details about the modifications. REJECTED — Upon review, the change request has been rejected for a conflict with an existing catalog product, or for violating eBay standards. Check the processResolution.violations response object for details about the rejection. SUBMITTED — The change request has been submitted and is being processed. UNDER_EXTENDED_REVIEW — After one hour of review, the change request is under extended review by eBay. UNDER_REVIEW — Upon submission/processing, the change request is under review by eBay. This typically takes up to one hour. For implementation help, refer to eBay API documentation" - }, - "changeRequestType": { - "type": "string", - "description": "The type of catalog modification being requested by this change request. Available values: PRODUCT_CREATION — Change request to create a new product PRODUCT_UPDATE — Change request to update an existing product For implementation help, refer to eBay API documentation" - }, - "creationDate": { - "type": "string", - "description": "The creation date of this change request." - }, - "expectedCompletionDate": { - "type": "string", - "description": "eBay's estimate of the completion date of this change request." - }, - "processResolution": { - "description": "Returned if the value of changeRequestStatus is one of the following: APPROVED APPROVED_WITH_MODIFICATIONS — Indicates that the product was created or updated by eBay with certain corrections applied to its attributes or aspects. REJECTED — Indicates that the suggested product either conflicts with existing products or violates eBay standards. This container provides details of conflicting products, corrections required, or violations that were discovered in this change request", - "$ref": "#/components/schemas/ProcessResolution" - }, - "processStatusMessage": { - "type": "string", - "description": "A text description and explanation of the status indicated by the changeRequestStatus field." - }, - "reasonForChangeRequest": { - "type": "string", - "description": "A text description of why this change request was submitted." - }, - "referenceId": { - "type": "string", - "description": "Returned if the referenceType field is returned in the response. This is the identifier of an object of the type specified by the value of referenceType. For example, if the value of referenceType is INVENTORY_ITEM, this field should contain the seller's SKU for an inventory item." - }, - "referenceType": { - "type": "string", - "description": "Returned if this field was included in the the createChangeRequest call. This specifies the type of eBay object that the seller wants to create or update using the requested change. It applies to objects that are incomplete due to the need for a matching catalog product. Providing a referenceType and a referenceId in a catalog change request enables eBay to automatically apply the resulting new or updated product directly to the specified object without requiring additional action on your part. Available values: INVENTORY_ITEM — The requested change will support the completion of an inventory item, which you can then use to create an offer. LISTING — The requested change will support the modification of an active product listing. LISTING_DRAFT — The requested change will support the completion of an offer, which you can then publish as a product listing. For implementation help, refer to eBay API documentation" - }, - "resolutionDate": { - "type": "string", - "description": "Returned if the value of changeRequestStatus is APPROVED, APPROVED_WITH_MODIFICATIONS, or REJECTED. This is the date that the change request was resolved." - }, - "suggestedProduct": { - "description": "Contains the full details of the suggested product, including information about the product's identifiers, description, product images, categories, and aspects.", - "$ref": "#/components/schemas/SuggestedProduct" - } - }, - "description": "This type contains the full details of a specified catalog change request, including the original payload of the createChangeRequest call, processing status and key dates, and resolution details." - }, - "ConflictingProduct": { - "type": "object", - "properties": { - "conflictCode": { - "type": "string", - "description": "The eBay assigned identifier of this conflict." - }, - "differentiatingAspects": { - "type": "array", - "description": "Contains information about one or more aspects of the conflicting product, which the seller's change request either duplicates or provides similar values. The seller should either accept the conflicting product's aspects and values and adopt the product as is, or submit a change request to create or update a product that doesn't conflict with an existing product record.", - "items": { - "$ref": "#/components/schemas/ProductAspect" - } - }, - "epid": { - "type": "string", - "description": "The eBay product ID of the conflicting catalog product." - }, - "reason": { - "type": "string", - "description": "The reason for this conflict." - } - }, - "description": "This type contains information about an existing catalog product that presents a conflict with a seller's suggested product." - }, - "Correction": { - "type": "object", - "properties": { - "aspectValues": { - "description": "Returned only if the value of corrections.productAttribute.attributeName is ASPECT_NAME. Contains the name and values of a product aspect that has been corrected by eBay in this change request.", - "$ref": "#/components/schemas/CorrectionAspectValues" - }, - "correctionCode": { - "type": "string", - "description": "The eBay-assigned identifier of the correction type for this correction." - }, - "productAttribute": { - "description": "Contains the name of a particular product attribute with an incorrect value, and if the name is not ASPECT_NAME (a product aspect), the incorrect and correct values of the attribute. For correction information about a product aspect, see the corrections.aspectValues container.", - "$ref": "#/components/schemas/CorrectionProductAttribute" - }, - "reason": { - "type": "string", - "description": "The reason why this correction is required." - } - }, - "description": "This type contains information about a correction that eBay has applied to the suggested product in a change request." - }, - "CorrectionAspectValue": { - "type": "object", - "properties": { - "newValue": { - "type": "string", - "description": "The aspect's correct value" - }, - "value": { - "type": "string", - "description": "The aspect's current incorrect value." - } - }, - "description": "This type contains a value of a given eBay product aspect which must be corrected, along with the correct value." - }, - "CorrectionAspectValues": { - "type": "object", - "properties": { - "aspectName": { - "type": "string", - "description": "The localized name of this product aspect that requires correction, such as Model Number, Size, or Color." - }, - "values": { - "type": "array", - "description": "A list of one or more values of this product aspect that must be corrected.", - "items": { - "$ref": "#/components/schemas/CorrectionAspectValue" - } - } - }, - "description": "This type identifies a product aspect that requires correction in a catalog change request, along with its aspect values that must be corrected." - }, - "CorrectionProductAttribute": { - "type": "object", - "properties": { - "attributeName": { - "type": "string", - "description": "The name of the product attribute type in the change request which requires correction, such as BRAND, CATEGORY, or TITLE. See the ProductAttributeName type for available values. Note: If the value of this field is ASPECT_NAME, see corrections.aspectValues for correction information. For implementation help, refer to eBay API documentation" - }, - "newValue": { - "type": "string", - "description": "Not returned if the value of attributeName is ASPECT_NAME (see instead corrections.aspectValues). This is the named attribute's correct value." - }, - "value": { - "type": "string", - "description": "Not returned if the value of attributeName is ASPECT_NAME (see instead corrections.aspectValues). This is the named attribute's current incorrect value." - } - }, - "description": "Contains information about a particular product attribute with an incorrect value." - }, - "CreateChangeRequestPayload": { - "type": "object", - "properties": { - "changeRequestType": { - "type": "string", - "description": "The type of catalog modification being requested by this change request. Available values: PRODUCT_CREATION — Change request to create a new product PRODUCT_UPDATE — Change request to update an existing product For implementation help, refer to eBay API documentation" - }, - "reasonForChangeRequest": { - "type": "string", - "description": "Required if the value of changeRequestType is PRODUCT_UPDATE, and optional otherwise; this is a text description of why this change is being requested." - }, - "referenceId": { - "type": "string", - "description": "Required if the referenceType field is included in the request. This is the identifier of an object of the type specified by the value of referenceType. For example, if the value of referenceType is INVENTORY_ITEM, this field should contain the seller's SKU for an inventory item." - }, - "referenceType": { - "type": "string", - "description": "The type of object that the requested change is intended to support. This applies to objects that are incomplete due to the need for a matching catalog product. Providing a referenceType and a referenceId in a catalog change request enables eBay to automatically apply the resulting new or updated product directly to the specified object without requiring additional action on your part. Available values: INVENTORY_ITEM — The requested change will support the completion of an inventory item, which you can then use to create an offer. LISTING — The requested change will support the modification of an active product listing. LISTING_DRAFT — The requested change will support the completion of an offer, which you can then publish as a product listing. For implementation help, refer to eBay API documentation" - }, - "suggestedProduct": { - "description": "Contains the full details of the suggested product, including information about the product's identifiers, description, product images, categories, and aspects.", - "$ref": "#/components/schemas/SuggestedProduct" - } - }, - "description": "This type contains the input payload of the createChangeRequest call, including the type of request, the reason for a product update request, and the details of the new or updated product being suggested." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of erro." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } - }, - "description": "This type defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } - } - }, - "GetChangeRequestsResponse": { - "type": "object", - "properties": { - "changeRequests": { - "type": "array", - "description": "Contains the full details of one or more catalog change requests, including the original payload of the createChangeRequest call, processing status and key dates, and resolution details.", - "items": { - "$ref": "#/components/schemas/ChangeRequest" - } - }, - "href": { - "type": "string", - "description": "The URI of the getChangeRequests call request that produced this page of results." - }, - "limit": { - "type": "integer", - "description": "The maximum number of change requests in this page, a subset of the full collection of change requests that match the filter criteria of this call. This field combines with the offset field to identify the change requests being returned.", - "format": "int32" - }, - "next": { - "type": "string", - "description": "The getChangeRequests call URI for the next page. For example, the following URI returns records 41 thru 50 from the collection of change requests: path/change_request?limit=10&offset=40 Note: This feature employs a zero-based list, where the first order in the list has an offset of 0." - }, - "offset": { - "type": "integer", - "description": "The first change request in this page based on its position in the returned collection of change requests. For example, if offset is set to 10 and limit is set to 10, this page includes change requests 11 thru 20 from the resulting collection of change requests. Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.", - "format": "int32" - }, - "prev": { - "type": "string", - "description": "The getChangeRequests call URI for the previous page. For example, the following URI returns orders 21 thru 30 from the collection of orders: path/change_request?limit=10&offset=20 Note: This feature employs a zero-based list, where the first order in the list has an offset of 0." - }, - "total": { - "type": "integer", - "description": "The total number of change requests in the collection. Note: If no change requests are found, this field is returned with a value of 0.", - "format": "int32" - } - }, - "description": "This type contains the output payload of the getChangeRequests call, which is a portion of the collection of change requests that match the search criteria. The returned set of change requests is a page, and the response includes information for navigating the output pages." - }, - "Image": { - "type": "object", - "properties": { - "height": { - "type": "integer", - "description": "The height of the image in pixels.", - "format": "int32" - }, - "imageUrl": { - "type": "string", - "description": "The eBay Picture Services (EPS) URL of the image." - }, - "width": { - "type": "integer", - "description": "The width of the image in pixels.", - "format": "int32" - } - }, - "description": "This type contains information about a product image stored in eBay Picture Services (EPS)." - }, - "ProcessResolution": { - "type": "object", - "properties": { - "conflictingProducts": { - "type": "array", - "description": "Contains information about one or more existing products with identifying information that matches or instersects with the suggested product. For each conflicting product, the difference is in the presence or value of one or more product aspects. If the seller accepts the aspects and their values of the conflicting product (such as a color value of scarlet instead of crimson), that product can be adopted by the seller instead of the suggested product. If the seller does not accept any of the conflicting products as is, you can submit a change request to update one of them, or to create a new product for which identifying information doesn't overlap with an existing product enough to produce a conflict.", - "items": { - "$ref": "#/components/schemas/ConflictingProduct" - } - }, - "corrections": { - "type": "array", - "description": "Contains information about one or more corrections to this change request that eBay has applied to the new or updated product. Sellers can accept these corrections by adopting the product, which is identified by the epid field.", - "items": { - "$ref": "#/components/schemas/Correction" - } - }, - "epid": { - "type": "string", - "description": "Returned only if the value of changeRequestStatus is APPROVED or APPROVED_WITH_MODIFICATIONS; this is the eBay identifier of the resulting product." - }, - "productHref": { - "type": "string", - "description": "The URI of the getProduct call request that retrieves this product's details. This field is returned under one of the following conditions: The value of changeRequestType is PRODUCT_UPDATE. The value of changeRequestType is PRODUCT_CREATION, and the value of changeRequestStatus is APPROVED or APPROVED_WITH_MODIFICATIONS." - }, - "violations": { - "type": "array", - "description": "Contains information about one or more violations in the values of the suggested product's aspects or fixed attributes.", - "items": { - "$ref": "#/components/schemas/Violation" - } - } - }, - "description": "This type provides details of conflicting products, corrections required, or violations that were discovered in a change request." - }, - "Product": { - "type": "object", - "properties": { - "additionalImages": { - "type": "array", - "description": "Contains information about additional images associated with this product. For the primary image, see the image container.", - "items": { - "$ref": "#/components/schemas/Image" - } - }, - "aspects": { - "type": "array", - "description": "Contains an array of the category aspects and their values that are associated with this product.", - "items": { - "$ref": "#/components/schemas/Aspect" - } - }, - "brand": { - "type": "string", - "description": "The manufacturer's brand name for this product." - }, - "description": { - "type": "string", - "description": "The rich description of this product, which might contain HTML." - }, - "ean": { - "type": "array", - "description": "A list of all European Article Numbers (EANs) that identify this product.", - "items": { - "type": "string" - } - }, - "epid": { - "type": "string", - "description": "The eBay product ID of this product." - }, - "gtin": { - "type": "array", - "description": "A list of all GTINs that identify this product. Currently this can include EAN, ISBN, and UPC identifier types.", - "items": { - "type": "string" - } - }, - "image": { - "description": "Contains information about the primary image of this product. For more images of this product, see the additionalImages container.", - "$ref": "#/components/schemas/Image" - }, - "isbn": { - "type": "array", - "description": "A list of all International Standard Book Numbers (ISBNs) that identify this product.", - "items": { - "type": "string" - } - }, - "mpn": { - "type": "array", - "description": "A list of all MPN values that the manufacturer uses to identify this product.", - "items": { - "type": "string" - } - }, - "otherApplicableCategoryIds": { - "type": "array", - "description": "A list of category IDs (other than the value of primaryCategoryId) for all the leaf categories to which this product might belong.", - "items": { - "type": "string" - } - }, - "primaryCategoryId": { - "type": "string", - "description": "The identifier of the leaf category that eBay recommends using to list this product, based on previous listings of similar products. Products in the eBay catalog are not automatically associated with any particular category, but using an inappropriate category can make it difficult for prospective buyers to find the product. For other possible categories that might be used, see otherApplicableCategoryIds." - }, - "productWebUrl": { - "type": "string", - "description": "The URL for this product's eBay product page." - }, - "title": { - "type": "string", - "description": "The title of this product on eBay." - }, - "upc": { - "type": "array", - "description": "A list of Universal Product Codes (UPCs) that identify this product.", - "items": { - "type": "string" - } - }, - "version": { - "type": "string", - "description": "The current version number of this product record in the catalog." - } - }, - "description": "This type contains the full details of a specified product, including information about the product's identifiers, product images, aspects, and categories." - }, - "ProductAspect": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the product aspect, such as Model Number, Size, or Color." - }, - "values": { - "type": "array", - "description": "Required or returned if a value is provided for the name field. This is a list of one or more localized values of this product aspect.", - "items": { - "type": "string" - } - } - }, - "description": "This type contains the name and values of a category aspect that is associated with a particular product." - }, - "ProductAspectConstraint": { - "type": "object", - "properties": { - "aspectDataType": { - "type": "string", - "description": "The data type used to represent the aspect. See the AspectDataTypeEnum type for more information about each data type. For implementation help, refer to eBay API documentation" - }, - "aspectFormat": { - "type": "string", - "description": "Returned only if the value of aspectDataType is STRING or NUMBER. The required format for date or number values (e.g. a date value may be expressed as MMYYYY or MMYY)." - }, - "aspectMode": { - "type": "string", - "description": "Indicates whether the seller must select from a closed list of aspect values, or can input the aspect value manually. For implementation help, refer to eBay API documentation" - }, - "aspectRequired": { - "type": "boolean", - "description": "A value of true indicates that the aspect is mandatory for products listed in this category." - }, - "importance": { - "type": "string", - "description": "This value indicates the level of importance of the product identifier appearing in the catalog product. For implementation help, refer to eBay API documentation" - }, - "productToAspectCardinality": { - "type": "string", - "description": "Indicates whether the aspect requires only one value, or can accept multiple values when listing in this category. An example of a product aspect that will often have numerous values is Features. For implementation help, refer to eBay API documentation" - } - }, - "description": "This type contains information about the constraints for an aspect that's associated with a specific eBay category or eBay Catalog product." - }, - "ProductAspectValue": { - "type": "object", - "properties": { - "value": { - "type": "string", - "description": "A supported value of the corresponding product aspect (shown in the aspects.name field). Every supported value for the product aspect is shown under the aspects.values container. Note that one of these values can possibly be used instead of the product aspect value(s) currently defined for the eBay Catalog product and specified in the aspects.valuesAssociatedWithProduct array." - }, - "valueConstraints": { - "type": "array", - "description": "Not returned if the value of the value field can always be selected for this aspect of the specified category. Contains a list of the dependencies that identify when the value of the value field is available for the current aspect. Each dependency specifies the values of another aspect of the same category (a control aspect), for which the current value of the current aspect can also be selected by the seller. Example: A shirt is available in three sizes and three colors, but only the Small and Medium sizes come in Green. Thus for the Color aspect, the value Green is constrained by its dependency on Size (the control aspect). Only when the Size aspect value is Small or Medium, can the Color aspect value of Green be selected by the seller.", - "items": { - "$ref": "#/components/schemas/ValueConstraint" - } - } - }, - "description": "This type contains information about a product aspect associated with a given catalog product." - }, - "ProductIdentifier": { - "type": "object", - "properties": { - "constraint": { - "description": "Contains information about the input, formatting, and occurrence constraints of the product identifier.", - "$ref": "#/components/schemas/ProductIdentifierConstraint" - }, - "values": { - "type": "array", - "description": "A list of one or more valid values for this product identifier.", - "items": { - "type": "string" - } - } - }, - "description": "This type contains information about certain available product attributes, their input requirements, and their constraints for specified categories." - }, - "ProductIdentifierConstraint": { - "type": "object", - "properties": { - "importance": { - "type": "string", - "description": "This value indicates the level of importance of the product identifier appearing in the catalog product. For implementation help, refer to eBay API documentation" - }, - "mode": { - "type": "string", - "description": "Indicates whether the seller must select from a closed list of identifier values, or can input the identifier manually. For implementation help, refer to eBay API documentation" - }, - "required": { - "type": "boolean", - "description": "A value of true indicates that the identifier is mandatory for the product or categories specified." - } - }, - "description": "This type contains information about the input, formatting, and occurrence constraints of a product identifier." - }, - "ProductIdentifierForProductMetadata": { - "type": "object", - "properties": { - "constraint": { - "description": "Contains information about the input, formatting, and occurrence constraints of the product identifier.", - "$ref": "#/components/schemas/ProductIdentifierConstraint" - }, - "valueAssociatedWithProduct": { - "type": "string", - "description": "The identifier value currently associated with the product." - }, - "values": { - "type": "array", - "description": "A list of one or more valid values for this product identifier.", - "items": { - "type": "string" - } - } - }, - "description": "This type contains information about certain available product attributes, their input requirements, and their constraints for a specified product and any specified categories." - }, - "ProductMetadata": { - "type": "object", - "properties": { - "aspects": { - "type": "array", - "description": "Contains information about one or more aspects that are supported for the specified catalog product, including those that are currently associated with the product. This is a union (with duplicates removed) of all aspects associated with the specified category or categories (if provided) and those associated with the product.", - "items": { - "$ref": "#/components/schemas/ProductMetadataAspect" - } - }, - "brand": { - "description": "Contains information about available brand names, their input requirements, and their constraints for the specified product and categories.", - "$ref": "#/components/schemas/ProductIdentifierForProductMetadata" - }, - "ean": { - "description": "The European Article Numbers (EANs) that identify this product.", - "$ref": "#/components/schemas/ProductIdentifierForProductMetadata" - }, - "isbn": { - "description": "The International Standard Book Numbers (ISBNs) associated with the product.", - "$ref": "#/components/schemas/ProductIdentifierForProductMetadata" - }, - "mpn": { - "description": "Contains information about available Manufacturer Product Numbers (MPNs), their input requirements, and their constraints for the specified product and categories.", - "$ref": "#/components/schemas/ProductIdentifierForProductMetadata" - }, - "upc": { - "description": "The Universal Product Codes (UPCs) associated with the product.", - "$ref": "#/components/schemas/ProductIdentifierForProductMetadata" - } - }, - "description": "This type is the container type for the response payload of the getProductMetadata call, which returns merged aspect metadata for a catalog product." - }, - "ProductMetadataAspect": { - "type": "object", - "properties": { - "aspectHelpText": { - "type": "string", - "description": "Returned only if this field is populated. This provides information and context for the product aspect. The help text can be presented to the seller to clarify the intended purpose of the aspect, and recommendations for its use. For example, the help text for the Country/Region of Manufacture aspect is: Specifying the country/region of manufacture can help streamline customs clearance." - }, - "constraint": { - "description": "Contains information about the constraints for this product aspect, including data type and format, input mode, and occurrence.", - "$ref": "#/components/schemas/ProductAspectConstraint" - }, - "droppable": { - "type": "boolean", - "description": "A value of true indicates that this product aspect can be removed from the specified catalog product definition by omitting it from a product change request. A value of false indicates that this product aspect cannot be dropped (although it is possible that its value could be modified)." - }, - "name": { - "type": "string", - "description": "The name of the product aspect, such as Model Number, Size, or Color." - }, - "values": { - "type": "array", - "description": "Not returned if the value of the constraint field is FREE_TEXT and there are no stored values for this aspect. Contains information about the supported values for the product aspect identified by the name field, as well as constraint information for the product aspect values. These values can be used instead of the product aspect value(s) currently defined for the eBay Catalog product, and those specified in the valuesAssociatedWithProduct array.", - "items": { - "$ref": "#/components/schemas/ProductAspectValue" - } - }, - "valuesAssociatedWithProduct": { - "type": "array", - "description": "The value(s) currently defined for the eBay Catalog product for the product aspect identified by the corresponding name field.", - "items": { - "type": "string" - } - } - }, - "description": "This type contains detailed information about an aspect that's supported for a given eBay Catalog product. These details include the aspect name, current value(s), supported/possible values, and constraint information." - }, - "ProductMetadataForCategories": { - "type": "object", - "properties": { - "aspects": { - "type": "array", - "description": "Contains information about one or more required and recommended product aspects associated with the specified eBay category or categories. This is a union (with duplicates removed) of all aspects associated with the specified categories.", - "items": { - "$ref": "#/components/schemas/CategoryAspect" - } - }, - "brand": { - "description": "Contains information about available brand names, their input requirements, and their constraints for the specified categories.", - "$ref": "#/components/schemas/ProductIdentifier" - }, - "ean": { - "description": "The European Article Numbers (EANs) that identify this product.", - "$ref": "#/components/schemas/ProductIdentifier" - }, - "isbn": { - "description": "The International Standard Book Numbers (ISBNs) associated with the product.", - "$ref": "#/components/schemas/ProductIdentifier" - }, - "mpn": { - "description": "Contains information about available Manufacturer Product Numbers (MPNs), their input requirements, and their constraints for the specified categories.", - "$ref": "#/components/schemas/ProductIdentifier" - }, - "upc": { - "description": "The Universal Product Codes (UPCs) associated with the product.", - "$ref": "#/components/schemas/ProductIdentifier" - } - }, - "description": "This type is the container type for the response payload of the getProductMetadataForCategories call, which returns required and recommended product aspects, brand names, and manufacturer part numbers for one or more eBay categories." - }, - "ProductSearchResponse": { - "type": "object", - "properties": { - "href": { - "type": "string", - "description": "This field is reserved for internal or future use." - }, - "limit": { - "type": "integer", - "description": "The number of product summaries returned in the response. This is the result set, a subset of the full collection of products that match the search or filter criteria of this call. If the limit query parameter was included in the request, this field will have the same value. Default: 50", - "format": "int32" - }, - "next": { - "type": "string", - "description": "This field is reserved for internal or future use." - }, - "offset": { - "type": "integer", - "description": "This field is reserved for internal or future use.", - "format": "int32" - }, - "prev": { - "type": "string", - "description": "This field is reserved for internal or future use." - }, - "productSummaries": { - "type": "array", - "description": "Returned if the fieldGroups query parameter was omitted from the request, or if it was included with a value of MATCHING_PRODUCTS or FULL. This container provides an array of product summaries in the current result set for products that match the combination of the q, category_ids, and aspect_filter parameters that were provided in the request. Each product summary includes information about the product's identifiers, product images, aspects, the product page URL, and the getProduct URL for retrieving the product details.", - "items": { - "$ref": "#/components/schemas/ProductSummary" - } - }, - "refinement": { - "description": "Returned only if the fieldGroups query parameter was included in the request with a value of ASPECT_REFINEMENTS or FULL. An aspect is a property of a category, used by sellers to provide details about the items they're listing. For example, the Cell Phones & Smartphones category (#9355) includes a Storage Capacity aspect. This container provides information about the distribution of values of a set of category aspects. The category aspects are those associated with the category that eBay determines is most likely to cover the products that match the search criteria.", - "$ref": "#/components/schemas/Refinement" - }, - "total": { - "type": "integer", - "description": "This field is reserved for internal or future use.", - "format": "int32" - } - }, - "description": "This type contains the specifications for the collection of products that match the search or filter criteria of a search call. A maximum of 200 product summaries is returned (the result set), fewer if you include the limit query parameter in the request." - }, - "ProductSummary": { - "type": "object", - "properties": { - "additionalImages": { - "type": "array", - "description": "Contains information about additional images associated with this product. For the primary image, see the image container.", - "items": { - "$ref": "#/components/schemas/Image" - } - }, - "aspects": { - "type": "array", - "description": "Contains an array of the category aspects and their values that are associated with this product.", - "items": { - "$ref": "#/components/schemas/Aspect" - } - }, - "brand": { - "type": "string", - "description": "The manufacturer's brand name for this product." - }, - "ean": { - "type": "array", - "description": "A list of all European Article Numbers (EANs) that identify this product.", - "items": { - "type": "string" - } - }, - "epid": { - "type": "string", - "description": "The eBay product ID of this product." - }, - "gtin": { - "type": "array", - "description": "A list of all GTINs that identify this product. This includes all of the values returned in the ean, isbn, and upc fields.", - "items": { - "type": "string" - } - }, - "image": { - "description": "Contains information about the primary image of this product. For more images of this product, see the additionalImages container.", - "$ref": "#/components/schemas/Image" - }, - "isbn": { - "type": "array", - "description": "A list of all International Standard Book Numbers (ISBNs) that identify this product.", - "items": { - "type": "string" - } - }, - "mpn": { - "type": "array", - "description": "A list of all Manufacturer Product Number (MPN) values that the manufacturer uses to identify this product.", - "items": { - "type": "string" - } - }, - "productHref": { - "type": "string", - "description": "The URI of the getProduct call request that retrieves this product's details." - }, - "productWebUrl": { - "type": "string", - "description": "The URL for this product's eBay product page." - }, - "title": { - "type": "string", - "description": "The title of this product on eBay." - }, - "upc": { - "type": "array", - "description": "A list of Universal Product Codes (UPCs) that identify this product.", - "items": { - "type": "string" - } - } - }, - "description": "This type contains a summary of a specified product. The product summary includes information about the product's identifiers, product images, aspects, and the getProduct URL for retrieving the product details." - }, - "Refinement": { - "type": "object", - "properties": { - "aspectDistributions": { - "type": "array", - "description": "Contains information about one or more aspects that are associated with the category identified by dominantCategoryId.", - "items": { - "$ref": "#/components/schemas/AspectDistribution" - } - }, - "dominantCategoryId": { - "type": "string", - "description": "The ID of the category that eBay determines is most likely to cover the products matching the search criteria." - } - }, - "description": "This type identifies a product category and the aspects associated with that category. Each aspect distribution container returns the distribution of values that have been used for the aspect." - }, - "SuggestedProduct": { - "type": "object", - "properties": { - "additionalImageUrls": { - "type": "array", - "description": "A list of URLs for additional images associated with the suggested product. For the URL of the primary image, see the imageUrl field.", - "items": { - "type": "string" - } - }, - "aspects": { - "type": "array", - "description": "Contains one or more category aspects and their values that are associated with the suggested product.", - "items": { - "$ref": "#/components/schemas/ProductAspect" - } - }, - "brand": { - "type": "string", - "description": "The manufacturer's brand name for the suggested product." - }, - "description": { - "type": "string", - "description": "A rich description of the suggested product, which can contain HTML, including the following basic tags: Text formatting tags such as <b>, <i>, <br>, <ol>, <ul>, and <li> Table formatting tags such as <table>, <tr>, <td>, <th>, <thead>, <tfoot>, <tbody>, <caption>, <col>, and <colgroup> Note: Active content from sellers is prohibited on eBay, including animation or video via JavaScript, Flash, plug-ins, or form actions." - }, - "ean": { - "type": "array", - "description": "A list of all European Article Numbers (EANs) that identify the suggested product.", - "items": { - "type": "string" - } - }, - "epid": { - "type": "string", - "description": "Required or returned only if the value of the changeRequestType field is PRODUCT_UPDATE. This is the eBay product ID of the product record for which an update is being suggested." - }, - "imageUrl": { - "type": "string", - "description": "Required or returned if the value of the changeRequestType field is PRODUCT_CREATION. This is the URL of the primary image associated with the suggested product." - }, - "isbn": { - "type": "array", - "description": "A list of all International Standard Book Numbers (ISBNs) that identify the suggested product.", - "items": { - "type": "string" - } - }, - "mpn": { - "type": "array", - "description": "A list of all Manufacturer Product Number (MPN) values that the manufacturer uses to identify the suggested product.", - "items": { - "type": "string" - } - }, - "otherApplicableCategoryIds": { - "type": "array", - "description": "A list of category IDs (other than the value of primaryCategoryId) for all the leaf categories to which the suggested product might belong.", - "items": { - "type": "string" - } - }, - "primaryCategoryId": { - "type": "string", - "description": "The identifier of the category that eBay recommends using to list the suggested product, based on previous listings of similar products. Products in the eBay catalog are not automatically associated with any particular category, but using an inappropriate category can make it difficult for prospective buyers to find the product. For other possible categories that might be used, see otherApplicableCategoryIds." - }, - "title": { - "type": "string", - "description": "The catalog title that will be used as the listing title for all item listings based on the suggested product." - }, - "upc": { - "type": "array", - "description": "A list of all Universal Product Codes (UPCs) that identify the suggested product.", - "items": { - "type": "string" - } - }, - "version": { - "type": "string", - "description": "Required or returned only if the value of changeRequestType is PRODUCT_UPDATE. This is the current version number in the catalog of the product record for which an update is being suggested." - } - }, - "description": "This type contains the full details of a suggested product, including information about the product's identifiers, description, product images, categories, and aspects." - }, - "ValueConstraint": { - "type": "object", - "properties": { - "applicableForAspectName": { - "type": "string", - "description": "The name of the control aspect on which the current aspect value depends." - }, - "applicableForAspectValues": { - "type": "array", - "description": "Contains a list of the values of the control aspect on which this aspect's value depends. When the control aspect has any of the specified values, the current value of the current aspect will also be available.", - "items": { - "type": "string" - } - } - }, - "description": "This type contains a list of the dependencies that identify when a particular value is available for a given aspect of a given category. Each dependency specifies the values of another aspect of the same category (the control aspect), for which the given value of the given aspect can also be selected by the seller. This container consists of constraint information for the corresponding product aspect value." - }, - "Violation": { - "type": "object", - "properties": { - "aspectsValues": { - "description": "Returned only if the value of productAttribute.name is ASPECT_NAME. Contains the name of a product aspect that is in violation of eBay standards in this change request, along with its values that produced the violation.", - "$ref": "#/components/schemas/ViolationAspectValues" - }, - "productAttribute": { - "description": "Contains the name of a particular product attribute with a value in violation of eBay standards, and if the name is not ASPECT_NAME (a product aspect), the value of the attribute that's in violation of eBay standards.", - "$ref": "#/components/schemas/ViolationProductAttribute" - }, - "reason": { - "type": "string", - "description": "An explanation of the reason for this violation." - }, - "violationCode": { - "type": "string", - "description": "The eBay-assigned identifier of the violation type of this violation." - } - }, - "description": "This type contains information about a violation of eBay standards in a change request." - }, - "ViolationAspectValues": { - "type": "object", - "properties": { - "aspectName": { - "type": "string", - "description": "The localized name of this product aspect that's in violation, such as Model Number, Size, or Color." - }, - "values": { - "type": "array", - "description": "A list of one or more values of this product aspect that are in violation of eBay standards.", - "items": { - "type": "string" - } - } - }, - "description": "Contains the name of a product aspect that is in violation of eBay standards in a particular catalog change request, along with its values that produced the violation." - }, - "ViolationProductAttribute": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the product attribute type in the change request which is in violation, such as BRAND, CATEGORY, or TITLE. See the ProductAttributeName type for available values. Note: If the value of this field is ASPECT_NAME, see violations.aspectsValues for violation information. For implementation help, refer to eBay API documentation" - }, - "values": { - "type": "array", - "description": "Not returned if the value of name is ASPECT_NAME (see instead violations.aspectsValues). This is a list of the named attribute's values that are in violation.", - "items": { - "type": "string" - } - } - }, - "description": "This type contains the name of a particular product attribute with a value in violation of eBay standards, and if the name is not ASPECT_NAME (a product aspect), the values of the attribute that are in violation." - } - }, - "securitySchemes": { - "api_auth": { - "type": "oauth2", - "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": { - "clientCredentials": { - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope": "View public data from eBay" - } - }, - "authorizationCode": { - "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly": " This scope would allow signed in user to read catalog data.", - "https://api.ebay.com/oauth/api_scope/sell.inventory": "View and manage your inventory and offers" } - } } - } } - } } \ No newline at end of file diff --git a/specs/commerce_charity_v1_oas3.json b/specs/commerce_charity_v1_oas3.json index deb0d785..7d17a771 100644 --- a/specs/commerce_charity_v1_oas3.json +++ b/specs/commerce_charity_v1_oas3.json @@ -10,7 +10,7 @@ "name": "eBay API License Agreement", "url": "https://go.developer.ebay.com/api-license-agreement" }, - "version": "v1.2.0" + "version": "v1.2.1" }, "servers": [ { @@ -29,7 +29,7 @@ "tags": [ "charity_org" ], - "description": "This call is used to retrieve detailed information about supported charitable organizations. It allows users to retrieve the details for a specific charitable organization using its charity organization ID.

The call returns the full details for the charitable organization that matches the specified ID.", + "description": "This call is used to retrieve detailed information about supported charitable organizations. It allows users to retrieve the details for a specific charitable organization using its charity organization ID.", "operationId": "getCharityOrg", "parameters": [ { @@ -221,90 +221,6 @@ } ] } - }, - "/charity_org/get_charity_org_by_legacy_id": { - "get": { - "tags": [ - "charity_org" - ], - "description": "This call allows users to retrieve the details for a specific charitable organization using its legacy charity ID, which has also been referred to as the charity number, external ID, and PayPal Giving Fund ID. The legacy charity IDĀ is separate from eBay’s generic charity ID.", - "operationId": "getCharityOrgByLegacyId", - "parameters": [ - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "A header used to specify the eBay marketplace ID.

Valid Values: EBAY_GB and EBAY_US", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "legacy_charity_org_id", - "in": "query", - "description": "The legacy ID of the charitable organization.

Note: The legacy charity ID is the identifier assigned to an organization upon registration with the PayPal Giving Fund (PPGF). It has also been referred to as the external ID/charity number.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CharityOrg" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "165001": { - "domain": "API_CHARITY", - "category": "REQUEST", - "description": "Invalid, missing or unsupported marketplace. Please refer to documentation." - } - } - } - }, - "404": { - "description": "Not found", - "x-response-codes": { - "errors": { - "165006": { - "domain": "API_CHARITY", - "category": "REQUEST", - "description": "LegacyId is invalid or missing." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "165000": { - "domain": "API_CHARITY", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } } }, "components": { @@ -326,7 +242,7 @@ }, "country": { "type": "string", - "description": "The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation" + "description": "The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation" } }, "description": "The physical location of the item." diff --git a/specs/commerce_identity_v1_oas3.json b/specs/commerce_identity_v1_oas3.json index 7cea40ca..3fd56d64 100644 --- a/specs/commerce_identity_v1_oas3.json +++ b/specs/commerce_identity_v1_oas3.json @@ -2,7 +2,7 @@ "openapi": "3.0.0", "info": { "title": "Identity API", - "description": "Retrieves the authenticated user's account profile information.", + "description": "Note: Not all the account related fields are returned for an authenticated user. The fields returned in the response are controlled by the scopes and are available only to select developers approved by business units.

Retrieves the authenticated user's account profile information. It can be used to let users log into your app or site using eBay, which frees you from needing to store and protect user's PII (Personal Identifiable Information) data.", "contact": { "name": "eBay Inc," }, @@ -10,7 +10,7 @@ "name": "eBay API License Agreement", "url": "https://go.developer.ebay.com/api-license-agreement" }, - "version": "v1.0.0" + "version": "v2.0.0" }, "servers": [ { @@ -29,7 +29,7 @@ "tags": [ "user" ], - "description": "This method retrieves the account profile information for an authenticated user, which requires a User access token. What is returned is controlled by the scopes. For a business account you use the default scope commerce.identity.readonly, which returns all the fields in the businessAccount container. These are returned because this is all public information. For an individual account, the fields returned in the individualAccount container are based on the scope you use. Using the default scope, only public information, such as eBay user ID, are returned. For details about what each scope returns, see the Identity API Overview.", + "description": "This method retrieves the account profile information for an authenticated user, which requires a User access token. What is returned is controlled by the scopes.

For a business account you use the default scope commerce.identity.readonly, which returns all the fields in the businessAccount container. These are returned because this is all public information.

For an individual account, the fields returned in the individualAccount container are based on the scope you use. Using the default scope, only public information, such as eBay user ID, are returned. For details about what each scope returns, see the Identity API Overview.

In the Sandbox, this API returns mock data. Note: You must use the correct scope or scopes for the data you want returned.

", "operationId": "getUser", "responses": { "200": { @@ -91,7 +91,7 @@ }, "country": { "type": "string", - "description": "The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation" + "description": "The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation" }, "county": { "type": "string", @@ -112,12 +112,12 @@ "type": "object", "properties": { "address": { - "description": "The container that returns the address of the business account.", + "description": "The container that returns the address of the business account. ", "$ref": "#/components/schemas/Address" }, "doingBusinessAs": { "type": "string", - "description": "An additional name that is used for their business on eBay. The business name is returned in the name field." + "description": "An additional name that is used for their business on eBay. The business name is returned in the name field." }, "email": { "type": "string", @@ -260,7 +260,7 @@ "properties": { "countryCode": { "type": "string", - "description": "The two-letter ISO 3166 standard of the country to which the phone number belongs." + "description": "The two-letter ISO 3166 standard of the country to which the phone number belongs." }, "number": { "type": "string", @@ -268,7 +268,7 @@ }, "phoneType": { "type": "string", - "description": "The type of phone service. Valid Values: MOBILE or LAND_LINE Code so that your app gracefully handles any future changes to this list." + "description": "The type of phone service.

Valid Values: MOBILE or LAND_LINE

Code so that your app gracefully handles any future changes to this list." } }, "description": "The type that defines the fields for the details of a phone." @@ -278,7 +278,7 @@ "properties": { "accountType": { "type": "string", - "description": "Indicates the user account type. This is determined when the user registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in the following countries: EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL Valid Values: BUSINESS or INDIVIDUAL Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" + "description": "Indicates the user account type. This is determined when the user registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in the following countries:

EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL

Valid Values: BUSINESS or INDIVIDUAL

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation" }, "businessAccount": { "description": "The container that returns the business account information of the user.", @@ -290,11 +290,11 @@ }, "registrationMarketplaceId": { "type": "string", - "description": "The eBay site on which the account is registered. For implementation help, refer to eBay API documentation" + "description": "The eBay site on which the account is registered. For implementation help, refer to eBay API documentation" }, "status": { "type": "string", - "description": "Indicates the user's account status. Possible values: CONFIRMED, UNCONFIRMED, ACCOUNTONHOLD and UNDETERMINED. For implementation help, refer to eBay API documentation" + "description": "Indicates the user's account status. Possible values: CONFIRMED, UNCONFIRMED, ACCOUNTONHOLD and UNDETERMINED. For implementation help, refer to eBay API documentation" }, "userId": { "type": "string", @@ -302,10 +302,10 @@ }, "username": { "type": "string", - "description": "The user name, which was specific by the user when they created the account. Note: This value can be changed by the user." + "description": "The user name, which was specific by the user when they created the account.

Note: This value can be changed by the user." } }, - "description": "The type that defines the fields for the getUser method." + "description": "The type that defines the fields for the getUser method." } }, "securitySchemes": { diff --git a/specs/commerce_media_v1_beta_oas3.json b/specs/commerce_media_v1_beta_oas3.json index 03b6c786..e36ae75b 100644 --- a/specs/commerce_media_v1_beta_oas3.json +++ b/specs/commerce_media_v1_beta_oas3.json @@ -1,596 +1,1747 @@ { - "openapi": "3.0.0", - "info": { - "title": "Media API", - "description": "The Media API allows sellers to create, upload, and fetch videos.", - "contact": { - "name": "eBay Inc," - }, - "license": { - "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" + "openapi": "3.0.0", + "info": { + "title": "Media API", + "description": "The Media API lets sellers to create, upload, and retrieve files, including:", + "contact": { + "name": "eBay Inc," + }, + "license": { + "name": "eBay API License Agreement", + "url": "https://developer.ebay.com/join/api-license-agreement" + }, + "version": "v1_beta.5.0" }, - "version": "v1_beta.1.0" - }, - "servers": [ - { - "url": "https://apim.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/commerce/media/v1_beta" - } - } - } - ], - "paths": { - "/video": { - "post": { - "tags": [ - "video" - ], - "description": "This method creates a video. When using this method, specify the title, size, and classification of the video to be created. Description is an optional field for this method.

Tip: See Adding a video to your listing in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.

When a video is successfully created, the method returns the HTTP Status Code 201 Created.The method also returns the location response header containing the video ID, which you can use to retrieve the video.

Note: There is no ability to edit metadata on videos at this time. There is also no method to delete videos.

To upload a created video, use the uploadVideo method.", - "operationId": "createVideo", - "parameters": [ - { - "name": "Content-Type", - "in": "header", - "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", - "required": true, - "schema": { - "type": "string" + "servers": [ + { + "url": "https://apim.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/media/v1_beta" + } } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateVideoRequest" - } + }, + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/media/v1_beta" + } } - }, - "required": false }, - "responses": { - "201": { - "description": "Created", - "headers": { - "Location": { - "schema": { - "type": "string", - "description": "The created video resource location and the unique video ID." + { + "url": "https://apiz.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/media/v1_beta" } - } } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "190002": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "Missing or invalid size. The size of the file (in bytes) is required." - }, - "190003": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "Maximum size exceeded for supported uploads. Please refer to the documentation." + } + ], + "paths": { + "/image/create_image_from_file": { + "post": { + "tags": [ + "image" + ], + "description": "This method uploads a picture file to eBay Picture Services (EPS) using multipart/form-data.

All images must comply with eBay's picture requirements, such as dimension and file size restrictions. For more information, see Picture policy. The image formats supported are JPG, GIF, PNG, BMP, TIFF, AVIF, HEIC, and WEBP. For more information, see Image requirements.

Note: Animated GIF, and multi-page PNG/TIFF files, are not supported. Any animation effect of supported formats will be lost upon upload.

This call does not have a JSON Request payload but uploads the file as form-data. For example:

 image: "sample_picture.jpg" 
See Samples for information.

Note: You must use a Content-Type header with its value set to 'multipart/form-data'.

When an EPS image is successfully created, the method returns the HTTP Status Code 201 Created. The method also returns the getImage URI in the Location response header.

Important! Make sure to capture the image ID URI returned in the response location header provided in the following format:

https://apim.ebay.com/commerce/media/v1_beta/image/{image_id}

You can capture the entire URI, or just save the {image_id} only. Pass the {image_id} as a path parameter in the getImage method to return the value needed to associate an image to a listing using the Trading and Inventory APIs.

See Managing images for additional details.


Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

", + "operationId": "createImageFromFile", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to multipart/form-data.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The location response header contains the URI of the newly created image ID in the format:
https://apim.ebay.com/commerce/media/v1_beta/image/{image_id}

Capture this URI to use with the getImage method. See Managing images for more information." + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "190201": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The image file size is larger than the limit. Please refer to the documentation." + }, + "190202": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The supplied image dimensions exceed the limit. Please refer to the documentation." + }, + "190203": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The supplied image is in a format that is not supported. Please refer to the documentation for a list of supported formats." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "190013": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Unauthorized access." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "190000": { + "domain": "API_MEDIA", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "190004": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "Title length limit has been exceeded. Please refer to the documentation." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] + } + }, + "/image/create_image_from_url": { + "post": { + "tags": [ + "image" + ], + "description": "This method uploads a picture to eBay Picture Services (EPS) from the specified URL. Specify the location of the picture on an external web server through the imageUrl field.

All images must comply with eBay’s picture requirements, such as dimension and file size restrictions. For more information, see Picture policy. The image formats supported are JPG, GIF, PNG, BMP, TIFF, AVIF, HEIC, and WEBP. In addition, the provided URL must be secured using HTTPS (HTTP is not permitted). For more information, see Image requirements.

Note: Animated GIF, and multi-page PNG/TIFF files, are not supported. Any animation effect of supported formats will be lost upon upload.

When an EPS image is successfully created, the method returns the HTTP Status Code 201 Created. The method also returns the getImage URI in the Location response header.

Important! Make sure to capture the image ID URI returned in the response location header provided in the following format:

https://apim.ebay.com/commerce/media/v1_beta/image/{image_id}

You can capture the entire URI, or just save the {image_id} only. Pass the {image_id} as a path parameter in the getImage method to return the value needed to associate an image to a listing using the Trading and Inventory APIs.

See Managing images for additional details.


Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

", + "operationId": "createImageFromUrl", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateImageFromUrlRequest" + } + } + }, + "required": true }, - "190005": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "Description length exceeded. Please refer to the documentation." + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The location response header contains the URI of the newly created image ID in the format:
https://apim.ebay.com/commerce/media/v1_beta/image/{image_id}

Capture this URI to use with the getImage method. See Managing images for more information." + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "190201": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The image file size is larger than the limit. Please refer to the documentation." + }, + "190202": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The supplied image dimensions exceed the limit. Please refer to the documentation." + }, + "190203": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The supplied image is in a format that is not supported. Please refer to the documentation for a list of supported formats." + }, + "190204": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "No valid image can be downloaded from the provided imageUrl. Please refer to the documentation." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "190013": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Unauthorized access." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "190000": { + "domain": "API_MEDIA", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "190006": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "A video title is required." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] + } + }, + "/image/{image_id}": { + "get": { + "tags": [ + "image" + ], + "description": "This method retrieves an EPS image URL and its expiration details for the unique identifier specified in the path parameter image_id. Use the retrieved EPS image URL to add the image to a listing through the Inventory API or the Trading API. See Managing images for additional details.

Note: If a user inputs a valid image_id as a path parameter but the EPS image associated with that ID has expired, the call will fail and a 404 Not Found status code will be returned.", + "operationId": "getImage", + "parameters": [ + { + "name": "image_id", + "in": "path", + "description": "This path parameter is the unique identifier of a created image. Use the value returned in the location header of the method used to create the image (createImageFromFile or createImageFromUrl, as applicable).", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageResponse" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "190013": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Unauthorized access." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "190200": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The image resource was not found." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "190000": { + "domain": "API_MEDIA", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "190014": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "A video classification is required." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] + } + }, + "/video": { + "post": { + "tags": [ + "video" + ], + "description": "This method creates a video resource. When using this method, specify the title, size, and classification of the video resource to be created. Description is an optional field for this method.

Tip: See Adding a video to your listing in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.

When a video resource is successfully created, the method returns the HTTP Status Code 201 Created.The method also returns the location response header containing the video ID, which you can use to retrieve the video.

Note: There is no ability to edit metadata on videos at this time. There is also no method to delete videos.
To upload a created video to a created video resource, use the uploadVideo method.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

", + "operationId": "createVideo", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateVideoRequest" + } + } + }, + "required": false }, - "190016": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "Markups are not permitted in the video title." + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The created video resource location and the unique video ID." + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "190002": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Missing or invalid size. Size (in bytes) is required." + }, + "190003": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Maximum size exceeded for supported uploads. Please refer to documentation." + }, + "190004": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Title length exceeded. Please refer to documentation." + }, + "190005": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Description length exceeded. Please refer to documentation." + }, + "190006": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Title is required." + }, + "190014": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "A video classification is required." + }, + "190016": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Markups are not permitted in the video title." + }, + "190017": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Markups are not permitted in the video description." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "190013": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Unauthorized access." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "190000": { + "domain": "API_MEDIA", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "190017": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "Markups are not permitted in the video description." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "190013": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "Unauthorized access." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "190000": { - "domain": "API_MEDIA", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - } - }, - "/video/{video_id}": { - "get": { - "tags": [ - "video" - ], - "description": "This method retrieves a video's metadata and content given a specified video ID. The method returns the title, size, classification, description, video ID, playList, status, status message (if any), expiration date, and thumbnail image of the retrieved video.

The video’s title, size, classification, and description are set using the createVideo method.

The video's playList contains two URLs that link to instances of the streaming video based on the supported protocol.

The status field contains the current status of the video. After a video upload is successfully completed, the video's status will show as PROCESSING until the video reaches one of the terminal states of LIVE, BLOCKED or PROCESSING_FAILED.

If a video's processing fails, it could be because the file is corrupted, is too large, or its size doesn’t match what was provided in the metadata. Refer to the error messages to determine the cause of the video’s failure to upload.

The status message will indicate why a video was blocked from uploading.

The video’s expiration date is automatically set to 365 days (one year) after the video’s initial creation.

The video's thumbnail image is automatically generated when the video is created.", - "operationId": "getVideo", - "parameters": [ - { - "name": "video_id", - "in": "path", - "description": "The unique identifier of the video to be retrieved.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Video" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "190013": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "Unauthorized access." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "190001": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "The specified video_Id does not exist." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "190000": { - "domain": "API_MEDIA", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "/video/{video_id}": { + "get": { + "tags": [ + "video" + ], + "description": "This method retrieves a video's metadata and content given a specified video ID. The method returns the title, size, classification, description, video ID, playList, status, status message (if any), expiration date, and thumbnail image of the retrieved video.

The video's title, size, classification, and description are set using the createVideo method.

The video's playList contains two URLs that link to instances of the streaming video based on the supported protocol.

The status field contains the current status of the video. After a video upload is successfully completed, the video's status will show as PROCESSING until the video reaches one of the terminal states of LIVE, BLOCKED or PROCESSING_FAILED.

If a video's processing fails, it could be because the file is corrupted, is too large, or its size doesn't match what was provided in the metadata. Refer to the error messages to determine the cause of the video's failure to upload.

The status message will indicate why a video was blocked from uploading.

If a video is not being used on an active listing, its expiration date is automatically set to 30 days after the video's initial upload.

The video's thumbnail image is automatically generated when the video is created.", + "operationId": "getVideo", + "parameters": [ + { + "name": "video_id", + "in": "path", + "description": "The unique identifier of the video to be retrieved.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Video" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "190013": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Unauthorized access." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "190001": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The specified video_Id does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "190000": { + "domain": "API_MEDIA", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - } - }, - "/video/{video_id}/upload": { - "post": { - "tags": [ - "video" - ], - "description": "This method associates the specified file with the specified video ID and uploads the input file. After the file has been uploaded the processing of the file begins.

Note: The size of the video to be uploaded must exactly match the size of the video's input stream that was set in the createVideo method. If the sizes do not match, the video will not upload successfully.

When a video is successfully uploaded, it returns the HTTP Status Code 200 OK.

The status flow is PENDING_UPLOAD > PROCESSING > LIVE, PROCESSING_FAILED, or BLOCKED. After a video upload is successfully completed, the status will show as PROCESSING until the video reaches one of the terminal states of LIVE, BLOCKED, or PROCESSING_FAILED. If the size information (in bytes) provided is incorrect, the API will throw an error.

Tip: See Adding a video to your listing in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.

To retrieve an uploaded video, use the getVideo method.", - "operationId": "uploadVideo", - "parameters": [ - { - "name": "Content-Length", - "in": "header", - "description": "Use this header to specify the content length for the upload. Use Content-Range: bytes {1}-{2}/{3} and Content-Length:{4} headers.

Note: This header is optional and is only required for resumable uploads (when an upload is interrupted and must be resumed from a certain point).", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "Content-Range", - "in": "header", - "description": "Use this header to specify the content range for the upload. The Content-Range should be of the following bytes ((?:[0-9]+-[0-9]+)|\\\\\\\\*)/([0-9]+|\\\\\\\\*) pattern.

Note: This header is optional and is only required for resumable uploads (when an upload is interrupted and must be resumed from a certain point).", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "Content-Type", - "in": "header", - "description": "Use this header to specify the content type for the upload. The Content-Type should be set to application/octet-stream.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "video_id", - "in": "path", - "description": "The unique identifier of the video to be uploaded.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The request payload for this method is the input stream for the video source. The input source must be an .mp4 file of the type MPEG-4 Part 10 or Advanced Video Coding (MPEG-4 AVC).", - "content": { - "application/json": { - "schema": { - "description": "The request payload for this method is the input stream for the video source. The input source must be an .mp4 file of the type MPEG-4 Part 10 or Advanced Video Coding (MPEG-4 AVC).", - "$ref": "#/components/schemas/InputStream" - } + "/video/{video_id}/upload": { + "post": { + "tags": [ + "video" + ], + "description": "This method associates the specified file with the specified video ID and uploads the input file. After the file has been uploaded the processing of the file begins.

Note: The size of the video to be uploaded must exactly match the size of the video's input stream that was set in the createVideo method. If the sizes do not match, the video will not upload successfully.

When a video is successfully uploaded, it returns the HTTP Status Code 200 OK.

The status flow is PENDING_UPLOAD > PROCESSING > LIVE, PROCESSING_FAILED, or BLOCKED. After a video upload is successfully completed, the status will show as PROCESSING until the video reaches one of the terminal states of LIVE, BLOCKED, or PROCESSING_FAILED. If the size information (in bytes) provided is incorrect, the API will throw an error.

Tip: See Adding a video to your listing in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.

To retrieve an uploaded video, use the getVideo method.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

", + "operationId": "uploadVideo", + "parameters": [ + { + "name": "Content-Length", + "in": "header", + "description": "Use this header to specify the content length for the upload. Use Content-Range: bytes {1}-{2}/{3} and Content-Length:{4} headers.

Note: This header is optional and is only required for resumable uploads (when an upload is interrupted and must be resumed from a certain point).", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Range", + "in": "header", + "description": "Use this header to specify the content range for the upload. The Content-Range should be of the following bytes ((?:[0-9]+-[0-9]+)|\\\\\\\\*)/([0-9]+|\\\\\\\\*) pattern.

Note: This header is optional and is only required for resumable uploads (when an upload is interrupted and must be resumed from a certain point).", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "Use this header to specify the content type for the upload. The Content-Type should be set to application/octet-stream.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "video_id", + "in": "path", + "description": "The unique identifier of the video to be uploaded.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "190007": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The content length does not match the content size specified." + }, + "190010": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The video's Content-Range is invalid. The Content-Range should be of the following bytes ((?:[0-9]+-[0-9]+)|\\\\\\\\*)/([0-9]+|\\\\\\\\*) pattern." + }, + "190012": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The content length of the video is invalid." + }, + "190015": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The uploaded content must match the video size." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "190013": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Unauthorized access." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "190001": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The specified video_Id does not exist." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "190011": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The video is already uploaded." + } + } + } + }, + "411": { + "description": "Content Length Required", + "x-response-codes": { + "errors": { + "190008": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The content length is required." + } + } + } + }, + "416": { + "description": "Range Not Satisfiable", + "x-response-codes": { + "errors": { + "190009": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The Content-Range specified is incorrect. Use Content-Range: bytes {1}}-{2}/{3} and Content-Length:{4} headers." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "190000": { + "domain": "API_MEDIA", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] } - }, - "required": false }, - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "190007": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "The content length does not match the content size specified." + "/document": { + "post": { + "tags": [ + "document" + ], + "description": "This method stages a document to be uploaded, and requires the type of document to be uploaded, and the language(s) that the document contains. A successful call returns a documentId value that is then used as a path parameter in an uploadDocument call.

When a document is successfully created, the method returns the HTTP Status Code 201 Created. The method returns documentId in the response payload, which you can use to retrieve the document resource. This ID is also returned in the location header, for convenience.

Important! Make sure to capture the document ID value returned in the response payload. This value is required to use the other methods in the document resource, and also needed to associate a document to a listing using the Trading and Inventory APIs.


To upload a created document, use the document ID returned from this method's response with the uploadDocument method. See Managing documents for information on creating, uploading, and adding documents to listings.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

", + "operationId": "createDocument", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateDocumentRequest" + } + } + }, + "required": false }, - "190010": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "The video's Content-Range is invalid. The Content-Range should be of the following bytes ((?:[0-9]+-[0-9]+)|\\\\\\\\*)/([0-9]+|\\\\\\\\*) pattern." + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The location response header returns the getDocument URI." + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateDocumentResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "190050": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Missing or invalid 'languages' value(s)." + }, + "190051": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Missing or invalid 'documentType' value." + } + } + } + }, + "500": { + "description": "Internal Server Error" + } }, - "190012": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "The content length of the video is invalid." - }, - "190015": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "The uploaded content must match the video size." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "190001": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "The specified video_Id does not exist." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] + }, + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/media/v1_beta" + } + } } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "190011": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "The video is already uploaded." - } - } - } - }, - "411": { - "description": "Content Length Required", - "x-response-codes": { - "errors": { - "190008": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "The content length is required." - } - } - } - }, - "416": { - "description": "Range Not Satisfiable", - "x-response-codes": { - "errors": { - "190009": { - "domain": "API_MEDIA", - "category": "REQUEST", - "description": "The Content-Range specified is incorrect. Use Content-Range: bytes {1}}-{2}/{3} and Content-Length:{4} headers." + ] + }, + "/document/create_document_from_url": { + "post": { + "tags": [ + "document" + ], + "description": "This method downloads a document from the provided URL and adds that document to the user's account. This method requires the URL of the document, the type of document to be uploaded, and the language(s) that the document contains.

When a document is successfully created, the method returns the HTTP Status Code 201 Created. The method returns documentId in the response payload, which you can use to retrieve the document resource. This ID is also returned in the location header, for convenience.

Important! Make sure to capture the document ID value returned in the response payload. This value is required to use the other methods in the document resource, and also needed to associate a document to a listing using the Trading and Inventory APIs.


After creating a document using this method, a getDocument call should be made to check for a documentStatus of ACCEPTED. Only documents with this status can be added to a listing. See Managing documents for more information on creating, uploading, and adding documents to listings.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

", + "operationId": "createDocumentFromUrl", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateDocumentFromUrlRequest" + } + } + }, + "required": false + }, + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The location response header returns the getDocument URI." + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateDocumentResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "190050": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Missing or invalid ā€˜languages’ value(s)." + }, + "190051": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Missing or invalid ā€˜documentType’ value." + }, + "190055": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Missing or invalid 'documentUrl' value." + }, + "190056": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Missing or invalid domain in 'documentUrl'." + }, + "190057": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Missing or malformed 'documentUrl'." + }, + "190058": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Missing or invalid 'request'." + }, + "190059": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid value for ā€˜documentUrl’ was supplied. Failed to download document from 'documentUrl'." + }, + "190060": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid value for ā€˜documentUrl’ was supplied. Please provide an HTTPS 'documentUrl'." + }, + "190061": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid value for ā€˜documentUrl’ was supplied. File type could not be detected from ā€˜documentUrl'." + }, + "190062": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid value for ā€˜documentUrl’ was supplied. Not an allowed file type for download from ā€˜documentUrl'." + }, + "190063": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid value for ā€˜documentUrl’ was supplied. File size exceeds the maximum limit from ā€˜documentUrl'." + } + } + } + }, + "500": { + "description": "Internal Server Error" + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] + }, + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/media/v1_beta" + } + } } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "190000": { - "domain": "API_MEDIA", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + ] + }, + "/document/{document_id}": { + "get": { + "tags": [ + "document" + ], + "description": "This method retrieves the current status and metadata of the specified document.

Important! The document ID value returned in the response payload of the createDocument method is a required input path parameter for this method.

See Managing documents for additional information.

", + "operationId": "getDocument", + "parameters": [ + { + "name": "document_id", + "in": "path", + "description": "The unique identifier of the document for which status and metadata is being retrieved.

This value is returned in the response of the createDocument method.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Uploaded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentResponse" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Document Not Found", + "x-response-codes": { + "errors": { + "190052": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "No document found with id {document_id}." + } + } + } + }, + "500": { + "description": "Internal Server Error" + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] + }, + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/media/v1_beta" + } + } } - } - } - } + ] }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" + "/document/{document_id}/upload": { + "post": { + "tags": [ + "document" + ], + "description": "This method associates the specified file with the specified document ID and uploads the input file. After the file has been uploaded, the processing of the file begins. Supported file types include .PDF, .JPEG/.JPG, and .PNG, with a maximum file size of 10 MB (10485760 bytes).

Note: Animated and multi-page PNG files are not currently supported.
Note: The document ID value returned in the response of the createDocument method is a required input path parameter for this method. This value is also returned in the location header of the createDocument response payload.
A successful upload returns the HTTP Status Code 200 OK.

See Managing documents for additional information.

Note: You must use a Content-Type header with its value set to multipart/form-data.

This call does not have a JSON Request payload but uploads the file as form-data. For example:
file: @"/C:/Users/.../drone_user_warranty.pdf"
See Samples for information.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

", + "operationId": "uploadDocument", + "parameters": [ + { + "name": "document_id", + "in": "path", + "description": "The unique identifier of the document to be uploaded.

This value is returned in the response of the createDocument method.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to multipart/form-data.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Uploaded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentResponse" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Document Not Found", + "x-response-codes": { + "errors": { + "190052": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "No document found with id {document_id}." + } + } + } + }, + "500": { + "description": "Internal Server Error" + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] + }, + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/media/v1_beta" + } + } + } ] - } - ] - } - } - }, - "components": { - "schemas": { - "CreateVideoRequest": { - "type": "object", - "properties": { - "classification": { - "type": "array", - "description": "The intended use for this video content. Currently, videos can only be added and associated with eBay listings, so the only supported value is ITEM.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "description": { - "type": "string", - "description": "The description of the video." - }, - "size": { - "type": "integer", - "description": "The size, in bytes, of the video content.

Max: 157,286,400 bytes", - "format": "int32" - }, - "title": { - "type": "string", - "description": "The title of the video." - } }, - "description": "The request to create a video, which must contain the video's title, size, and classification. Description is an optional field when creating videos." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of erro." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } + "/post_order/document/{document_id}": { + "get": { + "tags": [ + "post_order" + ], + "description": "This method downloads the file associated with the specified document ID. Access depends on the document’s state:

Note: After a document is uploaded (but not yet published), its status is SUBMITTED. Once its identifier is linked to a post‑order entity through an eBay GraphQL mutation, the status changes to PUBLISHED. A post-order entity is part of eBay's order management for activities after purchase (such as returns).

Important! The document must be in the SUBMITTED or PUBLISHED state to be downloadable. All documents (published or submitted) expire and become inaccessible after their expiration date.

", + "operationId": "downloadPostOrderDocument", + "parameters": [ + { + "name": "document_id", + "in": "path", + "description": "This path parameter is the unique identifier of the document associated with the file to be downloaded. This ID was returned in the Location response header when calling the uploadPostOrderDocument method to upload the document.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/pdf": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "190308": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The document identifier is missing from the request." + } + } + } + }, + "401": { + "description": "Unauthorized", + "x-response-codes": { + "errors": { + "190013": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Unauthorized access." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "190301": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid document identifier supplied in the request." + }, + "190302": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The document is no longer available because it has expired." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "190000": { + "domain": "API_MEDIA", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/commerce.post_order.document" + ] + } + ] + }, + "delete": { + "tags": [ + "post_order" + ], + "description": "This method deletes a previously uploaded document by its document ID. Only documents in SUBMITTED state can be removed; documents in the PUBLISHED state cannot be deleted.

Note: After a document is uploaded (but not yet published), its status is SUBMITTED. When its identifier is associated with a post‑order entity through an eBay GraphQL mutation, the status changes to PUBLISHED. A post-order entity is part of eBay's order management for activities after purchase (such as returns).

Important! All documents, whether submitted or published, expire and become inaccessible after their expiration date.

", + "operationId": "removePostOrderDocument", + "parameters": [ + { + "name": "document_id", + "in": "path", + "description": "This path parameter is the unique identifier of the document associated with the file to be deleted. This ID was returned in the Location response header when calling the uploadPostOrderDocument method to upload the document.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "190308": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The document identifier is missing from the request." + } + } + } + }, + "401": { + "description": "Unauthorized", + "x-response-codes": { + "errors": { + "190013": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Unauthorized access." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "190301": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid document identifier supplied in the request." + }, + "190302": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The document is no longer available because it has expired." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "190000": { + "domain": "API_MEDIA", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/commerce.post_order.document" + ] + } + ] + }, + "servers": [ + { + "url": "https://apiz.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/media/v1_beta" + } + } + } + ] }, - "description": "This type defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } + "/post_order/document": { + "post": { + "tags": [ + "post_order" + ], + "description": "This method uploads a document for post‑order processes (for example, a seller providing a return shipping label).

Supported file types include .PDF, .JPEG/.JPG, .BMP, .GIF and .PNG, with a maximum file size of 5 MB (5,242,880 bytes).

Note: Animated and multi-page PNG files are not currently supported. For multi-page content, use PDF. The maximum number of pages allowed varies by the documentUsageType.

Send a multipart/form‑data request with:

A successful call returns the HTTP Status Code 201 Created with the document ID in the Location header (no response body is returned). The document’s initial state is SUBMITTED. When its identifier is associated with a post-order entity through an eBay GraphQL mutation, the state changes to PUBLISHED.

Note: A post-order entity is part of eBay's order management for activities after purchase (such as returns).

Important!

", + "operationId": "uploadPostOrderDocument", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to multipart/form-data.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The location response header contains the URI of the newly created document ID in the format: https://apiz.ebay.com/commerce/media/v1_beta/post_order/document/{documentId}

Clients can extract the documentId from this URI to perform subsequent operations such as downloadDocument or removeDocument (using this resource), or to associate this document with a post-order entity (such as through an eBay GraphQL mutation).

" + } + } + }, + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "190303": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid post-order entity type supplied in the request." + }, + "190304": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid document usage type supplied in the request." + }, + "190305": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The post-order entity type is missing from the request." + }, + "190306": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The post-order entity identifier is missing from the request." + }, + "190307": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The document usage type is missing from the request." + }, + "190309": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The uploaded file format is not supported. Supported formats are: jpeg, png, bmp, gif, jpg, and pdf." + }, + "190310": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The uploaded PDF exceeds the maximum allowed number of pages." + }, + "190311": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The post-order entity state does not allow new documents for the specified usage type." + }, + "190312": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The maximum number of documents for the specified post-order entity has been reached." + }, + "190313": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The uploaded file could not be processed. Please upload a valid file." + }, + "190314": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The uploaded file exceeds the maximum allowed size of 5 MB." + }, + "190315": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "The file is missing from the request. Please upload a valid file." + } + } + } + }, + "401": { + "description": "Unauthorized", + "x-response-codes": { + "errors": { + "190013": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Unauthorized access." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "190300": { + "domain": "API_MEDIA", + "category": "REQUEST", + "description": "Invalid or unknown post-order entity identifier supplied in the request." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "190000": { + "domain": "API_MEDIA", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/commerce.post_order.document" + ] + } + ] + }, + "servers": [ + { + "url": "https://apiz.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/media/v1_beta" + } + } + } + ] } - }, - "Image": { - "type": "object", - "properties": { - "imageUrl": { - "type": "string", - "description": "The URL to access this image." - } - }, - "description": "The automatically generated thumbnail image of the video." - }, - "InputStream": { - "type": "object", - "description": "The streaming input of the video source. The input source must be an .mp4 file of the type MPEG-4 Part 10 or Advanced Video Coding (MPEG-4 AVC)." - }, - "Moderation": { - "type": "object", - "properties": { - "rejectReasons": { - "type": "array", - "description": "The reason(s) why the specified video was blocked by moderators.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - } - }, - "description": "A container that provides video moderation information when calling the getVideo method.

This container is returned if the specified video has been blocked by moderators.

Tip: See Video moderation and restrictions in the eBay Seller Center for details about video moderation." - }, - "Play": { - "type": "object", - "properties": { - "playUrl": { - "type": "string", - "description": "The playable URL for this video." - }, - "protocol": { - "type": "string", - "description": "The protocol for the video playlist. Supported protocols are DASH (Dynamic Adaptive Streaming over HTTP) and HLS (HTTPĀ Live Streaming). For implementation help, refer to eBay API documentation" - } - }, - "description": "The two streaming video URLs available for a successfully uploaded video with a status of LIVE. The supported streaming video protocols are DASH (Dynamic Adaptive Streaming over HTTP) and HLS (HTTPĀ Live Streaming)." - }, - "Video": { - "type": "object", - "properties": { - "classification": { - "type": "array", - "description": "The intended use for this video content. Currently, videos can only be added and associated with eBay listings, so the only supported value is ITEM.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "description": { - "type": "string", - "description": "The description of the video. The video description is an optional field that can be set using the createVideo method." - }, - "expirationDate": { - "type": "string", - "description": "The expiration date of the video in Coordinated Universal Time (UTC). The video’s expiration date is automatically set to 365 days (one year) after the video’s initial upload." - }, - "moderation": { - "description": "The video moderation information that is returned if a video is blocked by moderators.

Tip: See Video moderation and restrictions in the eBay Seller Center for details about video moderation.

If the video status is BLOCKED, ensure that the video complies with eBay's video formatting and content guidelines. Afterwards, begin the video creation and upload procedure anew using the createVideo and uploadVideo methods.", - "$ref": "#/components/schemas/Moderation" - }, - "playLists": { - "type": "array", - "description": "The playlist created for the uploaded video, which provides the streaming video URLs to play the video. The supported streaming video protocols are DASH (Dynamic Adaptive Streaming over HTTP) and HLS (HTTPĀ Live Streaming). The playlist will only be generated if a video is successfully uploaded with a status of LIVE.", - "items": { - "$ref": "#/components/schemas/Play" + }, + "components": { + "schemas": { + "CreateDocumentFromUrlRequest": { + "type": "object", + "properties": { + "documentType": { + "type": "string", + "description": "The type of the document being created. For example, a USER_GUIDE_OR_MANUAL or a SAFETY_DATA_SHEET. For implementation help, refer to eBay API documentation" + }, + "documentUrl": { + "type": "string", + "description": "The URL of the document being created.

The document referenced by the URL must be a .pdf, .png, .jpg, or .jpeg file, and must be no larger than 10 MB." + }, + "languages": { + "type": "array", + "description": "This array shows the language(s) used in the document.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + } + }, + "description": "This type contains the metadata used to create the document ID when creating a document using a URL." + }, + "CreateDocumentRequest": { + "type": "object", + "properties": { + "documentType": { + "type": "string", + "description": "The type of the document being uploaded. For example, a USER_GUIDE_OR_MANUAL or a SAFETY_DATA_SHEET. For implementation help, refer to eBay API documentation" + }, + "languages": { + "type": "array", + "description": "This array shows the language(s) used in the document.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + } + }, + "description": "This type contains the metadata used to create the document ID." + }, + "CreateDocumentResponse": { + "type": "object", + "properties": { + "documentId": { + "type": "string", + "description": "The unique identifier of the document to be uploaded.

This value is returned in the response and location header of the createDocument and createDocumentFromUrl methods. This ID can be used with the getDocument and uploadDocument methods, and to add an uploaded document to a listing. See Adding documents to listings for more information. " + }, + "documentStatus": { + "type": "string", + "description": "The status of the document resource.

For example, the value PENDING_UPLOAD is the initial state when the reference to the document has been created using the createDocument method. When creating a document using the createDocumentFromUrl method, the initial state will be SUBMITTED. For implementation help, refer to eBay API documentation" + }, + "documentType": { + "type": "string", + "description": "The type of the document uploaded. For example, USER_GUIDE_OR_MANUAL. For implementation help, refer to eBay API documentation" + }, + "languages": { + "type": "array", + "description": "This array shows the language(s) used in the document.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + } + }, + "description": "This type provides information about the created document ID." + }, + "CreateImageFromUrlRequest": { + "type": "object", + "properties": { + "imageUrl": { + "type": "string", + "description": "The image URL of the self-hosted picture to upload to eBay Picture Services (EPS). In addition to the picture requirements in Picture policy, the provided URL must be secured using HTTPS (HTTP is not permitted). For more information, see Image requirements." + } + }, + "description": "A type that provides the location of the image." + }, + "CreateVideoRequest": { + "type": "object", + "properties": { + "classification": { + "type": "array", + "description": "The intended use for this video content. Currently, videos can only be added and associated with eBay listings, so the only supported value is ITEM.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + }, + "description": { + "type": "string", + "description": "The description of the video." + }, + "size": { + "type": "integer", + "description": "The size, in bytes, of the video content.

Max: 157,286,400 bytes", + "format": "int32" + }, + "title": { + "type": "string", + "description": "The title of the video." + } + }, + "description": "The request to create a video, which must contain the video's title, size, and classification. Description is an optional field when creating videos." + }, + "DocumentMetadata": { + "type": "object", + "properties": { + "fileName": { + "type": "string", + "description": "The name of the file including its extension (for example, drone_user_warranty.pdf)." + }, + "fileSize": { + "type": "string", + "description": "The size, in bytes, of the document content." + }, + "fileType": { + "type": "string", + "description": "The type of the file uploaded. Supported file types include the following: pdf, jpeg, jpg, and png." + } + }, + "description": "This type provides information about the documentId." + }, + "DocumentResponse": { + "type": "object", + "properties": { + "documentId": { + "type": "string", + "description": "The unique ID of the document." + }, + "documentMetadata": { + "description": "This container provides the name, size, and type of the specified file.", + "$ref": "#/components/schemas/DocumentMetadata" + }, + "documentStatus": { + "type": "string", + "description": "The status of the document resource.

Once a document has been uploaded using the uploadDocument method, the documentStatus will be SUBMITTED. The document will then either be accepted or rejected. Only documents with the status of ACCEPTED are available to be added to a listing. For implementation help, refer to eBay API documentation" + }, + "documentType": { + "type": "string", + "description": "The type of the document uploaded. For example, USER_GUIDE_OR_MANUAL. For implementation help, refer to eBay API documentation" + }, + "languages": { + "type": "array", + "description": "This array shows the language(s) used in the document.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + } + }, + "description": "This type provides information returned about a created document ID, which may or may not have been uploaded." + }, + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Identifies the type of erro." + }, + "domain": { + "type": "string", + "description": "Name for the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique number to identify the error.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A more detailed explanation of the error." + }, + "message": { + "type": "string", + "description": "Information on how to correct the problem, in the end user's terms and language where applicable." + }, + "outputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." + } + }, + "description": "This type defines the fields that can be returned in an error." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The object of the error." + }, + "value": { + "type": "string", + "description": "The value of the object." + } + } + }, + "Image": { + "type": "object", + "properties": { + "imageUrl": { + "type": "string", + "description": "The URL of the image's location." + } + }, + "description": "A type that provides the location of the image." + }, + "ImageResponse": { + "type": "object", + "properties": { + "expirationDate": { + "type": "string", + "description": "The date and time when an unused EPS image will expire and be removed from the EPS server, in Coordinated Universal Time (UTC). As long as an EPS image is being used in an active listing, that image will remain on the EPS server and be accessible." + }, + "imageUrl": { + "type": "string", + "description": "The EPS URL to access the uploaded image. This URL will be used in listing calls to add the image to a listing." + }, + "maxDimensionImageUrl": { + "type": "string", + "description": "The EPS URL to access the maximum dimension version of the uploaded image." + } + }, + "description": "A type that provides an image's details including its URL and expiration." + }, + "Moderation": { + "type": "object", + "properties": { + "rejectReasons": { + "type": "array", + "description": "The reason(s) why the specified video was blocked by moderators.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + } + }, + "description": "A container that provides video moderation information when calling the getVideo method.

This container is returned if the specified video has been blocked by moderators.

Tip: See Video moderation and restrictions in the eBay Seller Center for details about video moderation." + }, + "Play": { + "type": "object", + "properties": { + "playUrl": { + "type": "string", + "description": "The playable URL for this video." + }, + "protocol": { + "type": "string", + "description": "The protocol for the video playlist. Supported protocols are DASH (Dynamic Adaptive Streaming over HTTP) and HLS (HTTPĀ Live Streaming). For implementation help, refer to eBay API documentation" + } + }, + "description": "The two streaming video URLs available for a successfully uploaded video with a status of LIVE. The supported streaming video protocols are DASH (Dynamic Adaptive Streaming over HTTP) and HLS (HTTPĀ Live Streaming)." + }, + "Video": { + "type": "object", + "properties": { + "classification": { + "type": "array", + "description": "The intended use for this video content. Currently, videos can only be added and associated with eBay listings, so the only supported value is ITEM.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + }, + "description": { + "type": "string", + "description": "The description of the video. The video description is an optional field that can be set using the createVideo method." + }, + "expirationDate": { + "type": "string", + "description": "The date and time when an unused video will expire and be removed from the eBay Video Services server, in Coordinated Universal Time (UTC).

As long as a video is being used in an active listing, that video will remain on the server and be accessible. If a video is not being used on an active listing, its expiration date is automatically set to 30 days after the video's initial upload." + }, + "moderation": { + "description": "The video moderation information that is returned if a video is blocked by moderators.

Tip: See Video moderation and restrictions in the eBay Seller Center for details about video moderation.

If the video status is BLOCKED, ensure that the video complies with eBay's video formatting and content guidelines. Afterwards, begin the video creation and upload procedure anew using the createVideo and uploadVideo methods.", + "$ref": "#/components/schemas/Moderation" + }, + "playLists": { + "type": "array", + "description": "The playlist created for the uploaded video, which provides the streaming video URLs to play the video. The supported streaming video protocols are DASH (Dynamic Adaptive Streaming over HTTP) and HLS (HTTPĀ Live Streaming). The playlist will only be generated if a video is successfully uploaded with a status of LIVE.", + "items": { + "$ref": "#/components/schemas/Play" + } + }, + "size": { + "type": "integer", + "description": "The size, in bytes, of the video content.", + "format": "int32" + }, + "status": { + "type": "string", + "description": "The status of the current video resource. For implementation help, refer to eBay API documentation" + }, + "statusMessage": { + "type": "string", + "description": "The statusMessage field contains additional information on the status. For example, information on why processing might have failed or if the video was blocked." + }, + "thumbnail": { + "description": "The URL of the thumbnail image of the video. The thumbnail image's URL must be an eBayPictureURL (EPS URL).", + "$ref": "#/components/schemas/Image" + }, + "title": { + "type": "string", + "description": "The title of the video." + }, + "videoId": { + "type": "string", + "description": "The unique ID of the video." + } + }, + "description": "A response field that retrieves all the metadata for the video, including its title, classification, size, description, status, status message (if any), and expiration date." } - }, - "size": { - "type": "integer", - "description": "The size, in bytes, of the video content.", - "format": "int32" - }, - "status": { - "type": "string", - "description": "The status of the current video resource. For implementation help, refer to eBay API documentation" - }, - "statusMessage": { - "type": "string", - "description": "The statusMessage field contains additional information on the status. For example, information on why processing might have failed or if the video was blocked." - }, - "thumbnail": { - "description": "The URL of the thumbnail image of the video. The thumbnail image's URL must be an eBayPictureURL (EPS URL).", - "$ref": "#/components/schemas/Image" - }, - "title": { - "type": "string", - "description": "The title of the video." - }, - "videoId": { - "type": "string", - "description": "The unique ID of the video." - } }, - "description": "A response field that retrieves all the metadata for the video, including its title, classification, size, description, status, status message (if any), and expiration date." - } - }, - "securitySchemes": { - "api_auth": { - "type": "oauth2", - "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": { - "authorizationCode": { - "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope/sell.inventory": "View and manage your inventory and offers" + "securitySchemes": { + "api_auth": { + "type": "oauth2", + "description": "The security definitions for this API. Please check individual operations for applicable scopes.", + "flows": { + "authorizationCode": { + "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope/sell.inventory": "View and manage your inventory and offers" + } + } + } } - } } - } } - } } \ No newline at end of file diff --git a/specs/commerce_notification_v1_oas3.json b/specs/commerce_notification_v1_oas3.json index 482e5ecc..fe860f3d 100644 --- a/specs/commerce_notification_v1_oas3.json +++ b/specs/commerce_notification_v1_oas3.json @@ -1,1846 +1,2263 @@ { - "openapi": "3.0.0", - "info": { - "title": "Notification API", - "description": "The eBay Notification API enables management of the entire end-to-end eBay notification experience by allowing users to:", - "contact": { - "name": "eBay Inc," - }, - "license": { - "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" - }, - "version": "v1.2.0" - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/commerce/notification/v1" - } - } - } - ], - "paths": { - "/public_key/{public_key_id}": { - "get": { - "tags": [ - "public_key" - ], - "description": "This method allows users to retrieve a public key using a specified key ID. The public key that is returned in the response payload is used to process and validate eBay notifications.

The public key ID, which is a required request parameter for this method, is retrieved from the Base64-encoded X-EBAY-SIGNATURE header that is included in the eBay notification.

Note: For more details about how to process eBay push notifications and validate notification message payloads, see the Notification API overview.", - "operationId": "getPublicKey", - "parameters": [ - { - "name": "public_key_id", - "in": "path", - "description": "The unique key ID that is used to retrieve the public key.

Note: This is retrieved from the X-EBAY-SIGNATURE header that is included with the push notification.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PublicKey" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195001": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "The specified key id is invalid." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } + "openapi": "3.0.0", + "info": { + "title": "Notification API", + "description": "The eBay Notification API enables management of the entire end-to-end eBay notification experience by allowing users to:", + "contact": { + "name": "eBay Inc," }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/topic/{topic_id}": { - "get": { - "tags": [ - "topic" - ], - "description": "This method allows applications to retrieve details for the specified topic. This information includes supported schema versions, formats, and other metadata for the topic.

Applications can subscribe to any of the topics for a supported schema version and format, limited by the authorization scopes required to subscribe to the topic.

A topic specifies the type of information to be received and the data types associated with an event. An event occurs in the eBay system, such as when a user requests deletion or revokes access for an application. An event is an instance of an event type (topic).

Specify the topic to retrieve using the topic_id URI parameter.

Note: Use the getTopics method to find a topic if you do not know the topic ID.", - "operationId": "getTopic", - "parameters": [ - { - "name": "topic_id", - "in": "path", - "description": "The ID of the topic for which to retrieve the details.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Topic" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195002": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing topic id." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } + "license": { + "name": "eBay API License Agreement", + "url": "https://developer.ebay.com/join/api-license-agreement" }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } + "version": "v1.6.7" }, - "/topic": { - "get": { - "tags": [ - "topic" - ], - "description": "This method returns a paginated collection of all supported topics, along with the details for the topics. This information includes supported schema versions, formats, and other metadata for the topics.

Applications can subscribe to any of the topics for a supported schema version and format, limited by the authorization scopes required to subscribe to the topic.

A topic specifies the type of information to be received and the data types associated with an event. An event occurs in the eBay system, such as when a user requests deletion or revokes access for an application. An event is an instance of an event type (topic).", - "operationId": "getTopics", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "The maximum number of items to return per page from the result set. A result set is the complete set of results returned by the method. Range is from 10-100.

If this parameter is omitted, the default value is used.

Default: 20

Maximum: 100 items per page", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "continuation_token", - "in": "query", - "description": "The token used to access the next set of results.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TopicSearchResponse" + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/notification/v1" } - } } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "195004": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid limit. Supported ranges 10 - 100." + } + ], + "paths": { + "/config": { + "get": { + "tags": [ + "config" + ], + "description": "This method allows applications to retrieve a previously created configuration.", + "operationId": "getConfig", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Config" + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195026": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "Configuration Not Found." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195005": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid continuation token." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/subscription": { - "get": { - "tags": [ - "subscription" - ], - "description": "This method allows applications to retrieve a list of all subscriptions. The list returned is a paginated collection of subscription resources.

Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.", - "operationId": "getSubscriptions", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "The number of items, from the result set, returned in a single page. Range is from 10-100. If this parameter is omitted, the default value is used.

Default: 20

Maximum: 100 items per page", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "continuation_token", - "in": "query", - "description": "The continuation token for the next set of results.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionSearchResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "195004": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid limit. Supported ranges 10 - 100." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] + }, + "put": { + "tags": [ + "config" + ], + "description": "This method allows applications to create a new configuration or update an existing configuration. This app-level configuration allows developers to set up alerts.", + "operationId": "updateConfig", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The configurations for this application.", + "content": { + "application/json": { + "schema": { + "description": "The configurations for this application.", + "$ref": "#/components/schemas/Config" + } + } + }, + "required": false }, - "195005": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid continuation token." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" - ] - } - ] - }, - "post": { - "tags": [ - "subscription" - ], - "description": "This method allows applications to create a subscription for a topic and supported schema version. Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.

Each application and topic-schema pairing to a subscription should have a 1:1 cardinality.

You can create the subscription in disabled mode, test it (see the test method), and when everything is ready, you can enable the subscription (see the enableSubscription method).

Note: If an application is not authorized to subscribe to a topic, for example, if your authorization does not include the list of scopes required for the topic, an error code of 195011 is returned.", - "operationId": "createSubscription", - "requestBody": { - "description": "The create subscription request.", - "content": { - "application/json": { - "schema": { - "description": "The create subscription request.", - "$ref": "#/components/schemas/CreateSubscriptionRequest" - } + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195025": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing email." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - }, - "required": false }, - "responses": { - "201": { - "description": "Created", - "headers": { - "Location": { - "schema": { - "type": "string", - "description": "The subscription resource created." - } - } - }, - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "195006": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing subscription status." + "/destination": { + "get": { + "tags": [ + "destination" + ], + "description": "This method allows applications to retrieve a paginated collection of destination resources and related details. The details include the destination names, statuses, and configurations, including the endpoints and verification tokens.", + "operationId": "getDestinations", + "parameters": [ + { + "name": "continuation_token", + "in": "query", + "description": "This string value can be used to return the next page in the result set. The string to use here is returned in the next field of the current page of results.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The maximum number of destinations to return per page from the result set.

Min: 10

Max: 100

Default: 20", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DestinationSearchResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195004": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid limit. Supported ranges 10 - 100." + }, + "195005": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid continuation token." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195007": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing destination id." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] + }, + "post": { + "tags": [ + "destination" + ], + "description": "This method allows applications to create a destination. A destination is an endpoint that receives HTTP push notifications.

A single destination for all topics is valid, as is individual destinations for each topic.

To update a destination, use the updateDestination call.

The destination created will need to be referenced while creating or updating a subscription to a topic.

Note: The destination should be created and ready to respond with the expected challengeResponse for the endpoint to be registered successfully. Refer to the Notification API overview for more information.", + "operationId": "createDestination", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The create destination request.", + "content": { + "application/json": { + "schema": { + "description": "The create destination request.", + "$ref": "#/components/schemas/DestinationRequest" + } + } + }, + "required": false }, - "195008": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing schema version. Please refer to /topic/{topic_id} for supported schema versions." + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The destination resource created." + } + } + }, + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195016": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid name. Markups or lengths greater than 64 not supported" + }, + "195017": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing endpoint." + }, + "195018": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing destination status. Supported values:[ENABLED,DISABLED]" + }, + "195019": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing verification token for this endpoint." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "195003": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Please provide configurations required for notifications. Refer to /config" + }, + "195020": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Challenge verification failed for requested endpoint" + }, + "195021": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Destination exists for this endpoint" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195009": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Specified format is not supported for the topic." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] + } + }, + "/destination/{destination_id}": { + "get": { + "tags": [ + "destination" + ], + "description": "This method allows applications to fetch the details for a destination. The details include the destination name, status, and configuration, including the endpoint and verification token.", + "operationId": "getDestination", + "parameters": [ + { + "name": "destination_id", + "in": "path", + "description": "The unique identifier of the destination to retrieve. Use getDestinations to retrieve destination IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Destination" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195022": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing destination id." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195010": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing protocol" + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] + }, + "put": { + "tags": [ + "destination" + ], + "description": "This method allows applications to update a destination.

Note: The destination should be created and ready to respond with the expected challengeResponse for the endpoint to be registered successfully. Refer to the Notification API overview for more information.", + "operationId": "updateDestination", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "destination_id", + "in": "path", + "description": "The unique identifier for the destination.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The create subscription request.", + "content": { + "application/json": { + "schema": { + "description": "The create subscription request.", + "$ref": "#/components/schemas/DestinationRequest" + } + } + }, + "required": false }, - "195027": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing topic id." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "195011": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Not authorized for this topic." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "195003": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Please provide configurations required for notifications. Refer to /config" + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195016": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid name. Markups or lengths greater than 64 not supported" + }, + "195017": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing endpoint." + }, + "195018": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing destination status. Supported values:[ENABLED,DISABLED]" + }, + "195019": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing verification token for this endpoint." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195022": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing destination id." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "195020": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Challenge verification failed for requested endpoint" + }, + "195021": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Destination exists for this endpoint" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195012": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Subscription already exists" + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] + }, + "delete": { + "tags": [ + "destination" + ], + "description": "This method provides applications a way to delete a destination.

The same destination ID can be used by many destinations.

Trying to delete an active destination results in an error. You can disable a subscription, and when the destination is no longer in use, you can delete it.", + "operationId": "deleteDestination", + "parameters": [ + { + "name": "destination_id", + "in": "path", + "description": "The unique identifier of the destination to delete. Only disabled or marked down destinations can be deleted, and enabled destinations cannot be deleted. Use getDestination or getDestinations to see the current status of a destination. ", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195022": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing destination id." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "195024": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Destination is in use and cannot be deleted." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195015": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "The subscription cannot be enabled since the destination is not enabled." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" - ] - } - ] - } - }, - "/subscription/{subscription_id}": { - "get": { - "tags": [ - "subscription" - ], - "description": "This method allows applications to retrieve subscription details for the specified subscription.

Specify the subscription to retrieve using the subscription_id. Use the getSubscriptions method to browse all subscriptions if you do not know the subscription_id.

Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.", - "operationId": "getSubscription", - "parameters": [ - { - "name": "subscription_id", - "in": "path", - "description": "The unique identifier for the subscription.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Subscription" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195013": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": " Invalid subscription Id." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "/public_key/{public_key_id}": { + "get": { + "tags": [ + "public_key" + ], + "description": "This method allows users to retrieve a public key using a specified key ID. The public key that is returned in the response payload is used to process and validate eBay notifications.

The public key ID, which is a required request parameter for this method, is retrieved from the Base64-encoded X-EBAY-SIGNATURE header that is included in the eBay notification.

Important! The retrieved public key value should be cached for a temporary — but reasonable — amount of time (e.g., one-hour is recommended.) This key should not be requested for every notification since doing so can result in exceeding API call limits if a large number of notification requests is received.


Note: For more details about how to process eBay push notifications and validate notification message payloads, see the Notification API overview.", + "operationId": "getPublicKey", + "parameters": [ + { + "name": "public_key_id", + "in": "path", + "description": "The unique key ID that is used to retrieve the public key.

Note: This is retrieved from the X-EBAY-SIGNATURE header that is included with the push notification.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublicKey" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195001": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The specified key id is invalid." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" - ] - } - ] - }, - "put": { - "tags": [ - "subscription" - ], - "description": "This method allows applications to update a subscription. Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.

Note: This call returns an error if an application is not authorized to subscribe to a topic.

You can pause and restart a subscription. See the disableSubscription and enableSubscription methods.", - "operationId": "updateSubscription", - "parameters": [ - { - "name": "subscription_id", - "in": "path", - "description": "The unique identifier for the subscription.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The create subscription request.", - "content": { - "application/json": { - "schema": { - "description": "The create subscription request.", - "$ref": "#/components/schemas/UpdateSubscriptionRequest" - } + "/subscription": { + "get": { + "tags": [ + "subscription" + ], + "description": "This method allows applications to retrieve a list of all subscriptions. The list returned is a paginated collection of subscription resources.

Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.", + "operationId": "getSubscriptions", + "parameters": [ + { + "name": "continuation_token", + "in": "query", + "description": "This string value can be used to return the next page in the result set. The string to use here is returned in the next field of the current page of results.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The maximum number of subscriptions to return per page from the result set.

Min: 10

Max: 100

Default: 20", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionSearchResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195004": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid limit. Supported ranges 10 - 100." + }, + "195005": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid continuation token." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] + }, + "post": { + "tags": [ + "subscription" + ], + "description": "This method allows applications to create a subscription for a topic and supported schema version. Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.

Each application and topic-schema pairing to a subscription should have a 1:1 cardinality.

You can create the subscription in disabled mode, test it (see the test method), and when everything is ready, you can enable the subscription (see the enableSubscription method).

Note: If an application is not authorized to subscribe to a topic, for example, if your authorization does not include the list of scopes required for the topic, an error code of 195011 is returned.", + "operationId": "createSubscription", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The create subscription request.", + "content": { + "application/json": { + "schema": { + "description": "The create subscription request.", + "$ref": "#/components/schemas/CreateSubscriptionRequest" + } + } + }, + "required": false + }, + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The subscription resource created." + } + } + }, + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195006": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing subscription status." + }, + "195007": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing destination id." + }, + "195008": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing schema version. Please refer to /topic/{topic_id} for supported schema versions." + }, + "195009": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Specified format is not supported for the topic." + }, + "195010": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing protocol" + }, + "195027": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing topic id." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "195011": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Not authorized for this topic." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "195003": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Please provide configurations required for notifications. Refer to /config" + }, + "195012": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Subscription already exists" + }, + "195015": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription cannot be enabled since the destination is not enabled." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] } - }, - "required": false }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "195006": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing subscription status." + "/subscription/{subscription_id}/filter": { + "post": { + "tags": [ + "subscription" + ], + "description": "This method allows applications to create a filter for a subscription. Filters allow applications to only be sent notifications that match a provided criteria. Notifications that do not match this criteria will not be sent to the destination.

The filterSchema value must be a valid JSON Schema Core document (version 2020-12 or later). The filterSchema provided must describe the subscription's notification payload such that it supplies valid criteria to filter the subscription's notifications. The user does not need to provide $schema and $id definitions.

When a filter is first created, it is not immediately active on the subscription. If the request has a valid JSON body, the successful call returns the HTTP status code 201 Created. Newly created filters are in PENDING status until they are reviewed. If a filter is valid, it will move from PENDING status to ENABLED status. You can find the status of a filter using the getSubscriptionFilter method. See Creating a subscription filter for a topic for additional information.

Note: Only one filter can be in ENABLED (which means active) status on a subscription at a time. If an ENABLED filter is overwritten by a new call to CREATE a filter for the subscription, it stays in ENABLED status until the new PENDING filter becomes the ENABLED filter, and the existing filter then becomes DISABLED.", + "operationId": "createSubscriptionFilter", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "subscription_id", + "in": "path", + "description": "The unique identifier of the subscription for which a filter will be created.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The create subscription filter request.", + "content": { + "application/json": { + "schema": { + "description": "The create subscription filter request.", + "$ref": "#/components/schemas/CreateSubscriptionFilterRequest" + } + } + }, + "required": false }, - "195007": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing destination id." + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The location where the subscription filter resource was created." + } + } + }, + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195032": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The specified subscription topic is not filterable." + }, + "195033": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The specified 'filterSchema' value is invalid." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "195028": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The application is not authorized to access the specified subscription." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195013": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription id does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195008": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing schema version. Please refer to /topic/{topic_id} for supported schema versions." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] + } + }, + "/subscription/{subscription_id}": { + "get": { + "tags": [ + "subscription" + ], + "description": "This method allows applications to retrieve subscription details for the specified subscription.

Specify the subscription to retrieve using the subscription_id. Use the getSubscriptions method to browse all subscriptions if you do not know the subscription_id.

Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.", + "operationId": "getSubscription", + "parameters": [ + { + "name": "subscription_id", + "in": "path", + "description": "The unique identifier of the subscription to retrieve. Use getSubscriptions to retrieve subscription IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Subscription" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195013": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription id does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195009": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Specified format is not supported for the topic." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] + }, + "put": { + "tags": [ + "subscription" + ], + "description": "This method allows applications to update a subscription. Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.

Note: This call returns an error if an application is not authorized to subscribe to a topic.

You can pause and restart a subscription. See the disableSubscription and enableSubscription methods.", + "operationId": "updateSubscription", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "subscription_id", + "in": "path", + "description": "The unique identifier for the subscription to update. Use getSubscriptions to retrieve subscription IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The create subscription request.", + "content": { + "application/json": { + "schema": { + "description": "The create subscription request.", + "$ref": "#/components/schemas/UpdateSubscriptionRequest" + } + } + }, + "required": false }, - "195010": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing protocol" - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195013": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": " Invalid subscription Id." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "195012": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Subscription already exists" + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195006": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing subscription status." + }, + "195007": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing destination id." + }, + "195008": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing schema version. Please refer to /topic/{topic_id} for supported schema versions." + }, + "195009": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Specified format is not supported for the topic." + }, + "195010": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing protocol" + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195013": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription id does not exist." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "195012": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Subscription already exists" + }, + "195014": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription cannot be enabled since the topic or payload is no longer supported." + }, + "195015": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription cannot be enabled since the destination is not enabled." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195014": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "The subscription cannot be enabled since the topic or payload is no longer supported." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] + }, + "delete": { + "tags": [ + "subscription" + ], + "description": "This method allows applications to delete a subscription. Subscriptions can be deleted regardless of status.", + "operationId": "deleteSubscription", + "parameters": [ + { + "name": "subscription_id", + "in": "path", + "description": "The unique identifier of the subscription to delete. Use getSubscriptions to retrieve subscription IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195013": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": " The subscription id does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195015": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "The subscription cannot be enabled since the destination is not enabled." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" - ] - } - ] - }, - "delete": { - "tags": [ - "subscription" - ], - "description": "This method allows applications to delete a subscription. Subscriptions can be deleted regardless of status.", - "operationId": "deleteSubscription", - "parameters": [ - { - "name": "subscription_id", - "in": "path", - "description": "The unique identifier for the subscription.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195013": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": " Invalid subscription Id." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "/subscription/{subscription_id}/filter/{filter_id}": { + "get": { + "tags": [ + "subscription" + ], + "description": "This method allows applications to retrieve the filter details for the specified subscription filter.

Specify the subscription filter to retrieve by using the subscription_id and the filter_id associated with the subscription filter. The filter_id can be found in the response body for the getSubscription method, if there is a filter applied on the subscription.

Filters allow applications to only be sent notifications that match a provided criteria. Notifications that do not match this criteria will not be sent to the destination.", + "operationId": "getSubscriptionFilter", + "parameters": [ + { + "name": "filter_id", + "in": "path", + "description": "The unique identifier of the subscription filter. Filter ID values, if configured for a subscription, will be shown in the subscriptions.filterId field in getSubscription and getSubscription responses. The filter ID value is also returned in the Location response header when a filter is created with createSubscriptionFilter.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "subscription_id", + "in": "path", + "description": "The unique identifier of the subscription associated with the filter. Use getSubscriptions to retrieve subscription IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionFilter" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195031": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The specified subscription id does not match the specified filter id." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "195028": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The application is not authorized to access the specified subscription." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195013": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription id does not exist." + }, + "195029": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid subscription filter id." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] + }, + "delete": { + "tags": [ + "subscription" + ], + "description": "This method allows applications to disable the active filter on a subscription, so that a new subscription filter may be added.

Note: Subscription filters in PENDING status can not be disabled. However, a new filter can be created instead with the createSubscriptionFilter method and this new filter will override the PENDING filter.", + "operationId": "deleteSubscriptionFilter", + "parameters": [ + { + "name": "filter_id", + "in": "path", + "description": "The unique identifier of the subscription filter to delete. Filter ID values, if configured for a subscription, will be shown in the subscriptions.filterId field in getSubscription and getSubscription responses. The filter ID value is also returned in the Location response header when a filter is created with createSubscriptionFilter.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "subscription_id", + "in": "path", + "description": "The unique identifier of the subscription associated with the filter to delete. Use getSubscriptions to retrieve subscription IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195031": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The specified subscription id does not match the specified filter id." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "195028": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The application is not authorized to access the specified subscription." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195013": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription id does not exist." + }, + "195029": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid subscription filter id." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" - ] - } - ] - } - }, - "/subscription/{subscription_id}/enable": { - "post": { - "tags": [ - "subscription" - ], - "description": "This method allows applications to enable a disabled subscription. To pause (or disable) an enabled subscription, call disableSubscription.", - "operationId": "enableSubscription", - "parameters": [ - { - "name": "subscription_id", - "in": "path", - "description": "The unique identifier for the subscription.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195013": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": " Invalid subscription Id." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "195014": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "The subscription cannot be enabled since the topic or payload is no longer supported." + "/subscription/{subscription_id}/disable": { + "post": { + "tags": [ + "subscription" + ], + "description": "This method disables a subscription, which prevents the subscription from providing notifications. To restart a subscription, call enableSubscription.", + "operationId": "disableSubscription", + "parameters": [ + { + "name": "subscription_id", + "in": "path", + "description": "The unique identifier of an enabled subscription that will be disabled. Use getSubscriptions to retrieve subscription IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195013": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription id does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195015": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "The subscription cannot be enabled since the destination is not enabled." - } - } + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" - ] - } - ] - } - }, - "/subscription/{subscription_id}/disable": { - "post": { - "tags": [ - "subscription" - ], - "description": "This method disables a subscription, which prevents the subscription from providing notifications. To restart a subscription, call enableSubscription.", - "operationId": "disableSubscription", - "parameters": [ - { - "name": "subscription_id", - "in": "path", - "description": "The unique identifier for the subscription.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195013": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": " Invalid subscription Id." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "/subscription/{subscription_id}/enable": { + "post": { + "tags": [ + "subscription" + ], + "description": "This method allows applications to enable a disabled subscription. To pause (or disable) an enabled subscription, call disableSubscription.", + "operationId": "enableSubscription", + "parameters": [ + { + "name": "subscription_id", + "in": "path", + "description": "The unique identifier of a disabled subscription that will be enabled. Use getSubscriptions to retrieve subscription IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195013": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription id does not exist." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "195014": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription cannot be enabled since the topic or payload is no longer supported." + }, + "195015": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "The subscription cannot be enabled since the destination is not enabled." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" - ] - } - ] - } - }, - "/subscription/{subscription_id}/test": { - "post": { - "tags": [ - "subscription" - ], - "description": "This method triggers a mocked test payload that includes a notification ID, publish date, and so on. Use this method to test your subscription end-to-end.

You can create the subscription in disabled mode, test it using this method, and when everything is ready, you can enable the subscription (see the enableSubscription method).

Note: Use the notificationId to tell the difference between a test payload and a real payload.", - "operationId": "test", - "parameters": [ - { - "name": "subscription_id", - "in": "path", - "description": "The unique identifier for the subscription.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "202": { - "description": "Accepted" - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195013": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": " Invalid subscription Id." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "/subscription/{subscription_id}/test": { + "post": { + "tags": [ + "subscription" + ], + "description": "This method triggers a mocked test payload that includes a notification ID, publish date, and so on. Use this method to test your subscription end-to-end.

You can create the subscription in disabled mode, test it using this method, and when everything is ready, you can enable the subscription (see the enableSubscription method).

Note: Use the notificationId to tell the difference between a test payload and a real payload.", + "operationId": "testSubscription", + "parameters": [ + { + "name": "subscription_id", + "in": "path", + "description": "The unique identifier of the subscription to test. Use getSubscriptions to retrieve subscription IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195013": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": " The subscription id does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription" - ] - } - ] - } - }, - "/destination": { - "get": { - "tags": [ - "destination" - ], - "description": "This method allows applications to retrieve a paginated collection of destination resources and related details. The details include the destination names, statuses, and configurations, including the endpoints and verification tokens.", - "operationId": "getDestinations", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "The number of items, from the result set, returned in a single page. Range is from 10-100. If this parameter is omitted, the default value is used.

Default: 20

Maximum: 100 items per page", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "continuation_token", - "in": "query", - "description": "The continuation token for the next set of results.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DestinationSearchResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "195004": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid limit. Supported ranges 10 - 100." + "/topic/{topic_id}": { + "get": { + "tags": [ + "topic" + ], + "description": "This method allows applications to retrieve details for the specified topic. This information includes supported schema versions, formats, and other metadata for the topic.

Applications can subscribe to any of the topics for a supported schema version and format, limited by the authorization scopes required to subscribe to the topic.

A topic specifies the type of information to be received and the data types associated with an event. An event occurs in the eBay system, such as when a user requests deletion or revokes access for an application. An event is an instance of an event type (topic).

Specify the topic to retrieve using the topic_id URI parameter.

Note: Use the getTopics method to find a topic if you do not know the topic ID.", + "operationId": "getTopic", + "parameters": [ + { + "name": "topic_id", + "in": "path", + "description": "The unique identifier of the notification topic for which the details are retrieved. Use getTopics to retrieve the topic ID.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Topic" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "195002": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid or missing topic id." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "195005": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid continuation token." - } - } + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - }, - "post": { - "tags": [ - "destination" - ], - "description": "This method allows applications to create a destination. A destination is an endpoint that receives HTTP push notifications.

A single destination for all topics is valid, as is individual destinations for each topic.

To update a destination, use the updateDestination call.

The destination created will need to be referenced while creating or updating a subscription to a topic.

Note: The destination should be created and ready to respond with the expected challengeResponse for the endpoint to be registered successfully. Refer to the Notification API overview for more information.", - "operationId": "createDestination", - "requestBody": { - "description": "The create destination request.", - "content": { - "application/json": { - "schema": { - "description": "The create destination request.", - "$ref": "#/components/schemas/DestinationRequest" - } + "/topic": { + "get": { + "tags": [ + "topic" + ], + "description": "This method returns a paginated collection of all supported topics, along with the details for the topics. This information includes supported schema versions, formats, and other metadata for the topics.

Applications can subscribe to any of the topics for a supported schema version and format, limited by the authorization scopes required to subscribe to the topic.

A topic specifies the type of information to be received and the data types associated with an event. An event occurs in the eBay system, such as when a user requests deletion or revokes access for an application. An event is an instance of an event type (topic).", + "operationId": "getTopics", + "parameters": [ + { + "name": "continuation_token", + "in": "query", + "description": "This string value can be used to return the next page in the result set. The string to use here is returned in the next field of the current page of results.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The maximum number of notification topics to return per page from the result set.

Min: 10

Max: 100

Default: 20", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TopicSearchResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "195004": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid limit. Supported ranges 10 - 100." + }, + "195005": { + "domain": "API_NOTIFICATION", + "category": "REQUEST", + "description": "Invalid continuation token." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "195000": { + "domain": "API_NOTIFICATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - }, - "required": false - }, - "responses": { - "201": { - "description": "Created", - "headers": { - "Location": { - "schema": { - "type": "string", - "description": "The destination resource created." - } - } + } + }, + "components": { + "schemas": { + "Config": { + "type": "object", + "properties": { + "alertEmail": { + "type": "string", + "description": "This field is used to add or modify an email address that will be used for Notification API alerts associated with the application. getConfig can be used to get the email address currently being used for alerts." + } + }, + "description": "The type that defines the fields for the alertEmail field." }, - "content": { - "application/json": { - "schema": { - "type": "object" + "CreateSubscriptionFilterRequest": { + "type": "object", + "properties": { + "filterSchema": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "The content of a subscription filter as a valid JSON Schema Core document (version 2020-12 or later). The filterSchema provided must describe the subscription's notification payload such that it supplies valid criteria to filter the subscription's notifications.

Note: Not all topics can have filters applied to them. Use getTopic and getTopics requests to determine if a specific topic is filterable. Filterable topics have the boolean filterable returned as true in the response.
Note: If the JSON supplied as a subscription filter specifies a field that does not exist in the notifications for a topic, or if the topic is not filterable, the filter will be rejected and become DISABLED. If it is valid, however, the filter will move from PENDING status to ENABLED status.
Initially, when the createSubscriptionFilter request has been made, if the request has a valid JSON body a 201 Created is returned. After that, the validation of the filterSchema happens. See Creating a subscription filter for a topic for additional information." + } } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "195016": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid name. Markups or lengths greater than 64 not supported" + }, + "CreateSubscriptionRequest": { + "type": "object", + "properties": { + "destinationId": { + "type": "string", + "description": "The unique identifier of the destination endpoint that will receive notifications associated with this subscription. Use the getDestinations method to retrieve destination IDs." + }, + "payload": { + "description": "The payload associated with the notification topic. Use getTopics or getTopic to get the supported payload for the topic.", + "$ref": "#/components/schemas/SubscriptionPayloadDetail" + }, + "status": { + "type": "string", + "description": "Set the status of the subscription to ENABLED or DISABLED. For implementation help, refer to eBay API documentation" + }, + "topicId": { + "type": "string", + "description": "The unique identifier of the notification topic to subscribe to. Use getTopics to get topic IDs." + } }, - "195017": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing endpoint." + "description": "This type contains information about a subscription request." + }, + "DeliveryConfig": { + "type": "object", + "properties": { + "endpoint": { + "type": "string", + "description": "The endpoint for this destination.

Note: The provided endpoint URL should use the HTTPS protocol, and it should not contain an internal IP address or localhost in its path." + }, + "verificationToken": { + "type": "string", + "description": "The verification token associated with this endpoint.

Note: The provided verification token must be between 32 and 80 characters. Allowed characters include alphanumeric characters, underscores (_), and hyphens (-); no other characters are allowed." + } }, - "195018": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing destination status. Supported values:[ENABLED,DISABLED]" + "description": "A type that contains information about the delivery configuration." + }, + "Destination": { + "type": "object", + "properties": { + "deliveryConfig": { + "description": "The configuration associated with this destination.", + "$ref": "#/components/schemas/DeliveryConfig" + }, + "destinationId": { + "type": "string", + "description": "The unique identifier for the destination." + }, + "name": { + "type": "string", + "description": "The name associated with this destination." + }, + "status": { + "type": "string", + "description": "The status for this destination.

Note: The MARKED_DOWN value is set by eBay systems and cannot be used in a create or update call by applications.

Valid values: For implementation help, refer to eBay API documentation" + } }, - "195019": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing verification token for this endpoint." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "195003": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Please provide configurations required for notifications. Refer to /config" + "description": "A type that contains information about the destination." + }, + "DestinationRequest": { + "type": "object", + "properties": { + "deliveryConfig": { + "description": "This container is used to specify the destination endpoint and verification token associated with this endpoint.", + "$ref": "#/components/schemas/DeliveryConfig" + }, + "name": { + "type": "string", + "description": "The seller-specified name for the destination endpoint." + }, + "status": { + "type": "string", + "description": "This field sets the status for the destination endpoint as ENABLED or DISABLED.

Note: The MARKED_DOWN value is set by eBay systems and cannot be used in a create or update call by applications. For implementation help, refer to eBay API documentation" + } }, - "195020": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Challenge verification failed for requested endpoint" + "description": "A type that contains information about the destination request." + }, + "DestinationSearchResponse": { + "type": "object", + "properties": { + "destinations": { + "type": "array", + "description": "An array that contains the destination details.", + "items": { + "$ref": "#/components/schemas/Destination" + } + }, + "href": { + "type": "string", + "description": "The path to the call URI that produced the current page of results." + }, + "limit": { + "type": "integer", + "description": "The number of records to show in the current response.

Default: 20", + "format": "int32" + }, + "next": { + "type": "string", + "description": "The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned." + }, + "total": { + "type": "integer", + "description": "The total number of matches for the search criteria.", + "format": "int32" + } }, - "195021": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Destination exists for this endpoint" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/destination/{destination_id}": { - "get": { - "tags": [ - "destination" - ], - "description": "This method allows applications to fetch the details for a destination. The details include the destination name, status, and configuration, including the endpoint and verification token.", - "operationId": "getDestination", - "parameters": [ - { - "name": "destination_id", - "in": "path", - "description": "The unique identifier for the destination.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Destination" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195022": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing destination id." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + "description": "A type that contains information about the destination search response." + }, + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Identifies the type of erro." + }, + "domain": { + "type": "string", + "description": "Name for the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique number to identify the error.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A more detailed explanation of the error." + }, + "message": { + "type": "string", + "description": "Information on how to correct the problem, in the end user's terms and language where applicable." + }, + "outputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." + } + }, + "description": "This type defines the fields that can be returned in an error." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The object of the error." + }, + "value": { + "type": "string", + "description": "The value of the object." + } } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - }, - "put": { - "tags": [ - "destination" - ], - "description": "This method allows applications to update a destination.

Note: The destination should be created and ready to respond with the expected challengeResponse for the endpoint to be registered successfully. Refer to the Notification API overview for more information.", - "operationId": "updateDestination", - "parameters": [ - { - "name": "destination_id", - "in": "path", - "description": "The unique identifier for the destination.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The create subscription request.", - "content": { - "application/json": { - "schema": { - "description": "The create subscription request.", - "$ref": "#/components/schemas/DestinationRequest" - } - } - }, - "required": false - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "195016": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid name. Markups or lengths greater than 64 not supported" + }, + "PayloadDetail": { + "type": "object", + "properties": { + "deliveryProtocol": { + "type": "string", + "description": "The supported delivery protocols. For implementation help, refer to eBay API documentation" + }, + "deprecated": { + "type": "boolean", + "description": "A deprecation indicator." + }, + "format": { + "type": "array", + "description": "The supported format. Presently, JSON is the only supported format.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + }, + "schemaVersion": { + "type": "string", + "description": "The supported schema version." + } }, - "195017": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing endpoint." + "description": "A type that describes the details about a topic's payload." + }, + "PublicKey": { + "type": "object", + "properties": { + "algorithm": { + "type": "string", + "description": "The algorithm associated with the public key that is returned, such as Elliptic Curve Digital Signature Algorithm (ECDSA)." + }, + "digest": { + "type": "string", + "description": "The digest associated with the public key that is returned, such as Secure Hash Algorithm 1 (SHA1)." + }, + "key": { + "type": "string", + "description": "The public key that is returned for the specified key ID.

This value is used to validate the eBay push notification message payload." + } }, - "195018": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing destination status. Supported values:[ENABLED,DISABLED]" + "description": "A type that defines the public key for a unique key ID." + }, + "Subscription": { + "type": "object", + "properties": { + "creationDate": { + "type": "string", + "description": "The creation date for this subscription." + }, + "destinationId": { + "type": "string", + "description": "The unique identifier for the destination associated with this subscription." + }, + "filterId": { + "type": "string", + "description": "The unique identifier for the filter associated with this subscription." + }, + "payload": { + "description": "The payload associated with this subscription.", + "$ref": "#/components/schemas/SubscriptionPayloadDetail" + }, + "status": { + "type": "string", + "description": "The status of this subscription. For implementation help, refer to eBay API documentation" + }, + "subscriptionId": { + "type": "string", + "description": "The unique identifier for the subscription." + }, + "topicId": { + "type": "string", + "description": "The unique identifier for the topic associated with this subscription." + } }, - "195019": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing verification token for this endpoint." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195022": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing destination id." + "description": "A type that describes the subscription." + }, + "SubscriptionFilter": { + "type": "object", + "properties": { + "creationDate": { + "type": "string", + "description": "The creation date for this subscription filter." + }, + "filterId": { + "type": "string", + "description": "The unique identifier for this subscription filter." + }, + "filterSchema": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "The content of this subscription filter as a valid JSON Schema Core document (version 2020-12 or later). The filterSchema provided must describe the subscription's notification payload such that it supplies valid criteria to filter the subscription's notifications." + }, + "filterStatus": { + "type": "string", + "description": "The status of this subscription filter. For implementation help, refer to eBay API documentation" + }, + "subscriptionId": { + "type": "string", + "description": "The unique identifier for the subscription." + } } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "195020": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Challenge verification failed for requested endpoint" + }, + "SubscriptionPayloadDetail": { + "type": "object", + "properties": { + "deliveryProtocol": { + "type": "string", + "description": "The supported delivery protocol of the notification topic.

Note: HTTPS is currently the only supported delivery protocol of all notification topics. For implementation help, refer to eBay API documentation" + }, + "format": { + "type": "string", + "description": "The supported data format of the payload.

Note: JSON is currently the only supported format for all notification topics. For implementation help, refer to eBay API documentation" + }, + "schemaVersion": { + "type": "string", + "description": "The supported schema version for the notification topic. See the supportedPayloads.schemaVersion field for the topic in getTopics or getTopic response." + } }, - "195021": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Destination exists for this endpoint" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - }, - "delete": { - "tags": [ - "destination" - ], - "description": "This method provides applications a way to delete a destination.

The same destination ID can be used by many destinations.

Trying to delete an active destination results in an error. You can disable a subscription, and when the destination is no longer in use, you can delete it.", - "operationId": "deleteDestination", - "parameters": [ - { - "name": "destination_id", - "in": "path", - "description": "The unique identifier for the destination.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195022": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing destination id." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "195024": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Destination is in use and cannot be deleted." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/config": { - "get": { - "tags": [ - "config" - ], - "description": "This method allows applications to retrieve a previously created configuration.", - "operationId": "getConfig", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Config" - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "195026": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "Configuration Not Found." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - }, - "put": { - "tags": [ - "config" - ], - "description": "This method allows applications to create a new configuration or update an existing configuration. This app-level configuration allows developers to set up alerts.", - "operationId": "updateConfig", - "requestBody": { - "description": "The configurations for this application.", - "content": { - "application/json": { - "schema": { - "description": "The configurations for this application.", - "$ref": "#/components/schemas/Config" - } + "description": "A type that describes the details of the subscription payload." + }, + "SubscriptionSearchResponse": { + "type": "object", + "properties": { + "href": { + "type": "string", + "description": "The path to the call URI that produced the current page of results." + }, + "limit": { + "type": "integer", + "description": "The value of the limit parameter submitted in the request, which is the maximum number of items to return per page, from the result set. A result set is the complete set of results returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 20 if omitted.

Default: 20", + "format": "int32" + }, + "next": { + "type": "string", + "description": "The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned." + }, + "subscriptions": { + "type": "array", + "description": "The subscriptions that match the search criteria.", + "items": { + "$ref": "#/components/schemas/Subscription" + } + }, + "total": { + "type": "integer", + "description": "The total number of matches for the search criteria.", + "format": "int32" + } + }, + "description": "A type that describes the details of the subscription search response." + }, + "Topic": { + "type": "object", + "properties": { + "authorizationScopes": { + "type": "array", + "description": "The authorization scopes required to subscribe to this topic.", + "items": { + "type": "string" + } + }, + "context": { + "type": "string", + "description": "The business context associated with this topic. For implementation help, refer to eBay API documentation" + }, + "description": { + "type": "string", + "description": "The description of the topic." + }, + "filterable": { + "type": "boolean", + "description": "The indicator of whether this topic is filterable or not." + }, + "scope": { + "type": "string", + "description": "The scope of this topic. For implementation help, refer to eBay API documentation" + }, + "status": { + "type": "string", + "description": "The status of this topic. For implementation help, refer to eBay API documentation" + }, + "supportedPayloads": { + "type": "array", + "description": "The supported payloads for this topic.", + "items": { + "$ref": "#/components/schemas/PayloadDetail" + } + }, + "topicId": { + "type": "string", + "description": "The unique identifier for the topic." + } + }, + "description": "A type that describes the details of the topic." + }, + "TopicSearchResponse": { + "type": "object", + "properties": { + "href": { + "type": "string", + "description": "The path to the call URI that produced the current page of results." + }, + "limit": { + "type": "integer", + "description": "The value of the limit parameter submitted in the request, which is the maximum number of items to return per page, from the result set. A result set is the complete set of results returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 20 if omitted.", + "format": "int32" + }, + "next": { + "type": "string", + "description": "The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned." + }, + "topics": { + "type": "array", + "description": "An array of topics that match the specified criteria.", + "items": { + "$ref": "#/components/schemas/Topic" + } + }, + "total": { + "type": "integer", + "description": "The total number of matches for the search criteria.", + "format": "int32" + } + }, + "description": "A type that describes the details of the topic search response." + }, + "UpdateSubscriptionRequest": { + "type": "object", + "properties": { + "destinationId": { + "type": "string", + "description": "The unique identifier of the destination endpoint that will receive notifications associated with this subscription. Use getDestinations to retrieve destination IDs." + }, + "payload": { + "description": "The payload associated with this subscription.", + "$ref": "#/components/schemas/SubscriptionPayloadDetail" + }, + "status": { + "type": "string", + "description": "Set the status of the subscription being updated to ENABLED or DISABLED. For implementation help, refer to eBay API documentation" + } + }, + "description": "A type that describes the details of the update subscription request." } - }, - "required": false }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "195025": { - "domain": "API_NOTIFICATION", - "category": "REQUEST", - "description": "Invalid or missing email." + "securitySchemes": { + "api_auth": { + "type": "oauth2", + "description": "The security definitions for this API. Please check individual operations for applicable scopes.", + "flows": { + "clientCredentials": { + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope": "View public data from eBay" + } + }, + "authorizationCode": { + "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly": "View your event notification subscriptions", + "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription": "View and manage your event notification subscriptions" + } + } } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "195000": { - "domain": "API_NOTIFICATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - } - }, - "components": { - "schemas": { - "Config": { - "type": "object", - "properties": { - "alertEmail": { - "type": "string", - "description": "The alert email address for this application." - } - }, - "description": "The type that defines the fields for the alertEmail field." - }, - "CreateSubscriptionRequest": { - "type": "object", - "properties": { - "topicId": { - "type": "string", - "description": "The unique identifier for the topic associated with this subscription." - }, - "status": { - "type": "string", - "description": "The status of this subscription. For implementation help, refer to eBay API documentation" - }, - "payload": { - "description": "The payload associated with this subscription.", - "$ref": "#/components/schemas/SubscriptionPayloadDetail" - }, - "destinationId": { - "type": "string", - "description": "The unique identifier for the destination associated with this subscription." - } - }, - "description": "This type contains information about a subscription request." - }, - "DeliveryConfig": { - "type": "object", - "properties": { - "endpoint": { - "type": "string", - "description": "The endpoint for this destination." - }, - "verificationToken": { - "type": "string", - "description": "The verification token associated with this endpoint." - } - }, - "description": "A type that contains information about the delivery configuration." - }, - "Destination": { - "type": "object", - "properties": { - "destinationId": { - "type": "string", - "description": "The unique identifier for the destination." - }, - "name": { - "type": "string", - "description": "The name associated with this destination." - }, - "status": { - "type": "string", - "description": "The status for this destination.

Note: The MARKED_DOWN value is set by eBay systems and cannot be used in a create or update call by applications.

Valid values: For implementation help, refer to eBay API documentation" - }, - "deliveryConfig": { - "type": "string", - "description": "The configuration associated with this destination. For implementation help, refer to eBay API documentation" - } - }, - "description": "A type that contains information about the destination." - }, - "DestinationRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name associated with this destination." - }, - "status": { - "type": "string", - "description": "The status for this destination.

Note: The MARKED_DOWN value is set by eBay systems and cannot be used in a create or update call by applications.

Valid values: For implementation help, refer to eBay API documentation" - }, - "deliveryConfig": { - "description": "The configuration associated with this destination.", - "$ref": "#/components/schemas/DeliveryConfig" - } - }, - "description": "A type that contains information about the destination request." - }, - "DestinationSearchResponse": { - "type": "object", - "properties": { - "total": { - "type": "integer", - "description": "The total number of matches for the search criteria.", - "format": "int32" - }, - "href": { - "type": "string", - "description": "The path to the call URI that produced the current page of results." - }, - "next": { - "type": "string", - "description": "The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned." - }, - "limit": { - "type": "integer", - "description": "The number of records to show in the current response.

Default: 20", - "format": "int32" - }, - "destinations": { - "type": "array", - "description": "An array that contains the destination details.", - "items": { - "$ref": "#/components/schemas/Destination" - } - } - }, - "description": "A type that contains information about the destination search response." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of erro." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } - }, - "description": "This type defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } - } - }, - "PayloadDetail": { - "type": "object", - "properties": { - "schemaVersion": { - "type": "string", - "description": "The supported schema version." - }, - "format": { - "type": "array", - "description": "The supported format. Presently, JSON is the only supported format.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "deliveryProtocol": { - "type": "string", - "description": "The supported delivery protocols. For implementation help, refer to eBay API documentation" - }, - "deprecated": { - "type": "boolean", - "description": "A deprecation indicator." - } - }, - "description": "A type that describes the details about a topic's payload." - }, - "PublicKey": { - "type": "object", - "properties": { - "algorithm": { - "type": "string", - "description": "The algorithm associated with the public key that is returned, such as Elliptic Curve Digital Signature Algorithm (ECDSA)." - }, - "digest": { - "type": "string", - "description": "The digest associated with the public key that is returned, such as Secure Hash Algorithm 1 (SHA1)." - }, - "key": { - "type": "string", - "description": "The public key that is returned for the specified key ID.

This value is used to validate the eBay push notification message payload." - } - }, - "description": "A type that defines the public key for a unique key ID." - }, - "Subscription": { - "type": "object", - "properties": { - "subscriptionId": { - "type": "string", - "description": "The unique identifier for the subscription." - }, - "topicId": { - "type": "string", - "description": "The unique identifier for the topic associated with this subscription." - }, - "status": { - "type": "string", - "description": "The status of this subscription. For implementation help, refer to eBay API documentation" - }, - "creationDate": { - "type": "string", - "description": "The creation date for this subscription." - }, - "payload": { - "description": "The payload associated with this subscription.", - "$ref": "#/components/schemas/SubscriptionPayloadDetail" - }, - "destinationId": { - "type": "string", - "description": "The unique identifier for the destination associated with this subscription." - } - }, - "description": "A type that describes the subscription." - }, - "SubscriptionPayloadDetail": { - "type": "object", - "properties": { - "format": { - "type": "string", - "description": "The supported format. For implementation help, refer to eBay API documentation" - }, - "schemaVersion": { - "type": "string", - "description": "The supported schema version." - }, - "deliveryProtocol": { - "type": "string", - "description": "The supported protocol. For exmaple: HTTPS For implementation help, refer to eBay API documentation" - } - }, - "description": "A type that describes the details of the subscription payload." - }, - "SubscriptionSearchResponse": { - "type": "object", - "properties": { - "total": { - "type": "integer", - "description": "The total number of matches for the search criteria.", - "format": "int32" - }, - "href": { - "type": "string", - "description": "The path to the call URI that produced the current page of results." - }, - "next": { - "type": "string", - "description": "The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned." - }, - "limit": { - "type": "integer", - "description": "The value of the limit parameter submitted in the request, which is the maximum number of items to return per page, from the result set. A result set is the complete set of results returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 20 if omitted.

Default: 20", - "format": "int32" - }, - "subscriptions": { - "type": "array", - "description": "The subscriptions that match the search criteria.", - "items": { - "$ref": "#/components/schemas/Subscription" - } - } - }, - "description": "A type that describes the details of the subscription search response." - }, - "Topic": { - "type": "object", - "properties": { - "topicId": { - "type": "string", - "description": "The unique identifier for the topic." - }, - "description": { - "type": "string", - "description": "The description of the topic." - }, - "authorizationScopes": { - "type": "array", - "description": "The authorization scopes required to subscribe to this topic.", - "items": { - "type": "string" - } - }, - "status": { - "type": "string", - "description": "The status of this topic. For implementation help, refer to eBay API documentation" - }, - "context": { - "type": "string", - "description": "The business context associated with this topic. For implementation help, refer to eBay API documentation" - }, - "scope": { - "type": "string", - "description": "The scope of this topic. For implementation help, refer to eBay API documentation" - }, - "supportedPayloads": { - "type": "array", - "description": "The supported payloads for this topic.", - "items": { - "$ref": "#/components/schemas/PayloadDetail" - } - } - }, - "description": "A type that describes the details of the topic." - }, - "TopicSearchResponse": { - "type": "object", - "properties": { - "total": { - "type": "integer", - "description": "The total number of matches for the search criteria.", - "format": "int32" - }, - "href": { - "type": "string", - "description": "The path to the call URI that produced the current page of results." - }, - "next": { - "type": "string", - "description": "The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned." - }, - "limit": { - "type": "integer", - "description": "The value of the limit parameter submitted in the request, which is the maximum number of items to return per page, from the result set. A result set is the complete set of results returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 20 if omitted.", - "format": "int32" - }, - "topics": { - "type": "array", - "description": "An array of topics that match the specified criteria.", - "items": { - "$ref": "#/components/schemas/Topic" - } - } - }, - "description": "A type that describes the details of the topic search response." - }, - "UpdateSubscriptionRequest": { - "type": "object", - "properties": { - "status": { - "type": "string", - "description": "The status of this subscription. For implementation help, refer to eBay API documentation" - }, - "payload": { - "description": "The payload associated with this subscription.", - "$ref": "#/components/schemas/SubscriptionPayloadDetail" - }, - "destinationId": { - "type": "string", - "description": "The unique identifier for the destination associated with this subscription." - } - }, - "description": "A type that describes the details of the update subscription request." - } - }, - "securitySchemes": { - "api_auth": { - "type": "oauth2", - "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": { - "clientCredentials": { - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope": "View public data from eBay" - } - }, - "authorizationCode": { - "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly": "View your event notification subscriptions", - "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription": "View and manage your event notification subscriptions" } - } } - } } - } } \ No newline at end of file diff --git a/specs/commerce_taxonomy_v1_oas3.json b/specs/commerce_taxonomy_v1_oas3.json index 0eb3441d..44612934 100644 --- a/specs/commerce_taxonomy_v1_oas3.json +++ b/specs/commerce_taxonomy_v1_oas3.json @@ -1,1225 +1,1339 @@ { - "openapi": "3.0.0", - "info": { - "title": "Taxonomy API", - "description": "Use the Taxonomy API to discover the most appropriate eBay categories under which sellers can offer inventory items for sale, and the most likely categories under which buyers can browse or search for items to purchase. In addition, the Taxonomy API provides metadata about the required and recommended category aspects to include in listings, and also has two operations to retrieve parts compatibility information.", - "contact": { - "name": "eBay Inc," - }, - "license": { - "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" - }, - "version": "v1.0.0" - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/commerce/taxonomy/v1" - } - } - } - ], - "paths": { - "/category_tree/{category_tree_id}/fetch_item_aspects": { - "get": { - "tags": [ - "category_tree" - ], - "summary": "Get Aspects for All Leaf Categories in a Marketplace", - "description": "This call returns a complete list of aspects for all of the leaf categories that belong to an eBay marketplace. The eBay marketplace is specified through the category_tree_id URI parameter. Note: This call can return a large payload, so the call returns the response as a gzipped JSON file. The open source Taxonomy SDK can be used to compare the aspect metadata that is returned in this response. The bulk download capability that this method provides, when combined with the Taxonomy SDK, brings transparency to the evolution of the metadata.", - "operationId": "fetchItemAspects", - "parameters": [ - { - "name": "category_tree_id", - "in": "path", - "description": "The unique identifier of the eBay category tree being requested.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetCategoriesAspectResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "62004": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category tree ID was not found." - } - } - } - }, - "404": { - "description": "Not found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "62000": { - "domain": "API_TAXONOMY", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } + "openapi": "3.0.0", + "info": { + "title": "Taxonomy API", + "description": "Use the Taxonomy API to discover the most appropriate eBay categories under which sellers can offer inventory items for sale, and the most likely categories under which buyers can browse or search for items to purchase. In addition, the Taxonomy API provides metadata about the required and recommended category aspects to include in listings, and also has two operations to retrieve parts compatibility information.", + "contact": { + "name": "eBay Inc," + }, + "license": { + "name": "eBay API License Agreement", + "url": "https://developer.ebay.com/join/api-license-agreement" }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/metadata.insights" - ] - } - ] - } + "version": "v1.1.1" }, - "/get_default_category_tree_id": { - "get": { - "tags": [ - "category_tree" - ], - "summary": "Get a Default Category Tree ID", - "description": "A given eBay marketplace might use multiple category trees, but one of those trees is considered to be the default for that marketplace. This call retrieves a reference to the default category tree associated with the specified eBay marketplace ID. The response includes only the tree's unique identifier and version, which you can use to retrieve more details about the tree, its structure, and its individual category nodes.", - "operationId": "getDefaultCategoryTreeId", - "parameters": [ - { - "name": "Accept-Language", - "in": "header", - "description": "A header used to indicate the natural language the seller prefers for the response. This specifies the language that the seller wants to use when the field values provided in the request body are displayed to consumers. Note: For details, see Accept-Language in HTTP request headers. Valid Values: For EBAY_CA in French: Accept-Language: fr-CA For EBAY_BE in French: Accept-Language: fr-BE", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "marketplace_id", - "in": "query", - "description": "The ID of the eBay marketplace for which the category tree ID is being requested. For a list of supported marketplace IDs, see Marketplaces with Default Category Trees.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BaseCategoryTree" + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/taxonomy/v1" } - } } - }, - "204": { - "description": "No content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "62002": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "Missing marketplace ID." + } + ], + "paths": { + "/category_tree/{category_tree_id}/fetch_item_aspects": { + "get": { + "tags": [ + "category_tree" + ], + "summary": "Get Aspects for All Leaf Categories in a Marketplace", + "description": "This method returns a complete list of aspects for all of the leaf categories that belong to an eBay marketplace. The eBay marketplace is specified through the category_tree_id URI parameter.

Note: A successful call returns a payload as a gzipped JSON file sent as a binary file using the content-type:application/octet-stream in the response. This file may be large (over 100 MB, compressed). Extract the JSON file from the compressed file with a utility that handles .gz or .gzip. The open source Taxonomy SDK can be used to compare the aspect metadata that is returned in this response. The Taxonomy SDK uses this call to surface changes (new, modified, and removed entities) between an updated version of a bulk downloaded file relative to a previous version.", + "operationId": "fetchItemAspects", + "parameters": [ + { + "name": "category_tree_id", + "in": "path", + "description": "The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCategoriesAspectResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "62004": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category tree ID was not found." + } + } + } + }, + "404": { + "description": "Not found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "62000": { + "domain": "API_TAXONOMY", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "62003": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified marketplace ID was not found." - } - } + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/metadata.insights" + ] + } + ] } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "62000": { - "domain": "API_TAXONOMY", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/category_tree/{category_tree_id}": { - "get": { - "tags": [ - "category_tree" - ], - "summary": "Get a Category Tree", - "description": "This call retrieves the complete category tree that is identified by the category_tree_id parameter. The value of category_tree_id was returned by the getDefaultCategoryTreeId call in the categoryTreeId field. The response contains details of all nodes of the specified eBay category tree, as well as the eBay marketplaces that use this category tree. Note: This call can return a very large payload, so you are strongly advised to submit the request with the following HTTP header:   Accept-Encoding: application/gzip With this header (in addition to the required headers described under HTTP Request Headers), the call returns the response with gzip compression.", - "operationId": "getCategoryTree", - "parameters": [ - { - "name": "category_tree_id", - "in": "path", - "description": "The unique identifier of the eBay category tree being requested.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CategoryTree" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "62004": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category tree ID was not found." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "62000": { - "domain": "API_TAXONOMY", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "/get_default_category_tree_id": { + "get": { + "tags": [ + "category_tree" + ], + "summary": "Get a Default Category Tree ID", + "description": "A given eBay marketplace might use multiple category trees, but one of those trees is considered to be the default for that marketplace. This call retrieves a reference to the default category tree associated with the specified eBay marketplace ID. The response includes only the tree's unique identifier and version, which you can use to retrieve more details about the tree, its structure, and its individual category nodes.", + "operationId": "getDefaultCategoryTreeId", + "parameters": [ + { + "name": "marketplace_id", + "in": "query", + "description": "The unique identifier of the eBay marketplace for which the category tree ID is requested. For a list of supported marketplace IDs, see Marketplaces with Default Category Trees.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseCategoryTree" + } + } + } + }, + "204": { + "description": "No content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "62002": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "Missing marketplace ID." + }, + "62003": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified marketplace ID was not found." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "62000": { + "domain": "API_TAXONOMY", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/category_tree/{category_tree_id}/get_category_subtree": { - "get": { - "tags": [ - "category_tree" - ], - "summary": "Get a Category Subtree", - "description": "This call retrieves the details of all nodes of the category tree hierarchy (the subtree) below a specified category of a category tree. You identify the tree using the category_tree_id parameter, which was returned by the getDefaultCategoryTreeId call in the categoryTreeId field. Note: This call can return a very large payload, so you are strongly advised to submit the request with the following HTTP header:   Accept-Encoding: application/gzip With this header (in addition to the required headers described under HTTP Request Headers), the call returns the response with gzip compression.", - "operationId": "getCategorySubtree", - "parameters": [ - { - "name": "category_id", - "in": "query", - "description": "The unique identifier of the category at the top of the subtree being requested. Note: If the category_id submitted identifies the root node of the tree, this call returns an error. To retrieve the complete tree, use this value with the getCategoryTree call. If the category_id submitted identifies a leaf node of the tree, the call response will contain information about only that leaf node, which is a valid subtree.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "category_tree_id", - "in": "path", - "description": "The unique identifier of the eBay category tree from which a category subtree is being requested.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CategorySubtree" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "62004": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category tree ID was not found." - }, - "62005": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category ID does not belong to the specified category tree." + "/category_tree/{category_tree_id}": { + "get": { + "tags": [ + "category_tree" + ], + "summary": "Get a Category Tree", + "description": "This method retrieves the complete category tree that is identified by the category_tree_id parameter. The value of category_tree_id was returned by the getDefaultCategoryTreeId method in the categoryTreeId field. The response contains details of all nodes of the specified eBay category tree, as well as the eBay marketplaces that use this category tree.

Note: This method can return a very large payload, so gzip compression is supported. To enable gzip compression, include the Accept-Encoding header and set its value to gzip as shown below:

  Accept-Encoding: gzip
", + "operationId": "getCategoryTree", + "parameters": [ + { + "name": "category_tree_id", + "in": "path", + "description": "The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Encoding", + "in": "header", + "description": "This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CategoryTree" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "62004": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category tree ID was not found." + } + } + } + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "62000": { + "domain": "API_TAXONOMY", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "62006": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "Missing category ID." - }, - "62008": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category ID is the root for the category tree. Please use {categoryTreeHref} to retrieve the entire tree." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "62000": { - "domain": "API_TAXONOMY", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/category_tree/{category_tree_id}/get_category_suggestions": { - "get": { - "tags": [ - "category_tree" - ], - "summary": "Get Suggested Categories", - "description": "This call returns an array of category tree leaf nodes in the specified category tree that are considered by eBay to most closely correspond to the query string q. Returned with each suggested node is a localized name for that category (based on the Accept-Language header specified for the call), and details about each of the category's ancestor nodes, extending from its immediate parent up to the root of the category tree. Note: This call can return a large payload, so you are advised to submit the request with the following HTTP header:   Accept-Encoding: application/gzip With this header (in addition to the required headers described under HTTP Request Headers), the call returns the response with gzip compression. You identify the tree using the category_tree_id parameter, which was returned by the getDefaultCategoryTreeId call in the categoryTreeId field. Important: This call is not supported in the Sandbox environment. It will return a response payload in which the categoryName fields contain random or boilerplate text regardless of the query submitted.", - "operationId": "getCategorySuggestions", - "parameters": [ - { - "name": "category_tree_id", - "in": "path", - "description": "The unique identifier of the eBay category tree for which suggested nodes are being requested.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "q", - "in": "query", - "description": "A quoted string that describes or characterizes the item being offered for sale. The string format is free form, and can contain any combination of phrases or keywords. eBay will parse the string and return suggested categories for the item.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CategorySuggestionResponse" - } - } - } - }, - "204": { - "description": "No content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "62004": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category tree ID was not found." + "/category_tree/{category_tree_id}/get_category_subtree": { + "get": { + "tags": [ + "category_tree" + ], + "summary": "Get a Category Subtree", + "description": "This call retrieves the details of all nodes of the category tree hierarchy (the subtree) below a specified category of a category tree. You identify the tree using the category_tree_id parameter, which was returned by the getDefaultCategoryTreeId call in the categoryTreeId field.

Note: This method can return a very large payload, so gzip compression is supported. To enable gzip compression, include the Accept-Encoding header and set its value to gzip as shown below:

  Accept-Encoding: gzip
", + "operationId": "getCategorySubtree", + "parameters": [ + { + "name": "category_id", + "in": "query", + "description": "The unique identifier of the category at the top of the subtree being requested. Metadata on this category and all its descendant categories are retrieved.

Note: If the category_id submitted identifies a leaf node of the tree, the call response will contain information about only that leaf node, which is a valid subtree. ", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "category_tree_id", + "in": "path", + "description": "The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Encoding", + "in": "header", + "description": "This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CategorySubtree" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "62004": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category tree ID was not found." + }, + "62005": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category ID does not belong to the specified category tree." + }, + "62006": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "Missing category ID." + }, + "62008": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category ID is the root for the category tree. Please use {categoryTreeHref} to retrieve the entire tree." + } + } + } + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "62000": { + "domain": "API_TAXONOMY", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "62007": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "Missing keyword 'q'. Please specify a valid set of keywords that best describes your item." - } - } + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - }, - "404": { - "description": "Not found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "62000": { - "domain": "API_TAXONOMY", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } + }, + "/category_tree/{category_tree_id}/get_category_suggestions": { + "get": { + "tags": [ + "category_tree" + ], + "summary": "Get Suggested Categories", + "description": "This call returns an array of category tree leaf nodes in the specified category tree that are considered by eBay to most closely correspond to the query string q. Returned with each suggested node is a localized name for that category (based on the Accept-Language header specified for the call), and details about each of the category's ancestor nodes, extending from its immediate parent up to the root of the category tree.

You identify the tree using the category_tree_id parameter, which was returned by the getDefaultCategoryTreeId call in the categoryTreeId field.

Important: This call is not supported in the Sandbox environment. It will return a response payload in which the categoryName fields contain random or boilerplate text regardless of the query submitted.", + "operationId": "getCategorySuggestions", + "parameters": [ + { + "name": "category_tree_id", + "in": "path", + "description": "The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "q", + "in": "query", + "description": "A quoted string that describes or characterizes the item being offered for sale. The string format is free form, and can contain any combination of phrases or keywords. eBay will parse the string and return suggested categories for the item.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CategorySuggestionResponse" + } + } + } + }, + "204": { + "description": "No content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "62004": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category tree ID was not found." + }, + "62007": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "Missing keyword 'q'. Please specify a valid set of keywords that best describes your item." + } + } + } + }, + "404": { + "description": "Not found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "62000": { + "domain": "API_TAXONOMY", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/category_tree/{category_tree_id}/get_item_aspects_for_category": { - "get": { - "tags": [ - "category_tree" - ], - "description": "This call returns a list of aspects that are appropriate or necessary for accurately describing items in the specified leaf category. Each aspect identifies an item attribute (for example, color) for which the seller will be required or encouraged to provide a value (or variation values) when offering an item in that category on eBay. For each aspect, getItemAspectsForCategory provides complete metadata, including: The aspect's data type, format, and entry mode Whether the aspect is required in listings Whether the aspect can be used for item variations Whether the aspect accepts multiple values for an item Allowed values for the aspect Use this information to construct an interface through which sellers can enter or select the appropriate values for their items or item variations. Once you collect those values, include them as product aspects when creating inventory items using the Inventory API.", - "operationId": "getItemAspectsForCategory", - "parameters": [ - { - "name": "category_id", - "in": "query", - "description": "The unique identifier of the leaf category for which aspects are being requested. Note: If the category_id submitted does not identify a leaf node of the tree, this call returns an error.", - "required": true, - "schema": { - "type": "string" + "/category_tree/{category_tree_id}/get_item_aspects_for_category": { + "get": { + "tags": [ + "category_tree" + ], + "description": "This call returns a list of aspects that are appropriate or necessary for accurately describing items in the specified leaf category. Each aspect identifies an item attribute (for example, color,) for which the seller will be required or encouraged to provide a value (or variation values) when offering an item in that category on eBay.

For each aspect, getItemAspectsForCategory provides complete metadata, including: Use this information to construct an interface through which sellers can enter or select the appropriate values for their items or item variations. Once you collect those values, include them as product aspects when creating inventory items using the Inventory API.", + "operationId": "getItemAspectsForCategory", + "parameters": [ + { + "name": "category_id", + "in": "query", + "description": "The unique identifier of the leaf category for which aspects are being requested.

Note: If the category_id submitted does not identify a leaf node of the tree, this call returns an error. ", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "category_tree_id", + "in": "path", + "description": "The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AspectMetadata" + } + } + } + }, + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "62004": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category tree ID was not found." + }, + "62005": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category ID does not belong to specified category tree." + }, + "62006": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "Missing category ID." + }, + "62008": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category ID is the root for the category tree." + }, + "62009": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category ID must be a leaf category." + } + } + } + }, + "404": { + "description": "Not found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "62000": { + "domain": "API_TAXONOMY", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope", + "https://api.ebay.com/oauth/api_scope/metadata.insights" + ] + } + ] } - }, - { - "name": "category_tree_id", - "in": "path", - "description": "The unique identifier of the eBay category tree from which the specified category's aspects are being requested.", - "required": true, - "schema": { - "type": "string" + }, + "/category_tree/{category_tree_id}/get_compatibility_properties": { + "get": { + "tags": [ + "category_tree" + ], + "summary": "Get Compatibility Properties", + "description": "This call retrieves the compatible vehicle aspects that are used to define a motor vehicle that is compatible with a motor vehicle part or accessory. The values that are retrieved here might include motor vehicle aspects such as 'Make', 'Model', 'Year', 'Engine', and 'Trim', and each of these aspects are localized for the eBay marketplace.

The category_tree_id value is passed in as a path parameter, and this value identifies the eBay category tree. The category_id value is passed in as a query parameter, as this parameter is also required. The specified category must be a category that supports parts compatibility.

At this time, this operation only supports parts and accessories listings for cars, trucks, and motorcycles (not boats, power sports, or any other vehicle types). Only the following eBay marketplaces support parts compatibility:", + "operationId": "getCompatibilityProperties", + "parameters": [ + { + "name": "category_tree_id", + "in": "path", + "description": "This is the unique identifier of category tree. The following is the list of category_tree_id values and the eBay marketplaces that they represent. One of these ID values must be passed in as a path parameter, and the category_id value, that is passed in as query parameter, must be a valid eBay category on that eBay marketplace that supports parts compatibility for cars, trucks, or motorcycles.

", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "category_id", + "in": "query", + "description": "The unique identifier of an eBay category. This eBay category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility for cars, trucks, or motorcycles.

The getAutomotivePartsCompatibilityPolicies method of the Selling Metadata API can be used to retrieve all eBay categories for an eBay marketplace that support parts compatibility for vehicles.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCompatibilityMetadataResponse" + } + } + } + }, + "204": { + "description": "No content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "62004": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category tree ID was not found." + }, + "62005": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category ID does not belong to specified category tree." + }, + "62006": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "Missing category ID." + }, + "62101": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "This category ID is disabled for parts compatibility." + }, + "62103": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The CategoryTreeId is not supported." + } + } + } + }, + "404": { + "description": "Not found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "62000": { + "domain": "API_TAXONOMY", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AspectMetadata" - } - } + }, + "/category_tree/{category_tree_id}/get_compatibility_property_values": { + "get": { + "tags": [ + "category_tree" + ], + "summary": "Get Compatibility Property Values", + "description": "This call retrieves applicable compatible vehicle property values based on the specified eBay marketplace, specified eBay category, and filters used in the request. Compatible vehicle properties are returned in the compatibilityProperties.name field of a getCompatibilityProperties response.

One compatible vehicle property applicable to the specified eBay marketplace and eBay category is specified through the required compatibility_property filter. Then, the user has the option of further restricting the compatible vehicle property values that are returned in the response by specifying one or more compatible vehicle property name/value pairs through the filter query parameter.

See the documentation in URI parameters section for more information on using the compatibility_property and filter query parameters together to customize the data that is retrieved.", + "operationId": "getCompatibilityPropertyValues", + "parameters": [ + { + "name": "category_tree_id", + "in": "path", + "description": "This is the unique identifier of the category tree. The following is the list of category_tree_id values and the eBay marketplaces that they represent. One of these ID values must be passed in as a path parameter, and the category_id value, that is passed in as query parameter, must be a valid eBay category on that eBay marketplace that supports parts compatibility for cars, trucks, or motorcycles.

", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "compatibility_property", + "in": "query", + "description": "One compatible vehicle property applicable to the specified eBay marketplace and eBay category is specified in this required filter. Compatible vehicle properties are returned in the compatibilityProperties.name field of a getCompatibilityProperties response.

For example, if you wanted to retrieve all vehicle trims for a 2018 Toyota Camry, you would set this filter as follows: compatibility_property=Trim and then include the following three name/value filters through one filter parameter: filter=Year:2018,Make:Toyota,Model:Camry.

So, putting this all together, the URI would look something like this:

GET https://api.ebay.com/commerce/
taxonomy/v1/category_tree/100/
get_compatibility_property_values?
category_id=6016&compatibility_property=Trim
&filter=Year:2018,Make:Toyota,Model:Camry
", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "category_id", + "in": "query", + "description": "The unique identifier of an eBay category. This eBay category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility for cars, trucks, or motorcycles.

The getAutomotivePartsCompatibilityPolicies method of the Selling Metadata API can be used to retrieve all eBay categories for an eBay marketplace that support parts compatibility for vehicles.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "filter", + "in": "query", + "description": "One or more compatible vehicle property name/value pairs are passed in through this query parameter. The compatible vehicle property name and corresponding value are delimited with a colon (:), such as filter=Year:2018, and multiple compatible vehicle property name/value pairs are delimited with a comma (,).

Note: Commas are used as delimiters between filter values. If a value includes a comma (e.g., BodyStyle:AWD B9 8W5,C8WD) you must include a backslash (\\) immediately before the comma to prevent it from being evaluated as a delimiter.

As with all query parameter values, the filter parameters must be URL encoded. For more information about encoding request parameters, refer to URL encoding query parameter values.

For example, to retrieve all vehicle trims for a 2022 Audi A4:The resulting comma-separated filter query parameter is:
filter=Year:2022,Make:Audi,Model:A4,BodyStyle:AWD B9 8W5\\,8WD

The following sample shows the same filter but with URL encoding for the blank spaces.
GET https://api.ebay.com/commerce/
taxonomy/v1/category_tree/100/
get_compatibility_property_values?category_id=6016&compatibility_property=Trim&filter=Year:2022,Make:Audi,Model:A4,BodyStyle:AWD%20B9%208W5%5C%2C8WD

Note: While not required, it is strongly recommended that users limit the size of the result set by using the filter query parameter. Failure to do so may result in a timeout error if too much data is attempted to be returned. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/commerce/taxonomy/types/txn:ConstraintFilter", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCompatibilityPropertyValuesResponse" + } + } + } + }, + "204": { + "description": "No content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "62004": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category tree ID was not found." + }, + "62005": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category ID does not belong to specified category tree." + }, + "62006": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "Missing category ID." + }, + "62100": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The filter format is invalid. For more information, see the API call reference documentation." + }, + "62101": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "This category ID is disabled for parts compatibility." + }, + "62102": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The compatibility property is invalid." + }, + "62103": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The CategoryTreeId is not supported." + }, + "62104": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "Missing compatibility property." + } + } + } + }, + "404": { + "description": "Not found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "62000": { + "domain": "API_TAXONOMY", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "62004": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category tree ID was not found." + }, + "/category_tree/{category_tree_id}/get_expired_categories": { + "get": { + "tags": [ + "category_tree" + ], + "description": "This method retrieves the mappings of expired leaf categories in the specified category tree to their corresponding active leaf categories. Note that in some cases, several expired categories are mapped to a single active category.

Note: This method only returns information about categories that have been mapped (i.e., combined categories and split categories). It does not return information about expired categories that have no corresponding active categories. When a category expires in this manner, any completed items that were listed in the expired category can still be found, but new listings cannot be created in the category.", + "operationId": "getExpiredCategories", + "parameters": [ + { + "name": "category_tree_id", + "in": "path", + "description": "The unique identifier of the eBay category tree.

The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpiredCategories" + } + } + } + }, + "204": { + "description": "No content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "62004": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The specified category tree ID was not found." + }, + "62103": { + "domain": "API_TAXONOMY", + "category": "REQUEST", + "description": "The CategoryTreeId is not supported." + } + } + } + }, + "404": { + "description": "Not found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "62000": { + "domain": "API_TAXONOMY", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "62005": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category ID does not belong to specified category tree." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] + } + } + }, + "components": { + "schemas": { + "AncestorReference": { + "type": "object", + "properties": { + "categoryId": { + "type": "string", + "description": "The unique identifier of the eBay ancestor category.

Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development." + }, + "categoryName": { + "type": "string", + "description": "The name of the ancestor category identified by categoryId." + }, + "categorySubtreeNodeHref": { + "type": "string", + "description": "The href portion of the getCategorySubtree call that retrieves the subtree below the ancestor category node." + }, + "categoryTreeNodeLevel": { + "type": "integer", + "description": "The absolute level of the ancestor category node in the hierarchy of its category tree.

Note: The root node of any full category tree is always at level 0. ", + "format": "int32" + } }, - "62006": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "Missing category ID." + "description": "This type contains information about one of the ancestors of a suggested category. An ordered list of these references describes the path from the suggested category to the root of the category tree it belongs to." + }, + "Aspect": { + "type": "object", + "properties": { + "aspectConstraint": { + "description": "Information about the formatting, occurrence, and support of this aspect.", + "$ref": "#/components/schemas/AspectConstraint" + }, + "aspectValues": { + "type": "array", + "description": "A list of valid values for this aspect (for example: Red, Green, and Blue), along with any constraints on those values.", + "items": { + "$ref": "#/components/schemas/AspectValue" + } + }, + "localizedAspectName": { + "type": "string", + "description": "The localized name of this aspect (for example: Colour on the eBay UK site).

Note: This name is always localized for the specified marketplace. " + }, + "relevanceIndicator": { + "description": "The relevance of this aspect. This field is returned if eBay has data on how many searches have been performed for listings in the category using this item aspect.

Note: This container is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to 'Buyer Demand Data' in the Taxonomy API.", + "$ref": "#/components/schemas/RelevanceIndicator" + } }, - "62008": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category ID is the root for the category tree." + "description": "This type contains information about an item attribute (for example, color) that is appropriate or necessary for accurately describing items in a particular leaf category. Sellers are required or encouraged to provide one or more values of this aspect when offering an item in that category on eBay." + }, + "AspectConstraint": { + "type": "object", + "properties": { + "aspectApplicableTo": { + "type": "array", + "description": "This value indicate if the aspect identified by the aspects.localizedAspectName field is a product aspect (relevant to catalog products in the category) or an item/instance aspect, which is an aspect whose value will vary based on a particular instance of the product.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + }, + "aspectDataType": { + "type": "string", + "description": "The data type of this aspect. For implementation help, refer to eBay API documentation" + }, + "aspectEnabledForVariations": { + "type": "boolean", + "description": "A value of true indicates that this aspect can be used to help identify item variations." + }, + "aspectFormat": { + "type": "string", + "description": "Returned only if the value of aspectDataType identifies a data type that requires specific formatting. Currently, this field provides formatting hints as follows: " + }, + "aspectMaxLength": { + "type": "integer", + "description": "The maximum length of the item/instance aspect's value. The seller must make sure not to exceed this length when specifying the instance aspect's value for a product. This field is only returned for instance aspects.", + "format": "int32" + }, + "aspectMode": { + "type": "string", + "description": "The manner in which values of this aspect must be specified by the seller (as free text or by selecting from available options). For implementation help, refer to eBay API documentation" + }, + "aspectRequired": { + "type": "boolean", + "description": "A value of true indicates that this aspect is required when offering items in the specified category." + }, + "aspectUsage": { + "type": "string", + "description": "The enumeration value returned in this field will indicate if the corresponding aspect is recommended or optional.

Note: This field is always returned, even for hard-mandated/required aspects (where aspectRequired: true). The value returned for required aspects will be RECOMMENDED, but they are actually required and a seller will be blocked from listing or revising an item without these aspects. For implementation help, refer to eBay API documentation" + }, + "expectedRequiredByDate": { + "type": "string", + "description": "The expected date after which the aspect will be required.

Note: The value returned in this field specifies only an approximate date, which may not reflect the actual date after which the aspect is required." + }, + "itemToAspectCardinality": { + "type": "string", + "description": "Indicates whether this aspect can accept single or multiple values for items in the specified category.

Note: Up to 30 values can be supplied for aspects that accept multiple values. For implementation help, refer to eBay API documentation" + }, + "aspectAdvancedDataType": { + "type": "string", + "description": "Indicates additional data type requirements for the aspect. For example, NUMERIC_RANGE indicates that the aspect value must be in numeric range format.

Note: Currently only NUMERIC_RANGE is supported. For implementation help, refer to eBay API documentation" + } }, - "62009": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category ID must be a leaf category." - } - } - } - }, - "404": { - "description": "Not found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "62000": { - "domain": "API_TAXONOMY", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope", - "https://api.ebay.com/oauth/api_scope/metadata.insights" - ] - } - ] - } - }, - "/category_tree/{category_tree_id}/get_compatibility_properties": { - "get": { - "tags": [ - "category_tree" - ], - "summary": "Get Compatibility Properties", - "description": "This call retrieves the compatible vehicle aspects that are used to define a motor vehicle that is compatible with a motor vehicle part or accessory. The values that are retrieved here might include motor vehicle aspects such as 'Make', 'Model', 'Year', 'Engine', and 'Trim', and each of these aspects are localized for the eBay marketplace. The category_tree_id value is passed in as a path parameter, and this value identifies the eBay category tree. The category_id value is passed in as a query parameter, as this parameter is also required. The specified category must be a category that supports parts compatibility. At this time, this operation only supports parts and accessories listings for cars, trucks, and motorcycles (not boats, power sports, or any other vehicle types). Only the following eBay marketplaces support parts compatibility: eBay US (Motors and non-Motors categories) eBay Canada (Motors and non-Motors categories) eBay UK eBay Germany eBay Australia eBay France eBay Italy eBay Spain", - "operationId": "getCompatibilityProperties", - "parameters": [ - { - "name": "category_tree_id", - "in": "path", - "description": "This is the unique identifier of category tree. The following is the list of category_tree_id values and the eBay marketplaces that they represent. One of these ID values must be passed in as a path parameter, and the category_id value, that is passed in as query parameter, must be a valid eBay category on that eBay marketplace that supports parts compatibility for cars, trucks, or motorcyles. eBay US: 0 eBay Motors US: 100 eBay Canada: 2 eBay UK: 3 eBay Germany: 77 eBay Australia: 15 eBay France: 71 eBay Italy: 101 eBay Spain: 186", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "category_id", - "in": "query", - "description": "The unique identifier of an eBay category. This eBay category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility for cars, trucks, or motorcyles. The getAutomotivePartsCompatibilityPolicies method of the Selling Metadata API can be used to retrieve all eBay categories for an eBay marketplace that supports parts compatibility cars, trucks, or motorcyles. The getAutomotivePartsCompatibilityPolicies method can also be used to see if one or more specific eBay categories support parts compatibility.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetCompatibilityMetadataResponse" - } - } - } - }, - "204": { - "description": "No content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "62004": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category tree ID was not found." + "description": "This type contains information about the formatting, occurrence, and support of an aspect." + }, + "AspectMetadata": { + "type": "object", + "properties": { + "aspects": { + "type": "array", + "description": "A list of item aspects (for example, color) that are appropriate or necessary for accurately describing items in a particular leaf category. Each category has a different set of aspects and different requirements for aspect values. Sellers are required or encouraged to provide one or more acceptable values for each aspect when offering an item in that category on eBay.", + "items": { + "$ref": "#/components/schemas/Aspect" + } + } }, - "62005": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category ID does not belong to specified category tree." + "description": "This type is the container type for the response payload of the getItemAspectsForCategory call." + }, + "AspectValue": { + "type": "object", + "properties": { + "localizedValue": { + "type": "string", + "description": "The localized value of this aspect.

Note: This value is always localized for the specified marketplace. " + }, + "valueConstraints": { + "type": "array", + "description": "Not returned if the value of the localizedValue field can always be selected for this aspect of the specified category.

Contains a list of the dependencies that identify when the value of the localizedValue field is available for the current aspect. Each dependency specifies the values of another aspect of the same category (a control aspect), for which the current value of the current aspect can also be selected by the seller.

Example: A shirt is available in three sizes and three colors, but only the Small and Medium sizes come in Green. Thus for the Color aspect, the value Green is constrained by its dependency on Size (the control aspect). Only when the Size aspect value is Small or Medium, can the Color aspect value of Green be selected by the seller.", + "items": { + "$ref": "#/components/schemas/ValueConstraint" + } + } }, - "62006": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "Missing category ID." + "description": "This type contains a valid value for an aspect, along with any constraints on the occurrence of that value." + }, + "BaseCategoryTree": { + "type": "object", + "properties": { + "categoryTreeId": { + "type": "string", + "description": "The unique identifier of the eBay category tree for the specified marketplace." + }, + "categoryTreeVersion": { + "type": "string", + "description": "The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls." + } }, - "62101": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "This category ID is disabled for parts compatibility." + "description": "This type contains identifying information for the category tree associated with a particular eBay marketplace." + }, + "Category": { + "type": "object", + "properties": { + "categoryId": { + "type": "string", + "description": "The unique identifier of the eBay category within its category tree.

Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development. " + }, + "categoryName": { + "type": "string", + "description": "The name of the category identified by categoryId." + } }, - "62103": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The CategoryTreeId is not supported." - } - } - } - }, - "404": { - "description": "Not found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "62000": { - "domain": "API_TAXONOMY", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - }, - "/category_tree/{category_tree_id}/get_compatibility_property_values": { - "get": { - "tags": [ - "category_tree" - ], - "summary": "Get Compatibility Property Values", - "description": "This call retrieves applicable compatible vehicle property values based on the specified eBay marketplace, specified eBay category, and filters used in the request. Compatible vehicle properties are returned in the compatibilityProperties.name field of a getCompatibilityProperties response. One compatible vehicle property applicable to the specified eBay marketplace and eBay category is specified through the required compatibility_property filter. Then, the user has the option of further restricting the compatible vehicle property values that are returned in the response by specifying one or more compatible vehicle property name/value pairs through the filter query parameter. See the documentation in URI parameters section for more information on using the compatibility_property and filter query parameters together to customize the data that is retrieved.", - "operationId": "getCompatibilityPropertyValues", - "parameters": [ - { - "name": "category_tree_id", - "in": "path", - "description": "This is the unique identifier of the category tree. The following is the list of category_tree_id values and the eBay marketplaces that they represent. One of these ID values must be passed in as a path parameter, and the category_id value, that is passed in as query parameter, must be a valid eBay category on that eBay marketplace that supports parts compatibility for cars, trucks, or motorcyles. eBay US: 0 eBay Motors US: 100 eBay Canada: 2 eBay UK: 3 eBay Germany: 77 eBay Australia: 15 eBay France: 71 eBay Italy: 101 eBay Spain: 186", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "compatibility_property", - "in": "query", - "description": "One compatible vehicle property applicable to the specified eBay marketplace and eBay category is specified in this required filter. Compatible vehicle properties are returned in the compatibilityProperties.name field of a getCompatibilityProperties response. For example, if you wanted to retrieve all vehicle trims for a 2018 Toyota Camry, you would set this filter as follows: compatibility_property=Trim; and then include the following three name/value filters through one filter parameter: filter=Year:2018,Make:Toyota,Model:Camry. So, putting this all together, your URI would look something like this: GET https://api.ebay.com/commerce/ taxonomy/v1/category_tree/100/ get_compatibility_property_values? category_id=6016&compatibility_property=Trim &filter=filter=Year:2018,Make:Toyota,Model:Camry", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "category_id", - "in": "query", - "description": "The unique identifier of an eBay category. This eBay category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility for cars, trucks, or motorcyles. The getAutomotivePartsCompatibilityPolicies method of the Selling Metadata API can be used to retrieve all eBay categories for an eBay marketplace that supports parts compatibility cars, trucks, or motorcyles. The getAutomotivePartsCompatibilityPolicies method can also be used to see if one or more specific eBay categories support parts compatibility.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "filter", - "in": "query", - "description": "One or more compatible vehicle property name/value pairs are passed in through this query parameter. The compatible vehicle property name and corresponding value are delimited with a colon (:), such as filter=Year:2018, and multiple compatible vehicle property name/value pairs are delimited with a comma (,). For example, if you wanted to retrieve all vehicle trims for a 2018 Toyota Camry, you would set the compatibility_property filter as follows: compatibility_property=Trim; and then include the following three name/value filters through one filter parameter: filter=Year:2018,Make:Toyota,Model:Camry. So, putting this all together, your URI would look something like this: GET https://api.ebay.com/commerce/ taxonomy/v1/category_tree/100/ get_compatibility_property_values? category_id=6016&compatibility_property=Trim &filter=filter=Year:2018,Make:Toyota,Model:Camry For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/commerce/taxonomy/types/txn:ConstraintFilter", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetCompatibilityPropertyValuesResponse" + "description": "This type contains information about a particular eBay category." + }, + "CategoryAspect": { + "type": "object", + "properties": { + "category": { + "description": "The details that are appropriate or necessary to accurately define the category.", + "$ref": "#/components/schemas/Category" + }, + "aspects": { + "type": "array", + "description": "A list of aspect metadata that is used to describe the items in a particular leaf category.", + "items": { + "$ref": "#/components/schemas/Aspect" + } + } } - } - } - }, - "204": { - "description": "No content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "62004": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category tree ID was not found." + }, + "CategorySubtree": { + "type": "object", + "properties": { + "categorySubtreeNode": { + "description": "Contains details of all nodes of the category subtree hierarchy below a specified node. This is a recursive structure.", + "$ref": "#/components/schemas/CategoryTreeNode" + }, + "categoryTreeId": { + "type": "string", + "description": "The unique identifier of the eBay category tree to which this subtree belongs." + }, + "categoryTreeVersion": { + "type": "string", + "description": "The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls." + } }, - "62005": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The specified category ID does not belong to specified category tree." + "description": "This type contains information about a particular subtree of a specified eBay category tree. A category subtree consists of a non-root node of the category tree, and all of its descendants down to the leaf nodes." + }, + "CategorySuggestion": { + "type": "object", + "properties": { + "category": { + "description": "Contains details about the suggested category.", + "$ref": "#/components/schemas/Category" + }, + "categoryTreeNodeAncestors": { + "type": "array", + "description": "An ordered list of category references that describes the location of the suggested category in the specified category tree. The list identifies the category's ancestry as a sequence of parent nodes, from the current node's immediate parent to the root node of the category tree.

Note: The root node of a full default category tree includes categoryId and categoryName fields, but their values should not be relied upon. They provide no useful information for application development.", + "items": { + "$ref": "#/components/schemas/AncestorReference" + } + }, + "categoryTreeNodeLevel": { + "type": "integer", + "description": "The absolute level of the category tree node in the hierarchy of its category tree.

Note: The root node of any full category tree is always at level 0.", + "format": "int32" + }, + "relevancy": { + "type": "string", + "description": "This field is reserved for internal or future use." + } }, - "62006": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "Missing category ID." + "description": "This type contains information about a suggested category tree leaf node that corresponds to keywords provided in the request. It includes details about each of the category's ancestor nodes extending up to the root of the category tree." + }, + "CategorySuggestionResponse": { + "type": "object", + "properties": { + "categorySuggestions": { + "type": "array", + "description": "Contains details about one or more suggested categories that correspond to the provided keywords. The array of suggested categories is sorted in order of eBay's confidence of the relevance of each category (the first category is the most relevant).

Important: This call is not supported in the Sandbox environment. It will return a response payload in which the categoryName fields contain random or boilerplate text regardless of the query submitted. ", + "items": { + "$ref": "#/components/schemas/CategorySuggestion" + } + }, + "categoryTreeId": { + "type": "string", + "description": "The unique identifier of the eBay category tree from which suggestions are returned." + }, + "categoryTreeVersion": { + "type": "string", + "description": "The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls." + } }, - "62100": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The filter format is invalid. For more information, see the API call reference documentation." + "description": "This type contains an array of suggested category tree nodes that are considered by eBay to most closely correspond to the keywords provided in a query string, from a specified category tree." + }, + "CategoryTree": { + "type": "object", + "properties": { + "applicableMarketplaceIds": { + "type": "array", + "description": "A list of one or more identifiers of the eBay marketplaces that use this category tree.", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + }, + "categoryTreeId": { + "type": "string", + "description": "The unique identifier of this eBay category tree." + }, + "categoryTreeVersion": { + "type": "string", + "description": "The version of this category tree. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls." + }, + "rootCategoryNode": { + "description": "Contains details of all nodes of the category tree hierarchy, starting with the root node and down to the leaf nodes. This is a recursive structure.

Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development.", + "$ref": "#/components/schemas/CategoryTreeNode" + } }, - "62101": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "This category ID is disabled for parts compatibility." + "description": "This type contains information about all nodes of a specified eBay category tree." + }, + "CategoryTreeNode": { + "type": "object", + "properties": { + "category": { + "description": "Contains details about the current category tree node.", + "$ref": "#/components/schemas/Category" + }, + "categoryTreeNodeLevel": { + "type": "integer", + "description": "The absolute level of the current category tree node in the hierarchy of its category tree.

Note: The root node of any full category tree is always at level 0. ", + "format": "int32" + }, + "childCategoryTreeNodes": { + "type": "array", + "description": "An array of one or more category tree nodes that are the immediate children of the current category tree node, as well as their children, recursively down to the leaf nodes.

Returned only if the current category tree node is not a leaf node (the value of leafCategoryTreeNode is false).", + "items": { + "$ref": "#/components/schemas/CategoryTreeNode" + } + }, + "leafCategoryTreeNode": { + "type": "boolean", + "description": "A value of true indicates that the current category tree node is a leaf node (it has no child nodes). A value of false indicates that the current node has one or more child nodes, which are identified by the childCategoryTreeNodes array.

Returned only if the value of this field is true." + }, + "parentCategoryTreeNodeHref": { + "type": "string", + "description": "The href portion of the getCategorySubtree call that retrieves the subtree below the parent of this category tree node.

Not returned if the current category tree node is the root node of its tree." + } }, - "62102": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The compatibility property is invalid." + "description": "This type contains information about all nodes of a category tree or subtree hierarchy, including and below the specified Category, down to the leaf nodes. It is a recursive structure." + }, + "CompatibilityProperty": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This is the actual name of the compatible vehicle property as it is known on the specified eBay marketplace and in the eBay category. This is the string value that should be used in the compatibility_property and filter query parameters of a getCompatibilityPropertyValues request URI.

Typical vehicle properties are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category." + }, + "localizedName": { + "type": "string", + "description": "This is the localized name of the compatible vehicle property. The language that is used will depend on the user making the call, or based on the language specified if the Content-Language HTTP header is used.

In some instances, the string value in this field may be the same as the string in the corresponding name field." + } }, - "62103": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "The CategoryTreeId is not supported." + "description": "This type is used by the compatibilityProperties array that is returned in the getCompatibilityProperties call. The compatibilityProperties container consists of an array of all compatible vehicle properties applicable to the specified eBay marketplace and eBay category ID." + }, + "CompatibilityPropertyValue": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Each value field shows one applicable compatible vehicle property value. The values that are returned will depend on the specified eBay marketplace, specified eBay category, and filters in the request." + } }, - "62104": { - "domain": "API_TAXONOMY", - "category": "REQUEST", - "description": "Missing compatibility property." + "description": "This type is used by the compatibilityPropertyValues array that is returned in the getCompatibilityPropertyValues response. The compatibilityPropertyValues array contains all compatible vehicle property values that match the specified eBay marketplace, specified eBay category, and filters in the request. If the compatibility_property parameter value in the request is 'Trim', each value returned in each value field will be a different vehicle trim, applicable to any filters that are set in the filter query parameter of the request, and also based on the eBay marketplace and category specified in the call request." + }, + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Identifies the type of erro." + }, + "domain": { + "type": "string", + "description": "Name for the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique number to identify the error.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A more detailed explanation of the error." + }, + "message": { + "type": "string", + "description": "Information on how to correct the problem, in the end user's terms and language where applicable." + }, + "outputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." + } + }, + "description": "This type defines the fields that can be returned in an error." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The object of the error." + }, + "value": { + "type": "string", + "description": "The value of the object." + } } - } - } - }, - "404": { - "description": "Not found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "62000": { - "domain": "API_TAXONOMY", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + }, + "ExpiredCategories": { + "type": "object", + "properties": { + "expiredCategories": { + "type": "array", + "description": "An array of expired category ID(s) for the requested category tree, and the currently active category ID(s) that have replaced them.", + "items": { + "$ref": "#/components/schemas/ExpiredCategory" + } + } + }, + "description": "This type is used by the getExpiredCategories response to indicate any eBay leaf categories in the specified category tree that have expired and the currently active leaf categories that have replaced them." + }, + "ExpiredCategory": { + "type": "object", + "properties": { + "fromCategoryId": { + "type": "string", + "description": "The unique identifier of the expired eBay leaf category." + }, + "toCategoryId": { + "type": "string", + "description": "The unique identifier of the currently active eBay leaf category that has replaced the expired leaf category.

Note: More than one fromCategoryID value may map into the same toCategoryID value, as multiple eBay categories may be consolidated into one new, expanded category." + } + }, + "description": "This type defines the expired category ID for the requested category tree, and the currently active category ID that has replaced it." + }, + "GetCategoriesAspectResponse": { + "type": "object", + "properties": { + "categoryTreeId": { + "type": "string", + "description": "The unique identifier of the eBay category tree being requested." + }, + "categoryTreeVersion": { + "type": "string", + "description": "The version of the category tree that is returned in the categoryTreeId field." + }, + "categoryAspects": { + "type": "array", + "description": "An array of aspects that are appropriate or necessary for accurately describing items in a particular leaf category.", + "items": { + "$ref": "#/components/schemas/CategoryAspect" + } + } } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - } - }, - "components": { - "schemas": { - "AncestorReference": { - "type": "object", - "properties": { - "categoryId": { - "type": "string", - "description": "The unique identifier of the eBay ancestor category. Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development." - }, - "categoryName": { - "type": "string", - "description": "The name of the ancestor category identified by categoryId." - }, - "categorySubtreeNodeHref": { - "type": "string", - "description": "The href portion of the getCategorySubtree call that retrieves the subtree below the ancestor category node." - }, - "categoryTreeNodeLevel": { - "type": "integer", - "description": "The absolute level of the ancestor category node in the hierarchy of its category tree. Note: The root node of any full category tree is always at level 0.", - "format": "int32" - } - }, - "description": "This type contains information about one of the ancestors of a suggested category. An ordered list of these references describes the path from the suggested category to the root of the category tree it belongs to." - }, - "Aspect": { - "type": "object", - "properties": { - "aspectConstraint": { - "description": "Information about the formatting, occurrence, and support of this aspect.", - "$ref": "#/components/schemas/AspectConstraint" - }, - "aspectValues": { - "type": "array", - "description": "A list of valid values for this aspect (for example: Red, Green, and Blue), along with any constraints on those values.", - "items": { - "$ref": "#/components/schemas/AspectValue" - } - }, - "localizedAspectName": { - "type": "string", - "description": "The localized name of this aspect (for example: Colour on the eBay UK site). Note: This name is always localized for the specified marketplace." - }, - "relevanceIndicator": { - "description": "The relevance of this aspect. This field is returned if eBay has data on how many searches have been performed for listings in the category using this item aspect. Note: This container is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to 'Buyer Demand Data' in the Taxonomy API.", - "$ref": "#/components/schemas/RelevanceIndicator" - } - }, - "description": "This type contains information about an item attribute (for example, color) that is appropriate or necessary for accurately describing items in a particular leaf category. Sellers are required or encouraged to provide one or more values of this aspect when offering an item in that category on eBay." - }, - "AspectConstraint": { - "type": "object", - "properties": { - "aspectApplicableTo": { - "type": "array", - "description": "This value indicate if the aspect identified by the aspects.localizedAspectName field is a product aspect (relevant to catalog products in the category) or an item/instance aspect, which is an aspect whose value will vary based on a particular instance of the product.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "aspectDataType": { - "type": "string", - "description": "The data type of this aspect. For implementation help, refer to eBay API documentation" - }, - "aspectEnabledForVariations": { - "type": "boolean", - "description": "A value of true indicates that this aspect can be used to help identify item variations." - }, - "aspectFormat": { - "type": "string", - "description": "Returned only if the value of aspectDataType identifies a data type that requires specific formatting. Currently, this field provides formatting hints as follows: DATE: YYYY, YYYYMM, YYYYMMDD NUMBER: int32, double" - }, - "aspectMaxLength": { - "type": "integer", - "description": "The maximum length of the item/instance aspect's value. The seller must make sure not to exceed this length when specifying the instance aspect's value for a product. This field is only returned for instance aspects.", - "format": "int32" - }, - "aspectMode": { - "type": "string", - "description": "The manner in which values of this aspect must be specified by the seller (as free text or by selecting from available options). For implementation help, refer to eBay API documentation" - }, - "aspectRequired": { - "type": "boolean", - "description": "A value of true indicates that this aspect is required when offering items in the specified category." - }, - "aspectUsage": { - "type": "string", - "description": "The enumeration value returned in this field will indicate if the corresponding aspect is recommended or optional. Note: This field is always returned, even for hard-mandated/required aspects (where aspectRequired: true). The value returned for required aspects will be RECOMMENDED, but they are actually required and a seller will be blocked from listing or revising an item without these aspects. For implementation help, refer to eBay API documentation" - }, - "expectedRequiredByDate": { - "type": "string", - "description": "The expected date after which the aspect will be required. Note: The value returned in this field specifies only an approximate date, which may not reflect the actual date after which the aspect is required." - }, - "itemToAspectCardinality": { - "type": "string", - "description": "Indicates whether this aspect can accept single or multiple values for items in the specified category. For implementation help, refer to eBay API documentation" - } - }, - "description": "This type contains information about the formatting, occurrence, and support of an aspect." - }, - "AspectMetadata": { - "type": "object", - "properties": { - "aspects": { - "type": "array", - "description": "A list of item aspects (for example, color) that are appropriate or necessary for accurately describing items in a particular leaf category. Each category has a different set of aspects and different requirements for aspect values. Sellers are required or encouraged to provide one or more acceptable values for each aspect when offering an item in that category on eBay.", - "items": { - "$ref": "#/components/schemas/Aspect" - } - } - }, - "description": "This type is the container type for the response payload of the getItemAspectsForCategory call." - }, - "AspectValue": { - "type": "object", - "properties": { - "localizedValue": { - "type": "string", - "description": "The localized value of this aspect. Note: This value is always localized for the specified marketplace." - }, - "valueConstraints": { - "type": "array", - "description": "Not returned if the value of the localizedValue field can always be selected for this aspect of the specified category. Contains a list of the dependencies that identify when the value of the localizedValue field is available for the current aspect. Each dependency specifies the values of another aspect of the same category (a control aspect), for which the current value of the current aspect can also be selected by the seller. Example: A shirt is available in three sizes and three colors, but only the Small and Medium sizes come in Green. Thus for the Color aspect, the value Green is constrained by its dependency on Size (the control aspect). Only when the Size aspect value is Small or Medium, can the Color aspect value of Green be selected by the seller.", - "items": { - "$ref": "#/components/schemas/ValueConstraint" - } - } - }, - "description": "This type contains a valid value for an aspect, along with any constraints on the occurrence of that value." - }, - "BaseCategoryTree": { - "type": "object", - "properties": { - "categoryTreeId": { - "type": "string", - "description": "The unique identifier of the eBay category tree for the specified marketplace." - }, - "categoryTreeVersion": { - "type": "string", - "description": "The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls." - } - }, - "description": "This type contains identifying information for the category tree associated with a particular eBay marketplace." - }, - "Category": { - "type": "object", - "properties": { - "categoryId": { - "type": "string", - "description": "The unique identifier of the eBay category within its category tree. Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development." - }, - "categoryName": { - "type": "string", - "description": "The name of the category identified by categoryId." - } - }, - "description": "This type contains information about a particular eBay category." - }, - "CategoryAspect": { - "type": "object", - "properties": { - "category": { - "description": "The details that are appropriate or necessary to accurately define the category.", - "$ref": "#/components/schemas/Category" - }, - "aspects": { - "type": "array", - "description": "A list of aspect metadata that is used to describe the items in a particular leaf category.", - "items": { - "$ref": "#/components/schemas/Aspect" - } - } - } - }, - "CategorySubtree": { - "type": "object", - "properties": { - "categorySubtreeNode": { - "description": "Contains details of all nodes of the category subtree hierarchy below a specified node. This is a recursive structure.", - "$ref": "#/components/schemas/CategoryTreeNode" - }, - "categoryTreeId": { - "type": "string", - "description": "The unique identifier of the eBay category tree to which this subtree belongs." - }, - "categoryTreeVersion": { - "type": "string", - "description": "The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls." - } - }, - "description": "This type contains information about a particular subtree of a specified eBay category tree. A category subtree consists of a non-root node of the category tree, and all of its descendants down to the leaf nodes." - }, - "CategorySuggestion": { - "type": "object", - "properties": { - "category": { - "description": "Contains details about the suggested category.", - "$ref": "#/components/schemas/Category" - }, - "categoryTreeNodeAncestors": { - "type": "array", - "description": "An ordered list of category references that describes the location of the suggested category in the specified category tree. The list identifies the category's ancestry as a sequence of parent nodes, from the current node's immediate parent to the root node of the category tree. Note: The root node of a full default category tree includes categoryId and categoryName fields, but their values should not be relied upon. They provide no useful information for application development.", - "items": { - "$ref": "#/components/schemas/AncestorReference" - } - }, - "categoryTreeNodeLevel": { - "type": "integer", - "description": "The absolute level of the category tree node in the hierarchy of its category tree. Note: The root node of any full category tree is always at level 0.", - "format": "int32" - }, - "relevancy": { - "type": "string", - "description": "This field is reserved for internal or future use." - } - }, - "description": "This type contains information about a suggested category tree leaf node that corresponds to keywords provided in the request. It includes details about each of the category's ancestor nodes extending up to the root of the category tree." - }, - "CategorySuggestionResponse": { - "type": "object", - "properties": { - "categorySuggestions": { - "type": "array", - "description": "Contains details about one or more suggested categories that correspond to the provided keywords. The array of suggested categories is sorted in order of eBay's confidence of the relevance of each category (the first category is the most relevant). Important: This call is not supported in the Sandbox environment. It will return a response payload in which the categoryName fields contain random or boilerplate text regardless of the query submitted.", - "items": { - "$ref": "#/components/schemas/CategorySuggestion" - } - }, - "categoryTreeId": { - "type": "string", - "description": "The unique identifier of the eBay category tree from which suggestions are returned." - }, - "categoryTreeVersion": { - "type": "string", - "description": "The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls." - } - }, - "description": "This type contains an array of suggested category tree nodes that are considered by eBay to most closely correspond to the keywords provided in a query string, from a specified category tree." - }, - "CategoryTree": { - "type": "object", - "properties": { - "applicableMarketplaceIds": { - "type": "array", - "description": "A list of one or more identifiers of the eBay marketplaces that use this category tree.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "categoryTreeId": { - "type": "string", - "description": "The unique identifier of this eBay category tree." - }, - "categoryTreeVersion": { - "type": "string", - "description": "The version of this category tree. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls." - }, - "rootCategoryNode": { - "description": "Contains details of all nodes of the category tree hierarchy, starting with the root node and down to the leaf nodes. This is a recursive structure. Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development.", - "$ref": "#/components/schemas/CategoryTreeNode" - } - }, - "description": "This type contains information about all nodes of a specified eBay category tree." - }, - "CategoryTreeNode": { - "type": "object", - "properties": { - "category": { - "description": "Contains details about the current category tree node.", - "$ref": "#/components/schemas/Category" - }, - "categoryTreeNodeLevel": { - "type": "integer", - "description": "The absolute level of the current category tree node in the hierarchy of its category tree. Note: The root node of any full category tree is always at level 0.", - "format": "int32" - }, - "childCategoryTreeNodes": { - "type": "array", - "description": "An array of one or more category tree nodes that are the immediate children of the current category tree node, as well as their children, recursively down to the leaf nodes. Returned only if the current category tree node is not a leaf node (the value of leafCategoryTreeNode is false).", - "items": { - "$ref": "#/components/schemas/CategoryTreeNode" - } - }, - "leafCategoryTreeNode": { - "type": "boolean", - "description": "A value of true indicates that the current category tree node is a leaf node (it has no child nodes). A value of false indicates that the current node has one or more child nodes, which are identified by the childCategoryTreeNodes array. Returned only if the value of this field is true." - }, - "parentCategoryTreeNodeHref": { - "type": "string", - "description": "The href portion of the getCategorySubtree call that retrieves the subtree below the parent of this category tree node. Not returned if the current category tree node is the root node of its tree." - } - }, - "description": "This type contains information about all nodes of a category tree or subtree hierarchy, including and below the specified Category, down to the leaf nodes. It is a recursive structure." - }, - "CompatibilityProperty": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "This is the actual name of the compatible vehicle property as it is known on the specified eBay marketplace and in the eBay category. This is the string value that should be used in the compatibility_property and filter query parameters of a getCompatibilityPropertyValues request URI. Typical vehicle properties are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category." - }, - "localizedName": { - "type": "string", - "description": "This is the localized name of the compatible vehicle property. The language that is used will depend on the user making the call, or based on the language specified if the Content-Language HTTP header is used. In some instances, the string value in this field may be the same as the string in the corresponding name field." - } - }, - "description": "This type is used by the compatibilityProperties array that is returned in the getCompatibilityProperties call. The compatibilityProperties container consists of an array of all compatible vehicle properties applicable to the specified eBay marketplace and eBay category ID." - }, - "CompatibilityPropertyValue": { - "type": "object", - "properties": { - "value": { - "type": "string", - "description": "Each value field shows one applicable compatible vehicle property value. The values that are returned will depend on the specified eBay marketplace, specified eBay category, and filters in the request." - } - }, - "description": "This type is used by the compatibilityPropertyValues array that is returned in the getCompatibilityPropertyValues response. The compatibilityPropertyValues array contains all compatible vehicle property values that match the specified eBay marketplace, specified eBay category, and filters in the request. If the compatibility_property parameter value in the request is 'Trim', each value returned in each value field will be a different vehicle trim, applicable to any filters that are set in the filter query parameter of the request, and also based on the eBay marketplace and category specified in the call request." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of erro." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } - }, - "description": "This type defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } - } - }, - "GetCategoriesAspectResponse": { - "type": "object", - "properties": { - "categoryTreeId": { - "type": "string", - "description": "The unique identifier of the eBay category tree being requested." - }, - "categoryTreeVersion": { - "type": "string", - "description": "The version of the category tree that is returned in the categoryTreeId field." - }, - "categoryAspects": { - "type": "array", - "description": "An array of aspects that are appropriate or necessary for accurately describing items in a particular leaf category.", - "items": { - "$ref": "#/components/schemas/CategoryAspect" - } - } - } - }, - "GetCompatibilityMetadataResponse": { - "type": "object", - "properties": { - "compatibilityProperties": { - "type": "array", - "description": "This container consists of an array of all compatible vehicle properties applicable to the specified eBay marketplace and eBay category ID.", - "items": { - "$ref": "#/components/schemas/CompatibilityProperty" - } - } - }, - "description": "This type is used by the base response of the getCompatibilityProperties method." - }, - "GetCompatibilityPropertyValuesResponse": { - "type": "object", - "properties": { - "compatibilityPropertyValues": { - "type": "array", - "description": "This array contains all compatible vehicle property values that match the specified eBay marketplace, specified eBay category, and filters in the request. If the compatibility_property parameter value in the request is 'Trim', each value returned in each value field will be a different vehicle trim, applicable to any filters that are set in the filter query parameter of the request, and also based on the eBay marketplace and category specified in the call request.", - "items": { - "$ref": "#/components/schemas/CompatibilityPropertyValue" - } - } - }, - "description": "The base response type of the getCompatibilityPropertyValues method." - }, - "RelevanceIndicator": { - "type": "object", - "properties": { - "searchCount": { - "type": "integer", - "description": "The number of recent searches (based on 30 days of data) for the aspect.", - "format": "int32" - } - }, - "description": "The relevance of this aspect. This field is returned if eBay has data on how many searches have been performed for listings in the category using this item aspect. Note: This container is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to 'Buyer Demand Data' in the Taxonomy API." - }, - "ValueConstraint": { - "type": "object", - "properties": { - "applicableForLocalizedAspectName": { - "type": "string", - "description": "The name of the control aspect on which the current aspect value depends." - }, - "applicableForLocalizedAspectValues": { - "type": "array", - "description": "Contains a list of the values of the control aspect on which this aspect's value depends. When the control aspect has any of the specified values, the current value of the current aspect will also be available.", - "items": { - "type": "string" + }, + "GetCompatibilityMetadataResponse": { + "type": "object", + "properties": { + "compatibilityProperties": { + "type": "array", + "description": "This container consists of an array of all compatible vehicle properties applicable to the specified eBay marketplace and eBay category ID.", + "items": { + "$ref": "#/components/schemas/CompatibilityProperty" + } + } + }, + "description": "This type is used by the base response of the getCompatibilityProperties method." + }, + "GetCompatibilityPropertyValuesResponse": { + "type": "object", + "properties": { + "compatibilityPropertyValues": { + "type": "array", + "description": "This array contains all compatible vehicle property values that match the specified eBay marketplace, specified eBay category, and filters in the request. If the compatibility_property parameter value in the request is 'Trim', each value returned in each value field will be a different vehicle trim, applicable to any filters that are set in the filter query parameter of the request, and also based on the eBay marketplace and category specified in the call request.", + "items": { + "$ref": "#/components/schemas/CompatibilityPropertyValue" + } + } + }, + "description": "The base response type of the getCompatibilityPropertyValues method." + }, + "RelevanceIndicator": { + "type": "object", + "properties": { + "searchCount": { + "type": "integer", + "description": "The number of recent searches (based on 30 days of data) for the aspect.", + "format": "int32" + } + }, + "description": "The relevance of this aspect. This field is returned if eBay has data on how many searches have been performed for listings in the category using this item aspect.

Note: This container is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to 'Buyer Demand Data' in the Taxonomy API." + }, + "ValueConstraint": { + "type": "object", + "properties": { + "applicableForLocalizedAspectName": { + "type": "string", + "description": "The name of the control aspect on which the current aspect value depends." + }, + "applicableForLocalizedAspectValues": { + "type": "array", + "description": "Contains a list of the values of the control aspect on which this aspect's value depends. When the control aspect has any of the specified values, the current value of the current aspect will also be available.", + "items": { + "type": "string" + } + } + }, + "description": "This type contains a list of the dependencies that identify when a particular value is available for a given aspect of a given category. Each dependency specifies the values of another aspect of the same category (the control aspect), for which the given value of the given aspect can also be selected by the seller. This container consists of constraint information for the corresponding product aspect value." } - } }, - "description": "This type contains a list of the dependencies that identify when a particular value is available for a given aspect of a given category. Each dependency specifies the values of another aspect of the same category (the control aspect), for which the given value of the given aspect can also be selected by the seller. This container consists of constraint information for the corresponding product aspect value." - } - }, - "securitySchemes": { - "api_auth": { - "type": "oauth2", - "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": { - "clientCredentials": { - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope": "View public data from eBay", - "https://api.ebay.com/oauth/api_scope/metadata.insights": "View metadata insights such as aspect relevance." + "securitySchemes": { + "api_auth": { + "type": "oauth2", + "description": "The security definitions for this API. Please check individual operations for applicable scopes.", + "flows": { + "clientCredentials": { + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope": "View public data from eBay", + "https://api.ebay.com/oauth/api_scope/metadata.insights": "View metadata insights such as aspect relevance." + } + } + } } - } } - } } - } } \ No newline at end of file diff --git a/specs/commerce_translation_v1_beta_oas3.json b/specs/commerce_translation_v1_beta_oas3.json index 2cde83d4..51f42c13 100644 --- a/specs/commerce_translation_v1_beta_oas3.json +++ b/specs/commerce_translation_v1_beta_oas3.json @@ -1,263 +1,279 @@ { - "openapi": "3.0.0", - "info": { - "title": "Translation API", - "description": "This API allows 3rd party developers to translate item titles.", - "contact": { - "name": "eBay Inc," - }, - "license": { - "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" - }, - "version": "v1_beta.1.4" - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/commerce/translation/v1_beta" - } - } - } - ], - "paths": { - "/translate": { - "post": { - "tags": [ - "language" - ], - "description": "This method translates listing title and listing description text from one language into another. For a full list of supported language translations, see the table in the API Overview page.", - "operationId": "translate", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TranslateRequest" - } - } - }, - "required": true + "openapi": "3.0.0", + "info": { + "title": "Translation API", + "description": "This API allows 3rd party developers to translate item titles.", + "contact": { + "name": "eBay Inc," + }, + "license": { + "name": "eBay API License Agreement", + "url": "https://developer.ebay.com/join/api-license-agreement" }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TranslateResponse" + "version": "v1_beta.1.6" + }, + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/commerce/translation/v1_beta" } - } } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "110001": { - "domain": "API_TRANSLATION", - "category": "REQUEST", - "description": "From language is invalid, missing or not supported. For more information, see the API call reference documentation." + } + ], + "paths": { + "/translate": { + "post": { + "tags": [ + "language" + ], + "description": "This method translates listing title and listing description text from one language into another. For a full list of supported language translations, see the table.", + "operationId": "translate", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TranslateRequest" + } + } + }, + "required": true }, - "110002": { - "domain": "API_TRANSLATION", - "category": "REQUEST", - "description": "To language is invalid, missing or not supported. For more information, see the API call reference documentation." + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TranslateResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "110001": { + "domain": "API_TRANSLATION", + "category": "REQUEST", + "description": "From language is invalid, missing or not supported. For more information, see the API call reference documentation." + }, + "110002": { + "domain": "API_TRANSLATION", + "category": "REQUEST", + "description": "To language is invalid, missing or not supported. For more information, see the API call reference documentation." + }, + "110003": { + "domain": "API_TRANSLATION", + "category": "REQUEST", + "description": "Context is not supported. For more information, see the API call reference documentation." + }, + "110004": { + "domain": "API_TRANSLATION", + "category": "REQUEST", + "description": "Maximum number of input text reached. For more information, see the API call reference documentation." + }, + "110005": { + "domain": "API_TRANSLATION", + "category": "REQUEST", + "description": "Maximum length of input text reached. For more information, see the API call reference documentation." + }, + "110006": { + "domain": "API_TRANSLATION", + "category": "REQUEST", + "description": "Unsupported from and to combination." + }, + "110007": { + "domain": "API_TRANSLATION", + "category": "REQUEST", + "description": "Markups are not supported in input texts for title translation context." + }, + "110008": { + "domain": "API_TRANSLATION", + "category": "REQUEST", + "description": "Input text missing." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "110000": { + "domain": "API_TRANSLATION", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } }, - "110003": { - "domain": "API_TRANSLATION", - "category": "REQUEST", - "description": "Context is not supported. For more information, see the API call reference documentation." + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope" + ] + } + ] + } + } + }, + "components": { + "schemas": { + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Identifies the type of erro." + }, + "domain": { + "type": "string", + "description": "Name for the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique number to identify the error.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A more detailed explanation of the error." + }, + "message": { + "type": "string", + "description": "Information on how to correct the problem, in the end user's terms and language where applicable." + }, + "outputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." + } }, - "110004": { - "domain": "API_TRANSLATION", - "category": "REQUEST", - "description": "Maximum number of input text reached. For more information, see the API call reference documentation." + "description": "This type defines the fields that can be returned in an error." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The object of the error." + }, + "value": { + "type": "string", + "description": "The value of the object." + } + } + }, + "TranslateRequest": { + "type": "object", + "properties": { + "from": { + "type": "string", + "description": "The language of the input text to be translated. Not all LanguageEnum values are supported in this field. For a full list of supported language pairings, see the Supported languages table. For implementation help, refer to eBay API documentation" + }, + "text": { + "type": "array", + "description": "The input text to translate. The maximum number of characters permitted is determined by the translationContext value:Note: Currently, only one input string can be translated per API call. Support for multiple continuous text strings is expected in the future.", + "items": { + "type": "string" + } + }, + "to": { + "type": "string", + "description": "The target language for the translation of the input text. Not all LanguageEnum values are supported in this field. For a full list of supported language pairings, see the Supported languages table. For implementation help, refer to eBay API documentation" + }, + "translationContext": { + "type": "string", + "description": "Input the listing entity to be translated.

Valid Values: ITEM_TITLE and ITEM_DESCRIPTION

For implementation help, refer to eBay API documentation" + } }, - "110005": { - "domain": "API_TRANSLATION", - "category": "REQUEST", - "description": "Maximum length of input text reached. For more information, see the API call reference documentation." + "description": "This is the base type of the translate method request payload." + }, + "TranslateResponse": { + "type": "object", + "properties": { + "from": { + "type": "string", + "description": "The enumeration value indicates the language of the input text. For implementation help, refer to eBay API documentation" + }, + "to": { + "type": "string", + "description": "The enumeration value indicates the language of the translated text. For implementation help, refer to eBay API documentation" + }, + "translations": { + "type": "array", + "description": "An array showing the input and translated text. Only one input string can be translated at this time. Support for multiple continuous text strings is expected in the future.", + "items": { + "$ref": "#/components/schemas/Translation" + } + } }, - "110006": { - "domain": "API_TRANSLATION", - "category": "REQUEST", - "description": "Unsupported from and to combination." + "description": "This is the base type of the translate method response payload." + }, + "Translation": { + "type": "object", + "properties": { + "originalText": { + "type": "string", + "description": "The original text, in the language specified in the from field, that was input into the text field in the request." + }, + "translatedText": { + "type": "string", + "description": "The translation of the original text into the language specified in the to field." + } }, - "110007": { - "domain": "API_TRANSLATION", - "category": "REQUEST", - "description": "Markups are not supported in input texts." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "110000": { - "domain": "API_TRANSLATION", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - } - } - }, - "components": { - "schemas": { - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of erro." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } - }, - "description": "This type defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } - } - }, - "TranslateRequest": { - "type": "object", - "properties": { - "from": { - "type": "string", - "description": "The language of the input text to be translated. Not all LanguageEnum values are supported in this field. For a full list of supported language translations, see the table in the API Overview page. For implementation help, refer to eBay API documentation" - }, - "text": { - "type": "array", - "description": "The input text to translate. For ITEM_DESCRIPTION translations, HTML/CSS markup and links can be included, but will count toward max character limit. Max Length: 1,000 characters for ITEM_TITLE 100,000 characters for ITEM_DESCRIPTION, including markup/tagsMax Occurrence: 1. Only one continuous text string currently supported.", - "items": { - "type": "string" - } - }, - "to": { - "type": "string", - "description": "The target language for the translation of the input text. Not all LanguageEnum values are supported in this field. For a full list of supported language translations, see the table in the API Overview page. For implementation help, refer to eBay API documentation" - }, - "translationContext": { - "type": "string", - "description": "Input the listing entity to be translated. Valid Values: ITEM_TITLE and ITEM_DESCRIPTION For implementation help, refer to eBay API documentation" - } - }, - "description": "This is the base type of the translate method request payload." - }, - "TranslateResponse": { - "type": "object", - "properties": { - "from": { - "type": "string", - "description": "The enumeration value indicates the language of the input text. For implementation help, refer to eBay API documentation" - }, - "to": { - "type": "string", - "description": "The enumeration value indicates the language of the translated text. For implementation help, refer to eBay API documentation" - }, - "translations": { - "type": "array", - "description": "An array showing the input and translated text. Only one input string can be translated at this time. Support for multiple continuous text strings is expected in the future.", - "items": { - "$ref": "#/components/schemas/Translation" + "description": "This type is used by the translations array, which shows the original text supplied by the user in the request payload, and the text translated by eBay.

Only one input string can be translated at this time. Support for multiple continuous text strings is expected in the future." } - } }, - "description": "This is the base type of the translate method response payload." - }, - "Translation": { - "type": "object", - "properties": { - "originalText": { - "type": "string", - "description": "The original text, in the language specified in the from field, that was input into the text field in the request." - }, - "translatedText": { - "type": "string", - "description": "The translation of the original text into the language specified in the to field." - } - }, - "description": "This type is used by the translations array, which shows the original text supplied by the user in the request payload, and the text translated by eBay. Only one input string can be translated at this time. Support for multiple continuous text strings is expected in the future." - } - }, - "securitySchemes": { - "api_auth": { - "type": "oauth2", - "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": { - "clientCredentials": { - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope": "View public data from eBay" + "securitySchemes": { + "api_auth": { + "type": "oauth2", + "description": "The security definitions for this API. Please check individual operations for applicable scopes.", + "flows": { + "clientCredentials": { + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope": "View public data from eBay" + } + } + } } - } } - } } - } } \ No newline at end of file diff --git a/specs/developer_analytics_v1_beta_oas3.json b/specs/developer_analytics_v1_beta_oas3.json index ccbf0299..40203145 100644 --- a/specs/developer_analytics_v1_beta_oas3.json +++ b/specs/developer_analytics_v1_beta_oas3.json @@ -1,16 +1,16 @@ { "openapi": "3.0.0", "info": { - "title": "Progress to Rate Limit API", - "description": "The Analytics API retrieves call-limit data and the quotas that are set for the RESTful APIs and their associated resources.

Responses from calls made to getRateLimits and getUerRateLimits include a list of the applicable resources and the \"call limit\", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, and the length of the \"time window\" to which the quota applies.

The getRateLimits and getUserRateLimits methods retrieve call-limit information for either an application or user, respectively, and each method must be called with an appropriate OAuth token. That is, getRateLimites requires an access token generated with a client credentials grant and getUserRateLimites requires requires an access token generated with an authorization code grant. For more information, see OAuth tokens.

Users can analyze the response data to see whether or not a limit might be reached, and from that determine if any action needs to be taken (such as programmatically throttling their request rate). For more on call limits, see Compatible Application Check.", + "title": "Analytics API", + "description": "The Analytics API retrieves call-limit data and the quotas that are set for the RESTful APIs and the legacy Trading API.

Responses from calls made to getRateLimits and getUerRateLimits include a list of the applicable resources and the \"call limit\", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, and the length of the \"time window\" to which the quota applies.

The getRateLimits and getUserRateLimits methods retrieve call-limit information for either an application or user, respectively, and each method must be called with an appropriate OAuth token. That is, getRateLimites requires an access token generated with a client credentials grant and getUserRateLimites requires an access token generated with an authorization code grant. For more information, see OAuth tokens.

Users can analyze the response data to see whether or not a limit might be reached, and from that determine if any action needs to be taken (such as programmatically throttling their request rate). For more on call limits, see Application Growth Check.", "contact": { "name": "eBay Inc." }, "license": { "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" + "url": "https://developer.ebay.com/join/api-license-agreement" }, - "version": "v1_beta.0.0" + "version": "v1_beta.0.1" }, "servers": [ { @@ -29,13 +29,13 @@ "tags": [ "rate_limit" ], - "description": "This method retrieves the call limit and utilization data for an application. The data is retrieved for all RESTful APIs and resources. The response from getRateLimits includes a list of the applicable resources and the "call limit", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, and the length of the "time window" to which the quota applies. By default, this method returns utilization data for all RESTful API resources. Use the api_name and api_context query parameters to filter the response to only the desired APIs. For more on call limits, see Compatible Application Check.", + "description": "This method retrieves the call limit and utilization data for an application. The data is retrieved for all RESTful APIs and the legacy Trading API.

The response from getRateLimits includes a list of the applicable resources and the \"call limit\", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, the number of calls made to the specific resource, and the length of the \"time window\" to which the quota applies.

By default, this method returns utilization data for all RESTful API and the legacy Trading API resources. Use the api_name and api_context query parameters to filter the response to only the desired APIs.

For more on call limits, see Application Growth Check.", "operationId": "getRateLimits", "parameters": [ { "name": "api_context", "in": "query", - "description": "This optional query parameter filters the result to include only the specified API context. Acceptable values for the parameter are buy, sell, commerce, and developer.", + "description": "This optional query parameter filters the result to include only the specified API context.

Valid values: ", "required": false, "schema": { "type": "string" @@ -44,7 +44,7 @@ { "name": "api_name", "in": "query", - "description": "This optional query parameter filters the result to include only the APIs specified. Example values are browse for the Buy APIs context, inventory for the Sell APIs context, and taxonomy for the Commerce APIs context.", + "description": "This optional query parameter filters the result to include only the APIs specified.

Example values: ", "required": false, "schema": { "type": "string" @@ -67,18 +67,12 @@ }, "500": { "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } + "x-response-codes": { + "errors": { + "105000": { + "domain": "API_ANALYTICS", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." } } } @@ -98,13 +92,13 @@ "tags": [ "user_rate_limit" ], - "description": "This method retrieves the call limit and utilization data for an application user. The call-limit data is returned for all RESTful APIs and resources that limit calls on a per-user basis. The response from getUserRateLimits includes a list of the applicable resources and the "call limit", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, and the length of the "time window" to which the quota applies. By default, this method returns utilization data for all RESTful API resources that limit request access by user. Use the api_name and api_context query parameters to filter the response to only the desired APIs. For more on call limits, see Compatible Application Check.", + "description": "This method retrieves the call limit and utilization data for an application user. The call-limit data is returned for all RESTful APIs and the legacy Trading API that limit calls on a per-user basis.

The response from getUserRateLimits includes a list of the applicable resources and the \"call limit\", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, the number of calls made to the specific resource, and the length of the \"time window\" to which the quota applies.

By default, this method returns utilization data for all RESTful APIs resources and the legacy Trading API calls that limit request access by user. Use the api_name and api_context query parameters to filter the response to only the desired APIs.

For more on call limits, see Application Growth Check.", "operationId": "getUserRateLimits", "parameters": [ { "name": "api_context", "in": "query", - "description": "This optional query parameter filters the result to include only the specified API context. Acceptable values for the parameter are buy, sell, commerce, and developer.", + "description": "This optional query parameter filters the result to include only the specified API context.

Valid values: ", "required": false, "schema": { "type": "string" @@ -113,7 +107,7 @@ { "name": "api_name", "in": "query", - "description": "This optional query parameter filters the result to include only the APIs specified. Example values are browse for the Buy APIs context, inventory for the Sell APIs context, and taxonomy for the Commerce APIs context.", + "description": "This optional query parameter filters the result to include only the APIs specified.

Example values: ", "required": false, "schema": { "type": "string" @@ -136,18 +130,12 @@ }, "500": { "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - } + "x-response-codes": { + "errors": { + "105000": { + "domain": "API_ANALYTICS", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." } } } @@ -170,12 +158,82 @@ }, "components": { "schemas": { + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Identifies the type of erro." + }, + "domain": { + "type": "string", + "description": "Name for the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique number to identify the error.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A more detailed explanation of the error." + }, + "message": { + "type": "string", + "description": "Information on how to correct the problem, in the end user's terms and language where applicable." + }, + "outputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." + } + }, + "description": "This type defines the fields that can be returned in an error." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The object of the error." + }, + "value": { + "type": "string", + "description": "The value of the object." + } + } + }, "Rate": { "type": "object", "properties": { + "count": { + "type": "integer", + "description": "The number of calls a user has made to this resource within a set time period. This time period is defined by the associated timeWindow value.", + "format": "int32" + }, "limit": { "type": "integer", - "description": "The maximum number of requests that can be made to this resource during a set time period. The length of time to which the limit is applied is defined by the associated timeWindow value. This value is often referred to as the "call quota" for the resource.", + "description": "The maximum number of requests that can be made to this resource during a set time period. The length of time to which the limit is applied is defined by the associated timeWindow value.

This value is often referred to as the \"call quota\" for the resource.", "format": "int32" }, "remaining": { @@ -185,7 +243,7 @@ }, "reset": { "type": "string", - "description": "The data and time the time window and accumulated calls for this resource reset. When the reset time is reached, the remaining value is reset to the value of limit, and this reset value is reset to the current time plus the number of seconds defined by the timeWindow value. The time stamp is formatted as an ISO 8601 string, which is based on the 24-hour Universal Coordinated Time (UTC) clock. Format: YYYY-MM-DDTHH:MM:SS.SSSZ Example: 2018-08-04T07:09:00.000Z" + "description": "The data and time the time window and accumulated calls for this resource reset.

When the reset time is reached, the remaining value is reset to the value of limit, and this reset value is reset to the current time plus the number of seconds defined by the timeWindow value.

The time stamp is formatted as an ISO 8601 string, which is based on the 24-hour Universal Coordinated Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-04T07:09:00.000Z" }, "timeWindow": { "type": "integer", @@ -193,32 +251,32 @@ "format": "int32" } }, - "description": "This complex type defines a "rate" as the quota of calls that can be made to a resource per time window, the remaining number of calls before the threshold is met, the amount of time until the time window resets, and the length of the time window (in seconds)." + "description": "This complex type defines a \"rate\" as the quota of calls that can be made to a resource per time window, the remaining number of calls before the threshold is met, the amount of time until the time window resets, and the length of the time window (in seconds)." }, "RateLimit": { "type": "object", "properties": { "apiContext": { "type": "string", - "description": "The context of the API for which rate-limit data is returned. For example buy, sell, commerce, or developer." + "description": "The context of the API for which rate-limit data is returned. For example buy, sell, commerce, developer or tradingapi." }, "apiName": { "type": "string", - "description": "The name of the API for which rate-limit data is returned. For example browse for the Buy API, inventory for the Sell API, or taxonomy for the Commerce API." + "description": "The name of the API for which rate-limit data is returned. For example browse for the Buy API, inventory for the Sell API, taxonomy for the Commerce API, or tradingapi for Trading API." }, "apiVersion": { "type": "string", - "description": "The version of the API for which rate-limit data is returned. For example v1 or v2." + "description": "The version of the API for which rate-limit data is returned. For example v1 or v2." }, "resources": { "type": "array", - "description": "A list of the methods for which rate-limit data is returned. For example item for the Feed API, getOrder for the Fulfillment API, and getProduct for the Catalog API.", + "description": "A list of the methods for which rate-limit data is returned. For example item for the Feed API, getOrder for the Fulfillment API, getProduct for the Catalog API, AddItems for the Trading API.", "items": { "$ref": "#/components/schemas/Resource" } } }, - "description": "This complex types defines the resource (such as an API method) for which the rate-limit data is returned. A method is included in an API, and an API is part of an API context for the API version specified." + "description": "This complex types defines the resource (such as an API method) for which the rate-limit data is returned.

A method is included in an API, and an API is part of an API context for the API version specified." }, "RateLimitsResponse": { "type": "object", @@ -249,71 +307,6 @@ } }, "description": "This complex type defines the resource (API method) and the current rate-limit data for that resource." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of erro." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } - }, - "description": "This type defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } - } } }, "securitySchemes": { diff --git a/specs/developer_key_management_v1_oas3.json b/specs/developer_key_management_v1_oas3.json index da32a98e..db94ca1b 100644 --- a/specs/developer_key_management_v1_oas3.json +++ b/specs/developer_key_management_v1_oas3.json @@ -87,6 +87,17 @@ ], "description": "This method creates keypairs using one of the following ciphers:Note: The recommended signature cipher is ED25519 (Edwards Curve) since it uses much shorter keys and therefore decreases the header size. However, for development frameworks that do not support ED25519, RSA is also supported.
Following a successful completion, the following keys are returned:Once keypairs are created, developers are strongly advised to create and store a local copy of each keypair for future reference. Although the Public Key, Public Key as JWE, and metadata for keypairs may be retrieved by the getSigningKey and getSigningKeys methods, in order to further ensure the security of confidential client information, eBay does not store the Private Key value in any system. If a developer loses their Private Key they must generate new keypairs using the createSigningKey method.
Note: For additional information about using keypairs, refer to Digital Signatures for APIs.", "operationId": "createSigningKey", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], "requestBody": { "content": { "application/json": { diff --git a/specs/inquiry_oas3.json b/specs/inquiry_oas3.json index af0995e7..c9b186d0 100644 --- a/specs/inquiry_oas3.json +++ b/specs/inquiry_oas3.json @@ -17,72 +17,6 @@ } ], "paths": { - "/inquiry/check_eligibility": { - "post": { - "description": "Check if a buyer is eligible to open an inquiry on an order", - "operationId": "checkInquiryEligibility", - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/inquiry/{inquiryId}/close": { - "post": { - "description": "Close an inquiry for the buyer", - "operationId": "closeInquiry", - "parameters": [ - { - "name": "inquiryId", - "in": "path", - "description": "The unique ID of the inquiry to be closed.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/inquiry/{inquiryId}/confirm_refund": { - "post": { - "description": "Buyer confirms the refund from an inquiry was received", - "operationId": "confirmInquiryRefund", - "parameters": [ - { - "name": "inquiryId", - "in": "path", - "description": "The unique ID of the inquiry to be closed.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/inquiry": { - "post": { - "description": "Buyer confirms the refund from an inquiry was received", - "operationId": "createInquiry", - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/inquiry/{inquiryId}/escalate": { "post": { "description": "Escalate an inquiry to an INR case", @@ -157,28 +91,6 @@ } } }, - "/inquiry/{inquiryId}/provide_refund_info": { - "post": { - "description": "Provide refund information about an inquiry to the buyer", - "operationId": "provideInquiryRefundInfo", - "parameters": [ - { - "name": "inquiryId", - "in": "path", - "description": "The unique ID of the inquiry to be closed.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/inquiry/{inquiryId}/provide_shipment_info": { "post": { "description": "Provide shipment information for an inquiry", diff --git a/specs/return_oas3.json b/specs/return_oas3.json index a4d793a8..df59b7ff 100644 --- a/specs/return_oas3.json +++ b/specs/return_oas3.json @@ -39,72 +39,6 @@ } } }, - "/return/{returnId}/cancel": { - "post": { - "description": "Cancel a return request", - "operationId": "cancelReturnRequest", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/check_eligibility": { - "post": { - "description": "Check to see if an item is eligible for a return", - "operationId": "checkReturnEligibility", - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/{returnId}/check_label_print_eligibility": { - "get": { - "description": "Validate the eligibility of an existing shipping label", - "operationId": "checkShippingLabelEligibility", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/draft": { - "post": { - "description": "Create a return draft", - "operationId": "createReturnDraft", - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/return": { "post": { "description": "Request a return for an item", @@ -116,59 +50,6 @@ } } }, - "/return/{returnId}/initiate_shipping_label": { - "post": { - "description": "Create an eBay shipping label for the buyer", - "operationId": "createReturnShippingLabel", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/draft/{draftId}/file/{fileId}": { - "delete": { - "description": "Delete a file associated with a return draft", - "operationId": "deleteReturnDraftFile", - "parameters": [ - { - "name": "draftId", - "in": "path", - "description": "The unique eBay-assigned ID of the return draft. The draftId value is required to identify the return draft containing the file to be deleted.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "fileId", - "in": "path", - "description": "The unique eBay-assigned ID of the draft file. The fileId value is required to identify the the file to be deleted.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/return/{returnId}/escalate": { "post": { "description": "Escalate an existing return to eBay customer support", @@ -213,81 +94,6 @@ } } }, - "/return/draft/{draftId}": { - "get": { - "description": "Retrieve a return draft", - "operationId": "getReturnDraft", - "parameters": [ - { - "name": "draftId", - "in": "path", - "description": "The unique eBay-assigned ID of the return draft. The draftId value is required to identify the return draft containing the file to be deleted.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - }, - "put": { - "description": "Update an existing return draft", - "operationId": "updateReturnDraft", - "parameters": [ - { - "name": "draftId", - "in": "path", - "description": "The unique eBay-assigned ID of the return draft. The draftId value is required to identify the return draft containing the file to be deleted.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/draft/{draftId}/files": { - "get": { - "description": "Retrieve the files associated with a return draft", - "operationId": "getReturnDraftFiles", - "parameters": [ - { - "name": "draftId", - "in": "path", - "description": "The unique eBay-assigned ID of the return draft. The draftId value is required to identify the return draft containing the file to be deleted.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/estimate": { - "post": { - "description": "Buyer-facing call to retrieve the estimated refund amount and return shipping costs associated with returning an item.", - "operationId": "getReturnEstimate", - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/return/{returnId}/files": { "get": { "description": "Retrieve the files associated with a return", @@ -330,28 +136,6 @@ } } }, - "/return/{returnId}/get_shipping_label": { - "get": { - "description": "Retrieve the data for an existing shipping label", - "operationId": "getReturnShippingLabel", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/return/{returnId}/tracking": { "get": { "description": "Retrieve shipment tracking activity for a return", @@ -418,72 +202,6 @@ } } }, - "/return/{returnId}/mark_refund_received": { - "post": { - "description": "Mark a refund as received", - "operationId": "markReturnRefundReceived", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/{returnId}/mark_refund_sent": { - "post": { - "description": "Notify the buyer that a refund has been issued", - "operationId": "markReturnRefundSent", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/{returnId}/mark_as_shipped": { - "post": { - "description": "Mark a return as shipped", - "operationId": "markReturnShipped", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/return/{returnId}/decide": { "post": { "description": "Perform an action on a return, such as APPROVE", @@ -539,94 +257,6 @@ } } }, - "/return/{returnId}/send_shipping_label": { - "post": { - "description": "Send a shipping label to an email address", - "operationId": "sendReturnShippingLabel", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/{returnId}/file/submit": { - "post": { - "description": "Activate the files associated with a return", - "operationId": "submitReturnFile", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/{returnId}/update_tracking": { - "put": { - "description": "Update shipment tracking information for an item being returned.", - "operationId": "updateShipmentTrackingInfo", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, - "/return/draft/{draftId}/file/upload": { - "post": { - "description": "Upload the files relating to a return draft", - "operationId": "uploadReturnDraftFile", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } - }, "/return/{returnId}/file/upload": { "post": { "description": "Upload the files relating to a return", @@ -648,28 +278,6 @@ } } } - }, - "/return/{returnId}/void_shipping_label": { - "post": { - "description": "Void a shipping label", - "operationId": "voidShippingLabel", - "parameters": [ - { - "name": "returnId", - "in": "path", - "description": "The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - } - } } } } \ No newline at end of file diff --git a/specs/sell_account_v1_oas3.json b/specs/sell_account_v1_oas3.json index b183426a..80aea514 100644 --- a/specs/sell_account_v1_oas3.json +++ b/specs/sell_account_v1_oas3.json @@ -1,16 +1,16 @@ { "openapi": "3.0.0", "info": { - "title": "Account API", - "description": "The Account API gives sellers the ability to configure their eBay seller accounts, including the seller's policies (eBay business policies and seller-defined custom policies), opt in and out of eBay seller programs, configure sales tax tables, and get account information.

For details on the availability of the methods in this API, see Account API requirements and restrictions.", + "title": "Account v1 API", + "description": "The Account API gives sellers the ability to configure their eBay seller accounts, including the seller's policies (eBay business policies and seller-defined custom policies), opt in and out of eBay seller programs, configure sales tax tables, and get account information.

For details on the availability of the methods in this API, see Account API requirements and restrictions.", "contact": { "name": "eBay Inc," }, "license": { "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" + "url": "https://developer.ebay.com/join/api-license-agreement" }, - "version": "v1.9.0" + "version": "v1.9.3" }, "servers": [ { @@ -29,26 +29,17 @@ "tags": [ "custom_policy" ], - "description": "This method retrieves the list of custom policies specified by the policy_types query parameter for the selected eBay marketplace.

Note: The following eBay marketplaces support Custom Policies:

For details on header values, see HTTP request headers.", + "description": "This method retrieves the list of custom policies defined for a seller's account. To limit the returned custom policies, specify the policy_types query parameter.", "operationId": "getCustomPolicies", "parameters": [ { "name": "policy_types", "in": "query", - "description": "This query parameter specifies the type of custom policies to be returned.

Multiple policy types may be requested in a single call by providing a comma-delimited set of all policy types to be returned.

Note: Omitting this query parameter from a request will also return policies of all policy types.

Two Custom Policy types are supported: ", + "description": "This query parameter specifies the type of custom policies to be returned.

Multiple policy types may be requested in a single call by providing a comma-delimited set of all policy types to be returned.

Note: Omitting this query parameter from a request will also return policies of all policy types.
See the CustomPolicyTypeEnum type for a list of supported values.", "required": false, "schema": { "type": "string" } - }, - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the MarketplaceIdEnum type definition.

Note: The following eBay marketplaces support Custom Policies: ", - "required": true, - "schema": { - "type": "string" - } } ], "responses": { @@ -105,13 +96,13 @@ "tags": [ "custom_policy" ], - "description": "This method creates a new custom policy in which a seller specifies their terms for complying with local governmental regulations.

Two Custom Policy types are supported: Each Custom Policy targets a policyType and eBay marketplace combination. Multiple policies may be created as follows: A successful create policy call returns an HTTP status code of 201 Created with the system-generated policy ID included in the Location response header.

Product Compliance Policy

Product Compliance policies disclose product information as required for regulatory compliance.

Note: A maximum of 10 Product Compliance policies per eBay marketplace may be created.

Takeback Policy

Takeback policies describe the seller's legal obligation to take back a previously purchased item when the buyer purchases a new one.

Note: A maximum of 3 Takeback policies per eBay marketplace may be created.", + "description": "This method creates a new custom policy that specifies the seller's terms for complying with local governmental regulations. Each Custom Policy targets a policyType. Multiple policies may be created as using the following custom policy types:A successful create policy call returns an HTTP status code of 201 Created with the system-generated policy ID included in the Location response header.", "operationId": "createCustomPolicy", "parameters": [ { - "name": "X-EBAY-C-MARKETPLACE-ID", + "name": "Content-Type", "in": "header", - "description": "This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the MarketplaceIdEnum type definition.

Note: The following eBay marketplaces support Custom Policies: ", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", "required": true, "schema": { "type": "string" @@ -156,7 +147,7 @@ "20411": { "domain": "API_ACCOUNT", "category": "REQUEST", - "description": "Invalid/Missing policyType" + "description": "Invalid/Missing policyType {policyType}" }, "20412": { "domain": "API_ACCOUNT", @@ -221,22 +212,13 @@ "tags": [ "custom_policy" ], - "description": "This method retrieves the custom policy specified by the custom_policy_id path parameter for the selected eBay marketplace.

Note: The following eBay marketplaces support Custom Policies:

For details on header values, see HTTP request headers.", + "description": "This method retrieves the custom policy specified by the custom_policy_id path parameter.", "operationId": "getCustomPolicy", "parameters": [ { "name": "custom_policy_id", "in": "path", - "description": "This path parameter is the unique custom policy identifier for the policy to be returned.

Note: This value is automatically assigned by the system when the policy is created.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the MarketplaceIdEnum type definition.

Note: The following eBay marketplaces support Custom Policies: ", + "description": "This path parameter is the unique identifier of the custom policy to retrieve.

This ID can be retrieved for a custom policy by using the getCustomPolicies method.", "required": true, "schema": { "type": "string" @@ -300,22 +282,22 @@ "tags": [ "custom_policy" ], - "description": "This method updates an existing custom policy specified by the custom_policy_id path parameter for the selected marketplace. This method overwrites the policy's Name, Label, and Description fields. Therefore, the complete, current text of all three policy fields must be included in the request payload even when one or two of these fields will not actually be updated.

For example, the value for the Label field is to be updated, but the Name and Description values will remain unchanged. The existing Name and Description values, as they are defined in the current policy, must also be passed in.

A successful policy update call returns an HTTP status code of 204 No Content.

Note: The following eBay marketplaces support Custom Policies:

For details on header values, see HTTP request headers.", + "description": "This method updates an existing custom policy specified by the custom_policy_id path parameter. Since this method overwrites the policy's name, label, and description fields, always include the complete and current text of all three policy fields in the request payload, even if they are not being updated.

For example, the value for the label field is to be updated, but the name and description values will remain unchanged. The existing name and description values, as they are defined in the current policy, must also be passed in.

A successful policy update call returns an HTTP status code of 204 No Content.", "operationId": "updateCustomPolicy", "parameters": [ { "name": "custom_policy_id", "in": "path", - "description": "This path parameter is the unique custom policy identifier for the policy to be returned.

Note: This value is automatically assigned by the system when the policy is created.", + "description": "This path parameter is the unique identifier of the custom policy to update.

Note: A list of custom policies defined for a seller's account that includes this ID can be retrieved by calling the getCustomPolicies method.", "required": true, "schema": { "type": "string" } }, { - "name": "X-EBAY-C-MARKETPLACE-ID", + "name": "Content-Type", "in": "header", - "description": "This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the MarketplaceIdEnum type definition.

Note: The following eBay marketplaces support Custom Policies: ", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", "required": true, "schema": { "type": "string" @@ -408,8 +390,19 @@ "tags": [ "fulfillment_policy" ], - "description": "This method creates a new fulfillment policy where the policy encapsulates seller's terms for fulfilling item purchases. Fulfillment policies include the shipment options that the seller offers to buyers.

Each policy targets a specific eBay marketplace and a category group type, and you can create multiple policies for each combination.

A successful request returns the getFulfillmentPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

Using the eBay standard envelope service (eSE)

The eBay standard envelope service (eSE) is a domestic envelope service with tracking through eBay. This service applies to specific Trading Cards categories (not all categories are supported), and to Coins & Paper Money, Postcards, and Stamps. See Using the eBay standard envelope (eSE) service.

", + "description": "This method creates a new fulfillment policy for an eBay marketplace where the policy encapsulates seller's terms for fulfilling item purchases. Fulfillment policies include the shipment options that the seller offers to buyers.

A successful request returns the getFulfillmentPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

", "operationId": "createFulfillmentPolicy", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], "requestBody": { "description": "Request to create a seller account fulfillment policy.", "content": { @@ -520,7 +513,7 @@ { "name": "fulfillmentPolicyId", "in": "path", - "description": "This path parameter specifies the ID of the fulfillment policy you want to retrieve.", + "description": "This path parameter specifies the ID of the fulfillment policy you want to retrieve.

This ID can be retrieved for a fulfillment policy by using the getFulfillmentPolicies method.", "required": true, "schema": { "type": "string" @@ -595,7 +588,16 @@ { "name": "fulfillmentPolicyId", "in": "path", - "description": "This path parameter specifies the ID of the fulfillment policy you want to update.", + "description": "This path parameter specifies the ID of the fulfillment policy you want to update.

This ID can be retrieved for a specific fulfillment policy by using the getFulfillmentPolicies method.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", "required": true, "schema": { "type": "string" @@ -710,7 +712,7 @@ { "name": "fulfillmentPolicyId", "in": "path", - "description": "This path parameter specifies the ID of the fulfillment policy to delete.", + "description": "This path parameter specifies the ID of the fulfillment policy to delete.

This ID can be retrieved for a fulfillment policy by using the getFulfillmentPolicies method.", "required": true, "schema": { "type": "string" @@ -805,9 +807,18 @@ "tags": [ "fulfillment_policy" ], - "description": "This method retrieves all the fulfillment policies configured for the marketplace you specify using the marketplace_id query parameter.

Marketplaces and locales

Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "description": "This method retrieves all the fulfillment policies configured for the marketplace you specify using the marketplace_id query parameter.", "operationId": "getFulfillmentPolicies", "parameters": [ + { + "name": "Content-Language", + "in": "header", + "description": "Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "required": false, + "schema": { + "type": "string" + } + }, { "name": "marketplace_id", "in": "query", @@ -884,9 +895,18 @@ "tags": [ "fulfillment_policy" ], - "description": "This method retrieves the details for a specific fulfillment policy. In the request, supply both the policy name and its associated marketplace_id as query parameters.

Marketplaces and locales

Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "description": "This method retrieves the details for a specific fulfillment policy. In the request, supply both the policy name and its associated marketplace_id as query parameters.", "operationId": "getFulfillmentPolicyByName", "parameters": [ + { + "name": "Content-Language", + "in": "header", + "description": "Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "required": false, + "schema": { + "type": "string" + } + }, { "name": "marketplace_id", "in": "query", @@ -899,7 +919,7 @@ { "name": "name", "in": "query", - "description": "This query parameter specifies the seller-defined name of the fulfillment policy you want to retrieve.", + "description": "This query parameter specifies the seller-defined name of the fulfillment policy you want to retrieve.

This value can be retrieved for a fulfillment policy by using the getFulfillmentPolicies method.", "required": true, "schema": { "type": "string" @@ -972,7 +992,7 @@ "tags": [ "payment_policy" ], - "description": "This method retrieves all the payment policies configured for the marketplace you specify using the marketplace_id query parameter.

Marketplaces and locales

Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "description": "This method retrieves all the payment business policies configured for the marketplace you specify using the marketplace_id query parameter.", "operationId": "getPaymentPolicies", "parameters": [ { @@ -983,6 +1003,15 @@ "schema": { "type": "string" } + }, + { + "name": "Content-Language", + "in": "header", + "description": "Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "required": false, + "schema": { + "type": "string" + } } ], "responses": { @@ -1044,8 +1073,19 @@ "tags": [ "payment_policy" ], - "description": "This method creates a new payment policy where the policy encapsulates seller's terms for order payments.

Each policy targets a specific eBay marketplace and category group, and you can create multiple policies for each combination.

A successful request returns the getPaymentPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

", + "description": "This method creates a new payment policy where the policy encapsulates seller's terms for order payments.

A successful request returns the getPaymentPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

", "operationId": "createPaymentPolicy", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], "requestBody": { "description": "Payment policy request", "content": { @@ -1156,7 +1196,7 @@ { "name": "payment_policy_id", "in": "path", - "description": "This path parameter specifies the ID of the payment policy you want to retrieve.", + "description": "This path parameter specifies the ID of the payment policy you want to retrieve.

This ID can be retrieved for a payment policy by using the getPaymentPolices method.", "required": true, "schema": { "type": "string" @@ -1231,7 +1271,16 @@ { "name": "payment_policy_id", "in": "path", - "description": "This path parameter specifies the ID of the payment policy you want to update.", + "description": "This path parameter specifies the ID of the payment policy you want to update.

This ID can be retrieved for a payment policy by using the getPaymentPolices method.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", "required": true, "schema": { "type": "string" @@ -1346,7 +1395,7 @@ { "name": "payment_policy_id", "in": "path", - "description": "This path parameter specifies the ID of the payment policy you want to delete.", + "description": "This path parameter specifies the unique identifier of the payment policy you want to delete.

This ID can be retrieved for a payment policy by using the getPaymentPolices method.", "required": true, "schema": { "type": "string" @@ -1441,9 +1490,18 @@ "tags": [ "payment_policy" ], - "description": "This method retrieves the details of a specific payment policy. Supply both the policy name and its associated marketplace_id in the request query parameters.

Marketplaces and locales

Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "description": "This method retrieves the details of a specific payment policy. Supply both the policy name and its associated marketplace_id in the request query parameters.", "operationId": "getPaymentPolicyByName", "parameters": [ + { + "name": "Content-Language", + "in": "header", + "description": "Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "required": false, + "schema": { + "type": "string" + } + }, { "name": "marketplace_id", "in": "query", @@ -1456,7 +1514,7 @@ { "name": "name", "in": "query", - "description": "This query parameter specifies the seller-defined name of the payment policy you want to retrieve.", + "description": "This query parameter specifies the seller-defined name of the payment policy you want to retrieve.

This value can be retrieved for a payment policy by using the getPaymentPolicies method.", "required": true, "schema": { "type": "string" @@ -1529,7 +1587,7 @@ "tags": [ "payments_program" ], - "description": "Note: This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.

This method returns whether or not the user is opted-in to the specified payments program. Sellers opt-in to payments programs by marketplace and you use the marketplace_id path parameter to specify the marketplace of the status flag you want returned.", + "description": "Note: This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.
This method returns whether or not the user is opted-in to the specified payments program. Sellers opt-in to payments programs by marketplace and you use the marketplace_id path parameter to specify the marketplace of the status flag you want returned.", "operationId": "getPaymentsProgram", "parameters": [ { @@ -1605,7 +1663,7 @@ "tags": [ "onboarding" ], - "description": "Note: This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.

This method retrieves a seller's onboarding status for a payments program for a specified marketplace. The overall onboarding status of the seller and the status of each onboarding step is returned.", + "description": "Note: This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.
This method retrieves a seller's onboarding status for a payments program for a specified marketplace. The overall onboarding status of the seller and the status of each onboarding step is returned.", "operationId": "getPaymentsProgramOnboarding", "parameters": [ { @@ -1681,7 +1739,7 @@ "tags": [ "privilege" ], - "description": "This method retrieves the seller's current set of privileges, including whether or not the seller's eBay registration has been completed, as well as the details of their site-wide sellingLimt (the amount and quantity they can sell on a given day).", + "description": "This method retrieves the seller's current set of privileges, including whether or not the seller's eBay registration has been completed, as well as the details of their site-wide sellingLimit (the amount and quantity they can sell on a given day).", "operationId": "getPrivileges", "responses": { "200": { @@ -1786,8 +1844,19 @@ "tags": [ "program" ], - "description": "This method opts the seller in to an eBay seller program. Refer to the Account API overview for information about available eBay seller programs.

Note: It can take up to 24-hours for eBay to process your request to opt-in to a Seller Program. Use the getOptedInPrograms call to check the status of your request after the processing period has passed.", + "description": "This method opts the seller in to an eBay seller program. Refer to the Account API overview for information about available eBay seller programs.

Note: It can take up to 24-hours for eBay to process your request to opt-in to a Seller Program. Use the getOptedInPrograms call to check the status of your request after the processing period has passed.", "operationId": "optInToProgram", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], "requestBody": { "description": "Program being opted-in to.", "content": { @@ -1870,8 +1939,19 @@ "tags": [ "program" ], - "description": "This method opts the seller out of a seller program to which you have previously opted-in to. Get a list of the seller programs you have opted-in to using the getOptedInPrograms call.", + "description": "This method opts the seller out of a seller program in which they are currently opted in to. A seller can retrieve a list of the seller programs they are opted-in to using the getOptedInPrograms method.", "operationId": "optOutOfProgram", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], "requestBody": { "description": "Program being opted-out of.", "content": { @@ -1950,7 +2030,7 @@ "tags": [ "rate_table" ], - "description": "This method retrieves a seller's shipping rate tables for the country specified in the country_code query parameter. If you call this method without specifying a country code, the call returns all of the seller's shipping rate tables.

The method's response includes a rateTableId for each table defined by the seller. This rateTableId value is used in add/revise item call or in create/update fulfillment business policy call to specify the shipping rate table to use for that policy's domestic or international shipping options.

This call currently supports getting rate tables related to the following marketplaces: Note: Rate tables created with the Trading API might not have been assigned a rateTableId at the time of their creation. This method can assign and return rateTableId values for rate tables with missing IDs if you make a request using the country_code where the seller has defined rate tables.

Sellers can define up to 40 shipping rate tables for their account, which lets them set up different rate tables for each of the marketplaces they sell into. Go to Shipping rate tables in My eBay to create and update rate tables.", + "description": "This method retrieves a seller's shipping rate tables for the country specified in the country_code query parameter. If you call this method without specifying a country code, the call returns all of the seller's shipping rate tables.

The method's response includes a rateTableId for each table defined by the seller. This rateTableId value is used in add/revise item call or in create/update fulfillment business policy call to specify the shipping rate table to use for that policy's domestic or international shipping options.

This call currently supports getting rate tables related to the following marketplaces: United States, Canada, United Kingdom, Germany, Australia, France, Italy, and Spain. Note: Rate tables created with the Trading API might not have been assigned a rateTableId at the time of their creation. This method can assign and return rateTableId values for rate tables with missing IDs if you make a request using the country_code where the seller has defined rate tables.

Sellers can define up to 40 shipping rate tables for their account, which lets them set up different rate tables for each of the marketplaces they sell into. Go to Shipping rate tables in My eBay to create and update rate tables.", "operationId": "getRateTables", "parameters": [ { @@ -2014,13 +2094,22 @@ "tags": [ "return_policy" ], - "description": "This method retrieves all the return policies configured for the marketplace you specify using the marketplace_id query parameter.

Marketplaces and locales

Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "description": "This method retrieves all the return policies configured for the marketplace you specify using the marketplace_id query parameter.", "operationId": "getReturnPolicies", "parameters": [ + { + "name": "Content-Language", + "in": "header", + "description": "Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "required": false, + "schema": { + "type": "string" + } + }, { "name": "marketplace_id", "in": "query", - "description": "This query parameter specifies the ID of the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum", + "description": "This query parameter specifies the ID of the eBay marketplace of the policies you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum", "required": true, "schema": { "type": "string" @@ -2091,8 +2180,19 @@ "tags": [ "return_policy" ], - "description": "This method creates a new return policy where the policy encapsulates seller's terms for returning items.

Each policy targets a specific marketplace, and you can create multiple policies for each marketplace. Return policies are not applicable to motor-vehicle listings.

A successful request returns the getReturnPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

", + "description": "This method creates a new return policy where the policy encapsulates seller's terms for returning items.

Each policy targets a specific marketplace, and you can create multiple policies for each marketplace. Return policies are not applicable to motor-vehicle listings.

A successful request returns the getReturnPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

", "operationId": "createReturnPolicy", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], "requestBody": { "description": "Return policy request", "content": { @@ -2193,7 +2293,7 @@ { "name": "return_policy_id", "in": "path", - "description": "This path parameter specifies the of the return policy you want to retrieve.", + "description": "This path parameter specifies the unique identifier of the return policy you want to retrieve.

This ID can be retrieved for a return policy by using the getReturnPolicies method.", "required": true, "schema": { "type": "string" @@ -2268,7 +2368,16 @@ { "name": "return_policy_id", "in": "path", - "description": "This path parameter specifies the ID of the return policy you want to update.", + "description": "This path parameter specifies the ID of the return policy you want to update.

This ID can be retrieved for a return policy by using the getReturnPolicies method.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", "required": true, "schema": { "type": "string" @@ -2378,7 +2487,7 @@ { "name": "return_policy_id", "in": "path", - "description": "This path parameter specifies the ID of the return policy you want to delete.", + "description": "This path parameter specifies the unique identifier of the return policy you want to delete.

This ID can be retrieved for a return policy by using the getReturnPolicies method.", "required": true, "schema": { "type": "string" @@ -2468,9 +2577,18 @@ "tags": [ "return_policy" ], - "description": "This method retrieves the details of a specific return policy. Supply both the policy name and its associated marketplace_id in the request query parameters.

Marketplaces and locales

Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "description": "This method retrieves the details of a specific return policy. Supply both the policy name and its associated marketplace_id in the request query parameters.", "operationId": "getReturnPolicyByName", "parameters": [ + { + "name": "Content-Language", + "in": "header", + "description": "Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers.", + "required": false, + "schema": { + "type": "string" + } + }, { "name": "marketplace_id", "in": "query", @@ -2483,7 +2601,7 @@ { "name": "name", "in": "query", - "description": "This query parameter specifies the seller-defined name of the return policy you want to retrieve.", + "description": "This query parameter specifies the seller-defined name of the return policy you want to retrieve.

This value can be retrieved for a return policy by using the getReturnPolicies method.", "required": true, "schema": { "type": "string" @@ -2551,18 +2669,95 @@ ] } }, + "/bulk_create_or_replace_sales_tax": { + "post": { + "tags": [ + "sales_tax" + ], + "description": "This method creates or updates multiple sales-tax table entries.

Sales-tax tables can be set up for countries that support different tax jurisdictions.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.
Each sales-tax table entry comprises the following parameters:
Valid jurisdiction IDs are retrieved using getSalesTaxJurisdictions in the Metadata API.

For details about using this call, refer to Establishing sales-tax tables.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

For additional information, refer to Taxes and import charges.

", + "operationId": "bulkCreateOrReplaceSalesTax", + "requestBody": { + "description": "List of sales taxes to be updated", + "content": { + "application/json": { + "schema": { + "description": "List of sales taxes to be updated", + "$ref": "#/components/schemas/BulkSalesTaxInput" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdatedSalesTaxResponse" + } + } + } + }, + "207": { + "description": "partial success" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "20400": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid request. {additionalInfo}" + }, + "20401": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Missing field {fieldName}. {additionalInfo}" + }, + "20403": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid {fieldName}. {additionalInfo}" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "20500": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "System error." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ] + } + }, "/sales_tax/{countryCode}/{jurisdictionId}": { "get": { "tags": [ "sales_tax" ], - "description": "This call gets the current sales tax table entry for a specific tax jurisdiction. Specify the jurisdiction to retrieve using the countryCode and jurisdictionId path parameters. All four response fields will be returned if a sales tax entry exists for the tax jurisdiction. Otherwise, the response will be returned as empty.

Important! In most US states and territories, eBay now 'collects and remits' sales tax, so sellers can no longer configure sales tax rates for these states/territories.", + "description": "This call retrieves the current sales-tax table entry for a specific tax jurisdiction. Specify the jurisdiction to retrieve using the countryCode and jurisdictionId path parameters. All four response fields will be returned if a sales-tax entry exists for the tax jurisdiction. Otherwise, the response will be returned as empty.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

For additional information, refer to Taxes and import charges.

", "operationId": "getSalesTax", "parameters": [ { "name": "countryCode", "in": "path", - "description": "This path parameter specifies the two-letter ISO 3166 code for the country whose sales tax table you want to retrieve.", + "description": "This path parameter specifies the two-letter ISO 3166 code for the country whose sales tax table you want to retrieve.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:", "required": true, "schema": { "type": "string" @@ -2571,7 +2766,7 @@ { "name": "jurisdictionId", "in": "path", - "description": "This path parameter specifies the ID of the sales tax jurisdiction for the tax table entry you want to retrieve. Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API.", + "description": "This path parameter specifies the ID of the sales tax jurisdiction for the tax table entry to be retrieved.

Valid jurisdiction IDs can be retrieved using the getSalesTaxJurisdiction method of the Metadata API.

Note: When countryCode is set to US, the only supported values for jurisdictionId are:", "required": true, "schema": { "type": "string" @@ -2648,13 +2843,13 @@ "tags": [ "sales_tax" ], - "description": "This method creates or updates a sales tax table entry for a jurisdiction. Specify the tax table entry you want to configure using the two path parameters: countryCode and jurisdictionId.

A tax table entry for a jurisdiction is comprised of two fields: one for the jurisdiction's sales-tax rate and another that's a boolean value indicating whether or not shipping and handling are taxed in the jurisdiction.

You can set up tax tables for countries that support different tax jurisdictions. Currently, only Canada, India, and the US support separate tax jurisdictions. If you sell into any of these countries, you can set up tax tables for any of the country's jurisdictions. Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API.

For details on using this call, see Establishing sales-tax tables.

Important! In the US, eBay now 'collects and remits' sales tax for every US state except for Missouri (and a few US territories), so sellers can no longer configure sales tax rates for any states except Missouri. With eBay 'collect and remit', eBay calculates the sales tax, collects the sales tax from the buyer, and remits the sales tax to the tax authorities at the buyer's location.", + "description": "This method creates or updates a sales-tax table entry for a jurisdiction. Specify the tax table entry you want to configure using the two path parameters: countryCode and jurisdictionId.

A tax table entry for a jurisdiction is comprised of two fields: one for the jurisdiction's sales-tax rate and another that's a boolean value indicating whether or not shipping and handling are taxed in the jurisdiction.

You can set up sales-tax tables for countries that support different tax jurisdictions.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.
Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API.

For details about using this call, refer to Establishing sales-tax tables.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

  • American Samoa (AS)
  • Guam (GU)
  • Northern Mariana Islands (MP)
  • Palau (PW)
  • US Virgin Islands (VI)
For additional information, refer to Taxes and import charges.

", "operationId": "createOrReplaceSalesTax", "parameters": [ { "name": "countryCode", "in": "path", - "description": "This path parameter specifies the two-letter ISO 3166 code for the country for which you want to create a sales tax table entry.", + "description": "This path parameter specifies the two-letter ISO 3166 code for the country for which you want to create a sales tax table entry.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
", "required": true, "schema": { "type": "string" @@ -2663,7 +2858,16 @@ { "name": "jurisdictionId", "in": "path", - "description": "This path parameter specifies the ID of the tax jurisdiction for the table entry you want to create. Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API.", + "description": "This path parameter specifies the ID of the tax jurisdiction for the table entry to be created.

Valid jurisdiction IDs can be retrieved using the getSalesTaxJurisdiction method of the Metadata API.

Note: When countryCode is set to US, the only supported values for jurisdictionId are:
  • AS (American Samoa)
  • GU (Guam)
  • MP (Northern Mariana Islands)
  • PW (Palau)
  • VI (US Virgin Islands)
", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", "required": true, "schema": { "type": "string" @@ -2746,13 +2950,13 @@ "tags": [ "sales_tax" ], - "description": "This call deletes a sales tax table entry for a jurisdiction. Specify the jurisdiction to delete using the countryCode and jurisdictionId path parameters.", + "description": "This call deletes a sales-tax table entry for a jurisdiction. Specify the jurisdiction to delete using the countryCode and jurisdictionId path parameters.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.", "operationId": "deleteSalesTax", "parameters": [ { "name": "countryCode", "in": "path", - "description": "This path parameter specifies the two-letter ISO 3166 code for the country whose sales tax table entry you want to delete.", + "description": "This path parameter specifies the two-letter ISO 3166 code for the country whose sales tax table entry you want to delete.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
", "required": true, "schema": { "type": "string" @@ -2761,7 +2965,7 @@ { "name": "jurisdictionId", "in": "path", - "description": "This path parameter specifies the ID of the sales tax jurisdiction whose table entry you want to delete. Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API.", + "description": "This path parameter specifies the ID of the sales tax jurisdiction whose table entry you want to delete.

Valid jurisdiction IDs can be retrieved using the getSalesTaxJurisdiction method of the Metadata API.

Note: When countryCode is set to US, the only supported values for jurisdictionId are:
  • AS (American Samoa)
  • GU (Guam)
  • MP (Northern Mariana Islands)
  • PW (Palau)
  • VI (US Virgin Islands)
", "required": true, "schema": { "type": "string" @@ -2829,13 +3033,13 @@ "tags": [ "sales_tax" ], - "description": "Use this call to retrieve all sales tax table entries that the seller has defined for a specific country. All four response fields will be returned for each tax jurisdiction that matches the search criteria.

Important! In most US states and territories, eBay now 'collects and remits' sales tax, so sellers can no longer configure sales tax rates for these states/territories.", + "description": "Use this call to retrieve all sales tax table entries that the seller has defined for a specific country. All four response fields will be returned for each tax jurisdiction that matches the search criteria. If no sales tax rates are defined for the specified, a 204 No Content status code is returned with no response payload.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

  • American Samoa (AS)
  • Guam (GU)
  • Northern Mariana Islands (MP)
  • Palau (PW)
  • US Virgin Islands (VI)
For additional information, refer to Taxes and import charges.

", "operationId": "getSalesTaxes", "parameters": [ { "name": "country_code", "in": "query", - "description": "This path parameter specifies the two-letter ISO 3166 code for the country whose tax table you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:CountryCodeEnum", + "description": "This path parameter specifies the two-letter ISO 3166 code for the country whose tax table you want to retrieve.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:CountryCodeEnum", "required": true, "schema": { "type": "string" @@ -2981,7 +3185,7 @@ "tags": [ "kyc" ], - "description": "Note:This method was originally created to see which onboarding requirements were still pending for sellers being onboarded for eBay managed payments, but now that all seller accounts are onboarded globally, this method should now just returne an empty payload with a 204 No Content HTTP status code. ", + "description": "Note: This method was originally created to see which onboarding requirements were still pending for sellers being onboarded for eBay managed payments, but now that all seller accounts are onboarded globally, this method should now just return an empty payload with a 204 No Content HTTP status code. ", "operationId": "getKYC", "responses": { "200": { @@ -3043,7 +3247,7 @@ { "name": "program_types", "in": "query", - "description": "A comma-separated list of eBay advertising programs.

Tip: See the AdvertisingProgramEnum type for possible values.

If no programs are specified, the results will be returned for all programs.", + "description": "A comma-separated list of eBay advertising programs for which eligibility status will be returned.

See the AdvertisingProgramEnum type for a list of supported values.

If no programs are specified, the results will be returned for all programs.", "required": false, "schema": { "type": "string" @@ -3052,7 +3256,7 @@ { "name": "X-EBAY-C-MARKETPLACE-ID", "in": "header", - "description": "The unique identifier of the eBay marketplace for which the seller eligibility status shall be checked.

Note: This value is case-sensitive.", + "description": "The unique identifier of the eBay marketplace for which the seller eligibility status shall be checked. This header is required or the call will fail.

See the MarketplaceIdEnum type for the supported marketplace ID values.", "required": true, "schema": { "type": "string" @@ -3119,767 +3323,68 @@ } ] } - }, - "/location/{merchantLocationKey}": { - "get": { - "tags": [ - "location" - ], - "description": "This call retrieves all defined details of the inventory location that is specified by the merchantLocationKey path parameter.

The authorization HTTP header is the only required request header for this call.

A successful call will return an HTTP status value of 200 OK.

", - "operationId": "getInventoryLocation", - "parameters": [ - { - "name": "merchantLocationKey", - "in": "path", - "description": "A unique merchant-defined key (ID) for an inventory location. This value is passed in at the end of the call URI to specify the inventory location to retrieve.

Max length: 36", - "required": true, - "schema": { - "type": "string" - } + } + }, + "components": { + "schemas": { + "Amount": { + "type": "object", + "properties": { + "currency": { + "type": "string", + "description": "The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.

Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation" + }, + "value": { + "type": "string", + "description": "The monetary amount in the specified currency." } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InventoryLocationResponse" - } - } + }, + "description": "A complex type that describes the value of a monetary amount as represented by a global currency. When passing in an amount in a request payload, both currency and value fields are required, and both fields are also always returned for an amount in a response field." + }, + "BulkSalesTaxInput": { + "type": "object", + "properties": { + "salesTaxInputList": { + "type": "array", + "description": "The array of sales-tax table entries to be created or updated.", + "items": { + "$ref": "#/components/schemas/SalesTaxInput" } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "25804": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25805": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "{fieldName} Not Found." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "25001": { - "domain": "API_INVENTORY", - "category": "APPLICATION", - "description": "System error. {additionalInfo}" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory.readonly", - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - }, - "post": { - "tags": [ - "location" - ], - "description": "

Use this call to create a new inventory location. In order to create and publish an offer (and create an eBay listing), a seller must have at least one inventory location, as every offer must be associated with a location.

Upon first creating an inventory location, only a seller-defined location identifier and a physical location is required, and once set, these values can not be changed. The unique identifier value (merchantLocationKey) is passed in at the end of the call URI. This merchantLocationKey value will be used in other Inventory Location calls to identify the inventory location to perform an action against.

At this time, location types are either warehouse or store. Warehouse locations are used for traditional shipping, and store locations are generally used by US merchants selling products through the In-Store Pickup program, or used by UK, Australian, and German merchants selling products through the Click and Collect program. A full address is required for store inventory locations. However, for warehouse inventory locations, a full street address is not needed, but the city, state/province, and country of the location must be provided.

Note that all inventory locations are \"enabled\" by default when they are created, and you must specifically disable them (by passing in a value of DISABLED in the merchantLocationStatus field) if you want them to be set to the disabled state. The seller's inventory cannot be loaded to inventory locations in the disabled state.

In addition to the authorization header, which is required for all eBay REST API calls, the following table includes another request header that is mandatory for the createInventoryLocation call, and two other request headers that are optional:


Header Description Required? Applicable Values
Accept Describes the response encoding, as required by the caller. Currently, the interfaces require payloads formatted in JSON, and JSON is the default. No application/json
Content-Language Use this header to control the language that is used for any returned errors or warnings in the call response. No en-US
Content-Type The MIME type of the body of the request. Must be JSON. Yes application/json


Unless one or more errors and/or warnings occur with the call, there is no response payload for this call. A successful call will return an HTTP status value of 204 No Content.

", - "operationId": "createInventoryLocation", - "parameters": [ - { - "name": "merchantLocationKey", - "in": "path", - "description": "A unique, merchant-defined key (ID) for an inventory location. This unique identifier, or key, is used in other Inventory API calls to identify an inventory location.

Max length: 36", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "Inventory Location details", - "content": { - "application/json": { - "schema": { - "description": "Inventory Location details", - "$ref": "#/components/schemas/InventoryLocationFull" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "25800": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Invalid {fieldName}." - }, - "25801": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Missing field {fieldName}." - }, - "25802": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25803": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "{fieldName} already exists." - }, - "25804": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - } - } - } - }, - "409": { - "description": "Location Already Exists" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "25001": { - "domain": "API_INVENTORY", - "category": "APPLICATION", - "description": "System error. {additionalInfo}" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - }, - "delete": { - "tags": [ - "location" - ], - "description": "

This call deletes the inventory location that is specified in the merchantLocationKey path parameter. Note that deleting a location will not affect any active eBay listings associated with the deleted location, but the seller will not be able modify the offers associated with the inventory location once it is deleted.

The authorization HTTP header is the only required request header for this call.

Unless one or more errors and/or warnings occur with the call, there is no response payload for this call. A successful call will return an HTTP status value of 200 OK.

", - "operationId": "deleteInventoryLocation", - "parameters": [ - { - "name": "merchantLocationKey", - "in": "path", - "description": "A unique merchant-defined key (ID) for an inventory location. This value is passed in at the end of the call URI to indicate the inventory location to be deleted.

Max length: 36", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Success" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "25802": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25804": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25805": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "{fieldName} Not Found." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "25001": { - "domain": "API_INVENTORY", - "category": "APPLICATION", - "description": "System error. {additionalInfo}" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/sell/inventory/v1" - } - } - } - ] - }, - "/location/{merchantLocationKey}/disable": { - "post": { - "tags": [ - "location" - ], - "description": "

This call disables the inventory location that is specified in the merchantLocationKey path parameter. Sellers can not load/modify inventory to disabled inventory locations. Note that disabling an inventory location will not affect any active eBay listings associated with the disabled location, but the seller will not be able modify the offers associated with a disabled inventory location.

The authorization HTTP header is the only required request header for this call.

A successful call will return an HTTP status value of 200 OK.

", - "operationId": "disableInventoryLocation", - "parameters": [ - { - "name": "merchantLocationKey", - "in": "path", - "description": "A unique merchant-defined key (ID) for an inventory location. This value is passed in through the call URI to disable the specified inventory location.

Max length: 36", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "25802": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25804": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25805": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "{fieldName} Not Found." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "25001": { - "domain": "API_INVENTORY", - "category": "APPLICATION", - "description": "System error. {additionalInfo}" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/sell/inventory/v1" - } - } - } - ] - }, - "/location/{merchantLocationKey}/enable": { - "post": { - "tags": [ - "location" - ], - "description": "

This call enables a disabled inventory location that is specified in the merchantLocationKey path parameter. Once a disabled inventory location is enabled, sellers can start loading/modifying inventory to that inventory location.

The authorization HTTP header is the only required request header for this call.

A successful call will return an HTTP status value of 200 OK.

", - "operationId": "enableInventoryLocation", - "parameters": [ - { - "name": "merchantLocationKey", - "in": "path", - "description": "A unique merchant-defined key (ID) for an inventory location. This value is passed in through the call URI to specify the disabled inventory location to enable.

Max length: 36", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "25802": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25804": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25805": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "{fieldName} Not Found." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "25001": { - "domain": "API_INVENTORY", - "category": "APPLICATION", - "description": "System error. {additionalInfo}" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/sell/inventory/v1" - } - } - } - ] - }, - "/location": { - "get": { - "tags": [ - "location" - ], - "description": "This call retrieves all defined details for every inventory location associated with the seller's account. There are no required parameters for this call and no request payload. However, there are two optional query parameters, limit and offset. The limit query parameter sets the maximum number of inventory locations returned on one page of data, and the offset query parameter specifies the page of data to return. These query parameters are discussed more in the URI parameters table below.

The authorization HTTP header is the only required request header for this call.

A successful call will return an HTTP status value of 200 OK.

", - "operationId": "getInventoryLocations", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "The value passed in this query parameter sets the maximum number of records to return per page of data. Although this field is a string, the value passed in this field should be a positive integer value. If this query parameter is not set, up to 100 records will be returned on each page of results.

Min: 1", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "Specifies the number of locations to skip in the result set before returning the first location in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/LocationResponse" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "25001": { - "domain": "API_INVENTORY", - "category": "APPLICATION", - "description": "System error. {additionalInfo}" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory.readonly", - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/sell/inventory/v1" - } - } - } - ] - }, - "/location/{merchantLocationKey}/update_location_details": { - "post": { - "tags": [ - "location" - ], - "description": "

Use this call to update non-physical location details for an existing inventory location. Specify the inventory location you want to update using the merchantLocationKey path parameter.

You can update the following text-based fields: name, phone, locationWebUrl, locationInstructions and locationAdditionalInformation. Whatever text is passed in for these fields in an updateInventoryLocation call will replace the current text strings defined for these fields. For store inventory locations, the operating hours and/or the special hours can also be updated.

The merchant location key, the physical location of the store, and its geo-location coordinates can not be updated with an updateInventoryLocation call

In addition to the authorization header, which is required for all eBay REST API calls, the following table includes another request header that is mandatory for the updateInventoryLocation call, and two other request headers that are optional:


Header Description Required? Applicable Values
Accept Describes the response encoding, as required by the caller. Currently, the interfaces require payloads formatted in JSON, and JSON is the default. No application/json
Content-Language Use this header to control the language that is used for any returned errors or warnings in the call response. No en-US
Content-Type The MIME type of the body of the request. Must be JSON. Yes application/json

Unless one or more errors and/or warnings occurs with the call, there is no response payload for this call. A successful call will return an HTTP status value of 204 No Content.

", - "operationId": "updateInventoryLocation", - "parameters": [ - { - "name": "merchantLocationKey", - "in": "path", - "description": "A unique merchant-defined key (ID) for an inventory location. This value is passed in the call URI to indicate the inventory location to be updated.

Max length: 36", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The inventory location details to be updated (other than the address and geo co-ordinates).", - "content": { - "application/json": { - "schema": { - "description": "The inventory location details to be updated (other than the address and geo co-ordinates).", - "$ref": "#/components/schemas/InventoryLocation" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "Success" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "25800": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Invalid {fieldName}." - }, - "25801": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Missing field {fieldName}." - }, - "25802": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25804": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "Input error. {additionalInfo}" - }, - "25805": { - "domain": "API_INVENTORY", - "category": "REQUEST", - "description": "{fieldName} Not Found." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "25001": { - "domain": "API_INVENTORY", - "category": "APPLICATION", - "description": "System error. {additionalInfo}" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/sell/inventory/v1" - } - } - } - ] - }, - "/country/{countryCode}/sales_tax_jurisdiction": { - "get": { - "tags": [ - "country" - ], - "description": "This method retrieves all the sales tax jurisdictions for the country that you specify in the countryCode path parameter. Countries with valid sales tax jurisdictions are Canada and the US.

The response from this call tells you the jurisdictions for which a seller can configure tax tables. Although setting up tax tables is optional, you can use the createOrReplaceSalesTax in the Account API call to configure the tax tables for the jurisdictions you sell to.", - "operationId": "getSalesTaxJurisdictions", - "parameters": [ - { - "name": "countryCode", - "in": "path", - "description": "This path parameter specifies the two-letter ISO 3166 country code for the country whose jurisdictions you want to retrieve. eBay provides sales tax jurisdiction information for Canada and the United States.Valid values for this path parameter are CA and US.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SalesTaxJurisdictions" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "45400": { - "domain": "API_METADATA", - "category": "REQUEST", - "description": "Invalid input. {additionalInfo}" - }, - "45401": { - "domain": "API_METADATA", - "category": "REQUEST", - "description": "Invalid {fieldName}." - }, - "45402": { - "domain": "API_METADATA", - "category": "REQUEST", - "description": "Tax table not supported for {fieldName}." - } - } - } - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "45500": { - "domain": "API_METADATA", - "category": "APPLICATION", - "description": "System error." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope" - ] - } - ] - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/sell/metadata/v1" - } - } - } - ] - } - }, - "components": { - "schemas": { - "Address": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "The first line of a street address. This field is required for store inventory locations that will be holding In-Store Pickup inventory. A street address is not required if the inventory location is not holding In-Store Pickup Inventory. This field will be returned if defined for an inventory location.

Max length: 128" - }, - "addressLine2": { - "type": "string", - "description": "The second line of a street address. This field can be used for additional address information, such as a suite or apartment number. A street address is not required if the inventory location is not holding In-Store Pickup Inventory. This field will be returned if defined for an inventory location.

Max length: 128" - }, - "city": { - "type": "string", - "description": "The city in which the inventory location resides. This field is required for store inventory locations that will be holding In-Store Pickup inventory. For warehouse locations, this field is technically optional, as a postalCode can be used instead of city/stateOrProvince pair, and then the city is just derived from this postal/zip code. This field is returned if defined for an inventory location.

Max length: 128" - }, - "country": { - "type": "string", - "description": "The country in which the address resides, represented as two-letter ISO 3166 country code. For example, US represents the United States, and DE represents Germany.

Max length: 2 For implementation help, refer to eBay API documentation" - }, - "county": { - "type": "string", - "description": "The county in which the address resides. This field is returned if defined for an inventory location." - }, - "postalCode": { - "type": "string", - "description": "The postal/zip code of the address. eBay uses postal codes to surface In-Store Pickup items within the vicinity of a buyer's location, and it also user postal codes (origin and destination) to estimate shipping costs when the seller uses calculated shipping. A city/stateOrProvince pair can be used instead of a postalCode value, and then the postal code is just derived from the city and state/province. This field is returned if defined for an inventory location.

Max length: 16" - }, - "stateOrProvince": { - "type": "string", - "description": "The state/province in which the inventory location resides. This field is required for store inventory locations that will be holding In-Store Pickup inventory. For warehouse locations, this field is technically optional, as a postalCode can be used instead of city/stateOrProvince pair, and then the state or province is just derived from this postal/zip code.

Max length: 128" - } - }, - "description": "This type is used to define the physical address of an inventory location." - }, - "Amount": { - "type": "object", - "properties": { - "currency": { - "type": "string", - "description": "The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.

Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation" - }, - "value": { - "type": "string", - "description": "The monetary amount in the specified currency." - } - }, - "description": "A complex type that describes the value of a monetary amount as represented by a global currency. When passing in an amount in a request payload, both currency and value fields are required, and both fields are also always returned for an amount in a response field." - }, - "CategoryType": { - "type": "object", - "properties": { - "default": { - "type": "boolean", - "description": "Note: This field has been deprecated and is no longer used.
  • Do not include this field in any create or update method.
  • This field may be returned within the payload of a get method, but it can be ignored.
" + } + } + }, + "CategoryType": { + "type": "object", + "properties": { + "default": { + "type": "boolean", + "description": "Note: This field has been deprecated and is no longer used.
  • Do not include this field in any create or update method.
  • This field may be returned within the payload of a get method, but it can be ignored.
" }, "name": { "type": "string", - "description": "The category type to which the policy applies (motor vehicles or non-motor vehicles).

The MOTORS_VEHICLES category type is not valid for return policies. eBay flows do not support the return of motor vehicles. For implementation help, refer to eBay API documentation" + "description": "The category type to which the policy applies (motor vehicles or non-motor vehicles).

Note: The MOTORS_VEHICLES category type is not valid for return policies. eBay flows do not support the return of motor vehicles. For implementation help, refer to eBay API documentation" } }, - "description": "The category type discerns whether the policy applies to motor vehicle listings, or to any other items except motor vehicle listings.

Each business policy can be associated with either or both categories ('MOTORS_VEHICLES' and 'ALL_EXCLUDING_MOTORS_VEHICLES'); however, return business policies are not applicable for motor vehicle listings." + "description": "The category type discerns whether the policy applies to motor vehicle listings, or to any other items except motor vehicle listings.

Each business policy can be associated with either or both categories ('MOTORS_VEHICLES' and 'ALL_EXCLUDING_MOTORS_VEHICLES'); however, return business policies are not applicable for motor vehicle listings." }, "CompactCustomPolicyResponse": { "type": "object", "properties": { "customPolicyId": { "type": "string", - "description": "The unique custom policy identifier for the policy being returned.

Note: This value is automatically assigned by the system when the policy is created." + "description": "The unique custom policy identifier for the policy being returned.

Note: This value is automatically assigned by the system when the policy is created." }, "label": { "type": "string", - "description": "Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.

Max length: 65" + "description": "Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to the seller's policy information.

Max length: 65" }, "name": { "type": "string", - "description": "The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.
Note: This field is visible only to the seller.

Max length: 65" + "description": "The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller and policy type.

Note: This field is visible only to the seller.
Max length: 65" }, "policyType": { "type": "string", - "description": "Specifies the type of Custom Policy being returned.

Two Custom Policy types are supported: For implementation help, refer to eBay API documentation" + "description": "Specifies the type of Custom Policy being returned. For implementation help, refer to eBay API documentation" } }, "description": "The response payload for requests that return a list of custom policies." @@ -3889,23 +3394,23 @@ "properties": { "customPolicyId": { "type": "string", - "description": "The unique custom policy identifier for a policy.

Note: This value is automatically assigned by the system when the policy is created." + "description": "The unique custom policy identifier for a policy." }, "description": { "type": "string", - "description": "Details of the seller's specific policy and terms associated with the policy. Buyers access this information from the View Item page for items to which the policy has been applied.

Max length: 15,000" + "description": "Contains the seller's policy and policy terms. Buyers access this information from the View Item page for items to which the policy has been applied.

Max length: 15,000" }, "label": { "type": "string", - "description": "Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.

Max length: 65" + "description": "Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to the seller's policy information.

Max length: 65" }, "name": { "type": "string", - "description": "The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.
Note: This field is visible only to the seller.

Max length: 65" + "description": "The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller and policy type.

Note: This field is visible only to the seller.
Max length: 65" }, "policyType": { "type": "string", - "description": "Specifies the type of Custom Policy.

Two Custom Policy types are supported: For implementation help, refer to eBay API documentation" + "description": "Specifies the type of Custom Policy being returned. For implementation help, refer to eBay API documentation" } }, "description": "This container defines a seller's custom policy identified by policy ID for the selected eBay marketplace. A successful call returns the requested policy information." @@ -3915,19 +3420,19 @@ "properties": { "description": { "type": "string", - "description": "Details of the seller's specific policy and terms for this policy.

Max length: 15,000" + "description": "Contains the seller's policy and policy terms.

Max length: 15,000" }, "label": { "type": "string", - "description": "Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.

Max length: 65" + "description": "Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to the seller's policy information.

Max length: 65" }, "name": { "type": "string", - "description": "The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.
Note: This field is visible only to the seller.

Max length: 65" + "description": "The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller and policy type.

Note: This field is visible only to the seller.
Max length: 65" }, "policyType": { "type": "string", - "description": "Specifies the type of custom policy being created.

Two Custom Policy types are supported: For implementation help, refer to eBay API documentation" + "description": "Specifies the type of custom policy being created.

Two Custom Policy types are supported: For implementation help, refer to eBay API documentation" } }, "description": "This type is used by the request payload of the createCustomPolicy method to define a new custom policy for a specific marketplace." @@ -3937,15 +3442,15 @@ "properties": { "description": { "type": "string", - "description": "Details of the seller's specific policy and terms for this policy.

Max length: 15,000" + "description": "Contains the seller specified policy and policy terms.

Note: Always supply this field. If this field is not specified, any previous value is removed. Call the getCustomPolicy method to return the present field value for this policy.
Max length: 15,000" }, "label": { "type": "string", - "description": "Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.

Max length: 65" + "description": "Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to seller specified policy information.

Note: Always supply this field. If this field is not specified, any previous value is removed. Call the getCustomPolicy method to return the present field value for this policy.
Max length: 65" }, "name": { "type": "string", - "description": "The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.
Note: This field is visible only to the seller.

Max length: 65" + "description": "The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller and policy type.

Note: This field is visible only to the seller.

Note: Always supply this field. If this field is not specified, any previous value is removed. Call the getCustomPolicy method to return the present field value for this policy.
Max length: 65" } } }, @@ -3992,11 +3497,11 @@ "type": "object", "properties": { "amount": { - "description": "This value indicates the initial deposit amount required from the buyer in order to purchase a motor vehicle. This value can be as high as $2,000.00 if immediate payment is not required, and up to $500.00 if immediate payment is required.

Max: 2000.0", + "description": "This value indicates the initial deposit amount required from the buyer in order to purchase a motor vehicle. This value can be as high as $2,000.00 if immediate payment is not required, and up to $500.00 if immediate payment is required.

Max: 2000.0", "$ref": "#/components/schemas/Amount" }, "dueIn": { - "description": "This value indicates the number of hours that the buyer has (after they commit to buy) to pay the initial deposit on a motor vehicle. Valid dueIn times are 24, 48, and 72 hours. HOUR is set as the unit value, and 24, 48 or 72 are set in the value field.

Note: The dueIn value is overridden if the seller has set the motor vehicle listing to require immediate payment. If the listing requires immediate payment, the buyer must pay the deposit immediately in order to be eligible to purchase the motor vehicle.

Min=24 (hours)Max=72 (hours), Default=48 (hours)", + "description": "This value indicates the number of hours that the buyer has (after they commit to buy) to pay the initial deposit on a motor vehicle. Valid dueIn times are 24, 48, and 72 hours. HOUR is set as the unit value, and 24, 48 or 72 are set in the value field.

Note: The dueIn value is overridden if the seller has set the motor vehicle listing to require immediate payment. If the listing requires immediate payment, the buyer must pay the deposit immediately in order to be eligible to purchase the motor vehicle.

Min=24 (hours)Max=72 (hours), Default=48 (hours)", "$ref": "#/components/schemas/TimeDuration" }, "paymentMethods": { @@ -4087,7 +3592,7 @@ }, "description": { "type": "string", - "description": "A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250" + "description": "A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250" }, "freightShipping": { "type": "boolean", @@ -4099,7 +3604,7 @@ }, "globalShipping": { "type": "boolean", - "description": "If returned as true, eBay's Global Shipping Program will be used by the seller to ship items to international locations.

Note: On the US marketplace, the Global Shipping Program is scheduled to be replaced by a new intermediated international shipping program called eBay International Shipping. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023.

eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available.

A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.
" + "description": "Note: This field is only applicable for the eBay United Kingdom marketplace (EBAY_GB).
If returned as true, eBay's Global Shipping Program will be used by the seller to ship items to international locations.

eBay International Shipping is an account level setting; no field needs to be set in a Fulfillment business policy to enable eBay International Shipping. If a US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available. A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy." }, "handlingTime": { "description": "Specifies the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.

If only local pickup or freight shipping is available for the item, this container may not get returned.

", @@ -4115,15 +3620,15 @@ }, "name": { "type": "string", - "description": "A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" + "description": "A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" }, "pickupDropOff": { "type": "boolean", - "description": "If returned as true, the seller offers the \"Click and Collect\" option.

Currently, \"Click and Collect\" is available only to large retail merchants the eBay AU and UK marketplaces." + "description": "If returned as true, the seller offers the \"Click and Collect\" option.

Currently, \"Click and Collect\" is available only to large retail merchants the eBay AU, UK, DE, FR, and IT marketplaces." }, "shippingOptions": { "type": "array", - "description": "This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations).

The optionType field indicates whether the ShippingOption object applies to domestic or international shipping, and the costType field indicates whether flat-rate shipping or calculated shipping will be used.

A separate ShippingServices object is used to specify cost and other details for every available domestic and international shipping service option.

", + "description": "This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations).

The optionType field indicates whether the ShippingOption object applies to domestic or international shipping, and the costType field indicates whether flat-rate shipping or calculated shipping will be used.

A separate ShippingServices object is used to specify cost and other details for every available domestic and international shipping service option.

", "items": { "$ref": "#/components/schemas/ShippingOption" } @@ -4147,23 +3652,23 @@ }, "description": { "type": "string", - "description": "A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" + "description": "A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" }, "freightShipping": { "type": "boolean", - "description": "This field is included and set to true if freight shipping is available for the item. Freight shipping can be used for large items over 150 lbs.

Default: false" + "description": "This field is included and set to true if freight shipping is available for the item. Freight shipping can be used for large items over 150 lbs.

Default: false" }, "globalShipping": { "type": "boolean", - "description": "This field is included and set to true if the seller wants to use the Global Shipping Program for international shipments. See the Global Shipping Program help topic for more details and requirements on the Global Shipping Program.

It is possible for a seller to use a combination of the Global Shipping Program and other international shipping services.

If this value is set to false or if the field is omitted, the seller is responsible for manually specifying individual international shipping services (if the seller ships internationally)., as described in Setting up worldwide shipping.

Sellers can opt in or out of the Global Shipping Program through the Shipping preferences in My eBay.

Note: On the US marketplace, the Global Shipping Program is scheduled to be replaced by a new intermediated international shipping program called eBay International Shipping. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023.

eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available.

A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.

Default: false

" + "description": "Note: This field is only applicable for the eBay United Kingdom marketplace (EBAY_GB).
This field is included and set to true if the seller wants to use the Global Shipping Program for international shipments. See the Global Shipping Program help topic for more details and requirements on the Global Shipping Program.

A seller can use a combination of the Global Shipping Program and other international shipping services.

If set to false or if the field is omitted, the seller has to manually specifying individual international shipping services (if the seller ships internationally), as described in Setting up worldwide shipping.

Sellers opt in or out of the Global Shipping Program through the Shipping preferences in My eBay.

eBay International Shipping is an account level setting; no field needs to be set in a Fulfillment business policy to enable eBay International Shipping. If a US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available. A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.

Default: false

" }, "handlingTime": { - "description": "This container is used to specify the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.

Valid values can vary by site and by category. To obtain the supported values for a site, call GeteBayDetails in the Trading API with DetailName set to DispatchTimeMaxDetails, then inspect the DispatchTimeMaxDetails container in the response for the time values supported by the site (typical handling times are 0, 1, 2, 3, 4, 5, 10, 15, and 20, but these can vary by site and may change over time.)

This field is conditionally required when the seller is offering one or more domestic or international shipping options, but it is not applicable when the item is only available through local pickup (\"localPickup\": \"true\"), or if it will be shipped through a freight shipping service (\"freightShipping\": \"true\").

Note: Top-Rated sellers must offer same-day or one-day handling for a listing in order for that listing to receive a Top Rated Plus seal on the View Item or Search Results pages. To offer zero-day or one-day handling, set field to '0' or '1', respectively.", + "description": "This container is used to specify the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.

Valid values can vary by site and by category. To obtain the supported values for a site, call GeteBayDetails in the Trading API with DetailName set to DispatchTimeMaxDetails, then inspect the DispatchTimeMaxDetails container in the response for the time values supported by the site (typical handling times are 0, 1, 2, 3, 4, 5, 10, 15, and 20, but these can vary by site and may change over time.)

This field is conditionally required when the seller is offering one or more domestic or international shipping options, but it is not applicable when the item is only available through local pickup (\"localPickup\": \"true\"), or if it will be shipped through a freight shipping service (\"freightShipping\": \"true\").

Note: Top-Rated sellers must offer same-day or one-day handling for a listing in order for that listing to receive a Top Rated Plus seal on the View Item or Search Results pages. To offer zero-day or one-day handling, set field to '0' or '1', respectively.", "$ref": "#/components/schemas/TimeDuration" }, "localPickup": { "type": "boolean", - "description": "This field should be included and set to true if local pickup is one of the fulfillment options available to the buyer. It is possible for the seller to make local pickup and some shipping service options available to the buyer.

With local pickup, the buyer and seller make arrangements for pickup time and location.

Default: false" + "description": "This field should be included and set to true if local pickup is one of the fulfillment options available to the buyer. It is possible for the seller to make local pickup and some shipping service options available to the buyer.

With local pickup, the buyer and seller make arrangements for pickup time and location.

Default: false" }, "marketplaceId": { "type": "string", @@ -4171,21 +3676,21 @@ }, "name": { "type": "string", - "description": "A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" + "description": "A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" }, "pickupDropOff": { "type": "boolean", - "description": "This field should be included and set to true if the seller offers the \"Click and Collect\" feature for an item.

To enable \"Click and Collect\" on a listing, a seller must be eligible for Click and Collect. Currently, Click and Collect is available to only large retail merchants selling in the eBay AU and UK marketplaces.

In addition to setting this field to true, the merchant must also do the following to enable the \"Click and Collect\" option on a listing:

When a merchant successfully lists an item with Click and Collect, prospective buyers within a reasonable distance from one of the merchant's stores (that has stock available) will see the \"Available for Click and Collect\" option on the listing, along with information on the closest store that has the item.

Default: false" + "description": "This field should be included and set to true if the seller offers the \"Click and Collect\" feature for an item.

To enable \"Click and Collect\" on a listing, a seller must be eligible for Click and Collect. Currently, Click and Collect is available to only large retail merchants selling in the eBay AU, UK, DE, FR, and IT marketplaces.

In addition to setting this field to true, the merchant must also do the following to enable the \"Click and Collect\" option on a listing:

When a merchant successfully lists an item with Click and Collect, prospective buyers within a reasonable distance from one of the merchant's stores (that has stock available) will see the \"Available for Click and Collect\" option on the listing, along with information on the closest store that has the item.

Default: false" }, "shippingOptions": { "type": "array", - "description": "This array is used to provide detailed information on the domestic and international shipping options available for the policy.

A separate ShippingOption object is required for domestic shipping service options and for international shipping service options (if the seller ships to international locations).

A separate ShippingServices object will be used to specify cost and other details for every available domestic and international shipping service option.

", + "description": "This array is used to provide detailed information on the domestic and international shipping options available for the policy.

A separate ShippingOption object is required for domestic shipping service options and for international shipping service options (if the seller ships to international locations).

A separate ShippingServices object will be used to specify cost and other details for every available domestic and international shipping service option.

", "items": { "$ref": "#/components/schemas/ShippingOption" } }, "shipToLocations": { - "description": "This container consists of the regionIncluded and regionExcluded arrays, which are used to define the geographical regions/countries/states or provinces/domestic regions that a seller does and does not ship to for the associated fulfillment policy. Note that this container can be considered the master list of where the seller ships and does not ship, but there is also a shipToLocations container that can be set at the shipping service option level.

To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call GeteBayDetails with DetailName value set to ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in both the regionIncluded.regionName and in the regionExcluded.regionName fields.

For valid geographical region names, look for the ExcludeShippingLocationDetails containers in the GeteBayDetails response where the Region value is Worldwide, and the valid values will be shown in the corresponding Location fields.

For valid two-digit country codes, look for ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is one of the defined geographical regions, and the valid values will be shown in the corresponding Location fields. Alternatively, you can find the two-digit country code values in the CountryCodeEnum type definition. For valid domestic region values, look for ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is either Domestic Location or Additional Locations, and the valid values will be shown in the corresponding Location fields.

The STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post.", + "description": "This container consists of the regionIncluded and regionExcluded arrays, which are used to define the geographical regions/countries/states or provinces/domestic regions that a seller does and does not ship to for the associated fulfillment policy. Note that this container can be considered the master list of where the seller ships and does not ship, but there is also a shipToLocations container that can be set at the shipping service option level.

Note: Any shipping exclusions specified through this container can be overridden by the eBay International Shipping exclusions toggle located under Shipping Preferences in My eBay. For more information on eBay International Shipping, see eBay International Shipping program.
To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call GeteBayDetails with DetailName value set to ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in both the regionIncluded.regionName and in the regionExcluded.regionName fields.

For valid geographical region names, look for the ExcludeShippingLocationDetails containers in the GeteBayDetails response where the Region value is Worldwide, and the valid values will be shown in the corresponding Location fields.

For valid two-digit country codes, look for ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is one of the defined geographical regions, and the valid values will be shown in the corresponding Location fields. Alternatively, you can find the two-digit country code values in the CountryCodeEnum type definition. For valid domestic region values, look for ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is either Domestic Location or Additional Locations, and the valid values will be shown in the corresponding Location fields.

The STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post.", "$ref": "#/components/schemas/RegionSet" } }, @@ -4225,25 +3730,11 @@ }, "total": { "type": "integer", - "description": "The total number of fulfillment policies retrieved in the result set.

If no fulfillment policies are defined for the specified marketplace, this field is returned with a value of 0.", + "description": "The total number of fulfillment policies retrieved in the result set.

If no fulfillment policies are defined for the specified marketplace, this field is returned with a value of 0.", "format": "int32" } }, - "description": "The response payload for the getFulfillmentPolicies method.

Note: Pagination has not yet been enabled for getFulfillmentPolicies, so all of the pagination-related fields are for future use." - }, - "GeoCoordinates": { - "type": "object", - "properties": { - "latitude": { - "type": "number", - "description": "The latitude (North-South) component of the geographic coordinate. This field is required if a geoCoordinates container is used.

This field is returned if geographical coordinates are set for the inventory location." - }, - "longitude": { - "type": "number", - "description": "The longitude (East-West) component of the geographic coordinate. This field is required if a geoCoordinates container is used.

This field is returned if geographical coordinates are set for the inventory location." - } - }, - "description": "This type is used to express the Global Positioning System (GPS) latitude and longitude coordinates of an inventory location." + "description": "The response payload for the getFulfillmentPolicies method.

Note: Pagination has not yet been enabled for getFulfillmentPolicies, so all of the pagination-related fields are for future use." }, "InternationalReturnOverrideType": { "type": "object", @@ -4253,190 +3744,20 @@ "description": "This field sets/indicates if the seller offers replacement items to the buyer in the case of an international return. The buyer must be willing to accept a replacement item; otherwise, the seller will need to issue a refund for a return. For implementation help, refer to eBay API documentation" }, "returnPeriod": { - "description": "This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location.

You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods. For a definitive list of return periods for one or more categories, call getReturnPolicies method of the Metadata API.

The TimeDuration type is used to set/indicate the return period, and you set the unit value to DAY and the value field to either 30 or 60 (or other value, as appropriate).

Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours.

This field is conditionally required if the internationalOverride.returnsAccepted field is set to true.", + "description": "This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location.

You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods. For a definitive list of return periods for one or more categories, call getReturnPolicies method of the Metadata API.

The TimeDuration type is used to set/indicate the return period, and you set the unit value to DAY and the value field to either 30 or 60 (or other value, as appropriate).

Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours.

This field is conditionally required if the internationalOverride.returnsAccepted field is set to true.", "$ref": "#/components/schemas/TimeDuration" }, "returnsAccepted": { "type": "boolean", - "description": "If set to true, the seller accepts international returns. If set to false, the seller does not accept international returns.

This field is conditionally required if the seller chooses to have a separate international return policy." + "description": "If set to true, the seller accepts international returns. If set to false, the seller does not accept international returns.

This field is conditionally required if the seller chooses to have a separate international return policy." }, "returnShippingCostPayer": { "type": "string", - "description": "This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for 'significantly not as described' (SNAD) issues.

This field is conditionally required if the internationalOverride.returnsAccepted field is set to true. For implementation help, refer to eBay API documentation" + "description": "This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for 'significantly not as described' (SNAD) issues.

This field is conditionally required if the internationalOverride.returnsAccepted field is set to true. For implementation help, refer to eBay API documentation" } }, "description": "This type defines the fields for a seller's international return policy. Sellers have the ability to set separate domestic and international return policies, but if an international return policy is not set, the same return policy settings specified for the domestic return policy are also used for returns for international buyers. " }, - "Interval": { - "type": "object", - "properties": { - "close": { - "type": "string", - "description": "The close value is actually the time that the store closes. Local time (in Military format) is used. So, if a store closed at 8 PM local time, the close time would look like the following: 20:00:00. This field is conditionally required if the intervals container is used to specify working hours or special hours for a store.

This field is returned if set for the store location." - }, - "open": { - "type": "string", - "description": "The open value is actually the time that the store opens. Local time (in Military format) is used. So, if a store opens at 9 AM local time, the close time would look like the following: 09:00:00. This field is conditionally required if the intervals container is used to specify working hours or special hours for a store.

This field is returned if set for the store location." - } - }, - "description": "This type is used by the intervals container to define the opening and closing times of a store's working day. Local time (in Military format) is used, with the following format: hh:mm:ss." - }, - "InventoryLocation": { - "type": "object", - "properties": { - "locationAdditionalInformation": { - "type": "string", - "description": "This text field is used by the merchant to provide/update additional information about an inventory location. Whatever text is passed in this field will replace the current text string defined for this field. If the text will not change, the same text should be passed in once again.

Max length: 256" - }, - "locationInstructions": { - "type": "string", - "description": "This text field is generally used by the merchant to provide/update special pickup instructions for a store inventory location. Although this field is optional, it is recommended that merchants provide this field to create a pleasant and easy pickup experience for In-Store Pickup and Click and Collect orders. If this field is not included in the call request payload, eBay will use the default pickup instructions contained in the merchant's profile (if available). Whatever text is passed in this field will replace the current text string defined for this field. If the text will not change, the same text should be passed in once again.

Max length: 1000" - }, - "locationWebUrl": { - "type": "string", - "description": "This text field is used by the merchant to provide/update the Website address (URL) associated with the inventory location. The URL that is passed in this field will replace any other URL that may be defined for this field.

Max length: 512" - }, - "name": { - "type": "string", - "description": "This text field is used by the merchant to update the name of the inventory location. This name should be a human-friendly name as it will be in In-Store Pickup and Click and Collect listings. A name is not required for warehouse inventory locations. For store inventory locations, this field is not immediately required, but will be required before an offer enabled with the In-Store Pickup or Click and Collect capability can be published. So, if the seller omitted this field in the createInventoryLocation call, it is required for an updateInventoryLocation call. The name that is passed in this field will replace any other name that may be defined for this field." - }, - "operatingHours": { - "type": "array", - "description": "This container is used to provide/update the regular operating hours for a store location during the days of the week. A dayOfWeekEnum field and an intervals container will be needed for each day of the week that the store location is open. Note that if operating hours are already set for an inventory location for a specific day of the week, whatever is set through an updateInventoryLocation call will override those existing hours.", - "items": { - "$ref": "#/components/schemas/OperatingHours" - } - }, - "phone": { - "type": "string", - "description": "This text field is used by the merchant to provide/update the phone number for the inventory location. The phone number that is passed in this field will replace any other phone number that may be defined for this field.

Max length: 36" - }, - "specialHours": { - "type": "array", - "description": "This container is used to provide/update the special operating hours for a store location on a specific date, such as a holiday. The special hours specified for the specific date will override the normal operating hours for that particular day of the week. If special hours have already been set up for an inventory location, specifying special hours through an updateInventoryLocation call will only add to the list, unless the date(s) used are the same special date(s) already set up, in which case, the special hours set up through the updateInventoryLocation call will override the existing special hours.", - "items": { - "$ref": "#/components/schemas/SpecialHours" - } - } - }, - "description": "This type is used by the updateInventoryLocation call to update operating hours, special hours, phone number, and other minor details of an inventory location." - }, - "InventoryLocationFull": { - "type": "object", - "properties": { - "location": { - "description": "This required container is used to set the physical address and geographical coordinates (optional) of a warehouse or store inventory location. A warehouse inventory location only requires the city, province/state, and country, and does not require a full street address. However, the seller may still supply a full street address for a warehouse location. The physical location/address for an inventory location cannot be modified once set with a createInventoryLocation call. All other details of an inventory location (e.g. phone or operating hours) can be changed with an updateInventoryLocation call.", - "$ref": "#/components/schemas/LocationDetails" - }, - "locationAdditionalInformation": { - "type": "string", - "description": "This text field is used by the merchant to provide additional information about an inventory location.

Max length: 256" - }, - "locationInstructions": { - "type": "string", - "description": "This text field is generally used by the merchant to provide special pickup instructions for a store inventory location. Although this field is optional, it is recommended that merchants provide this field to create a pleasant and easy pickup experience for In-Store Pickup and Click and Collect orders. If this field is not included in the call request payload, eBay will use the default pickup instructions contained in the merchant's profile (if available).

" - }, - "locationTypes": { - "type": "array", - "description": "This container is used to define the function of the inventory location. Typically, an inventory location will serve as a store or a warehouse, but in some cases, an inventory location may be both.

If this container is omitted, the location type of the inventory location will default to WAREHOUSE. See StoreTypeEnum for the supported values.

Default: WAREHOUSE", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "locationWebUrl": { - "type": "string", - "description": "This text field is used by the merchant to provide the Website address (URL) associated with the inventory location.

Max length: 512" - }, - "merchantLocationStatus": { - "type": "string", - "description": "This field is used to indicate whether the inventory location will be enabled (inventory can be loaded to location) or disabled (inventory can not be loaded to location). If this field is omitted, a successful createInventoryLocation call will automatically enable the inventory location. A merchant may want to create a new inventory location but leave it as disabled if the inventory location is not yet ready for active inventory. Once the inventory location is ready, the merchant can use the enableInventoryLocation call to enable an inventory location that is in a disabled state. See StatusEnum for the supported values.

Default: ENABLED For implementation help, refer to eBay API documentation" - }, - "name": { - "type": "string", - "description": "The name of the inventory location. This name should be a human-friendly name as it will be displayed in In-Store Pickup and Click and Collect listings. A name is not required for warehouse inventory locations. For store inventory locations, this field is not immediately required, but will be required before an offer enabled with the In-Store Pickup or Click and Collect capability can be published. So, if the seller omits this field in a createInventoryLocation call, it becomes required for an updateInventoryLocation call.

Max length: 1000" - }, - "operatingHours": { - "type": "array", - "description": "Although not technically required, this container is highly recommended to be used to specify operating hours for a store inventory location. This container is used to express the regular operating hours for a store location during each day of the week. A dayOfWeekEnum field and an intervals container will be needed for each day of the week that the store location is open.", - "items": { - "$ref": "#/components/schemas/OperatingHours" - } - }, - "phone": { - "type": "string", - "description": "Although not technically required, this field is highly recommended to be used to specify the phone number for a store inventory location.

Max length: 36" - }, - "specialHours": { - "type": "array", - "description": "This container is used to express the special operating hours for a store inventory location on a specific date, such as a holiday. The special hours specified for the specific date will override the normal operating hours for that particular day of the week.", - "items": { - "$ref": "#/components/schemas/SpecialHours" - } - } - }, - "description": "This type is used by the createInventoryLocation call to provide details on the inventory location, including the location's name, physical address, operating hours, special hours, phone number and other details of an inventory location." - }, - "InventoryLocationResponse": { - "type": "object", - "properties": { - "location": { - "description": "This container provides location details of an inventory location. The address container will always be returned, but it will not always have a complete street address. Except in the case of an inventory location that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory location. The geoCoordinates container will only be returned if the merchant provided geographical coordinates. The locationId field is always returned, but this value is only used internally by eBay.", - "$ref": "#/components/schemas/Location" - }, - "locationAdditionalInformation": { - "type": "string", - "description": "This text field provides additional information about an inventory location. This field is returned if it is set for the inventory location.

Max length: 256" - }, - "locationInstructions": { - "type": "string", - "description": "This text field is used by the merchant to provide special pickup instructions for the store location. This field can help create a pleasant and easy pickup experience for In-Store Pickup and Click and Collect orders. If this field was not set up through a createInventoryLocation or a updateInventoryLocation call, eBay will use the default pickup instructions contained in the merchant's profile.

Max length: 1000" - }, - "locationTypes": { - "type": "array", - "description": "This container defines the function of the inventory location. Typically, an inventory location will serve as a store or a warehouse, but in some cases, an inventory location may be both.

The location type of an inventory location defaults to WAREHOUSE if a location type is not specified when a merchant creates an inventory location.", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - }, - "locationWebUrl": { - "type": "string", - "description": "This text field shows the Website address (URL) associated with the inventory location. This field is returned if defined for the inventory location.

Max length: 512" - }, - "merchantLocationKey": { - "type": "string", - "description": "The unique identifier of the inventory location. This identifier is set up by the merchant when the inventory location is first created with the createInventoryLocation call. Once this value is set for an inventory location, it cannot be modified.

Max length: 36" - }, - "merchantLocationStatus": { - "type": "string", - "description": "This field indicates whether the inventory location is enabled (inventory can be loaded to location) or disabled (inventory can not be loaded to location). The merchant can use the enableInventoryLocation call to enable an inventory location in disabled status, or the disableInventoryLocation call to disable an inventory location in enabled status. For implementation help, refer to eBay API documentation" - }, - "name": { - "type": "string", - "description": "The name of the inventory location. This name should be a human-friendly name as it will be displayed in In-Store Pickup and Click and Collect listings. For store inventory locations, this field is not required for the createInventoryLocation call, but a store inventory location must have a defined name value before an In-Store Pickup and Click and Collect enabled offer is published. So, if the seller omits this field in the createInventoryLocation call, it will have to be added later through a updateInventoryLocation call.

Max length: 1000" - }, - "operatingHours": { - "type": "array", - "description": "This container shows the regular operating hours for a store location during the days of the week. A dayOfWeekEnum field and an intervals container is shown for each day of the week that the store location is open.", - "items": { - "$ref": "#/components/schemas/OperatingHours" - } - }, - "phone": { - "type": "string", - "description": "The phone number for an inventory location. This field will typically only be set and returned for store locations.

Max length: 36" - }, - "specialHours": { - "type": "array", - "description": "This container shows the special operating hours for a store location on a specific date or dates.", - "items": { - "$ref": "#/components/schemas/SpecialHours" - } - } - }, - "description": "This type is used by the base response of the getInventoryLocation and getInventoryLocations calls. These responses provide details about inventory location(s) defined for the merchant's account." - }, "KycCheck": { "type": "object", "properties": { @@ -4476,95 +3797,6 @@ }, "description": "This is the base response type of the getKYC method." }, - "Location": { - "type": "object", - "properties": { - "address": { - "description": "The address container is always returned in getInventoryLocation/getInventoryLocations calls. Except in the case of an inventory location that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory location.", - "$ref": "#/components/schemas/Address" - }, - "geoCoordinates": { - "description": "This container displays the Global Positioning System (GPS) latitude and longitude coordinates for the inventory location. This container is only returned if the geo-coordinates are set for an inventory location.", - "$ref": "#/components/schemas/GeoCoordinates" - }, - "locationId": { - "type": "string", - "description": "A unique eBay-assigned ID for the location.

Note: This field should not be confused with the seller-defined merchantLocationKey value. It is the merchantLocationKey value which is used to identify an inventory location when working with inventory location API calls. The locationId value is only used internally by eBay." - } - }, - "description": "A complex type that is used to provide the physical address of a location, and it geo-coordinates." - }, - "LocationDetails": { - "type": "object", - "properties": { - "address": { - "description": "The address container is required for a createInventoryLocation call. Except in the case of an inventory location that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory location.", - "$ref": "#/components/schemas/Address" - }, - "geoCoordinates": { - "description": "This container is used to set the Global Positioning System (GPS) latitude and longitude coordinates for the inventory location.", - "$ref": "#/components/schemas/GeoCoordinates" - } - }, - "description": "This type is used by the createInventoryLocation call to provide an full or partial address of an inventory location." - }, - "LocationResponse": { - "type": "object", - "properties": { - "href": { - "type": "string", - "description": "The URI of the current page of results from the result set." - }, - "limit": { - "type": "integer", - "description": "The number of items returned on a single page from the result set.", - "format": "int32" - }, - "next": { - "type": "string", - "description": "The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set.

Max length: 2048" - }, - "offset": { - "type": "integer", - "description": "The number of results skipped in the result set before listing the first returned result. This value is set in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.

", - "format": "int32" - }, - "prev": { - "type": "string", - "description": "The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set.

Max length: 2048" - }, - "total": { - "type": "integer", - "description": "The total number of items retrieved in the result set.

If no items are found, this field is returned with a value of 0.", - "format": "int32" - }, - "locations": { - "type": "array", - "description": "An array of one or more of the merchant's inventory locations.", - "items": { - "$ref": "#/components/schemas/InventoryLocationResponse" - } - } - }, - "description": "This type is used by the base response payload for the getInventoryLocations call." - }, - "OperatingHours": { - "type": "object", - "properties": { - "dayOfWeekEnum": { - "type": "string", - "description": "A dayOfWeekEnum value is required for each day of the week that the store location has regular operating hours.

This field is returned if operating hours are defined for the store location. For implementation help, refer to eBay API documentation" - }, - "intervals": { - "type": "array", - "description": "This container is used to define the opening and closing times of a store's working day (defined in the dayOfWeekEnum field). An intervals container is needed for each day of the week that the store location is open. If a store location closes for lunch (or any other period during the day) and then reopens, multiple open and close pairs are needed

This container is returned if operating hours are defined for the store location.", - "items": { - "$ref": "#/components/schemas/Interval" - } - } - }, - "description": "This type is used to express the regular operating hours of a merchant's store during the days of the week." - }, "PaymentMethod": { "type": "object", "properties": { @@ -4578,40 +3810,40 @@ }, "paymentMethodType": { "type": "string", - "description": "eBay now controls all electronic payment methods available for a marketplace, so only offline payment method enum values may be used in this field, and offline payment methods will only be applicable to listings that require or support offline payments. See the PaymentMethodTypeEnum type for supported offline payment method enum values.

For implementation help, refer to eBay API documentation" + "description": "This array is only applicable for listings supporting offline payment methods. See the PaymentMethodTypeEnum type for supported offline payment method enum values. If offline payments are enabled for the policy, provide at least one offline payment method.

For implementation help, refer to eBay API documentation" }, "recipientAccountReference": { "description": "Note: This container is no longer applicable and should not be used. eBay now controls all electronic payment methods available for a marketplace, and a seller never has to specify any electronic payment methods, including PayPal. ", "$ref": "#/components/schemas/RecipientAccountReference" } }, - "description": "This type is used by the paymentMethods container, which is used by the seller to specify one or more offline payment methods.

Note: eBay now controls all electronic payment methods available for a marketplace, so a seller will no longer use this type to specify any electronic payment methods." + "description": "This type is used by the paymentMethods container, which is used by the seller to specify one or more offline payment methods.

Note: eBay now controls all electronic payment methods available for a marketplace, so a seller will no longer use this type to specify any electronic payment methods." }, "PaymentPolicy": { "type": "object", "properties": { "categoryTypes": { "type": "array", - "description": "This container indicates whether the fulfillment policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings.", + "description": "This container indicates whether the payment policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings.", "items": { "$ref": "#/components/schemas/CategoryType" } }, "deposit": { - "description": "This container is applicable only if the categoryTypes.name field is set to MOTORS_VEHICLES, and is only returned if the seller requires an initial deposit on motor vehicles.

The container shows the amount due for the deposit and when it is due (within 1-3 days after commitment to purchase, unless the listing requires immediate payment).

Note: The due date that is specified in the deposit container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchasing the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing.

", + "description": "This container is applicable only if the categoryTypes.name field is set to MOTORS_VEHICLES, and is only returned if the seller requires an initial deposit on motor vehicles.

The container shows the amount due for the deposit and when it is due (within 1-3 days after commitment to purchase, unless the listing requires immediate payment).

Note: The due date that is specified in the deposit container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchasing the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing.

", "$ref": "#/components/schemas/Deposit" }, "description": { "type": "string", - "description": "A seller-defined description of the payment policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" + "description": "A seller-defined description of the payment policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" }, "fullPaymentDueIn": { - "description": "This container applies to motor vehicles listings only and indicates when a final payment for the vehicle is due. This value is always returned if categoryTypes is set to MOTORS_VEHICLES.

This container indicates the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. The period starts when the buyer commits to buy. The valid values, as specified with TimeDuration, are:A MOTORS_VEHICLES) payment business policy must specify at least one of the following paymentMethods values for the final payment: ", + "description": "This container applies to motor vehicles listings only and indicates when a final payment for the vehicle is due. This value is always returned if categoryTypes is set to MOTORS_VEHICLES.

This container indicates the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. The period starts when the buyer commits to buy. The valid values, as specified with TimeDuration, are:A MOTORS_VEHICLES) payment business policy must specify at least one of the following paymentMethods values for the final payment: ", "$ref": "#/components/schemas/TimeDuration" }, "immediatePay": { "type": "boolean", - "description": "If this field is returned as true, immediate payment is required from the buyer for:
It is possible for the seller to set this field as true in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller." + "description": "If this field is returned as true, immediate payment is required from the buyer for:
It is possible for the seller to set this field as true in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller." }, "marketplaceId": { "type": "string", @@ -4619,11 +3851,11 @@ }, "name": { "type": "string", - "description": "A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" + "description": "A seller-defined name for this payment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" }, "paymentInstructions": { "type": "string", - "description": "Although this field may be returned for some older payment business policies, payment instructions are no longer supported by payment business policies. If this field is returned, it can be ignored and these payment instructions will not appear in any listings that use the corresponding business policy.

Max length: 1000" + "description": "Although this field may be returned for some older payment business policies, payment instructions are no longer supported by payment business policies. If this field is returned, it can be ignored and these payment instructions will not appear in any listings that use the corresponding business policy.

Max length: 1000" }, "paymentMethods": { "type": "array", @@ -4650,20 +3882,20 @@ } }, "deposit": { - "description": "This container is used if the seller wants to require an initial deposit on a motor vehicle listing. In this container, the seller sets the deposit amount and the due date for the deposit.

Because eBay controls all electronic payment methods, sellers do not need to specify a payment method and the deposit.paymentMethods array is not needed.

Note: The 'due date' specified in the deposit container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchase the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing.

", + "description": "This container is used if the seller wants to require an initial deposit on a motor vehicle listing. In this container, the seller sets the deposit amount and the due date for the deposit.

Because eBay controls all electronic payment methods, sellers do not need to specify a payment method and the deposit.paymentMethods array is not needed.

Note: The 'due date' specified in the deposit container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchase the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing. See immediatePay.

", "$ref": "#/components/schemas/Deposit" }, "description": { "type": "string", - "description": "A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" + "description": "A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" }, "fullPaymentDueIn": { - "description": "This container is used to specify the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. This container must be specified for motor vehicles listings.

The period starts when the buyer commits to buy. The valid values, as specified with TimeDuration, are:In order for a buyer to make a full payment on a motor vehicle, at least one of the following paymentMethods values must be specified for the corresponding payment business policy: Default: 7 DAYS", + "description": "This container is used to specify the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. This container must be specified for motor vehicles listings.

The period starts when the buyer commits to buy. The valid values, as specified with TimeDuration, are:In order for a buyer to make a full payment on a motor vehicle, at least one of the following paymentMethods values must be specified for the corresponding payment business policy: Default: 7 DAYS", "$ref": "#/components/schemas/TimeDuration" }, "immediatePay": { "type": "boolean", - "description": "This field should be included and set to true if the seller wants to require immediate payment from the buyer for:
Default: False" + "description": "This field should be included and set to true if the seller wants to require immediate payment from the buyer for:
Default: False" }, "marketplaceId": { "type": "string", @@ -4671,7 +3903,7 @@ }, "name": { "type": "string", - "description": "A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" + "description": "A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" }, "paymentInstructions": { "type": "string", @@ -4721,11 +3953,11 @@ }, "total": { "type": "integer", - "description": "The total number of payment business policies retrieved in the result set.

If no payment business policies are defined for the specified marketplace, this field is returned with a value of 0.", + "description": "The total number of payment business policies retrieved in the result set.

If no payment business policies are defined for the specified marketplace, this field is returned with a value of 0.", "format": "int32" } }, - "description": "The response payload for the getPaymentPolicies method.

Note: Pagination has not yet been enabled for getPaymentPolicies, so all of the pagination-related fields are for future use." + "description": "The response payload for the getPaymentPolicies method.

Note: Pagination has not yet been enabled for getPaymentPolicies, so all of the pagination-related fields are for future use." }, "PaymentsProgramOnboardingResponse": { "type": "object", @@ -4789,17 +4021,17 @@ "properties": { "programType": { "type": "string", - "description": "A seller program in to which a seller can opt-in. For implementation help, refer to eBay API documentation" + "description": "The seller program to opt in to when part of an optInToProgram request, or out of when part of an optOutOfProgram request. When returned in an getOptedInPrograms response, a separate programType field is returned for each seller program that the seller is opted in to. For implementation help, refer to eBay API documentation" } }, - "description": "A seller program in to which a seller can opt-in." + "description": "The seller program to opt in to when part of an optInToProgram request, or out of when part of an optOutOfProgram request." }, "Programs": { "type": "object", "properties": { "programs": { "type": "array", - "description": "An array of seller programs that the seller's account is opted in to.", + "description": "An array of seller programs that the seller's account is opted in to. An empty array is returned if the seller is not opted in to any of the seller programs.", "items": { "$ref": "#/components/schemas/Program" } @@ -4861,7 +4093,7 @@ "properties": { "regionName": { "type": "string", - "description": "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.

The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails." + "description": "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.

The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails." }, "regionType": { "type": "string", @@ -4875,14 +4107,14 @@ "properties": { "regionExcluded": { "type": "array", - "description": "An array of one or more regionName values that specify the areas to where a seller does not ship. A regionExcluded list should only be set in the top-level shipToLocations container and not within the shippingServices.shipToLocations container used to specify which shipping regions are serviced by each available shipping service option.

Many sellers are willing to ship to many international locations, but they may want to exclude some world regions or some countries as places they are willing to ship to.

This array will be returned as empty if no shipping regions are excluded with the fulfillment business policy.

Note: The regionExcluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored.", + "description": "An array of one or more regionName values that specify the areas to where a seller does not ship. A regionExcluded list should only be set in the top-level shipToLocations container and not within the shippingServices.shipToLocations container used to specify which shipping regions are serviced by each available shipping service option.

Many sellers are willing to ship to many international locations, but they may want to exclude some world regions or some countries as places they are willing to ship to.

This array will be returned as empty if no shipping regions are excluded with the fulfillment business policy.

Note: The regionExcluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored.", "items": { "$ref": "#/components/schemas/Region" } }, "regionIncluded": { "type": "array", - "description": "An array of one or more regionName fields that specify the areas to where a seller ships.
Each eBay marketplace supports its own set of allowable shipping locations.

Note: The regionIncluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored.", + "description": "An array of one or more regionName fields that specify the areas to where a seller ships.
Each eBay marketplace supports its own set of allowable shipping locations.

Note: The regionIncluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored.", "items": { "$ref": "#/components/schemas/Region" } @@ -4895,21 +4127,21 @@ "properties": { "categoryTypes": { "type": "array", - "description": "This container indicates which category group that the return policy applies to.

Note: Return business policies are not applicable to motor vehicle listings, so the categoryTypes.name value will always be ALL_EXCLUDING_MOTORS_VEHICLES for return business policies.", + "description": "This container indicates which category group that the return policy applies to.

Note: Return business policies are not applicable to motor vehicle listings, so the categoryTypes.name value will always be ALL_EXCLUDING_MOTORS_VEHICLES for return business policies.", "items": { "$ref": "#/components/schemas/CategoryType" } }, "description": { "type": "string", - "description": "A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" + "description": "A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" }, "extendedHolidayReturnsOffered": { "type": "boolean", "description": "

Important! This field is deprecated, since eBay no longer supports extended holiday returns. Any value supplied in this field is neither read nor returned.

" }, "internationalOverride": { - "description": "This container shows the seller's international return policy settings. This container is only returned if the seller has set a separate international return policy for the business policies. Interational return policies are optional, even if the seller ships to international locations. If a separate international return policy is not set, all of the domestic return policy settings also apply to international orders.", + "description": "This container shows the seller's international return policy settings. This container is only returned if the seller has set a separate international return policy for the business policy. International return policies are optional, even if the seller ships to international locations. If a separate international return policy is not set, all of the domestic return policy settings also apply to international orders.", "$ref": "#/components/schemas/InternationalReturnOverrideType" }, "marketplaceId": { @@ -4918,11 +4150,11 @@ }, "name": { "type": "string", - "description": "A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" + "description": "A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" }, "refundMethod": { "type": "string", - "description": "If a seller indicates that they will accept buyer returns, this value will be set to MONEY_BACK. For implementation help, refer to eBay API documentation" + "description": "This field indicates the refund method offered by the seller. Its value will be MONEY_BACK unless the seller is enabled for Buy online, Pickup in Store or Click and Collect, and then it might be MERCHANDISE_CREDIT. Getting their money back for returned items is always an option for buyers, regardless of what the seller sets in this field. For implementation help, refer to eBay API documentation" }, "restockingFeePercentage": { "type": "string", @@ -4930,14 +4162,14 @@ }, "returnInstructions": { "type": "string", - "description": "This text-based field provides more details on seller-specified return instructions. This field is only returned if set for the return business policy.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE)" + "description": "This text-based field provides more details on seller-specified return instructions. This field is only returned if set for the return business policy.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE)" }, "returnMethod": { "type": "string", "description": "This field is only returned if the seller is willing to offer a replacement item as an alternative to 'Money Back'. For implementation help, refer to eBay API documentation" }, "returnPeriod": { - "description": "This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location.

Most categories support 30-day and 60-day return periods.

Note: Unless the seller has set a separate international return policy through the internationalOverride container, this return period will be valid for domestic and international returns (if the seller ships internationally).", + "description": "This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location.

Most categories support 30-day and 60-day return periods.

Note: Unless the seller has set a separate international return policy through the internationalOverride container, this return period will be valid for domestic and international returns (if the seller ships internationally).", "$ref": "#/components/schemas/TimeDuration" }, "returnPolicyId": { @@ -4946,11 +4178,11 @@ }, "returnsAccepted": { "type": "boolean", - "description": "If this field is returned as true, the seller accepts returns.

Note:Top-Rated sellers must accept item returns and the handlingTime should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits." + "description": "If this field is returned as true, the seller accepts returns. If set to false, the seller does not accept returns.

Note: Top-Rated sellers must accept item returns and the handlingTime should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits." }, "returnShippingCostPayer": { "type": "string", - "description": "This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues. For implementation help, refer to eBay API documentation" + "description": "This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues. For implementation help, refer to eBay API documentation" } }, "description": "This type is used by the returnPolicy response container, a container which defines a seller's return business policy for a specific marketplace." @@ -4960,14 +4192,14 @@ "properties": { "categoryTypes": { "type": "array", - "description": "This container indicates which category group that the return policy applies to.

Note: Return business policies are not applicable to motor vehicle listings, so the categoryTypes.name value must be set to ALL_EXCLUDING_MOTORS_VEHICLES for return business policies.", + "description": "This container indicates which category group that the return policy applies to.

Note: Return business policies are not applicable to motor vehicle listings, so the categoryTypes.name value must be set to ALL_EXCLUDING_MOTORS_VEHICLES for return business policies.", "items": { "$ref": "#/components/schemas/CategoryType" } }, "description": { "type": "string", - "description": "A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" + "description": "A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250" }, "extendedHolidayReturnsOffered": { "type": "boolean", @@ -4983,11 +4215,11 @@ }, "name": { "type": "string", - "description": "A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" + "description": "A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" }, "refundMethod": { "type": "string", - "description": "This value indicates the refund method that will be used by the seller for buyer returns.

Important! If this field is not included in a return business policy, it will default to MONEY_BACK.

For implementation help, refer to eBay API documentation" + "description": "This field sets the refund method to use for returned items. Its value defaults to MONEY_BACK if omitted, so this field is only needed for Buy online, Pickup in Store or Click and Collect items where the seller is willing to offer merchandise credit as an additional refund method to buyers. Getting their money back for returned items is always an option for buyers, regardless of what the seller sets in this field.

Important! If this field is not included in a return business policy, it will default to MONEY_BACK.

For implementation help, refer to eBay API documentation" }, "restockingFeePercentage": { "type": "string", @@ -4995,23 +4227,23 @@ }, "returnInstructions": { "type": "string", - "description": "This text-based field provides more details on seller-specified return instructions.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE)" + "description": "This text-based field provides more details on seller-specified return instructions.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE)" }, "returnMethod": { "type": "string", "description": "This field can be used if the seller is willing and able to offer a replacement item as an alternative to 'Money Back'. For implementation help, refer to eBay API documentation" }, "returnPeriod": { - "description": "This container is used to specify the number of days that the buyer has to return an item. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location.

You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods.

For a definitive list of return periods for one or more categories, call getReturnPolicies method of the Metadata API.

The return period is set using the TimeDuration type, where you set unit to DAY and value to either 30 or 60 (or other value, as appropriate).

Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours.

Required if returnsAccepted is set to true.", + "description": "This container is used to specify the number of days that the buyer has to return an item. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location.

You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods.

Note: Eligible Parts & Accessories (P&A) listings require sellers to offer buyers free returns with a minimum return period of 30 days. See Support for easy returns in Parts and Accessories for details.


For a definitive list of return periods for one or more categories, call getReturnPolicies method of the Metadata API.

The return period is set using the TimeDuration type, where you set unit to DAY and value to either 30 or 60 (or other value, as appropriate).

Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours.

Required if returnsAccepted is set to true.", "$ref": "#/components/schemas/TimeDuration" }, "returnsAccepted": { "type": "boolean", - "description": "If set to true, the seller accepts returns.

Note:Top-Rated sellers must accept item returns and the handlingTime should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits.

" + "description": "If set to true, the seller accepts returns. If set to false, the seller does not accept returns.

Note:Top-Rated sellers must accept item returns and the handlingTime should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits.

" }, "returnShippingCostPayer": { "type": "string", - "description": "This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues.

This field is conditionally required if returnsAccepted is set to true. For implementation help, refer to eBay API documentation" + "description": "This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Note: Eligible Parts & Accessories (P&A) listings require sellers to offer buyers free returns with a minimum return period of 30 days. See Support for easy returns in Parts and Accessories for details.


Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues.

This field is conditionally required if returnsAccepted is set to true. For implementation help, refer to eBay API documentation" } }, "description": "This root container defines a seller's return business policy for a specific marketplace and category group. This type is used when creating or updating a return business policy." @@ -5050,22 +4282,22 @@ }, "total": { "type": "integer", - "description": "The total number of return business policies retrieved in the result set.

If no return business policies are defined for the specified marketplace, this field is returned with a value of 0.", + "description": "The total number of return business policies retrieved in the result set.

If no return business policies are defined for the specified marketplace, this field is returned with a value of 0.", "format": "int32" } }, - "description": "The response payload for the getReturnPolicies method.

Note: Pagination has not yet been enabled for getReturnPolicies, so all of the pagination-related fields are for future use." + "description": "The response payload for the getReturnPolicies method.

Note: Pagination has not yet been enabled for getReturnPolicies, so all of the pagination-related fields are for future use." }, "SalesTax": { "type": "object", "properties": { "countryCode": { "type": "string", - "description": "The country code enumeration value identifies the country to which this sales tax rate applies. For implementation help, refer to eBay API documentation" + "description": "The country code enumeration value identifies the country to which this sales tax rate applies.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
For implementation help, refer to eBay API documentation" }, "salesTaxJurisdictionId": { "type": "string", - "description": "A unique ID that identifies the sales tax jurisdiction to which the salest tax rate applies (for example, a state within the United States)." + "description": "A unique ID that identifies the sales tax jurisdiction to which the sales tax rate applies.

Note: When the returned countryCode is US, the only supported return values for salesTaxJurisdictionId are:
  • AS (American Samoa)
  • GU (Guam
  • MP Northern Mariana Islands
  • PW (Palau)
  • VI (US Virgin Islands)
" }, "salesTaxPercentage": { "type": "string", @@ -5092,35 +4324,33 @@ }, "description": "This type is used by the base request of the createOrReplaceSalesTax. " }, - "SalesTaxJurisdiction": { + "SalesTaxInput": { "type": "object", "properties": { + "countryCode": { + "type": "string", + "description": "This parameter specifies the two-letter ISO 3166 code of the country for which a sales-tax table entry is to be created or updated.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
" + }, "salesTaxJurisdictionId": { "type": "string", - "description": "The unique ID for a sales tax jurisdiction." - } - }, - "description": "A unique ID for a sales tax jurisdiction." - }, - "SalesTaxJurisdictions": { - "type": "object", - "properties": { - "salesTaxJurisdictions": { - "type": "array", - "description": "A list of sales tax jurisdictions.", - "items": { - "$ref": "#/components/schemas/SalesTaxJurisdiction" - } + "description": "This parameter specifies the ID of the tax jurisdiction for which a sales-tax table entry is to be created or updated.

Valid jurisdiction IDs can be retrieved using the getSalesTaxJurisdiction method of the Metadata API.

Note: When countryCode is set to US, the only supported values for jurisdictionId are:
  • AS (American Samoa)
  • GU (Guam)
  • MP (Northern Mariana Islands)
  • PW (Palau)
  • VI (US Virgin Islands)
" + }, + "salesTaxPercentage": { + "type": "string", + "description": "This parameter specifies the sales tax rate for the specified salesTaxJurisdictionId. When applicable to an order, this sales tax rate will be applied to the sales price. The shippingAndHandlingTaxed value indicates whether or not sales tax is also applied to shipping and handling charges

Although it is a string, a percentage value is set here, such as 7.75." + }, + "shippingAndHandlingTaxed": { + "type": "boolean", + "description": "This parameter is set to true if the seller wishes to apply sales tax to shipping and handling charges and not just the total sales price of an order. Otherwise, this parameter's value should be set to false." } - }, - "description": "This complex type contains a list of sales tax jurisdictions." + } }, "SalesTaxes": { "type": "object", "properties": { "salesTaxes": { "type": "array", - "description": "An array of one or more sales tax rate entries for a specific marketplace (or all applicable marketplaces if the country_code query parameter is not used.

If no sales tax rate entries are set up, no response payload is returned, but only an HTTP status code of 204 No Content.", + "description": "An array of one or more sales-tax rate entries for a specified country.

If no sales-tax rate entries are set up, no response payload is returned, but an HTTP status code of 204 No Content is returned.", "items": { "$ref": "#/components/schemas/SalesTax" } @@ -5133,7 +4363,7 @@ "properties": { "advertisingEligibility": { "type": "array", - "description": "An array of response fields that define the seller eligibility for eBay adverstising programs.", + "description": "An array of response fields that define the seller eligibility for eBay advertising programs.", "items": { "$ref": "#/components/schemas/SellerEligibilityResponse" } @@ -5154,7 +4384,7 @@ }, "status": { "type": "string", - "description": "The seller elibibilty status for the specified eBay advertising program. For implementation help, refer to eBay API documentation" + "description": "The seller eligibility status for the specified eBay advertising program. For implementation help, refer to eBay API documentation" } }, "description": "A type that is used to provide the seller's eligibility status for an eBay advertising program." @@ -5168,7 +4398,7 @@ }, "quantity": { "type": "integer", - "description": "This field shows the monthly cap for total quantity sold allowed for the seller's account. This container may not be returned if a seller does not have a monthly cap for total quantity sold.", + "description": "This field shows the monthly cap for total quantity sold allowed for the seller's account. This field may not be returned if a seller does not have a monthly cap for total quantity sold.", "format": "int32" } }, @@ -5182,7 +4412,7 @@ "description": "If this field is returned as true, the seller's registration is completed. If this field is returned as false, the registration process is not complete." }, "sellingLimit": { - "description": "This container lists the monthly cap for the quantity of items sold and total sales amount allowed for the seller's account. This container may not be returned if a seller does not have a monthly cap for total quantity sold and total sales amount.", + "description": "This container lists the monthly cap for the quantity of items sold and total sales amount allowed for the seller's account. This container may not be returned if a seller does not have a monthly cap for total quantity sold and total sales amount.

Note: The selling limit value returned in getPrivileges may vary slightly from the value displayed in Seller Hub. The value in Seller Hub is an abbreviated figure, where rounding is applied.

", "$ref": "#/components/schemas/SellingLimit" } }, @@ -5200,7 +4430,7 @@ }, "description": { "type": "string", - "description": "A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250" + "description": "A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250" }, "freightShipping": { "type": "boolean", @@ -5212,7 +4442,7 @@ }, "globalShipping": { "type": "boolean", - "description": "If returned as true, the eBay Global Shipping Program will be used by the seller to ship items to international locations.

Note: On the US marketplace, the Global Shipping Program is scheduled to be replaced by a new intermediated international shipping program called eBay International Shipping. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023.

eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available.

A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.
" + "description": "Note: This field is only applicable for the eBay United Kingdom marketplace (EBAY_GB).
This field is included and set to true if the seller wants to use the Global Shipping Program for international shipments. See the Global Shipping Program help topic for more details and requirements on the Global Shipping Program.

A seller can use a combination of the Global Shipping Program and other international shipping services.

If set to false or if the field is omitted, the seller has to manually specifying individual international shipping services (if the seller ships internationally), as described in Setting up worldwide shipping.

Sellers opt in or out of the Global Shipping Program through the Shipping preferences in My eBay.

eBay International Shipping is an account level setting; no field needs to be set in a Fulfillment business policy to enable eBay International Shipping. If a US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available. A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.
" }, "handlingTime": { "description": "Specifies the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.

If only local pickup or freight shipping is available for the item, this container may not get returned.

", @@ -5220,7 +4450,7 @@ }, "localPickup": { "type": "boolean", - "description": "If returned as true, local pickup is available for this policy." + "description": "If returned as true, local pickup is available for items using this policy." }, "marketplaceId": { "type": "string", @@ -5228,15 +4458,15 @@ }, "name": { "type": "string", - "description": "A seller-defined name for this fulfillment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" + "description": "A seller-defined name for this fulfillment business policy.

Max length: 64" }, "pickupDropOff": { "type": "boolean", - "description": "If returned as true, the seller offers the \"Click and Collect\" option.

Currently, \"Click and Collect\" is available only to large retail merchants the eBay AU and UK marketplaces." + "description": "If returned as true, the seller offers the \"Click and Collect\" option.

Currently, \"Click and Collect\" is available only to large retail merchants the eBay AU, UK, DE, FR, and IT marketplaces." }, "shippingOptions": { "type": "array", - "description": "This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations).

The optionType field indicates whether the ShippingOption object applies to domestic or international shipping, and the costType field indicates whether flat-rate shipping or calculated shipping will be used.

A separate ShippingServices object is used to specify cost and other details for every available domestic and international shipping service option.

", + "description": "This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations).

The optionType field indicates whether the ShippingOption object applies to domestic or international shipping, and the costType field indicates whether flat-rate shipping or calculated shipping will be used.

A separate ShippingServices object is used to specify cost and other details for every available domestic and international shipping service option.

", "items": { "$ref": "#/components/schemas/ShippingOption" } @@ -5271,7 +4501,7 @@ }, "description": { "type": "string", - "description": "A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250" + "description": "A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250" }, "fullPaymentDueIn": { "description": "The number of days (after the buyer commits to buy) that a buyer has to pay the remaining balance of a motor vehicle transaction. Sellers can set this value to 3, 7, 10, or 14 days.

Note: This value is always returned if categoryTypes is set to MOTORS_VEHICLES.

", @@ -5279,7 +4509,7 @@ }, "immediatePay": { "type": "boolean", - "description": "The value returned in this field will reflect the value set by the seller in the immediatePay request field. A value of true indicates that immediate payment is required from the buyer for:
It is possible for the seller to set this field as true in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller." + "description": "The value returned in this field will reflect the value set by the seller in the immediatePay request field. A value of true indicates that immediate payment is required from the buyer for:
It is possible for the seller to set this field as true in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller." }, "marketplaceId": { "type": "string", @@ -5287,7 +4517,7 @@ }, "name": { "type": "string", - "description": "A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" + "description": "A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" }, "paymentInstructions": { "type": "string", @@ -5295,7 +4525,7 @@ }, "paymentMethods": { "type": "array", - "description": "This array shows the available payment methods that the seller has set for the payment business policy.

Sellers do not have to specify any electronic payment methods for listings, so this array will often be returned empty unless the payment business policy is intended for motor vehicle listings or other items in categories where offline payments are required or supported.", + "description": "This array shows the available payment methods that the seller has set for the payment business policy.

Sellers do not have to specify any electronic payment methods for listings, so this array will often be returned empty unless the payment business policy is intended for motor vehicle listings or other items in categories where offline payments are required or supported.", "items": { "$ref": "#/components/schemas/PaymentMethod" } @@ -5326,7 +4556,7 @@ }, "description": { "type": "string", - "description": "A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250" + "description": "A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250" }, "extendedHolidayReturnsOffered": { "type": "boolean", @@ -5342,7 +4572,7 @@ }, "name": { "type": "string", - "description": "A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" + "description": "A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64" }, "refundMethod": { "type": "string", @@ -5354,14 +4584,14 @@ }, "returnInstructions": { "type": "string", - "description": "This text-based field provides more details on seller-specified return instructions.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE)" + "description": "This text-based field provides more details on seller-specified return instructions.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE)" }, "returnMethod": { "type": "string", "description": "This field will be returned if the seller is willing and able to offer a replacement item as an alternative to 'Money Back'. For implementation help, refer to eBay API documentation" }, "returnPeriod": { - "description": "This container specifies the amount of days that the buyer has to return the item after receiving it. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location. This container will be returned unless the business policy states that the seller does not accept returns.", + "description": "This container specifies the amount of days that the buyer has to return the item after receiving it. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location. This container will be returned unless the business policy states that the seller does not accept returns.

Note: Eligible Parts & Accessories (P&A) listings require sellers to offer buyers free returns with a minimum return period of 30 days. See Support for easy returns in Parts and Accessories for details.

", "$ref": "#/components/schemas/TimeDuration" }, "returnPolicyId": { @@ -5374,7 +4604,7 @@ }, "returnShippingCostPayer": { "type": "string", - "description": "This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Note that the seller is always responsible for return shipping costs for SNAD-related issues.

This container will be returned unless the business policy states that the seller does not accept returns. For implementation help, refer to eBay API documentation" + "description": "This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Note: Eligible Parts & Accessories (P&A) listings require sellers to offer buyers free returns with a minimum return period of 30 days. See Support for easy returns in Parts and Accessories for details.


Note that the seller is always responsible for return shipping costs for SNAD-related issues.

This container will be returned unless the business policy states that the seller does not accept returns. For implementation help, refer to eBay API documentation" }, "warnings": { "type": "array", @@ -5384,38 +4614,46 @@ } } }, - "description": "Complex type that that gets populated with a response containing a return policy." + "description": "A complex type that is populated with a response containing a return policies." }, "ShippingOption": { "type": "object", "properties": { "costType": { "type": "string", - "description": "This field defines whether the shipping cost model is FLAT_RATE (the same rate for all buyers, or buyers within a region if shipping rate tables are used) or CALCULATED (the shipping rate varies by the ship-to location and size and weight of the package).

This field is conditionally required if any shipping service options are specified (domestic and/or international). For implementation help, refer to eBay API documentation" + "description": "This field defines whether the shipping cost model is FLAT_RATE (the same rate for all buyers, or buyers within a region if shipping rate tables are used) or CALCULATED (the shipping rate varies by the ship-to location and size and weight of the package).

This field is conditionally required if any shipping service options are specified (domestic and/or international). For implementation help, refer to eBay API documentation" }, "insuranceFee": { - "description": "This field has been deprecated.

Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies.", + "description": "This field has been deprecated.

Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies.", "$ref": "#/components/schemas/Amount" }, "insuranceOffered": { "type": "boolean", - "description": "This field has been deprecated.

Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies." + "description": "This field has been deprecated.

Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies." }, "optionType": { "type": "string", "description": "This field is used to indicate if the corresponding shipping service options (under shippingServices array) are domestic or international shipping service options. This field is conditionally required if any shipping service options are specified (domestic and/or international). For implementation help, refer to eBay API documentation" }, "packageHandlingCost": { - "description": "This container is used if the seller adds handling charges to domestic and/or international shipments.

Sellers can not specify any domestic handling charges if they offered 'free shipping' in the policy.

This container will only be returned if set for the policy.", + "description": "This container is used if the seller adds handling charges to domestic and/or international shipments.

Sellers can not specify any domestic handling charges if they offered 'free shipping' in the policy.

This container will only be returned if set for the policy.", "$ref": "#/components/schemas/Amount" }, "rateTableId": { "type": "string", - "description": "This field is used if the seller wants to associate a domestic or international shipping rate table to the fulfillment business policy. The getRateTables method can be used to retrieve shipping rate table IDs.

With domestic and international shipping rate tables, the seller can set different shipping costs based on shipping regions and shipping speed/level of service (one-day, expedited, standard, economy). There are also options to additional per-weight and handling charges.

Sellers need to be careful that shipping rate tables match the corresponding shipping service options. In other words, a domestic shipping rate table must not be specified in the same container where international shipping service options are being specified, and vice versa, and the shipping speed/level of service of the provided shipping service options should match the shipping speed/level of service options that are defined in the shipping rate tables.

For example, if the corresponding shipping rate table defines costs for one-day shipping services, there should be at least one one-day shipping service option specified under the shippingServices array.

This field is returned if set." + "description": "This field is used if the seller wants to associate a domestic or international shipping rate table to the fulfillment business policy. The getRateTables method can be used to retrieve shipping rate table IDs.

With domestic and international shipping rate tables, the seller can set different shipping costs based on shipping regions and shipping speed/level of service (one-day, expedited, standard, economy). There are also options to add additional per-weight and handling charges.

Sellers need to be careful that shipping rate tables match the corresponding shipping service options. In other words, a domestic shipping rate table must not be specified in the same container where international shipping service options are being specified, and vice versa, and the shipping speed/level of service of the provided shipping service options should match the shipping speed/level of service options that are defined in the shipping rate tables.

For example, if the corresponding shipping rate table defines costs for one-day shipping services, there should be at least one one-day shipping service option specified under the shippingServices array.

This field is returned if set." + }, + "shippingDiscountProfileId": { + "type": "string", + "description": "This field is the unique identifier of a seller's domestic or international shipping discount profile. If a buyer satisfies the requirements of the discount rule, this buyer will receive a shipping discount for the order.

The seller can create and manage shipping discount profiles using (Get/Set) ShippingDiscountProfiles calls in the Trading API or through the Shipping Preferences in My eBay." + }, + "shippingPromotionOffered": { + "type": "boolean", + "description": "This boolean indicates whether or not the seller has set up a promotional shipping discount that will be available to buyers who satisfy the requirements of the shipping discount rule.

The seller can create and manage shipping promotional discounts using (Get/Set) ShippingDiscountProfiles calls in the Trading API or through the Shipping Preferences in My eBay." }, "shippingServices": { "type": "array", - "description": "This array consists of the domestic or international shipping services options that are defined for the policy. The shipping service options defined under this array should match what is set in the corresponding shippingOptions.optionType field (which controls whether domestic or international shipping service options are being defined). If a shipping rate table is being used, the specified shipping service options should also match the shipping rate table settings (domestic or international, shipping speed/level of service, etc.)

Sellers can specify up to four domestic shipping services and up to five international shipping service options by using separate shippingService containers for each. If the seller is using the Global Shipping Program as an international option, only a total of four international shipping service options (including GSP) can be offered.

See How to set up shipping carrier and shipping service values.

To use the eBay standard envelope service (eSE), see Using eBay standard envelope (eSE) service.

This array is conditionally required if the seller is offering one or more domestic and/or international shipping service options.", + "description": "This array consists of the domestic or international shipping services options that are defined for the policy. The shipping service options defined under this array should match what is set in the corresponding shippingOptions.optionType field (which controls whether domestic or international shipping service options are being defined). If a shipping rate table is being used, the specified shipping service options should also match the shipping rate table settings (domestic or international, shipping speed/level of service, etc.)

Sellers can specify up to four domestic shipping services and up to five international shipping service options by using separate shippingService containers for each. If the seller is using the Global Shipping Program as an international option, only a total of four international shipping service options (including GSP) can be offered.

See How to set up shipping carrier and shipping service values.

To use the eBay standard envelope service (eSE), see Using eBay standard envelope (eSE) service.

This array is conditionally required if the seller is offering one or more domestic and/or international shipping service options.", "items": { "$ref": "#/components/schemas/ShippingService" } @@ -5427,70 +4665,49 @@ "type": "object", "properties": { "additionalShippingCost": { - "description": "This container is used by the seller to cover the use case when a single buyer purchases multiple quantities of the same line item. This cost cannot exceed the corresponding shippingCost value. A seller will generally set this field when he/she wants to pass on a shipping discount to the buyer if that buyer purchases multiple quantities of a line item.

The seller can ship multiple quantities of the line item in the same package and pass on the shipping savings to the buyer.

If this field is not set, and a buyer purchases multiple quantities of an item, the seller can technically charge the same cost set in the shippingCost container for each individual item, but in general, it behooves both the seller and the buyer (and saves both parties money) if they discuss combined shipping.

This field is not applicable to auction listings or single-quantity, fixed-price listings.

This container is returned if set.", + "description": "This container is used by the seller to cover the use case when a single buyer purchases multiple quantities of the same line item. This cost cannot exceed the corresponding shippingCost value. A seller will generally set this field when he/she wants to pass on a shipping discount to the buyer if that buyer purchases multiple quantities of a line item.

The seller can ship multiple quantities of the line item in the same package and pass on the shipping savings to the buyer.

If this field is not set, and a buyer purchases multiple quantities of an item, the seller can technically charge the same cost set in the shippingCost container for each individual item, but in general, it behooves both the seller and the buyer (and saves both parties money) if they discuss combined shipping.

This field is not applicable to auction listings or single-quantity, fixed-price listings.

This container is returned if set.", "$ref": "#/components/schemas/Amount" }, "buyerResponsibleForPickup": { "type": "boolean", - "description": "This field should be included and set to true for a motor vehicle listing if it will be the buyer's responsibility to pick up the purchased motor vehicle after full payment is made.

This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle.

This field is returned if set.

Default: false" + "description": "This field should be included and set to true for a motor vehicle listing if it will be the buyer's responsibility to pick up the purchased motor vehicle after full payment is made.

This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle.

This field is returned if set.

Default: false" }, "buyerResponsibleForShipping": { "type": "boolean", - "description": "This field should be included and set to true for a motor vehicle listing if it will be the buyer's responsibility to arrange for shipment of a purchased motor vehicle after full payment is made.

This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle.

This field is returned if set.

Default: false" - }, - "cashOnDeliveryFee": { - "description": "This container is used if the seller charges a Cash on Delivery (COD) fee. This container is returned if set.", - "$ref": "#/components/schemas/Amount" + "description": "This field should be included and set to true for a motor vehicle listing if it will be the buyer's responsibility to arrange for shipment of a motor vehicle.

This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle.

This field is returned if set.

Default: false" }, "freeShipping": { "type": "boolean", - "description": "This field is included and set to true if the seller offers a free shipping option to the buyer.

This field can only be included and set to true for the first domestic shipping service option specified in the shippingServices container (it is ignored if set for subsequent shipping services or for any international shipping service option).

The first specified shipping service option has a sortOrder value of 1 or if the sortOrderId field is not used, it is the shipping service option that's specified first in the shippingServices container.

This container is returned if set." + "description": "This field is included and set to true if the seller offers a free domestic shipping option to the buyer.

This field can only be included and set to true for the first domestic shipping service option specified in the shippingServices array (it is ignored if set for subsequent shipping services or for any international shipping service option).

The first specified shipping service option has a sortOrder value of 1 or if the sortOrderId field is not used, it is the shipping service option that's specified first in the shippingServices array.

This container is returned if set." }, "shippingCarrierCode": { "type": "string", - "description": "This field sets/indicates the shipping carrier, such as USPS, FedEx, or UPS. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.

For a full list of shipping carrier enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingCarrierDetails. The enum values for each shipping carriers can be found in each ShippingCarrierDetails.ShippingCarrier field in the response payload.

This field is actually optional, as the shipping carrier is also tied into the shippingServiceCode enum value, and that field is required for every specified shipping service option.

This field is returned if set." + "description": "This field sets/indicates the shipping carrier, such as USPS, FedEx, or UPS. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.

For a full list of shipping carrier enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingCarrierDetails. The enum values for each shipping carriers can be found in each ShippingCarrierDetails.ShippingCarrier field in the response payload.

This field is actually optional, as the shipping carrier is also tied into the shippingServiceCode enum value, and that field is required for every specified shipping service option.

This field is returned if set." }, "shippingCost": { - "description": "This container is used to set the shipping cost to ship one item using the corresponding shipping service option. This container is conditionally required if the seller is using flat-rate shipping and is not using a domestic or international shipping rate table.

This container is not necessary for calculated shipping, since eBay will calculate the shipping cost and display it in the View Item page based off of the potential buyer's ship-to location.

This value is automatically set to 0.0 for the first specified domestic shipping service option and if the corresponding freeShipping field is set to true.

This container is returned if set for the policy.", + "description": "This container is used to set the shipping cost to ship one item using the corresponding shipping service option. This container is conditionally required if the seller is using flat-rate shipping and is not using a domestic or international shipping rate table.

This container is not necessary for calculated shipping, since eBay will calculate the shipping cost and display it in the View Item page based off of the potential buyer's ship-to location.

This value is automatically set to 0.0 for the first specified domestic shipping service option and if the corresponding freeShipping field is set to true.

This container is returned if set for the policy.", "$ref": "#/components/schemas/Amount" }, "shippingServiceCode": { "type": "string", - "description": "This field sets/indicates the domestic or international shipping service option, such as USPSPriority, FedEx2Day, or UPS3rdDay. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.

For a full list of shipping service option enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingServiceDetails.

The enum values for each shipping service option can be found in each ShippingServiceDetails.ShippingService field in the response payload. The seller must make sure that the shipping service option is still valid, which is indicated by a true value in the corresponding ValidForSellingFlow boolean field. International shipping service options are typically returned at the top of the response payload, and are indicated by an InternationalService boolean field that reads true.

The InternationalService boolean field is not returned at all for domestic shipping service options.

This field is required for every specified shipping service option.

This field is returned if set." + "description": "This field sets/indicates the domestic or international shipping service option, such as USPSPriority, FedEx2Day, or UPS3rdDay. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.

For a full list of shipping service option enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingServiceDetails.

The enum values for each shipping service option can be found in each ShippingServiceDetails.ShippingService field in the response payload. The seller must make sure that the shipping service option is still valid, which is indicated by a true value in the corresponding ValidForSellingFlow boolean field. International shipping service options are typically returned at the top of the response payload, and are indicated by an InternationalService boolean field that reads true.

The InternationalService boolean field is not returned at all for domestic shipping service options.

This field is required for every specified shipping service option." }, "shipToLocations": { - "description": "This container is used to set the ship-to locations applicable to the corresponding shipping service option. Although the regionExcluded container is defined for RegionSet type and could technically be used here, it is recommened that only the regionIncluded container be used at the shipping service level. The excluded shipping regions (if any) can instead be set up in the top-level regionExcluded container.

The regionIncluded and regionExcluded containers define the geographical regions/countries/states or provinces/domestic regions where the seller does and doesn't ship to with this fulfillment policy.

To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call GeteBayDetails with DetailName value set to ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in the regionIncluded.regionName field. The STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post.", + "description": "This container is used to set the ship-to locations applicable to the corresponding shipping service option. Although the regionExcluded container is defined for RegionSet type and could technically be used here, it is recommened that only the regionIncluded container be used at the shipping service level. The excluded shipping regions (if any) can instead be set up in the top-level regionExcluded container.

The regionIncluded and regionExcluded containers define the geographical regions/countries/states or provinces/domestic regions where the seller does and doesn't ship to with this fulfillment policy.

To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call GeteBayDetails with DetailName value set to ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in the regionIncluded.regionName field. The STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post.", "$ref": "#/components/schemas/RegionSet" }, "sortOrder": { "type": "integer", - "description": "The integer value set in this field controls the order of the corresponding domestic or international shipping service option in the View Item and Checkout pages.

Sellers can specify up to four domestic shipping services (in four separate shippingService containers), so valid values are 1, 2, 3, and 4. A shipping service option with a sortOrder value of 1 appears at the top of View Item and Checkout pages. Conversely, a shipping service option with a sortOrder value of 1 appears at the bottom of the list.

Sellers can specify up to five international shipping services (in five separate shippingService containers), so valid values for international shipping services are 1, 2, 3, 4, and 5. Similarly to domestic shipping service options, the sortOrder value of a international shipping service option controls the placement of that shipping service option in the View Item and Checkout pages.

If the sortOrder field is not supplied, the order of domestic and international shipping service options is determined by the order in which they are listed in the API call.

Min: 1. Max: 4 (for domestic shipping service) or 5 (for international shipping service).", + "description": "The integer value set in this field controls the order of the corresponding domestic or international shipping service option in the View Item and Checkout pages.

If the sortOrder field is not supplied, the order of domestic and international shipping service options is determined by the order in which they are listed in the API call.

Min: 1. Max: 4 (for domestic shipping service) or 5 (for international shipping service).", "format": "int32" }, "surcharge": { - "description": " Note: DO NOT USE THIS FIELD. Shipping surcharges for domestic shipping service options can no longer be set with fulfillment business policies, except through shipping rate tables.

To do this, a seller would set up a surcharge-based shipping rate table and specify the surcharge in that table. Then, the seller would need to associate this shipping rate table to the fulfillment business policy by specifying the unique ID of the shipping rate table through the shippingOptions.rateTableId field.
Shipping surcharges cannot be applied at all to international shipping service options.", + "description": " Note: DO NOT USE THIS FIELD. Shipping surcharges for domestic shipping service options can no longer be set with fulfillment business policies, except through shipping rate tables.

To do this, a seller would set up a surcharge-based shipping rate table and specify the surcharge in that table. Then, the seller would need to associate this shipping rate table to the fulfillment business policy by specifying the unique ID of the shipping rate table through the shippingOptions.rateTableId field.
Shipping surcharges cannot be applied at all to international shipping service options.", "$ref": "#/components/schemas/Amount" } }, "description": "This type is used by the shippingServices array, an array that provides details about every domestic and international shipping service option that is defined for the policy." }, - "SpecialHours": { - "type": "object", - "properties": { - "date": { - "type": "string", - "description": "A date value is required for each specific date that the store location has special operating hours.

The timestamp is formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-04T07:09:00.000Z

This field is returned if set for the store location." - }, - "intervals": { - "type": "array", - "description": "This container is used to define the opening and closing times of a store on a specific date (defined in the date field). An intervals container is needed for each specific date that the store has special operating hours. These special operating hours on the specific date override the normal operating hours for the specific day of the week. If a store location closes for lunch (or any other period during the day) and then reopens, multiple open and close pairs are needed.

This container is returned if set for the store location.", - "items": { - "$ref": "#/components/schemas/Interval" - } - } - }, - "description": "This type is used to express the special operating hours of a store location on a specific date. A specialHours container is needed when the store's opening hours on a specific date are different than the normal operating hours on that particular day of the week." - }, "Subscription": { "type": "object", "properties": { @@ -5546,14 +4763,14 @@ "format": "int32" } }, - "description": "This type is used by the response payload for the getSubscription method.

Note: Pagination has not yet been enabled for getSubscription, so all of the pagination-related fields are for future use." + "description": "This type is used by the response payload for the getSubscription method.

Note: Pagination has not yet been enabled for getSubscription, so all of the pagination-related fields are for future use." }, "TimeDuration": { "type": "object", "properties": { "unit": { "type": "string", - "description": "These enum values represent the time measurement unit, such as DAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit.

See TimeDurationUnitEnum for a complete list of possible time-measurement units. For implementation help, refer to eBay API documentation" + "description": "These enum values represent the time measurement unit, such as DAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit.

See TimeDurationUnitEnum for a complete list of possible time-measurement units. For implementation help, refer to eBay API documentation" }, "value": { "type": "integer", @@ -5561,7 +4778,39 @@ "format": "int32" } }, - "description": "A type used to specify a period of time using a specified time-measurement unit. Payment, return, and fulfillment business policies all use this type to specify time windows.

Whenever a container that uses this type is used in a request, both of these fields are required. Similarly, whenever a container that uses this type is returned in a response, both of these fields are always returned." + "description": "A type used to specify a period of time using a specified time-measurement unit. Payment, return, and fulfillment business policies all use this type to specify time windows.

Whenever a container that uses this type is used in a request, both of these fields are required. Similarly, whenever a container that uses this type is returned in a response, both of these fields are always returned." + }, + "UpdatedSalesTaxEntry": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "The two-letter ISO 3166 code of the country associated with the sales-tax table entry." + }, + "jurisdictionId": { + "type": "string", + "description": "The ID of the tax jurisdiction associated with the sales-tax table entry." + }, + "statusCode": { + "type": "integer", + "description": "The HTTP status code for the call.

Note: The system returns one HTTP status code regardless of the number of sales-tax table entries provided. Therefore, the same HTTP statusCode will be listed for all sales-tax table entries returned in the payload.", + "format": "int32" + } + }, + "description": "This container stores the array of sales-tax table entries that have been created or updated." + }, + "UpdatedSalesTaxResponse": { + "type": "object", + "properties": { + "updatedSalesTaxEntries": { + "type": "array", + "description": "The array of new and updated sales-tax table entries.", + "items": { + "$ref": "#/components/schemas/UpdatedSalesTaxEntry" + } + } + }, + "description": "This type is used to return the list of new and updated sales-tax table entries." } }, "securitySchemes": { @@ -5569,19 +4818,11 @@ "type": "oauth2", "description": "The security definitions for this API. Please check individual operations for applicable scopes.", "flows": { - "clientCredentials": { - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope": "View public data from eBay" - } - }, "authorizationCode": { "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", "scopes": { - "https://api.ebay.com/oauth/api_scope/sell.inventory": "View and manage your inventory and offers", "https://api.ebay.com/oauth/api_scope/sell.account.readonly": "View your account settings", - "https://api.ebay.com/oauth/api_scope/sell.inventory.readonly": "View your inventory and offers", "https://api.ebay.com/oauth/api_scope/sell.account": "View and manage your account settings" } } diff --git a/specs/sell_account_v2_oas3.json b/specs/sell_account_v2_oas3.json index 1d88fb35..c9eefd42 100644 --- a/specs/sell_account_v2_oas3.json +++ b/specs/sell_account_v2_oas3.json @@ -1,651 +1,3013 @@ { - "openapi": "3.0.0", - "info": { - "title": "Account v2 API", - "description": "This API allows sellers to retrieve and manage their custom shipping rate tables. In addition, this API also provides sellers in mainland China methods to configure split-payouts between two separate payment instruments.", - "contact": { - "name": "eBay Inc," - }, - "license": { - "name": "eBay API License Agreement", - "url": "https://developer.ebay.com/join/api-license-agreement" + "openapi": "3.1.0", + "info": { + "title": "Account v2 API", + "description": "The Account v2 API lets sellers retrieve and manage seller account settings for shipping rate tables, split payouts, combined shipping rules, and seller preferences.", + "contact": { + "name": "eBay Inc," + }, + "license": { + "name": "eBay API License Agreement", + "url": "https://developer.ebay.com/join/api-license-agreement" + }, + "version": "2.2.0" }, - "version": "2.1.0" - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/sell/account/v2" - } - } - } - ], - "paths": { - "/rate_table/{rate_table_id}": { - "get": { - "tags": [ - "rate_table" - ], - "description": "This method retrieves an existing rate table identified by the rate_table_id path parameter.

Shipping rate tables are currently supported by the following marketplaces: United States, Canada, United Kingdom, Germany, Australia, France, Italy, and Spain. A successful call returns detailed information for the specified shipping rate table.", - "operationId": "getRateTable", - "parameters": [ - { - "name": "rate_table_id", - "in": "path", - "description": "This path parameter is the unique identifier for the shipping rate table to retrieve.

Use the getRateTables method of the Account API v1 to retrieve rate table IDs.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RateTableDetails" + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/sell/account/v2" } - } } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "394001": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The specified rate table ID is invalid. Please input a valid rate table ID. The getRateTables method can be used to retrieve valid rate table IDs" - } - } - } - }, - "404": { - "description": "Not found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "395000": { - "domain": "API_ACCOUNT", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + ], + "security": [ + {} + ], + "paths": { + "/rate_table/{rate_table_id}": { + "get": { + "tags": [ + "rate_table" + ], + "description": "This method retrieves an existing rate table identified by the rate_table_id path parameter.

Shipping rate tables are currently supported by the following marketplaces: United States, Canada, United Kingdom, Germany, Australia, France, Italy, and Spain. A successful call returns detailed information for the specified shipping rate table.", + "operationId": "getRateTable", + "parameters": [ + { + "name": "rate_table_id", + "in": "path", + "description": "This path parameter is the unique identifier for the shipping rate table to retrieve.

Use the getRateTables method of the Account API v1 to retrieve rate table IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateTableDetails" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "394001": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified rate table ID is invalid. Please input a valid rate table ID. The getRateTables method can be used to retrieve valid rate table IDs" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account", + "https://api.ebay.com/oauth/api_scope/sell.account.readonly" + ] + } + ], + "summary": "Retrieves details of a specific shipping rate table.", + "x-http-status-codes": { + "200": "OK", + "400": "Bad Request", + "404": "Not found", + "500": "Internal Server Error" } - } } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.account", - "https://api.ebay.com/oauth/api_scope/sell.account.readonly" - ] - } - ] - } - }, - "/rate_table/{rate_table_id}/update_shipping_cost": { - "post": { - "tags": [ - "rate_table" - ], - "description": "This method allows sellers to update shippingCost and/or additionalCost information for an existing shipping rate table identified by the rate_table_id path parameter.

A successful call returns an HTTP status code of 204 No Content.", - "operationId": "updateShippingCost", - "parameters": [ - { - "name": "rate_table_id", - "in": "path", - "description": "This path parameter is the unique identifier for the shipping rate table for which shipping costs will be updated.

Use the getRateTables method of the Account API v1 to retrieve rate table IDs.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Content-Type", - "in": "header", - "description": "This header indicates the format of the request body provided by the client. It's value should be set to application/json.

For more information, refer to HTTP request headers.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "Request to update the shipping costs for the identified shipping rate table.", - "content": { - "application/json": { - "schema": { - "description": "Request to update the shipping costs for the identified shipping rate table.", - "$ref": "#/components/schemas/RateTableUpdate" - } - } - }, - "required": false - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "394001": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The specified rate table ID is invalid. Please input a valid rate table ID. The getRateTables method can be used to retrieve valid rate table IDs" - }, - "394004": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "Please specify at least one shipping rate entry to add/update through the rates array." - }, - "394007": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "Please specify the rateId value for one or more shipping rate entries being updated." - }, - "394008": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The shippingCost containers are missing for one or more shipping rate entries. Please provide the shipping cost values for the shipping rate entries being updated." - }, - "394009": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The specified shipping cost currency does not match the currency used for the marketplace." - }, - "394011": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The additional cost containers are missing for one or more shipping rate entries for the WEIGHT/SURCHARGE rate table. Please provide these values for the additional rate entries being added/updated." - }, - "394012": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The specified additional cost currency does not match the currency used for the marketplace." - }, - "394015": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The number of rate entries must be less than or equal to the existing data." - }, - "394025": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The shipping cost value is invalid." - }, - "394026": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The additional cost value is invalid." - }, - "394035": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The shipping cost is not supported in surcharge calculation type." - }, - "394036": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "Additional costs are not applicable for shipping rate tables based on shipping item. Please remove the additional cost container." - }, - "394041": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The rateId of rates is repeated." + "/rate_table/{rate_table_id}/update_shipping_cost": { + "post": { + "tags": [ + "rate_table" + ], + "description": "This method allows sellers to update shippingCost and/or additionalCost information for an existing shipping rate table identified by the rate_table_id path parameter.

A successful call returns an HTTP status code of 204 No Content.", + "operationId": "updateShippingCost", + "parameters": [ + { + "name": "rate_table_id", + "in": "path", + "description": "This path parameter is the unique identifier for the shipping rate table for which shipping costs will be updated.

Use the getRateTables method of the Account API v1 to retrieve rate table IDs.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Request to update the shipping costs for the identified shipping rate table.", + "content": { + "application/json": { + "schema": { + "description": "Request to update the shipping costs for the identified shipping rate table.", + "$ref": "#/components/schemas/RateTableUpdate" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "394001": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified rate table ID is invalid. Please input a valid rate table ID. The getRateTables method can be used to retrieve valid rate table IDs" + }, + "394004": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Please specify at least one shipping rate entry to add/update through the rates array." + }, + "394007": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Please specify the rateId value for one or more shipping rate entries being updated." + }, + "394008": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The shippingCost containers are missing for one or more shipping rate entries. Please provide the shipping cost values for the shipping rate entries being updated." + }, + "394009": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified shipping cost currency does not match the currency used for the marketplace." + }, + "394011": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The additional cost containers are missing for one or more shipping rate entries for the WEIGHT/SURCHARGE rate table. Please provide these values for the additional rate entries being added/updated." + }, + "394012": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified additional cost currency does not match the currency used for the marketplace." + }, + "394015": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The number of rate entries must be less than or equal to the existing data." + }, + "394025": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The shipping cost value is invalid." + }, + "394026": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The additional cost value is invalid." + }, + "394035": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The shipping cost is not supported in surcharge calculation type." + }, + "394036": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Additional costs are not applicable for shipping rate tables based on shipping item. Please remove the additional cost container." + }, + "394041": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The rateId of rates is repeated." + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ], + "summary": "Updates one or more shipping rates for a specific shipping rate table.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "404": "Not Found", + "409": "Conflict", + "500": "Internal Server Error" } - } } - }, - "404": { - "description": "Not Found" - }, - "409": { - "description": "Conflict" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "395000": { - "domain": "API_ACCOUNT", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + }, + "/payout_settings": { + "get": { + "tags": [ + "payout_settings" + ], + "description": "

Important! Split-payout functionality is only available to mainland China sellers, who can split payouts between their Payoneer account and bank account. Card payouts are not currently available for sellers in mainland China.


This method returns details on two payment instruments defined on a seller's account, including the ID, type, status, nickname, last four digits of the account number, and payout percentage for the instruments.

Using the instrumentId returned with this method, sellers can makes changes to the payout split of the instruments with the updatePayoutPercentage method. Note that the instrumentStatus of a payment instrument, also returned using this method, must be ACTIVE in order to do split payouts on that payment instrument.", + "operationId": "getPayoutSettings", + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PayoutSettingsResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.finances" + ] + } + ], + "summary": "Retrieves payout percentages and unique IDs for accounts configured to receive seller payouts.", + "x-http-status-codes": { + "200": "Success", + "500": "Internal Server Error" } - } } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.account" - ] - } - ] - } - }, - "/payout_settings": { - "get": { - "tags": [ - "payout_settings" - ], - "description": "

Important! Split-payout functionality is only available to mainland China sellers, who can split payouts between their Payoneer account and bank account. Card payouts are not currently available for sellers in mainland China.


This method returns details on two payment instruments defined on a seller's account, including the ID, type, status, nickname, last four digits of the account number, and payout percentage for the instruments.

Using the instrumentId returned with this method, sellers can makes changes to the payout split of the instruments with the updatePayoutPercentage method. Note that the instrumentStatus of a payment instrument, also returned using this method, must be ACTIVE in order to do split payouts on that payment instrument.", - "operationId": "getPayoutSettings", - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PayoutSettingsResponse" + "/payout_settings/update_percentage": { + "post": { + "tags": [ + "payout_settings" + ], + "description": "

Important! Split-payout functionality is only available to mainland China sellers, who can split payouts between their Payoneer account and bank account. Card payouts are not currently available for sellers in mainland China.


This method allows sellers in mainland China to configure the split-payout percentage for two payout instruments available for seller payouts. For example, a seller can split payouts to have 70% of the payout go to a bank account and 30% go to a Payoneer account.

Note: The split-payout percentage must always add up to 100%. If the values do not equal 100, the call will fail. Instruments cannot be added/removed using Finance and Account APIs.
Users can specify the payout instruments being updated by using the instrumentId associated with each payment instrument in the request payload. This value is returned by using the getPayoutSettings method. Users can specify the percentage of the payout allocated to each instrument using the payoutPercentage request field. This value must be a whole number and cannot exceed 100.

For more details on configuring split-payout percentages, see Mainland China Split Payout Playbook. ", + "operationId": "updatePayoutPercentage", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdatePayoutPercentageRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "394100": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The seller is not eligible to set split-payout percentage." + }, + "394101": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Missing instrumentId in request." + }, + "394102": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Missing payoutPercentage in request." + }, + "394103": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The 'payoutPercentage' {payoutPercentage} is not valid. The payout percentage should be an integer value. Minimum value: {0}, Maximum value: {100}." + }, + "394104": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Duplicate instrumentId in request." + }, + "394105": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Sum up of 'payoutPercentage' in request must be equal to 100, current value {payoutPercentage}." + }, + "394106": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Instrument 'instrumentId' {instrumentId} not found." + }, + "394107": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Instrument 'instrumentId' {instrumentId} missing in request." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + }, + "395100": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was an internal error, please try again after sometime." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.finances" + ] + } + ], + "summary": "Updates the split-payout percentage for two payout instruments for sellers in mainland China.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "500": "Internal Server Error" } - } } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "395000": { - "domain": "API_ACCOUNT", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + }, + "/combined_shipping_rules/create_calculated_shipping_rules": { + "post": { + "tags": [ + "combined_shipping_rules" + ], + "description": "This method creates or registers calculated shipping rules that determine combined shipping costs based on weight, item count, or cost parameters for an authenticated seller.

This shipping rule will apply to eBay listings that use the calculated shipping model.", + "operationId": "createCalculatedShippingRules", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + } + ], + "requestBody": { + "description": "This type is used to define and configure calculated combined shipping and handling rules and/or change the combined payment duration.", + "content": { + "application/json": { + "schema": { + "description": "This type is used to define and configure calculated combined shipping and handling rules and/or change the combined payment duration.", + "$ref": "#/components/schemas/CreateCalculatedShippingRulesRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396000": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'currency'." + }, + "396002": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleType'." + }, + "396003": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Combined shipping rule names must be unique. Rule names cannot match existing rules in the system or be duplicated within the request." + }, + "396004": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRules' data. Please verify all required fields are provided with valid values." + }, + "396005": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleName'." + }, + "396006": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalAmount'." + }, + "396007": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedDuration'." + }, + "396008": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalAmountOffShippingCost'." + }, + "396009": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalPercentOffShippingCost'." + }, + "396010": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "For create operation, 'combinedShippingRuleId' is not allowed." + }, + "396012": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleType' in 'calculatedHandlingRule'." + }, + "396013": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing amount data in 'calculatedHandlingRule'." + }, + "396019": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalPercentOffShippingCost'." + }, + "396021": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'weightOffTotalWeight'." + }, + "396023": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified marketplace ID was not found." + }, + "396025": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Missing 'calculatedShippingRule'." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ], + "summary": "Creates calculated shipping rules that determine combined shipping costs based on item attributes, such as weight and dimensions, for the seller's account.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "500": "Internal Server Error" } - } } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.finances" - ] - } - ] - } - }, - "/payout_settings/update_percentage": { - "post": { - "tags": [ - "payout_settings" - ], - "description": "

Important! Split-payout functionality is only available to mainland China sellers, who can split payouts between their Payoneer account and bank account. Card payouts are not currently available for sellers in mainland China.


This method allows sellers in mainland China to configure the split-payout percentage for two payout instruments available for seller payouts. For example, a seller can split payouts to have 70% of the payout go to a bank account and 30% go to a Payoneer account.

Note: The split-payout percentage must always add up to 100%. If the values do not equal 100, the call will fail. Instruments cannot be added/removed using Finance and Account APIs.
Users can specify the payout instruments being updated by using the instrumentId associated with each payment instrument in the request payload. This value is returned by using the getPayoutSettings method. Users can specify the percentage of the payout allocated to each instrument using the payoutPercentage request field. This value must be a whole number and cannot exceed 100.

For more details on configuring split-payout percentages, see Mainland China Split Payout Playbook. ", - "operationId": "updatePayoutPercentage", - "parameters": [ - { - "name": "Content-Type", - "in": "header", - "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdatePayoutPercentageRequest" - } + "/combined_shipping_rules/create_flat_shipping_rules": { + "post": { + "tags": [ + "combined_shipping_rules" + ], + "description": "This method is used to create fixed-rate (flat) shipping rules that apply standard combined shipping costs for a seller’s listings.", + "operationId": "createFlatShippingRules", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + } + ], + "requestBody": { + "description": "This type is used to define and configure flat-rate combined shipping rules and/or change the combined payment duration.", + "content": { + "application/json": { + "schema": { + "description": "This type is used to define and configure flat-rate combined shipping rules and/or change the combined payment duration.", + "$ref": "#/components/schemas/CreateFlatShippingRulesRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396000": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'currency'." + }, + "396002": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleType'." + }, + "396003": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Combined shipping rule names must be unique. Rule names cannot match existing rules in the system or be duplicated within the request." + }, + "396004": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRules' data. Please verify all required fields are provided with valid values." + }, + "396005": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleName'." + }, + "396006": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalAmount'." + }, + "396007": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedDuration'." + }, + "396008": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalAmountOffShippingCost'." + }, + "396009": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalPercentOffShippingCost'." + }, + "396010": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "For create operation, 'combinedShippingRuleId' is not allowed." + }, + "396023": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified marketplace ID was not found." + }, + "396024": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Missing 'flatShippingRule'." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ], + "summary": "Creates flat-rate rules that apply standard combined shipping costs for a seller's listings.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "500": "Internal Server Error" + } } - }, - "required": false }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "394100": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The seller is not eligible to set split-payout percentage." - }, - "394101": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "Missing instrumentId in request." - }, - "394102": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "Missing payoutPercentage in request." - }, - "394103": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "The 'payoutPercentage' {payoutPercentage} is not valid. The payout percentage should be an integer value. Minimum value: {0}, Maximum value: {100}." - }, - "394104": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "Duplicate instrumentId in request." - }, - "394105": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "Sum up of 'payoutPercentage' in request must be equal to 100, current value {payoutPercentage}." - }, - "394106": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "Instrument 'instrumentId' {instrumentId} not found." - }, - "394107": { - "domain": "API_ACCOUNT", - "category": "REQUEST", - "description": "Instrument 'instrumentId' {instrumentId} missing in request." + "/combined_shipping_rules/create_promotional_shipping_rule": { + "post": { + "tags": [ + "combined_shipping_rules" + ], + "description": "This method defines promotional shipping rules such as discounts or free-shipping thresholds, configurable by marketplace for the seller.", + "operationId": "createPromotionalShippingRule", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + } + ], + "requestBody": { + "description": "This type is used to define and configure the promotional combined shipping rule and/or change the combined payment duration.", + "content": { + "application/json": { + "schema": { + "description": "This type is used to define and configure the promotional combined shipping rule and/or change the combined payment duration.", + "$ref": "#/components/schemas/CreatePromotionalShippingRuleRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396000": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'currency'." + }, + "396001": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Missing 'promotionalShippingRule'." + }, + "396002": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleType'." + }, + "396007": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedDuration'." + }, + "396014": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified combined shipping rule data does not match any existing rules or the operation is not supported for this rule type." + }, + "396017": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'shippingCost'." + }, + "396018": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'orderAmount'." + }, + "396020": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'itemCount'." + }, + "396023": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified marketplace ID was not found." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ], + "summary": "Creates promotional shipping rules, such as discounts or free-shipping thresholds.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "500": "Internal Server Error" } - } } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "395000": { - "domain": "API_ACCOUNT", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." - }, - "395100": { - "domain": "API_ACCOUNT", - "category": "APPLICATION", - "description": "There was an internal error, please try again after sometime." + }, + "/combined_shipping_rules": { + "get": { + "tags": [ + "combined_shipping_rules" + ], + "description": "This method retrieves all existing combined shipping rule configurations defined by the authenticated seller, including calculated, flat, and promotional types.", + "operationId": "getCombinedShippingRules", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCombinedShippingRulesPublicApiResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396023": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified marketplace ID was not found." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account.readonly" + ] + } + ], + "summary": "Retrieves all combined shipping rule configurations defined for the seller.", + "x-http-status-codes": { + "200": "OK", + "400": "Bad Request", + "500": "Internal Server Error" } - } } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.finances" - ] - } - ] - } - } - }, - "components": { - "schemas": { - "Amount": { - "type": "object", - "properties": { - "currency": { - "type": "string", - "description": "The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD. For implementation help, refer to eBay API documentation" - }, - "value": { - "type": "string", - "description": "The monetary amount in the specified currency." - } }, - "description": "A complex type that describes the value of a monetary amount as represented by a global currency." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of erro." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" + "/combined_shipping_rules/update_calculated_shipping_rules": { + "post": { + "tags": [ + "combined_shipping_rules" + ], + "description": "This method updates previously defined calculated shipping rules to modify discount percentages, weight offsets, or amount parameters for the seller.", + "operationId": "updateCalculatedShippingRules", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + } + ], + "requestBody": { + "description": "This type is used for creating and updating calculated combined-shipping rules.", + "content": { + "application/json": { + "schema": { + "description": "This type is used for creating and updating calculated combined-shipping rules.", + "$ref": "#/components/schemas/UpdateCalculatedShippingRulesRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396000": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'currency'." + }, + "396002": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleType'." + }, + "396004": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRules' data. Please verify all required fields are provided with valid values." + }, + "396005": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleName'." + }, + "396006": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalAmount'." + }, + "396007": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedDuration'." + }, + "396008": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalAmountOffShippingCost'." + }, + "396009": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalPercentOffShippingCost'." + }, + "396011": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleId'." + }, + "396012": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleType' in 'calculatedHandlingRule'." + }, + "396013": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing amount data in 'calculatedHandlingRule'." + }, + "396014": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified combined shipping rule data does not match any existing rules or the operation is not supported for this rule type." + }, + "396016": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The provided 'combinedShippingRuleName' differs from the existing combined shipping rule name. The existing name will be preserved." + }, + "396019": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalPercentOffShippingCost'." + }, + "396021": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'weightOffTotalWeight'." + }, + "396022": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Duplicate 'combinedShippingRuleId' found. Each rule id must be unique within the request." + }, + "396023": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified marketplace ID was not found." + }, + "396026": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Missing 'calculatedShippingRule' or 'calculatedHandlingRule'." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ], + "summary": "Updates previously defined calculated shipping rules.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "500": "Internal Server Error" + } } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } }, - "description": "This type defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } - } - }, - "PayoutInstrument": { - "type": "object", - "properties": { - "accountLastFourDigits": { - "type": "string", - "description": "The last four digits of the account that the seller uses to receive payouts. This may be the last four digits of a bank account or a payment processor account such as Payoneer." - }, - "instrumentId": { - "type": "string", - "description": "The unique reference identifier for a payout instrument. The instrumentId is needed to change the split-payout percentages through an updatePayoutPercentage request." - }, - "instrumentStatus": { - "type": "string", - "description": "The status of a payout instrument. Valid payout instrument statuses include:

See InstrumentStatusEnum for more details on each instrument status value.

Note: Payment accounts can only receive payouts if the status of a payout instrument is ACTIVE. For implementation help, refer to eBay API documentation" - }, - "instrumentType": { - "type": "string", - "description": "The type of account that received payouts. The value returned in this field may be:

Note: Only Payoneer is currently supported for sellers in mainland China. Card payouts are not currently available for sellers in mainland China. " - }, - "nickname": { - "type": "string", - "description": "When instrumentType returns BANK, this value is the seller-provided nickname that the seller uses to represent the bank account that receives the payout.

When instrumentType returns CARD, this value is the debit card network for the debit card that receives the payout.

When instrumentType returns a provider of digital wallet or payment processing services, the value returned is the name of the service provider (e.g., PAYONEER)

Note: Only Payoneer is currently supported for sellers in mainland China. Card payouts are not currently available for sellers in mainland China." - }, - "payoutPercentage": { - "type": "string", - "description": "The current payout percentage allocated to an instrument. For example, 50 indicates that 50% of the payout goes to the instrument." - } - }, - "description": "This type is used to provide details about one or two of the seller's accounts that are enabled to receive payouts." - }, - "PayoutSettingsResponse": { - "type": "object", - "properties": { - "payoutInstruments": { - "type": "array", - "description": "This array provides details about the seller's accounts defined for the seller's account.

Payment accounts can only receive payouts if the status of the payout instrument is ACTIVE.", - "items": { - "$ref": "#/components/schemas/PayoutInstrument" + "/combined_shipping_rules/update_combined_payments": { + "post": { + "tags": [ + "combined_shipping_rules" + ], + "description": "This method configures or modifies combined payment settings that determine how unpaid orders can be merged for a single invoice within a defined duration for the seller.", + "operationId": "updateCombinedPayments", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + } + ], + "requestBody": { + "description": "This type is used for updating combined-payment settings.

It defines how multiple unpaid orders from the same buyer are combined into a single payment, including configuration parameters such as eligible duration, order-merge criteria, and marketplace context.", + "content": { + "application/json": { + "schema": { + "description": "This type is used for updating combined-payment settings.

It defines how multiple unpaid orders from the same buyer are combined into a single payment, including configuration parameters such as eligible duration, order-merge criteria, and marketplace context.", + "$ref": "#/components/schemas/UpdateCombinedPaymentsRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396000": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'currency'." + }, + "396007": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedDuration'." + }, + "396023": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified marketplace ID was not found." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ], + "summary": "Updates combined payment settings that determine how unpaid orders can be merged.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "500": "Internal Server Error" + } } - } }, - "description": "The base response type of the getPayoutSettings method." - }, - "Rate": { - "type": "object", - "properties": { - "additionalCost": { - "description": "An additional shipping cost added to the base shipping rate (i.e., shippingCost).

This amount applies only to the following rateTableBasis options:This field is returned only when it is applicable to the specified rate ID.", - "$ref": "#/components/schemas/Amount" - }, - "rateId": { - "type": "string", - "description": "The unique identifier for rate information.

Note: This is a string that is automatically assigned by the system when a rate object is created." - }, - "shippingCategory": { - "type": "string", - "description": "Indicates the level of shipping service to which the shipping rate information applies.

Available shipping categories are: For implementation help, refer to eBay API documentation" - }, - "shippingCost": { - "description": "Specifies the base shipping rate for an item.

This amount applies only to the following rateTableBasis options:", - "$ref": "#/components/schemas/Amount" - }, - "shippingRegionNames": { - "type": "array", - "description": "An array of Region names to which the shipping rate information applies.

Returned values may be:", - "items": { - "type": "string" + "/combined_shipping_rules/update_flat_shipping_rules": { + "post": { + "tags": [ + "combined_shipping_rules" + ], + "description": "This method updates existing shipping rules.", + "operationId": "updateFlatShippingRules", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + } + ], + "requestBody": { + "description": "This type is used for creating and updating flat-rate combined-shipping rules.", + "content": { + "application/json": { + "schema": { + "description": "This type is used for creating and updating flat-rate combined-shipping rules.", + "$ref": "#/components/schemas/UpdateFlatShippingRulesRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396000": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'currency'." + }, + "396002": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleType'." + }, + "396004": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRules' data. Please verify all required fields are provided with valid values." + }, + "396005": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleName'." + }, + "396006": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalAmount'." + }, + "396007": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedDuration'." + }, + "396008": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalAmountOffShippingCost'." + }, + "396009": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'eachAdditionalPercentOffShippingCost'." + }, + "396011": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleId'." + }, + "396014": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified combined shipping rule data does not match any existing rules or the operation is not supported for this rule type." + }, + "396016": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The provided 'combinedShippingRuleName' differs from the existing combined shipping rule name. The existing name will be preserved." + }, + "396022": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Duplicate 'combinedShippingRuleId' found. Each rule id must be unique within the request." + }, + "396023": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified marketplace ID was not found." + }, + "396024": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Missing 'flatShippingRule'." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ], + "summary": "Updates existing flat-rate shipping rules.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "500": "Internal Server Error" + } } - }, - "shippingServiceCode": { - "type": "string", - "description": "An enum value that indicates the shipping service used for the specified shipping rate. These enum values align with ShippingService metadata returned by a GeteBayDetails call with DetailName set to shippingServiceDetails." - } }, - "description": "This container details shipping rate information identified by a unique rate ID. A successful call returns the requested shipping rate information." - }, - "RateTableDetails": { - "type": "object", - "properties": { - "marketplaceId": { - "type": "string", - "description": "Identifies the eBay marketplace to which the shipping rate table applies. For implementation help, refer to eBay API documentation" - }, - "name": { - "type": "string", - "description": "The seller-defined name for the shipping rate table. Names must be unique for each table assigned to the same seller, shippingOptionType, and eBay marketplace.

Max length: 50" - }, - "rates": { - "type": "array", - "description": "An array of rate objects associated with the specified shipping rate table. Each rate object is identified by a unique system-generated ID and defines specific shipping rate information.", - "items": { - "$ref": "#/components/schemas/Rate" + "/combined_shipping_rules/update_promotional_shipping_rule": { + "post": { + "tags": [ + "combined_shipping_rules" + ], + "description": "This method updates an existing promotional shipping rule to adjust discount thresholds, eligibility criteria, or duration for the seller.", + "operationId": "updatePromotionalShippingRule", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + } + ], + "requestBody": { + "description": "This type is used for updating an existing promotional combined-shipping rules.", + "content": { + "application/json": { + "schema": { + "description": "This type is used for updating an existing promotional combined-shipping rules.", + "$ref": "#/components/schemas/UpdatePromotionalShippingRuleRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396000": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'currency'." + }, + "396001": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Missing 'promotionalShippingRule'." + }, + "396002": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedShippingRuleType'." + }, + "396007": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'combinedDuration'." + }, + "396014": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified combined shipping rule data does not match any existing rules or the operation is not supported for this rule type." + }, + "396017": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'shippingCost'." + }, + "396018": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'orderAmount'." + }, + "396020": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid or missing 'itemCount'." + }, + "396023": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified marketplace ID was not found." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "395000": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ], + "summary": "Updates a promotional shipping rule to adjust discount thresholds, eligibility criteria, or duration for the seller.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "500": "Internal Server Error" + } } - }, - "rateTableBasis": { - "type": "string", - "description": "The rate calculation type provides three methods of calculating the shipping cost based on the seller's selection/input: For implementation help, refer to eBay API documentation" - }, - "rateTableId": { - "type": "string", - "description": "A unique, system-generated ID assigned to the shipping rate table when it is initially created." - }, - "shippingOptionType": { - "type": "string", - "description": "The region serviced by the shipping rate table. Valid values are: For implementation help, refer to eBay API documentation" - } }, - "description": "This container includes all information pertaining to a shipping rate table. A successful call returns the requested shipping rate information." - }, - "RateTableUpdate": { - "type": "object", - "properties": { - "rates": { - "type": "array", - "description": "An array of rate objects for which shippingCost and/or additionalCost are to be updated.", - "items": { - "$ref": "#/components/schemas/RateUpdate" + "/user_preferences": { + "get": { + "tags": [ + "user_preferences" + ], + "description": "This method retrieves the seller's preferences for a specific eBay marketplace, such as combined payment preferences, same-day shipping cutoff time, excluded shipping locations, and opt-in status for Business Policies and Out-of-Stock control. The fieldgroups query parameter specifies the type of seller preferences to retrieve. If fieldgroups = ALL or the parameter is omitted, all the supported seller preferences are returned. To retrieve only specific preferences, include the fieldgroups parameter with one or more supported values, delimited by commas.", + "operationId": "getUserPreferences", + "parameters": [ + { + "name": "fieldgroups", + "in": "query", + "description": "The fieldgroups query parameter specifies the type of seller preferences to retrieve.

If fieldgroups=ALL or is omitted, all the supported seller preferences are returned.

To retrieve specific seller preferences, include the fieldgroups parameter and specify one or more values, with each value delimited by a comma.

For example, fieldgroups = SHIPPING_CARRIER_RATE,COMBINED_PAYMENT.

The value can be ALL or any combination of the following (comma-separated):
COMBINED_PAYMENT, DISPATCH_CUTOFF_TIME, EMAIL_SHIPMENT_TRACKING_NUMBER, END_OF_AUCTION_EMAIL, GLOBAL_SHIPPING_PROGRAM, GLOBAL_SHIPPING_PROGRAM_LISTING, ITEMS_AWAITING_PAYMENT, OUT_OF_STOCK_CONTROL SELLER_PROFILE, OVERRIDE_GSP_SERVICE_WITH_INTL_SERVICE, PICKUP_DROPOFF_SELLER, PURCHASE_REMINDER_EMAIL, REQUIRED_SHIP_PHONE_NUMBER, SELLER_EXCLUDE_SHIP_TO_LOCATION, SHIPPING_CARRIER_RATE", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserPreferencesResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396502": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The specified field groups are invalid. Error Details - {errorDetails}" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396500": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "Internal Server Error. Please try again later or contact Developer Technical Support." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account.readonly" + ] + } + ], + "summary": "Retrieves the seller's preferences for a specific eBay marketplace.", + "x-http-status-codes": { + "200": "OK", + "400": "Bad Request", + "500": "Internal Server Error" + } + }, + "patch": { + "tags": [ + "user_preferences" + ], + "description": "This method is used to modify one or more preferences for a seller on a specific marketplace. The preferences that can be modified include combined payment preferences, same-day shipping cutoff time, and opt-in status for Business Policies and Out-of-stock control. This is a PATCH operation, so you only need to include the fields that correspond to the preferences/settings that you are changing.", + "operationId": "setUserPreferences", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type.", + "required": true, + "schema": { + "$ref": "#/components/schemas/MarketplaceIdEnum" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetUserPreferencesRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "No Content", + "content": {} + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396510": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Dispatch cutoff time format is invalid. Expected format: HH:mm:ss.SSSZ" + }, + "396511": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The optInStatus field is included and set to 'false', no other itemsAwaitingPaymentPreferences fields can be used." + }, + "396512": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The removeAllExcludedUsers field is included and set to 'true', the excludedUsers array cannot be used." + }, + "396513": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The delayBeforeCancellingCommitment value is invalid. See the documentation for valid values." + }, + "396514": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The seller's account has reached the maximum number of users ({maxNo}) that can be added to the Excluded Users list." + }, + "396515": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The number of users included in the excludedUsers array exceeds the daily maximum threshold. Please remove one or more users and try again." + }, + "396516": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "One or more invalid user IDs included in the excludedUsers array." + }, + "396517": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid value specified for combinedPaymentOption field. See documentation for valid values." + }, + "396518": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Customization of End of Auction email is not supported for this marketplace." + }, + "396519": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The provided text in the templateText field exceeds the maximum allowed number of characters (1000)." + }, + "396520": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The provided text in the templateText field contains vulgar language or prohibited HTML content." + }, + "396521": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Logo URL is required but not provided." + }, + "396522": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The format of the logo image in the provided logoUrl field is not supported. See documentation for supported image formats." + }, + "396523": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Logo URL exceeds maximum allowed length of 1024 characters." + }, + "396524": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The marketplace does not support the Global Shipping Program and/or the user is not enrolled in the program." + }, + "396525": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid value specified for upsRateOption field. See documentation for valid values." + }, + "396526": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid value specified for fedexRateOption field. See documentation for valid values." + }, + "396528": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The textCustomized field is set to ā€˜true’, so the templateText field must also be included." + }, + "396529": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The textCustomized field is set to ā€˜false’, so the templateText field is not applicable." + }, + "396530": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "Invalid value specified for logoType field. See documentation for valid values." + }, + "396531": { + "domain": "API_ACCOUNT", + "category": "REQUEST", + "description": "The logoType field is not set to CUSTOMIZED, so the logoUrl field is not applicable." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + }, + "x-response-codes": { + "errors": { + "396500": { + "domain": "API_ACCOUNT", + "category": "APPLICATION", + "description": "Internal Server Error. Please try again later or contact Developer Technical Support." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.account" + ] + } + ], + "summary": "Modifies one or more preferences for a seller on a specific marketplace.", + "x-http-status-codes": { + "204": "No Content", + "400": "Bad Request", + "500": "Internal Server Error" + } } - } - }, - "description": "This type is used by the request payload of the updateShippingCost method to pass updated shipping cost information for a rate table identified by rateTableId." - }, - "RateUpdate": { - "type": "object", - "properties": { - "additionalCost": { - "description": "An additional shipping cost added to the base shipping rate (i.e., shippingCost).

This amount applies only to the following rateTableBasis options:This field is returned only when it is applicable to the specified rate ID.", - "$ref": "#/components/schemas/Amount" - }, - "rateId": { - "type": "string", - "description": "The identifier for the rate object.

Note: This is a string automatically assigned by the system when the rate object is created. It cannot be changed or updated." - }, - "shippingCost": { - "description": "This is the base shipping rate for an item.

This amount applies only to the following rateTableBasis options:", - "$ref": "#/components/schemas/Amount" - } - }, - "description": "This container defines the updated shipping cost information for a rate object identified by rateId.

To view a list of all rate objects and corresponding rateID values, issue getRateTable for the rate table identified by rateTableId." - }, - "UpdatePayoutPercentage": { - "type": "object", - "properties": { - "instrumentId": { - "type": "string", - "description": "The unique reference identifier for a payout instrument. This value is returned in the getPayoutSettings response and is needed to change split-payout percentages through an updatePayoutPercentage request." - }, - "payoutPercentage": { - "type": "string", - "description": "The user-defined payout percentage allocated to this instrument. For example, 50 indicates that 50% of the payout goes to this instrument.

The split-payout percentage must be a positive integer value from 0-100. The values of two instruments must always add up to 100%. If the values do not equal 100, the call will fail." - } - }, - "description": "This type allows the user to change the payout percentages for two active payment instruments." - }, - "UpdatePayoutPercentageRequest": { - "type": "object", - "properties": { - "payoutInstruments": { - "type": "array", - "description": "This array allows the seller to set the payout split percentages for two accounts enabled to receive payouts.", - "items": { - "$ref": "#/components/schemas/UpdatePayoutPercentage" + } + }, + "components": { + "schemas": { + "Amount": { + "type": "object", + "properties": { + "currency": { + "description": "The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.", + "$ref": "#/components/schemas/CurrencyCodeEnum" + }, + "value": { + "type": "string", + "description": "The monetary amount in the specified currency." + } + }, + "description": "A complex type that describes the value of a monetary amount as represented by a global currency." + }, + "CalculatedHandlingRuleType": { + "type": "object", + "properties": { + "combinedShippingRuleType": { + "description": "This enumeration value specifies the type of combined-shipping rule applied to handling fees (for example, weight-based, flat-rate, or percentage-based calculation method). ", + "$ref": "#/components/schemas/CombinedShippingRuleTypeHandlingEnum" + }, + "eachAdditionalAmount": { + "description": "This container specifies the additional monetary charge applied for each extra item included in a combined shipment.", + "$ref": "#/components/schemas/Amount" + }, + "eachAdditionalAmountOffShippingCost": { + "description": "This container represents the fixed monetary discount deducted from the total shipping cost for each additional item in a combined shipment.", + "$ref": "#/components/schemas/Amount" + }, + "eachAdditionalPercentOffShippingCost": { + "type": "number", + "description": "This integer specifies the percentage discount applied to the total shipping cost for each additional item in a combined shipment." + }, + "orderHandlingAmount": { + "description": "This container represents the handling fee charged for processing a combined order, if applicable.", + "$ref": "#/components/schemas/Amount" + } + }, + "description": "This type defines the structure for calculated handling fee discounts applicable when combining multiple orders." + }, + "CalculatedShippingRuleType": { + "type": "object", + "properties": { + "combinedShippingRules": { + "type": "array", + "description": "This array lists the discount rules applied to combined shipments, detailing calculation methods and rule identifiers.

When used by a create call, there won't be any rule ID.", + "items": { + "$ref": "#/components/schemas/CombinedShippingRule" + } + }, + "combinedShippingRuleType": { + "description": "This container defines the type of combined-shipping rule applied to calculate discounts, such as weight-based, percentage-based, or flat-rate models.", + "$ref": "#/components/schemas/CombinedShippingRuleTypeEnum" + } + }, + "description": "This type describes calculated discount rules determining total shipping cost reductions for combined items." + }, + "CombinedPaymentPreferencesType": { + "type": "object", + "properties": { + "combinedPaymentOption": { + "description": "This enum type defines the available options for handling combined payments when a seller allows multiple line items from the same buyer to be paid for with a single payment. See CombinedPaymentOptionEnum for a description of each value.", + "$ref": "#/components/schemas/CombinedPaymentOptionEnum" + } + }, + "description": "This container is used to change the combined payment option. Sellers have the option to combine multiple line items from the same buyer into a combined invoice that can be paid for with one payment. See CombinedPaymentOptionEnum for a description of each value." + }, + "CombinedShippingRule": { + "type": "object", + "properties": { + "combinedShippingRuleId": { + "type": "string", + "description": "This field represents the unique identifier for the combined-shipping discount profile,

used to reference or update a specific rule configuration." + }, + "combinedShippingRuleName": { + "type": "string", + "description": "This field specifies the unique name identifying the combined shipping discount profile within the seller’s account. This name is configured by the seller and can have a maximum of XX characters." + }, + "eachAdditionalAmount": { + "description": "This containter defines the additional monetary charge applied for each extra item when multiple items are shipped together.", + "$ref": "#/components/schemas/Amount" + }, + "eachAdditionalAmountOffShippingCost": { + "description": "This container defines the fixed discount amount deducted from the total shipping cost for each additional item.", + "$ref": "#/components/schemas/Amount" + }, + "eachAdditionalPercentOffShippingCost": { + "type": "number", + "description": "This integer specifies the percentage discount applied to the total shipping cost for each additional item in the combined order." + }, + "mappedCombinedShippingRuleId": { + "type": "string", + "description": "This field specifies the unique ID that links this combined-shipping rule to another related rule in the seller’s account." + }, + "weightOffTotalWeight": { + "description": "This container specifies the total weight reduction applied when combining multiple items into one shipment.", + "$ref": "#/components/schemas/MeasureType" + } + }, + "description": "This container defines a discount profile schema for combined shipping, including rule IDs, names, and applicable weight or amount reductions.

Note: This field is not applicable for the create rule use case." + }, + "CreateCalculatedShippingRulesRequest": { + "type": "object", + "properties": { + "calculatedHandlingRule": { + "description": "This container defines the calculated handling fee rules applied to combined orders, specifying how handling costs are determined or discounted

based on combined-shipping parameters.", + "$ref": "#/components/schemas/CalculatedHandlingRuleType" + }, + "calculatedShippingRule": { + "description": "This container defines the calculated shipping rule applied to combined orders, detailing how shipping discounts or costs are computed

based on item count, total weight, or order value.", + "$ref": "#/components/schemas/CalculatedShippingRuleType" + }, + "combinedDuration": { + "description": "This enumerated value specifies the time window during which multiple unpaid orders can be combined into a single payment or invoice, represented by using one of the values in CombinedPaymentPeriodEnum.", + "$ref": "#/components/schemas/CombinedPaymentPeriodEnum" + } + }, + "description": "This type defines the structure of a request to create calculated shipping rules, including handling, duration, and rule type details.", + "required": [ + "calculatedShippingRule" + ] + }, + "CreateFlatShippingRulesRequest": { + "type": "object", + "properties": { + "combinedDuration": { + "description": "This enumerated value specifies the time window during which multiple unpaid orders can be combined into a single payment or invoice, represented by using one of the values in CombinedPaymentPeriodEnum.", + "$ref": "#/components/schemas/CombinedPaymentPeriodEnum" + }, + "flatShippingRule": { + "description": "This container defines the flat-rate combined-shipping rule, which applies a fixed shipping cost for multiple items shipped together.", + "$ref": "#/components/schemas/FlatShippingRuleType" + } + }, + "description": "This type represents a request to configure flat-rate combined shipping rules with specified durations and conditions.", + "required": [ + "combinedDuration", + "flatShippingRule" + ] + }, + "CreatePromotionalShippingRuleRequest": { + "type": "object", + "properties": { + "combinedDuration": { + "description": "This container specifies the time window during which multiple unpaid orders can be combined into a single payment or invoice, represented by using one of the values in CombinedPaymentPeriodEnum.", + "$ref": "#/components/schemas/CombinedPaymentPeriodEnum" + }, + "promotionalShippingRule": { + "description": "This container defines the promotional combined-shipping rule that offers discounts or free shipping based on order value, item count, or other qualifying conditions.", + "$ref": "#/components/schemas/PromotionalShippingRuleType" + } + }, + "description": "This type represents the request schema for creating promotional shipping rules with combined payment durations.", + "required": [ + "promotionalShippingRule" + ] + }, + "DispatchCutoffTimePreferencesType": { + "type": "object", + "properties": { + "cutoffTime": { + "type": "string", + "description": "This field indicates the dispatch cut-off time in Zulu format (HH:mm:ss.SSSZ) - 24-hour format with milliseconds and Z timezone indicator.

Note: Despite the Z that is returned in the timestamp, the cut-off time is actually based on the default timezone of the eBay marketplace for the seller.

Note: If an eBay listing supports same-day shipping, and an order is paid for before the cut-off time, the seller is expected to ship the order out that same business day." + } + }, + "description": "This container is used to change the order cut-off time for same-day shipping." + }, + "EndOfAuctionEmailPreferencesType": { + "type": "object", + "properties": { + "emailCustomized": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller is using a customized email to send to winning bidders." + }, + "logoCustomized": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller is using a customized logo in the emails that are sent to winning bidders." + }, + "logoType": { + "description": "This enum indicates the type of logo that is used in the email that is sent to winning bidders. See EndOfAuctionLogoTypeEnum type for descriptions of the different logo types.", + "$ref": "#/components/schemas/EndOfAuctionLogoTypeEnum" + }, + "logoUrl": { + "type": "string", + "description": "This field shows the URL path to a seller’s custom logo image that is being used in the email sent to winning bidders. This field is only returned if the seller is using a customized logo in emails." + }, + "templateText": { + "type": "string", + "description": "This field shows the body text that is being used if the seller is sending customized emails to winning bidders. The template text has a maximum limit of 1000 characters." + }, + "textCustomized": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller is using customized text in the emails that are sent to winning bidders." + } + }, + "description": "This container shows the seller's preferences for the end-of-auction email sent to the winning bidder." + }, + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Identifies the type of error." + }, + "domain": { + "type": "string", + "description": "Name for the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique number to identify the error.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A more detailed explanation of the error." + }, + "message": { + "type": "string", + "description": "Information on how to correct the problem, in the end user's terms and language where applicable." + }, + "outputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." + } + }, + "description": "This type defines the fields that can be returned in an error." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The object of the error." + }, + "value": { + "type": "string", + "description": "The value of the object." + } + } + }, + "FlatShippingRuleType": { + "type": "object", + "properties": { + "combinedShippingRules": { + "type": "array", + "description": "This array specifies the type of combined-shipping rule applied, such as flat-rate or cost-based.", + "items": { + "$ref": "#/components/schemas/CombinedShippingRule" + } + }, + "combinedShippingRuleType": { + "description": "This container defines the type of discount rule applied (e.g., percentage-based, fixed-rate).", + "$ref": "#/components/schemas/CombinedShippingRuleTypeEnum" + } + }, + "description": "This type defines the flat-rate combined-shipping rule, which applies a fixed shipping cost for multiple items shipped together.", + "required": [ + "combinedShippingRules", + "combinedShippingRuleType" + ] + }, + "GetCombinedShippingRulesPublicApiResponse": { + "type": "object", + "properties": { + "calculatedHandlingRule": { + "description": "This container will show one or more calculated shipping rules set up for that seller on that ebay marketplace.

Note: This will not be returned if a calculated handling rule is not set up for that seller on that eBay marketplace", + "$ref": "#/components/schemas/CalculatedHandlingRuleType" + }, + "calculatedShippingRule": { + "description": "This container specifies the type of combined-shipping rule applied, such as flat-rate, weight-based, or cost-based.", + "$ref": "#/components/schemas/CalculatedShippingRuleType" + }, + "combinedDuration": { + "description": "This field is represented by one of the values in the CombinedPaymentPeriodEnum.", + "$ref": "#/components/schemas/CombinedPaymentPeriodEnum" + }, + "flatShippingRule": { + "description": "This container will show one or more flat shipping rules set up for that seller on that ebay marketplace.", + "$ref": "#/components/schemas/FlatShippingRuleType" + }, + "promotionalShippingRule": { + "description": "This container shows the promotional shipping rule that is currently set up on the seller's account for the eBay marketplace.

This container will not be returned if no promotional shipping rule is currently set up on the seller's account for the eBay marketplace.", + "$ref": "#/components/schemas/PromotionalShippingRuleType" + } + }, + "description": "The base response type of the getCombinedShippingRules method.

All of a seller's calculated, flat, and promotional shipping discount rules defined for an eBay marketplace will be returned in the response, along with the current combined duration value." + }, + "GetItemsAwaitingPaymentPreferencesType": { + "type": "object", + "properties": { + "autoRelist": { + "type": "boolean", + "description": "This boolean indicates if the item should be automatically relisted." + }, + "delayBeforeCancellingCommitment": { + "type": "integer", + "description": "This integer indicates the delay in days before cancelling the buyer's commitment.", + "format": "int32" + }, + "excludedUsers": { + "type": "array", + "description": "This string returns the list of sellers excluded from unpaid item assistance.", + "items": { + "type": "string" + } + }, + "optInStatus": { + "type": "boolean", + "description": "This boolean indicates if the unpaid item assistance is opted in." + } + }, + "description": "This container represents the seller's preferences for the list of items that are awaiting payment." + }, + "GetUserPreferencesResponse": { + "type": "object", + "properties": { + "combinedPaymentPreferences": { + "description": "This container returns the combined payment preferences when the COMBINED_PAYMENT value is included through the fieldgroups query parameter or when fieldgroups=ALL. It indicates if the seller allows multiple line items from the same buyer to be combined.", + "$ref": "#/components/schemas/CombinedPaymentPreferencesType" + }, + "dispatchCutoffTimePreference": { + "description": "This container is returned when the DISPATCH_CUTOFF_TIME value is included through the fieldgroups query parameter or when fieldgroups=ALL.", + "$ref": "#/components/schemas/DispatchCutoffTimePreferencesType" + }, + "emailShipmentTrackingNumberPreference": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller’s account is configured to automatically send an email to buyers with the shipment tracking number for an order." + }, + "endOfAuctionEmailPreferences": { + "description": "This container allows sellers to customize the email sent to buyers immediately after an auction listing is won.", + "$ref": "#/components/schemas/EndOfAuctionEmailPreferencesType" + }, + "globalShippingProgramListingPreference": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller’s new listings on the eBay marketplace will automatically use the Global Shipping Program for international shipping. This field is returned when the GLOBAL_SHIPPING_PROGRAM value is included through the fieldgroups query parameter or when fieldgroups=ALL.
Note: The Global Shipping Program is only available for the eBay UK marketplace, and the seller must be opted into the program." + }, + "itemsAwaitingPaymentPreferences": { + "description": "This container shows the seller’s preferences for automatically handling unpaid line items.", + "$ref": "#/components/schemas/GetItemsAwaitingPaymentPreferencesType" + }, + "offerGlobalShippingProgramPreference": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller is opted into the Global Shipping Program on the eBay marketplace.
Note: The Global Shipping Program is only available for the eBay UK marketplace." + }, + "outOfStockControlPreference": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller is opted into the Out-of-Stock feature. With this feature, a multiple quantity fixed price listing that runs out of stock will be hidden from eBay search but kept alive. Once the sellers add quantity to the listing, the listing will become active and available again." + }, + "overrideGspServiceWithIntlServicePreference": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller specifies an international shipping service to a particular country for a given listing, the specified service will take precedence and be the listing's default international shipping option for buyers in that country, rather than the Global Shipping Program.
Note: The Global Shipping Program is only available for the eBay UK marketplace." + }, + "pickupDropoffSellerPreference": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller is opted into the Click & Collect feature.
Note: The Click & Collect feature is only available on the eBay UK, Australia, and Germany marketplaces." + }, + "purchaseReminderEmailPreferences": { + "type": "boolean", + "description": "This boolean field indicates whether or not the seller’s account is configured to have eBay send occasional purchase reminder emails for unpaid line items." + }, + "requiredShipPhoneNumberPreference": { + "type": "boolean", + "description": "This boolean field indicates whether or not the buyer is required to provide a shipping phone number during checkout." + }, + "sellerExcludeShipToLocationPreferences": { + "description": "This container shows the list of locations that the seller does not ship to. This list of shipping locations can only be updated in My eBay through Shipping Preferences and not with the setUserPreferences method.", + "$ref": "#/components/schemas/SellerExcludeShipToLocationPreferencesType" + }, + "sellerProfilePreferences": { + "description": "This container is returned when the SELLER_PROFILE value is included through the fieldgroups query parameter or when fieldgroups=ALL.", + "$ref": "#/components/schemas/SellerProfilePreferencesType" + }, + "shippingCarrierRatePreferences": { + "description": "This container indicates the FedEx, UPS, and US Post Office shipping rate types that are available to the seller. This container is returned when the SHIPPING_CARRIER_RATE value is included through the fieldgroups query parameter or when fieldgroups=ALL.
Note: This container is only applicable to the eBay US marketplace.", + "$ref": "#/components/schemas/ShippingCarrierRatePreferencesType" + } + }, + "description": "This type defines the responses for the getUserPreferences method." + }, + "MeasureType": { + "type": "object", + "properties": { + "unit": { + "description": "This field defines the unit of measure (e.g., kilograms, pounds) associated with the value field.", + "$ref": "#/components/schemas/WeightUnitOfMeasureEnum" + }, + "value": { + "type": "string", + "description": "This field defines the numeric value representing the measurement, weight, in the specified unit." + } + }, + "description": "This type displays measurement type with value, unit, and measurement system." + }, + "PayoutInstrument": { + "type": "object", + "properties": { + "accountLastFourDigits": { + "type": "string", + "description": "The last four digits of the account that the seller uses to receive payouts. This may be the last four digits of a bank account or a payment processor account such as Payoneer." + }, + "instrumentId": { + "type": "string", + "description": "The unique reference identifier for a payout instrument. The instrumentId is needed to change the split-payout percentages through an updatePayoutPercentage request." + }, + "instrumentStatus": { + "description": "The status of a payout instrument. Valid payout instrument statuses include:
  • PENDING: This status indicates that the account must be verified before it can be used.
  • ACTIVE:This status indicates that payouts are enabled on this account.
  • VERIFICATION_FAILED: This status indicates that verification has failed for this account and payouts are disabled.
  • INACTIVE: This status indicates that this account has become inactive and payouts are disabled.

See InstrumentStatusEnum for more details on each instrument status value.

Note: Payment accounts can only receive payouts if the status of a payout instrument is ACTIVE.", + "$ref": "#/components/schemas/InstrumentStatusEnum" + }, + "instrumentType": { + "type": "string", + "description": "The type of account that received payouts. The value returned in this field may be:
  • BANK: Indicates that the payout was made to a seller's bank account.
  • CARD (Not Currently Available): Indicates that the payout went to a seller's debit card.
  • The name of a digital wallet provider or payment processor (e.g., PAYONEER)

Note: Only Payoneer is currently supported for sellers in mainland China. Card payouts are not currently available for sellers in mainland China. " + }, + "nickname": { + "type": "string", + "description": "When instrumentType returns BANK, this value is the seller-provided nickname that the seller uses to represent the bank account that receives the payout.

When instrumentType returns CARD, this value is the debit card network for the debit card that receives the payout.

When instrumentType returns a provider of digital wallet or payment processing services, the value returned is the name of the service provider (e.g., PAYONEER)

Note: Only Payoneer is currently supported for sellers in mainland China. Card payouts are not currently available for sellers in mainland China." + }, + "payoutPercentage": { + "type": "string", + "description": "The current payout percentage allocated to an instrument. For example, 50 indicates that 50% of the payout goes to the instrument." + } + }, + "description": "This type is used to provide details about one or two of the seller's accounts that are enabled to receive payouts.", + "required": [ + "accountLastFourDigits", + "instrumentId", + "instrumentStatus", + "instrumentType", + "nickname" + ] + }, + "PayoutSettingsResponse": { + "type": "object", + "properties": { + "payoutInstruments": { + "type": "array", + "description": "This array provides details about the seller's accounts defined for the seller's account.

Payment accounts can only receive payouts if the status of the payout instrument is ACTIVE.", + "items": { + "$ref": "#/components/schemas/PayoutInstrument" + } + } + }, + "description": "The base response type of the getPayoutSettings method.", + "required": [ + "payoutInstruments" + ] + }, + "PromotionalShippingRuleType": { + "type": "object", + "properties": { + "combinedShippingRuleType": { + "description": "This field specifies the type of combined-shipping rule applied, such as flat-rate or cost-based, as defined in the CombinedShippingRuleTypeEnum.", + "$ref": "#/components/schemas/CombinedShippingRuleTypeEnum" + }, + "itemCount": { + "type": "integer", + "description": "This integer indicates the quantity of items that must be purchased by the buyer in order for that buyer to qualify for the promotional discount.", + "format": "int32" + }, + "orderAmount": { + "description": "This container specifies the minimum order amount required to qualify for the associated discount or promotional rule.", + "$ref": "#/components/schemas/Amount" + }, + "shippingCost": { + "description": "This container represents the total shipping cost or discounted shipping charge for the combined order.", + "$ref": "#/components/schemas/Amount" + } + }, + "description": "This type is used to represent a promotional shipping rule set up by the seller on an eBay marketplace." + }, + "Rate": { + "type": "object", + "properties": { + "additionalCost": { + "description": "An additional shipping cost added to the base shipping rate (i.e., shippingCost).

This amount applies only to the following rateTableBasis options:
  • WEIGHT: This is a cost per unit weight and is calculated using the weight of the item(s) being shipped.
  • SURCHARGE: This is a flat amount that is added to the base shipping rate.
This field is returned only when it is applicable to the specified rate ID.", + "$ref": "#/components/schemas/Amount" + }, + "rateId": { + "type": "string", + "description": "The unique identifier for rate information.

Note: This is a string that is automatically assigned by the system when a rate object is created." + }, + "shippingCategory": { + "description": "Indicates the level of shipping service to which the shipping rate information applies.

Available shipping categories are:
  • ONE_DAY: This option is not supported when shippingOptionType is INTERNATIONAL.
  • EXPEDITED
  • STANDARD
  • ECONOMY
  • EXPRESS: This option is supported only when MarketplaceId is EBAY_DE (Germany)
", + "$ref": "#/components/schemas/ShippingCategoryEnum" + }, + "shippingCost": { + "description": "Specifies the base shipping rate for an item.

This amount applies only to the following rateTableBasis options:
  • ITEM: This is a flat rate shipping cost per item being shipped.
  • WEIGHT: This is a cost per unit weight and is calculated using the weight of the item(s) being shipped.
", + "$ref": "#/components/schemas/Amount" + }, + "shippingRegionNames": { + "type": "array", + "description": "An array of Region names to which the shipping rate information applies.

Returned values may be:
  • Geographical Regions (e.g., Worldwide, Europe, and Middle East)
  • Individual countries identified by a two-letter code such as US (United States), CA (Canada), and GB (United Kingdom)
  • US states and/or Canadian provinces identified by a two-letter code such as NY (New York) or SK (Saskatchewan)
  • Domestic Regions such as AK/HI (Alaska/Hawaii)
", + "items": { + "type": "string" + } + }, + "shippingServiceCode": { + "type": "string", + "description": "An enum value that indicates the shipping service used for the specified shipping rate. These enum values align with ShippingService metadata returned by a GeteBayDetails call with DetailName set to shippingServiceDetails." + } + }, + "description": "This container details shipping rate information identified by a unique rate ID. A successful call returns the requested shipping rate information.", + "required": [ + "rateId", + "shippingCategory", + "shippingRegionNames" + ] + }, + "RateTableDetails": { + "type": "object", + "properties": { + "marketplaceId": { + "description": "Identifies the eBay marketplace to which the shipping rate table applies.", + "$ref": "#/components/schemas/MarketplaceIdEnum" + }, + "name": { + "type": "string", + "description": "The seller-defined name for the shipping rate table. Names must be unique for each table assigned to the same seller, shippingOptionType, and eBay marketplace.

Max length: 50" + }, + "rates": { + "type": "array", + "description": "An array of rate objects associated with the specified shipping rate table. Each rate object is identified by a unique system-generated ID and defines specific shipping rate information.", + "items": { + "$ref": "#/components/schemas/Rate" + } + }, + "rateTableBasis": { + "description": "The rate calculation type provides three methods of calculating the shipping cost based on the seller's selection/input:
  • ITEM: Specifies the flat rate shipping cost that buyers in the specified shipping region will pay. When this option is selected, information specified in the rate table overrides all shipping options/costs that are specified at the listing level. Buyers in the specified regions will only see the services provided in the rate table. Buyers in other regions that are not specified in the rate table will see the shipping services associated with the listing.
  • WEIGHT: Seller can provide minimum shipping cost and an additional shipping cost per pound. The additional cost will be calculated based on the weight the seller provide at the time of listing. Buyers will see the total shipping cost and won’t see these calculations. Buyers in the specified regions will only see the services provided in the rate table. Buyers in other regions that were not specified in the rate table, will see the shipping services associated with the listing.
  • SURCHARGE: Lists surcharges for buyers within specified regions, or indicates a flat amount added to the shipping cost specified within an item's listing. Buyers will see only the total shipping cost as well as shipping services associated with the item's listing. If a SURCHARGE is specified in the rate table for certain regions, buyers in those regions will see the (shipping cost + SURCHARGE) total.
", + "$ref": "#/components/schemas/ShippingRateCalculationEnum" + }, + "rateTableId": { + "type": "string", + "description": "A unique, system-generated ID assigned to the shipping rate table when it is initially created." + }, + "shippingOptionType": { + "description": "The region serviced by the shipping rate table. Valid values are:
  • DOMESTIC: Indicates that the shipping rate table applies to shipping destinations within the country in which an item has been listed (i.e., the source country).
  • INTERNATIONAL: Indicates that the shipping rate table applies to shipping destinations outside of the country in which an item has been listed.
", + "$ref": "#/components/schemas/ShippingOptionTypeEnum" + } + }, + "description": "This container includes all information pertaining to a shipping rate table. A successful call returns the requested shipping rate information.", + "required": [ + "marketplaceId", + "name", + "rates", + "rateTableId", + "shippingOptionType" + ] + }, + "RateTableUpdate": { + "type": "object", + "properties": { + "rates": { + "type": "array", + "description": "An array of rate objects for which shippingCost and/or additionalCost are to be updated.", + "items": { + "$ref": "#/components/schemas/RateUpdate" + } + } + }, + "description": "This type is used by the request payload of the updateShippingCost method to pass updated shipping cost information for a rate table identified by rateTableId.", + "required": [ + "rates" + ] + }, + "RateUpdate": { + "type": "object", + "properties": { + "additionalCost": { + "description": "An additional shipping cost added to the base shipping rate (i.e., shippingCost).

This amount applies only to the following rateTableBasis options:
  • WEIGHT: This is a cost per unit weight and is calculated using the weight of the item(s) being shipped.
  • SURCHARGE: This is a flat amount that is added to the base shipping rate.
This field is returned only when it is applicable to the specified rate ID.", + "$ref": "#/components/schemas/Amount" + }, + "rateId": { + "type": "string", + "description": "The identifier for the rate object.

Note: This is a string automatically assigned by the system when the rate object is created. It cannot be changed or updated." + }, + "shippingCost": { + "description": "This is the base shipping rate for an item.

This amount applies only to the following rateTableBasis options:
  • ITEM: This is a flat rate shipping cost per item being shipped.
  • WEIGHT: This is a cost per unit weight and is calculated using the weight of the item(s) being shipped.
", + "$ref": "#/components/schemas/Amount" + } + }, + "description": "This container defines the updated shipping cost information for a rate object identified by rateId.

To view a list of all rate objects and corresponding rateID values, issue getRateTable for the rate table identified by rateTableId.", + "required": [ + "rateId" + ] + }, + "SellerExcludeShipToLocationPreferencesType": { + "type": "object", + "properties": { + "excludeShipToLocations": { + "type": "array", + "description": "This array shows the list of locations that the seller does not ship to. Excluded locations may include continents and large geographical areas. For example, 'Middle East', individual countries represented by two-letter codes, or special locations within a country such as 'Alaska/Hawaii' or 'PO Box'.", + "items": { + "type": "string" + } + } + }, + "description": "This container represents the list of locations that the seller wants to exclude from shipping." + }, + "SellerProfilePreferencesType": { + "type": "object", + "properties": { + "sellerProfileOptedIn": { + "type": "boolean", + "description": "This boolean indicates whether the seller has opted in to seller profiles." + } + }, + "description": "This container indicates whether or not the seller is opted into Business Policies. If a seller is opted into Business Policies, they must use Payment,Return, and Shipping business policies instead of individual payment, return, and shipping fields." + }, + "ShippingCarrierRatePreferencesType": { + "type": "object", + "properties": { + "fedexRateOption": { + "description": "This enum is included if the seller wishes to add or modify the FedEx shipping carrier rate.
Note: This preference is only applicable to the eBay US marketplace.", + "$ref": "#/components/schemas/FedexRateOptionEnum" + }, + "upsRateOption": { + "description": "This enum is included if the seller wishes to add or modify the UPS shipping carrier rate.
Note: This preference is only applicable to the eBay US marketplace.", + "$ref": "#/components/schemas/UPSRateOptionEnum" + } + }, + "description": "This field is included if the seller wishes to add or modify the shipping carrier rate type that is available to the seller. This field is only returned if set.
Note: This container is only applicable to the eBay US marketplace." + }, + "UpdateCalculatedShippingRulesRequest": { + "type": "object", + "properties": { + "calculatedHandlingRule": { + "description": "This container specifies the calculated handling rule that determines how handling fees are automatically computed based on order weight, quantity, or value in a combined shipment.", + "$ref": "#/components/schemas/CalculatedHandlingRuleType" + }, + "calculatedShippingRule": { + "description": "This container defines the calculated shipping rule that determines shipping costs or discounts based on factors such as total weight, price, or item count in a combined order.", + "$ref": "#/components/schemas/CalculatedShippingRuleType" + }, + "combinedDuration": { + "description": "This enumerated value specifies the duration within which multiple unpaid orders may be combined into a single invoice, represented by one of the values in CombinedPaymentPeriodEnum.", + "$ref": "#/components/schemas/CombinedPaymentPeriodEnum" + } + }, + "description": "This type is used to update calculated shipping rules." + }, + "UpdateCombinedPaymentsRequest": { + "type": "object", + "properties": { + "combinedDuration": { + "description": "This field specifies the duration within which multiple unpaid orders may be combined into a single invoice.

One of the values in CombinedPaymentPeriodEnum must be used in this field.", + "$ref": "#/components/schemas/CombinedPaymentPeriodEnum" + } + }, + "description": "This type is used to update the combined payment duration", + "required": [ + "combinedDuration" + ] + }, + "UpdateFlatShippingRulesRequest": { + "type": "object", + "properties": { + "combinedDuration": { + "description": "This field specifies the duration within which multiple unpaid orders may be combined into a single invoice.

One of the values in CombinedPaymentPeriodEnum must be used in this field.", + "$ref": "#/components/schemas/CombinedPaymentPeriodEnum" + }, + "flatShippingRule": { + "description": "This container defines the flat-rate combined-shipping rule, which applies a fixed shipping cost for multiple items shipped together.", + "$ref": "#/components/schemas/FlatShippingRuleType" + } + }, + "description": "This type defines a request to update flat shipping rules.", + "required": [ + "combinedDuration", + "flatShippingRule" + ] + }, + "UpdatePayoutPercentage": { + "type": "object", + "properties": { + "instrumentId": { + "type": "string", + "description": "The unique reference identifier for a payout instrument. This value is returned in the getPayoutSettings response and is needed to change split-payout percentages through an updatePayoutPercentage request." + }, + "payoutPercentage": { + "type": "string", + "description": "The user-defined payout percentage allocated to this instrument. For example, 50 indicates that 50% of the payout goes to this instrument.

The split-payout percentage must be a positive integer value from 0-100. The values of two instruments must always add up to 100%. If the values do not equal 100, the call will fail." + } + }, + "description": "This type allows the user to change the payout percentages for two active payment instruments.", + "required": [ + "instrumentId", + "payoutPercentage" + ] + }, + "UpdatePayoutPercentageRequest": { + "type": "object", + "properties": { + "payoutInstruments": { + "type": "array", + "description": "This array allows the seller to set the payout split percentages for two accounts enabled to receive payouts.", + "items": { + "$ref": "#/components/schemas/UpdatePayoutPercentage" + } + } + }, + "description": "This type is used by the request payload of the updatePayoutPercentage method to allow a seller to configure the split-payout percentages for two payout instruments.", + "required": [ + "payoutInstruments" + ] + }, + "UpdatePromotionalShippingRuleRequest": { + "type": "object", + "properties": { + "combinedDuration": { + "description": "This container specifies the duration within which multiple unpaid orders may be combined into a single invoice.

One of the values in CombinedPaymentPeriodEnum must be used in this field.", + "$ref": "#/components/schemas/CombinedPaymentPeriodEnum" + }, + "promotionalShippingRule": { + "description": "This container specifies the promotional shipping rule that offers discounts or free-shipping options based on defined order thresholds, item counts, or marketplace conditions.", + "$ref": "#/components/schemas/PromotionalShippingRuleType" + } + }, + "description": "This type defines a request to update promotional shipping rule." + }, + "CombinedPaymentOptionEnum": { + "type": "string", + "description": "This enum type defines the available options for handling combined payments when a seller allows multiple line items from the same buyer to be paid for with a single payment. See CombinedPaymentOptionEnum for a description of each value. | - **NO_COMBINED_PAYMENT**: Indicates that combined payments are not allowed. - **DISCOUNT_SPECIFIED**: Indicates that a combined-payment discount has been specified. - **SPECIFY_DISCOUNT_LATER**: Indicates that the seller will specify the combined-payment discount later.", + "enum": [ + "NO_COMBINED_PAYMENT", + "DISCOUNT_SPECIFIED", + "SPECIFY_DISCOUNT_LATER" + ] + }, + "CombinedPaymentPeriodEnum": { + "type": "string", + "description": "This enumerated type defines the allowable time durations (e.g., 3, 7, 14 days) within which multiple unpaid items may be merged into a combined invoice. | - **DAYS_14**: Indicates that eligible unpaid line items can be combined into one payment for up to 14 days. - **DAYS_3**: Indicates that eligible unpaid line items can be combined into one payment for up to 3 days. - **DAYS_30**: Indicates that eligible unpaid line items can be combined into one payment for up to 30 days. - **DAYS_5**: Indicates that eligible unpaid line items can be combined into one payment for up to 5 days. - **DAYS_7**: Indicates that eligible unpaid line items can be combined into one payment for up to 7 days. - **INELIGIBLE**: Indicates that the buyer is not eligible to combine unpaid line items into one payment.", + "enum": [ + "DAYS_14", + "DAYS_3", + "DAYS_30", + "DAYS_5", + "DAYS_7", + "INELIGIBLE" + ] + }, + "CombinedShippingRuleTypeEnum": { + "type": "string", + "description": "This enumeration type defines the available types of combined-shipping rules, such as weight-based, cost-based, or flat-rate discount models. | - **COMBINED_ITEM_WEIGHT**: Indicates that combined shipping is calculated from the combined weight of the items in the order. - **EACH_ADDITIONAL_AMOUNT**: Indicates that a specified amount is charged for each additional item in the order. - **EACH_ADDITIONAL_AMOUNT_OFF**: Indicates that a specified amount is subtracted from the shipping cost for each additional item in the order. - **EACH_ADDITIONAL_PERCENT_OFF**: Indicates that a specified percentage is subtracted from the shipping cost for each additional item in the order. - **INDIVIDUAL_ITEM_WEIGHT**: Indicates that combined shipping is calculated from the individual item weights. - **MAXIMUM_SHIPPING_COST_PER_ORDER**: Indicates that the combined shipping cost is capped at a maximum amount for the order. - **SHIPPING_COST_X_FOR_AMOUNT_Y**: Indicates that the shipping cost is a specified amount when the order amount meets a configured threshold. - **SHIPPING_COST_X_FOR_ITEM_COUNT_N**: Indicates that the shipping cost is a specified amount when the order item count meets a configured threshold. - **WEIGHT_OFF**: Indicates that a specified weight amount is subtracted from the total order weight.", + "enum": [ + "COMBINED_ITEM_WEIGHT", + "EACH_ADDITIONAL_AMOUNT", + "EACH_ADDITIONAL_AMOUNT_OFF", + "EACH_ADDITIONAL_PERCENT_OFF", + "INDIVIDUAL_ITEM_WEIGHT", + "MAXIMUM_SHIPPING_COST_PER_ORDER", + "SHIPPING_COST_X_FOR_AMOUNT_Y", + "SHIPPING_COST_X_FOR_ITEM_COUNT_N", + "WEIGHT_OFF" + ] + }, + "CombinedShippingRuleTypeHandlingEnum": { + "type": "string", + "description": "This enumeration type calculates all valid handling discount rule types that govern how combined order handling costs are applied. | - **COMBINED_HANDLING_FEE**: Indicates that handling fees are combined for the order. - **EACH_ADDITIONAL_AMOUNT**: Indicates that a specified handling amount is charged for each additional item. - **EACH_ADDITIONAL_AMOUNT_OFF**: Indicates that a specified amount is subtracted from the handling cost for each additional item. - **EACH_ADDITIONAL_PERCENT_OFF**: Indicates that a specified percentage is subtracted from the handling cost for each additional item. - **INDIVIDUAL_HANDLING_FEE**: Indicates that handling fees are calculated separately for individual items.", + "enum": [ + "COMBINED_HANDLING_FEE", + "EACH_ADDITIONAL_AMOUNT", + "EACH_ADDITIONAL_AMOUNT_OFF", + "EACH_ADDITIONAL_PERCENT_OFF", + "INDIVIDUAL_HANDLING_FEE" + ] + }, + "CurrencyCodeEnum": { + "type": "string", + "description": "This enumerated type lists the three-letter ISO 4217 codes representing the supported world currencies. | - **AED**: Indicates the currency is United Arab Emirates dirham. - **AFN**: Indicates the currency is Afghan afghani. - **ALL**: Indicates the currency is Albanian lek. - **AMD**: Indicates the currency is Armenian dram. - **ANG**: Indicates the currency is Netherlands Antillean guilder. - **AOA**: Indicates the currency is Angolan kwanza. - **ARS**: Indicates the currency is Argentine peso. - **AUD**: Indicates the currency is Australian dollar. - **AWG**: Indicates the currency is Aruban florin. - **AZN**: Indicates the currency is Azerbaijani manat. - **BAM**: Indicates the currency is Bosnia and Herzegovina convertible mark. - **BBD**: Indicates the currency is Barbados dollar. - **BDT**: Indicates the currency is Bangladeshi taka. - **BGN**: Indicates the currency is Bulgarian lev. - **BHD**: Indicates the currency is Bahraini dinar. - **BIF**: Indicates the currency is Burundian franc. - **BMD**: Indicates the currency is Bermudian dollar. - **BND**: Indicates the currency is Brunei dollar. - **BOB**: Indicates the currency is Bolivian boliviano. - **BRL**: Indicates the currency is Brazilian real. - **BSD**: Indicates the currency is Bahamian dollar. - **BTN**: Indicates the currency is Bhutanese ngultrum. - **BWP**: Indicates the currency is Botswana pula. - **BYR**: Indicates the currency is Belarusian ruble. - **BZD**: Indicates the currency is Belize dollar. - **CAD**: Indicates the currency is Canadian dollar. - **CDF**: Indicates the currency is Congolese franc. - **CHF**: Indicates the currency is Swiss franc. - **CLP**: Indicates the currency is Chilean peso. - **CNY**: Indicates the currency is Chinese yuan. - **COP**: Indicates the currency is Colombian peso. - **CRC**: Indicates the currency is Costa Rican colon. - **CUP**: Indicates the currency is Cuban peso. - **CVE**: Indicates the currency is Cape Verdean escudo. - **CZK**: Indicates the currency is Czech koruna. - **DJF**: Indicates the currency is Djiboutian franc. - **DKK**: Indicates the currency is Danish krone. - **DOP**: Indicates the currency is Dominican peso. - **DZD**: Indicates the currency is Algerian dinar. - **EGP**: Indicates the currency is Egyptian pound. - **ERN**: Indicates the currency is Eritrean nakfa. - **ETB**: Indicates the currency is Ethiopian birr. - **EUR**: Indicates the currency is Euro. - **FJD**: Indicates the currency is Fiji dollar. - **FKP**: Indicates the currency is Falkland Islands pound. - **GBP**: Indicates the currency is Pound sterling. - **GEL**: Indicates the currency is Georgian lari. - **GHS**: Indicates the currency is Ghanaian cedi. - **GIP**: Indicates the currency is Gibraltar pound. - **GMD**: Indicates the currency is Gambian dalasi. - **GNF**: Indicates the currency is Guinean franc. - **GTQ**: Indicates the currency is Guatemalan quetzal. - **GYD**: Indicates the currency is Guyanese dollar. - **HKD**: Indicates the currency is Hong Kong dollar. - **HNL**: Indicates the currency is Honduran lempira. - **HRK**: Indicates the currency is Croatian kuna. - **HTG**: Indicates the currency is Haitian gourde. - **HUF**: Indicates the currency is Hungarian forint. - **IDR**: Indicates the currency is Indonesian rupiah. - **ILS**: Indicates the currency is Israeli new shekel. - **INR**: Indicates the currency is Indian rupee. - **IQD**: Indicates the currency is Iraqi dinar. - **IRR**: Indicates the currency is Iranian rial. - **ISK**: Indicates the currency is Icelandic krona. - **JMD**: Indicates the currency is Jamaican dollar. - **JOD**: Indicates the currency is Jordanian dinar. - **JPY**: Indicates the currency is Japanese yen. - **KES**: Indicates the currency is Kenyan shilling. - **KGS**: Indicates the currency is Kyrgyzstani som. - **KHR**: Indicates the currency is Cambodian riel. - **KMF**: Indicates the currency is Comorian franc. - **KPW**: Indicates the currency is North Korean won. - **KRW**: Indicates the currency is South Korean won. - **KWD**: Indicates the currency is Kuwaiti dinar. - **KYD**: Indicates the currency is Cayman Islands dollar. - **KZT**: Indicates the currency is Kazakhstani tenge. - **LAK**: Indicates the currency is Lao kip. - **LBP**: Indicates the currency is Lebanese pound. - **LKR**: Indicates the currency is Sri Lankan rupee. - **LRD**: Indicates the currency is Liberian dollar. - **LSL**: Indicates the currency is Lesotho loti. - **LTL**: Indicates the currency is Lithuanian litas. - **LYD**: Indicates the currency is Libyan dinar. - **MAD**: Indicates the currency is Moroccan dirham. - **MDL**: Indicates the currency is Moldovan leu. - **MGA**: Indicates the currency is Malagasy ariary. - **MKD**: Indicates the currency is Macedonian denar. - **MMK**: Indicates the currency is Myanmar kyat. - **MNT**: Indicates the currency is Mongolian tugrik. - **MOP**: Indicates the currency is Macanese pataca. - **MRO**: Indicates the currency is Mauritanian ouguiya. - **MUR**: Indicates the currency is Mauritian rupee. - **MVR**: Indicates the currency is Maldivian rufiyaa. - **MWK**: Indicates the currency is Malawian kwacha. - **MXN**: Indicates the currency is Mexican peso. - **MYR**: Indicates the currency is Malaysian ringgit. - **MZN**: Indicates the currency is Mozambican metical. - **NAD**: Indicates the currency is Namibian dollar. - **NGN**: Indicates the currency is Nigerian naira. - **NIO**: Indicates the currency is Nicaraguan cordoba. - **NOK**: Indicates the currency is Norwegian krone. - **NPR**: Indicates the currency is Nepalese rupee. - **NZD**: Indicates the currency is New Zealand dollar. - **OMR**: Indicates the currency is Omani rial. - **PAB**: Indicates the currency is Panamanian balboa. - **PEN**: Indicates the currency is Peruvian sol. - **PGK**: Indicates the currency is Papua New Guinean kina. - **PHP**: Indicates the currency is Philippine peso. - **PKR**: Indicates the currency is Pakistani rupee. - **PLN**: Indicates the currency is Polish zloty. - **PYG**: Indicates the currency is Paraguayan guarani. - **QAR**: Indicates the currency is Qatari riyal. - **RON**: Indicates the currency is Romanian leu. - **RSD**: Indicates the currency is Serbian dinar. - **RUB**: Indicates the currency is Russian ruble. - **RWF**: Indicates the currency is Rwandan franc. - **SAR**: Indicates the currency is Saudi riyal. - **SBD**: Indicates the currency is Solomon Islands dollar. - **SCR**: Indicates the currency is Seychelles rupee. - **SDG**: Indicates the currency is Sudanese pound. - **SEK**: Indicates the currency is Swedish krona. - **SGD**: Indicates the currency is Singapore dollar. - **SHP**: Indicates the currency is Saint Helena pound. - **SLL**: Indicates the currency is Sierra Leonean leone. - **SOS**: Indicates the currency is Somali shilling. - **SRD**: Indicates the currency is Surinamese dollar. - **STD**: Indicates the currency is Sao Tome and Principe dobra. - **SYP**: Indicates the currency is Syrian pound. - **SZL**: Indicates the currency is Swazi lilangeni. - **THB**: Indicates the currency is Thai baht. - **TJS**: Indicates the currency is Tajikistani somoni. - **TMT**: Indicates the currency is Turkmenistan manat. - **TND**: Indicates the currency is Tunisian dinar. - **TOP**: Indicates the currency is Tongan paanga. - **TRY**: Indicates the currency is Turkish lira. - **TTD**: Indicates the currency is Trinidad and Tobago dollar. - **TWD**: Indicates the currency is New Taiwan dollar. - **TZS**: Indicates the currency is Tanzanian shilling. - **UAH**: Indicates the currency is Ukrainian hryvnia. - **UGX**: Indicates the currency is Ugandan shilling. - **USD**: Indicates the currency is United States dollar. - **UYU**: Indicates the currency is Uruguayan peso. - **UZS**: Indicates the currency is Uzbekistani som. - **VEF**: Indicates the currency is Venezuelan bolivar. - **VND**: Indicates the currency is Vietnamese dong. - **VUV**: Indicates the currency is Vanuatu vatu. - **WST**: Indicates the currency is Samoan tala. - **XAF**: Indicates the currency is Central African CFA franc. - **XCD**: Indicates the currency is East Caribbean dollar. - **XOF**: Indicates the currency is West African CFA franc. - **XPF**: Indicates the currency is CFP franc. - **YER**: Indicates the currency is Yemeni rial. - **ZAR**: Indicates the currency is South African rand. - **ZMW**: Indicates the currency is Zambian kwacha. - **ZWL**: Indicates the currency is Zimbabwean dollar.", + "enum": [ + "AED", + "AFN", + "ALL", + "AMD", + "ANG", + "AOA", + "ARS", + "AUD", + "AWG", + "AZN", + "BAM", + "BBD", + "BDT", + "BGN", + "BHD", + "BIF", + "BMD", + "BND", + "BOB", + "BRL", + "BSD", + "BTN", + "BWP", + "BYR", + "BZD", + "CAD", + "CDF", + "CHF", + "CLP", + "CNY", + "COP", + "CRC", + "CUP", + "CVE", + "CZK", + "DJF", + "DKK", + "DOP", + "DZD", + "EGP", + "ERN", + "ETB", + "EUR", + "FJD", + "FKP", + "GBP", + "GEL", + "GHS", + "GIP", + "GMD", + "GNF", + "GTQ", + "GYD", + "HKD", + "HNL", + "HRK", + "HTG", + "HUF", + "IDR", + "ILS", + "INR", + "IQD", + "IRR", + "ISK", + "JMD", + "JOD", + "JPY", + "KES", + "KGS", + "KHR", + "KMF", + "KPW", + "KRW", + "KWD", + "KYD", + "KZT", + "LAK", + "LBP", + "LKR", + "LRD", + "LSL", + "LTL", + "LYD", + "MAD", + "MDL", + "MGA", + "MKD", + "MMK", + "MNT", + "MOP", + "MRO", + "MUR", + "MVR", + "MWK", + "MXN", + "MYR", + "MZN", + "NAD", + "NGN", + "NIO", + "NOK", + "NPR", + "NZD", + "OMR", + "PAB", + "PEN", + "PGK", + "PHP", + "PKR", + "PLN", + "PYG", + "QAR", + "RON", + "RSD", + "RUB", + "RWF", + "SAR", + "SBD", + "SCR", + "SDG", + "SEK", + "SGD", + "SHP", + "SLL", + "SOS", + "SRD", + "STD", + "SYP", + "SZL", + "THB", + "TJS", + "TMT", + "TND", + "TOP", + "TRY", + "TTD", + "TWD", + "TZS", + "UAH", + "UGX", + "USD", + "UYU", + "UZS", + "VEF", + "VND", + "VUV", + "WST", + "XAF", + "XCD", + "XOF", + "XPF", + "YER", + "ZAR", + "ZMW", + "ZWL" + ] + }, + "EndOfAuctionLogoTypeEnum": { + "type": "string", + "description": "This enum type defines the supported logo types that can be used in end-of-auction emails sent to winning bidders. | - **WINNING_BIDDER_NOTICE**: Indicates that the winning-bidder notice logo is used. - **STORE**: Indicates that the seller's eBay Store logo is used. - **CUSTOMIZED**: Indicates that the seller uses a customized logo. - **NONE**: Indicates that no logo is used.", + "enum": [ + "WINNING_BIDDER_NOTICE", + "STORE", + "CUSTOMIZED", + "NONE" + ] + }, + "FedexRateOptionEnum": { + "type": "string", + "description": "This enum type defines the FedEx shipping rate options that are available to the seller. | - **FEDEX_STANDARD_LIST**: Indicates that FedEx standard list rates are used. - **FEDEX_COUNTER**: Indicates that FedEx counter rates are used.", + "enum": [ + "FEDEX_STANDARD_LIST", + "FEDEX_COUNTER" + ] + }, + "InstrumentStatusEnum": { + "type": "string", + "description": "This enumeration type lists the different possible instrument statuses that can be returned with the getPayoutSettings method.

Note: Payout splits can only be modified for accounts in ACTIVE state. | - **PENDING**: This status indicates that the account must be verified before it can be used. - **ACTIVE**: This status indicates that payouts are enabled on this account. - **VERIFICATION_FAILED**: This status indicates that verification has failed for this account and payouts are disabled. - **INACTIVE**: This status indicates that this account has become inactive and payouts are disabled.", + "enum": [ + "PENDING", + "ACTIVE", + "VERIFICATION_FAILED", + "INACTIVE" + ] + }, + "MarketplaceIdEnum": { + "type": "string", + "description": "This enumerated type defines the unique eBay-assigned IDs for each of the eBay marketplaces. | - **EBAY_AT**: Indicates the eBay marketplace for Austria (https://www.ebay.at). - **EBAY_AU**: Indicates the eBay marketplace for Australia (https://www.ebay.com.au). - **EBAY_BE**: Indicates the eBay marketplace for Belgium (https://www.ebay.be/). - **EBAY_CA**: Indicates the eBay marketplace for Canada (https://www.ebay.ca). - **EBAY_CH**: Indicates the eBay marketplace for Switzerland (https://www.ebay.ch). - **EBAY_CN**: Reserved for future use. - **EBAY_CZ**: Reserved for future use. - **EBAY_DE**: Indicates the eBay marketplace for Germany (https://www.ebay.de). - **EBAY_DK**: Reserved for future use. - **EBAY_ES**: Indicates the eBay marketplace for Spain (https://www.ebay.es). - **EBAY_FI**: Reserved for future use. - **EBAY_FR**: Indicates the eBay marketplace for France (https://www.ebay.fr). - **EBAY_GB**: Indicates the eBay marketplace for Great Britain (https://www.ebay.co.uk). - **EBAY_GR**: Reserved for future use. - **EBAY_HK**: Indicates the eBay marketplace for Hong Kong (https://www.ebay.com.hk). - **EBAY_HU**: Reserved for future use. - **EBAY_ID**: Reserved for future use. - **EBAY_IE**: Indicates the eBay marketplace for Ireland (https://www.ebay.ie). - **EBAY_IL**: Reserved for future use. - **EBAY_IN**: Indicates the eBay marketplace for India (https://www.ebay.in). - **EBAY_IT**: Indicates the eBay marketplace for Italy (https://www.ebay.it). - **EBAY_JP**: Reserved for future use. - **EBAY_MY**: Indicates the eBay marketplace for Malaysia (https://www.ebay.com.my). - **EBAY_NL**: Indicates the eBay marketplace for the Netherlands (https://www.ebay.nl). - **EBAY_NO**: Reserved for future use. - **EBAY_NZ**: Reserved for future use. - **EBAY_PE**: Reserved for future use. - **EBAY_PH**: Indicates the eBay marketplace for the Philippines (https://www.ebay.ph). - **EBAY_PL**: Indicates the eBay marketplace for Poland (https://www.ebay.pl). - **EBAY_PR**: Reserved for future use. - **EBAY_PT**: Reserved for future use. - **EBAY_RU**: Reserved for future use. - **EBAY_SE**: Reserved for future use. - **EBAY_SG**: Indicates the eBay marketplace for Singapore (https://www.ebay.com.sg). - **EBAY_TH**: Indicates the eBay marketplace for Thailand (https://info.ebay.co.th). - **EBAY_TW**: Indicates the eBay marketplace for Taiwan (https://www.ebay.com.tw). - **EBAY_US**: Indicates the eBay marketplace for the United States (https://www.ebay.com). - **EBAY_VN**: Indicates the eBay marketplace for Vietnam (https://www.ebay.vn). - **EBAY_ZA**: Reserved for future use. - **EBAY_HALF_US**: No longer used. - **EBAY_MOTORS_US**: Indicates the parent category for Auto Parts and Vehicles on the EBAY_US marketplace (https://www.ebay.com/motors).", + "enum": [ + "EBAY_AT", + "EBAY_AU", + "EBAY_BE", + "EBAY_CA", + "EBAY_CH", + "EBAY_CN", + "EBAY_CZ", + "EBAY_DE", + "EBAY_DK", + "EBAY_ES", + "EBAY_FI", + "EBAY_FR", + "EBAY_GB", + "EBAY_GR", + "EBAY_HK", + "EBAY_HU", + "EBAY_ID", + "EBAY_IE", + "EBAY_IL", + "EBAY_IN", + "EBAY_IT", + "EBAY_JP", + "EBAY_MY", + "EBAY_NL", + "EBAY_NO", + "EBAY_NZ", + "EBAY_PE", + "EBAY_PH", + "EBAY_PL", + "EBAY_PR", + "EBAY_PT", + "EBAY_RU", + "EBAY_SE", + "EBAY_SG", + "EBAY_TH", + "EBAY_TW", + "EBAY_US", + "EBAY_VN", + "EBAY_ZA", + "EBAY_HALF_US", + "EBAY_MOTORS_US" + ] + }, + "ShippingCategoryEnum": { + "type": "string", + "description": "An enum that defines the available levels of shipping service. | - **ONE_DAY**: Shipping rate applies to One-Day delivery services. Note: This option is not supported when shippingOptionType is INTERNATIONAL. - **EXPEDITED**: Shipping rate applies to Expedited delivery services. This generally indicates that a shipment can arrive at the shipping destination within one or two business days. - **STANDARD**: Shipping rate applies to Standard delivery services. - **ECONOMY**: Shipping rate applies to Economy delivery services. This generally indicates that shipping rates are minimized but it will take longer for the shipment to arrive at the shipping destination. - **EXPRESS**: Shipping rate applies to Express delivery services. Note: This option is supported only when MarketplaceIdEnum is EBAY_DE (Germany).", + "enum": [ + "ONE_DAY", + "EXPEDITED", + "STANDARD", + "ECONOMY", + "EXPRESS" + ] + }, + "ShippingOptionTypeEnum": { + "type": "string", + "description": "An enum defining a region that is either domestic (within the country from where the item is listed or shipped) or international (a country outside the country from where the item is listed or shipped). | - **DOMESTIC**: DOMESTIC indicates a region that is within the source country. - **INTERNATIONAL**: INTERNATIONAL indicates a region that is external to the source country.", + "enum": [ + "DOMESTIC", + "INTERNATIONAL" + ] + }, + "ShippingRateCalculationEnum": { + "type": "string", + "description": "An enum that specifies the how a shipping rate is calculated. | - **ITEM**: Specifies the flat rate shipping cost that buyers in the specified shipping region will pay. - **WEIGHT**: Specifies that the shipping cost is calculated using the weight of the item or items being shipped. - **SURCHARGE**: Specifies a flat amount that is added to the shipping cost specified within an item's listing.", + "enum": [ + "ITEM", + "WEIGHT", + "SURCHARGE" + ] + }, + "UPSRateOptionEnum": { + "type": "string", + "description": "This enum type defines the UPS shipping rate options that are available to the seller. | - **UPS_DAILY_RATES**: Indicates that UPS Daily Rates are used. - **UPS_ON_DEMAND_RATES**: Indicates that UPS On Demand Rates are used.", + "enum": [ + "UPS_DAILY_RATES", + "UPS_ON_DEMAND_RATES" + ] + }, + "WeightUnitOfMeasureEnum": { + "type": "string", + "description": "This enumeration type defines the supported weight measurement units (e.g., kilograms, pounds, ounces) used in shipping calculations and rule configurations. | - **POUND**: Indicates the unit of measure is pounds. - **KILOGRAM**: Indicates the unit of measure is kilograms. - **OUNCE**: Indicates the unit of measure is ounces. - **GRAM**: Indicates the unit of measure is grams.", + "enum": [ + "POUND", + "KILOGRAM", + "OUNCE", + "GRAM" + ] + }, + "SetItemsAwaitingPaymentPreferencesType": { + "type": "object", + "properties": { + "autoRelist": { + "type": "boolean", + "description": "This boolean field is included if the seller wishes to toggle the setting that controls whether or not the line item should be automatically relisted when cancelled. For this field to be set to true, the optInStatus field should also be true.
Note: If the line item was part of an auction listing or a single-quantity fixed price listing, a new listing will actually be created. If the line item was part of a multiple-quantity fixed price listing, eBay will only adjust the quantity based on the cancelled line item’s quantity." + }, + "delayBeforeCancellingCommitment": { + "type": "integer", + "description": "This integer field is included if the seller wishes to set or change the number of business days without payment that must elapse before the line item is cancelled. This is a required field if the optInStatus field is true.
Note: The supported integer values (representing business days) varies by eBay marketplace.", + "format": "int32" + }, + "excludedUsers": { + "type": "array", + "description": "This array is used if the seller wishes to exclude one or more eBay users from the unpaid item assistance mechanism. The seller would need to manually cancel any unpaid line items for all users on this list. This array will not be returned if there are no users on the excluded users list.
Note: The eBay public username is used for each excluded user, and a comma is used to delimit each user in the array.", + "items": { + "type": "string" + } + }, + "optInStatus": { + "type": "boolean", + "description": "This boolean field is included if the seller wishes to toggle the setting that controls whether or not the seller is opted into the unpaid item assistance mechanism. If the seller is not opted in, no other fields under itemsAwaitingPaymentPreferences are applicable." + }, + "removeAllExcludedUsers": { + "type": "boolean", + "description": "This boolean field is included and set to true if the seller wishes to remove all eBay users from the current excluded users list. If this field is included and set to true, the excludedUsers array should not be included." + } + }, + "description": "This container represents the seller's preferences for the items that are awaiting payment." + }, + "SetUserPreferencesRequest": { + "type": "object", + "properties": { + "combinedPaymentPreferences": { + "description": "This container is included if the seller wishes to allow combined invoices if the buyer has multiple unpaid orders from the same seller.", + "$ref": "#/components/schemas/CombinedPaymentPreferencesType" + }, + "dispatchCutoffTimePreference": { + "description": "This container is included if the seller wishes to set or modify the order cut-off time for same-day shipping.", + "$ref": "#/components/schemas/DispatchCutoffTimePreferencesType" + }, + "emailShipmentTrackingNumberPreference": { + "type": "boolean", + "description": "This field is included if the seller wishes to enable or disable the setting that will automatically email the buyer with the tracking number when it becomes available." + }, + "endOfAuctionEmailPreferences": { + "description": "This container is included if the seller wishes to change one or more of the end of auction email preferences.", + "$ref": "#/components/schemas/EndOfAuctionEmailPreferencesType" + }, + "globalShippingProgramListingPreference": { + "type": "boolean", + "description": "This boolean field is included if the seller wishes to toggle the setting that controls whether or not the seller’s new listings on the eBay UK marketplace will automatically use the Global Shipping Program for international shipping.
Note: The Global Shipping Program is only available for the eBay UK marketplace, and the seller must be opted into the program, that is offerGlobalShippingProgramPreference = true" + }, + "itemsAwaitingPaymentPreferences": { + "description": "This container is included if the seller wishes to change one or more of the items awaiting payment preferences.", + "$ref": "#/components/schemas/SetItemsAwaitingPaymentPreferencesType" + }, + "outOfStockControlPreference": { + "type": "boolean", + "description": "This boolean field is included if the seller wishes to toggle the setting that controls whether or not the seller is opted into the Out-of-Stock feature. With this feature, a multiple quantity fixed price listing that runs out of stock will be hidden from eBay search but kept alive. Once the sellers add quantity to the listing, the listing will become active and available again." + }, + "purchaseReminderEmailPreferences": { + "type": "boolean", + "description": "This boolean field is included if the seller wishes to toggle the setting that controls whether or not the buyer is expected to provide a shipping phone number upon checkout. Some shipping carriers require the receiver's phone number." + }, + "requiredShipPhoneNumberPreference": { + "type": "boolean", + "description": "This boolean indicates whether the seller wishes to require phone numbers for shipping or not." + }, + "shippingCarrierRatePreferences": { + "description": "This container is included if the seller wishes to add or modify a FedEx, UPS, and/or US Post Office shipping rate type that is available to the seller.
Note: This container is only applicable to the eBay US marketplace.", + "$ref": "#/components/schemas/ShippingCarrierRatePreferencesType" + } + }, + "description": "This type defines the request fields for the seller preferences configuration for eBay services." } - } }, - "description": "This type is used by the request payload of the updatePayoutPercentage method to allow a seller to configure the split-payout percentages for two payout instruments." - } - }, - "securitySchemes": { - "api_auth": { - "type": "oauth2", - "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": { - "authorizationCode": { - "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope/sell.finances": "View and manage your payment and order information to display this information to you and allow you to initiate refunds using the third party application", - "https://api.ebay.com/oauth/api_scope/sell.account.readonly": "View your account settings", - "https://api.ebay.com/oauth/api_scope/sell.account": "View and manage your account settings" + "securitySchemes": { + "api_auth": { + "type": "oauth2", + "description": "The security definitions for this API. Please check individual operations for applicable scopes.", + "flows": { + "authorizationCode": { + "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", + "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", + "scopes": { + "https://api.ebay.com/oauth/api_scope/sell.finances": "View and manage your payment and order information to display this information to you and allow you to initiate refunds using the third party application", + "https://api.ebay.com/oauth/api_scope/sell.account.readonly": "View your account settings", + "https://api.ebay.com/oauth/api_scope/sell.account": "View and manage your account settings" + } + } + } } - } } - } } - } } \ No newline at end of file diff --git a/specs/sell_analytics_v1_oas3.json b/specs/sell_analytics_v1_oas3.json index 04c4cad1..3a3db791 100644 --- a/specs/sell_analytics_v1_oas3.json +++ b/specs/sell_analytics_v1_oas3.json @@ -1,14 +1,14 @@ { "openapi": "3.0.0", "info": { - "title": " Seller Service Metrics API ", + "title": "Analytics API", "description": "The Analytics API provides data and information about a seller and their eBay business.

The resources and methods in this API let sellers review information on their listing performance, metrics on their customer service performance, and details on their eBay seller performance rating.

The three resources in the Analytics API provide the following data and information:
  • Customer Service Metric – Returns benchmark data and a metric rating pertaining to a seller's customer service performance as compared to other seller's in the same peer group.
  • Traffic Report – Returns data and information that shows how buyers are engaging with a seller's listings.
  • Seller Standards Profile – Returns information pertaining to a seller's profile rating.
Sellers can use the data and information returned by the various Analytics API methods to determine where they can make improvements to increase sales and how they might improve their seller status as viewed by eBay buyers.

For details on using this API, see Analyzing seller performance.", "contact": { "name": "eBay Inc," }, "license": { "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" + "url": "https://developer.ebay.com/join/api-license-agreement" }, "version": "1.3.2" }, diff --git a/specs/sell_compliance_v1_oas3.json b/specs/sell_compliance_v1_oas3.json deleted file mode 100644 index 4e0c2cfa..00000000 --- a/specs/sell_compliance_v1_oas3.json +++ /dev/null @@ -1,661 +0,0 @@ -{ - "openapi": "3.0.0", - "info": { - "title": "Compliance API", - "description": "Service for providing information to sellers about their listings being non-compliant, or at risk for becoming non-compliant, against eBay listing policies.", - "contact": { - "name": "eBay Inc," - }, - "license": { - "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" - }, - "version": "1.4.1" - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/sell/compliance/v1" - } - } - } - ], - "paths": { - "/listing_violation_summary": { - "get": { - "tags": [ - "listing_violation_summary" - ], - "description": "This call returns listing violation counts for a seller. A user can pass in one or more compliance types through the compliance_type query parameter. See ComplianceTypeEnum for more information on the supported listing compliance types. Listing violations are returned for multiple marketplaces if the seller sells on multiple eBay marketplaces. Note: Only a canned response, with counts for all listing compliance types, is returned in the Sandbox environment. Due to this limitation, the compliance_type query parameter (if used) will not have an effect on the response.", - "operationId": "getListingViolationsSummary", - "parameters": [ - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "Use this header to specify the eBay marketplace identifier. Supported values for this header can be found in the MarketplaceIdEnum type definition. Note that Version 1.4.0 of the Compliance API is only supported on the US, UK, Australia, Canada {English), and Germany sites.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "compliance_type", - "in": "query", - "description": "A user passes in one or more compliance type values through this query parameter. See ComplianceTypeEnum for more information on the supported compliance types that can be passed in here. If more than one compliance type value is used, delimit these values with a comma. If no compliance type values are passed in, the listing count for all compliance types will be returned. Note: Only a canned response, with counts for all listing compliance types, is returned in the Sandbox environment. Due to this limitation, the compliance_type query parameter (if used) will not have an effect on the response.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json;charset=UTF-8": { - "schema": { - "$ref": "#/components/schemas/ComplianceSummary" - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "850101": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Marketplace ID is invalid" - }, - "850110": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Compliance type is invalid" - }, - "850111": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Compliance type is missing" - }, - "850114": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Mandatory headers are missing" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "850001": { - "domain": "API_COMPLIANCE", - "category": "APPLICATION", - "description": "Any System error. {additionalInfo}" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - } - }, - "/listing_violation": { - "get": { - "tags": [ - "listing_violation" - ], - "description": "This call returns specific listing violations for the supported listing compliance types. Only one compliance type can be passed in per call, and the response will include all the listing violations for this compliance type, and listing violations are grouped together by eBay listing ID. See ComplianceTypeEnum for more information on the supported listing compliance types. This method also has pagination control. Note: A maximum of 2000 listing violations will be returned in a result set. If the seller has more than 2000 listing violations, some/all of those listing violations must be corrected before additional listing violations will be retrieved. The user should pay attention to the total value in the response. If this value is '2000', it is possible that the seller has more than 2000 listing violations, but this field maxes out at 2000. Note: In a future release of this API, the seller will be able to pass in a specific eBay listing ID as a query parameter to see if this specific listing has any violations. Note: Only mocked non-compliant listing data will be returned for this call in the Sandbox environment, and not specific to the seller. However, the user can still use this mock data to experiment with the compliance type filters and pagination control.", - "operationId": "getListingViolations", - "parameters": [ - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "This header is required and is used to specify the eBay marketplace identifier. Supported values for this header can be found in the MarketplaceIdEnum type definition. Note that Version 1.4.0 of the Compliance API is only supported on the US, UK, Australia, Canada {English), and Germany sites.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "compliance_type", - "in": "query", - "description": "A seller uses this query parameter to retrieve listing violations of a specific compliance type. Only one compliance type value should be passed in here. See ComplianceTypeEnum for more information on the compliance types that can be passed in here. If the listing_id query parameter is used, the compliance_type query parameter {if passed in) will be ignored. This is because all of a listing's policy violations {each compliance type) will be returned if a listing_id is provided. Either the listing_id or a compliance_type query parameter must be used, and if the seller only wants to view listing violations of a specific compliance type, both of these parameters can be used. Note: The listing_id query parameter is not yet available for use, so the seller does not have the ability to retrieve listing violations for one or more specific listings. Until the listing_id query parameter becomes available, the compliance_type query parameter is required with each getListingViolations call.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "The integer value input into this field controls the first listing violation in the result set that will be displayed at the top of the response. The offset and limit query parameters are used to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the call retrieves listing violations 11 thru 20 from the resulting set of violations. Note: This feature employs a zero-based index, where the first item in the list has an offset of 0. If the listing_id parameter is included in the request, this parameter will be ignored. Default: 0 {zero)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "listing_id", - "in": "query", - "description": "Note: This query parameter is not yet supported for the Compliance API. Please note that until this query parameter becomes available, the compliance_type query parameter is required with each getListingViolations call. This query parameter is used if the user wants to view all listing violations for one or more eBay listings. The string value passed into this field is the unique identifier of the listing, sometimes referred to as the Item ID. Either the listing_id or a compliance_type query parameter must be used, and if the seller only wants to view listing violations of a specific compliance type, both of these parameters can be used. Up to 50 listing IDs can be specified with this query parameter, and each unique listing ID is separated with a comma.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "This query parameter is used if the user wants to set a limit on the number of listing violations that are returned on one page of the result set. This parameter is used in conjunction with the offset parameter to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the call retrieves listing violations 11 thru 20 from the collection of listing violations that match the value set in the compliance_type parameter. Note: This feature employs a zero-based index, where the first item in the list has an offset of 0. If the listing_id parameter is included in the request, this parameter will be ignored. Default: 100 Maximum: 200", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "filter", - "in": "query", - "description": "This filter allows a user to retrieve only listings that are currently out of compliance, or only listings that are at risk of becoming out of compliance. Although other filters may be added in the future, complianceState is the only supported filter type at this time. The two compliance 'states' are OUT_OF_COMPLIANCE and AT_RISK. Below is an example of how to set up this compliance state filter. Notice that the filter type and filter value are separated with a colon (:) character, and the filter value is wrapped with curly brackets. filter=complianceState:{OUT_OF_COMPLIANCE}", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json;charset=UTF-8": { - "schema": { - "$ref": "#/components/schemas/PagedComplianceViolationCollection" - } - } - } - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "850101": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Marketplace ID is invalid" - }, - "850102": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Marketplace ID is missing" - }, - "850109": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Single compliance type is supported per API call" - }, - "850110": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Compliance type is invalid" - }, - "850111": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Compliance type is missing" - }, - "850112": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Invalid listing_id specified" - }, - "850113": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "listing_id not specified" - }, - "850114": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Mandatory headers are missing" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "850001": { - "domain": "API_COMPLIANCE", - "category": "APPLICATION", - "description": "Any System error. {additionalInfo}" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - } - }, - "/suppress_listing_violation": { - "post": { - "tags": [ - "listing_violation" - ], - "description": "This call suppresses a listing violation for a specific listing. Only listing violations in the AT_RISK state (returned in the violations.complianceState field of the getListingViolations call) can be suppressed. Note: At this time, the suppressViolation call only supports the suppressing of ASPECTS_ADOPTION listing violations in the AT_RISK state. In the future, it is possible that this method can be used to suppress other listing violation types. A successful call returns a http status code of 204 Success. There is no response payload. If the call is not successful, an error code will be returned stating the issue.", - "operationId": "suppressViolation", - "requestBody": { - "description": "This type is the base request type of the SuppressViolation method.", - "content": { - "application/json": { - "schema": { - "description": "This type is the base request type of the SuppressViolation method.", - "$ref": "#/components/schemas/SuppressViolationRequest" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "Success" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "850110": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Compliance type is invalid" - }, - "850111": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Compliance type is missing" - }, - "850112": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Invalid listing_id specified" - }, - "850113": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "listing_id not specified" - }, - "850120": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Listing is already compliant. You can not suppress compliant listing" - }, - "850121": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Listing has required aspects not filled. You can not suppress the violation when required aspects are missing" - }, - "850122": { - "domain": "API_COMPLIANCE", - "category": "REQUEST", - "description": "Violation is already suppressed on this listing" - } - } - } - }, - "409": { - "description": "Business error" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "850001": { - "domain": "API_COMPLIANCE", - "category": "APPLICATION", - "description": "Any System error" - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - } - } - }, - "components": { - "schemas": { - "AspectRecommendations": { - "type": "object", - "properties": { - "localizedAspectName": { - "type": "string", - "description": "The name of the item aspect for which eBay has a recommendation. In many cases, the same item aspect(s) that are returned under the violationData array for ASPECTS_ADOPTION listing violations are also returned here Note: This name is always localized for the specified marketplace." - }, - "suggestedValues": { - "type": "array", - "description": "One or more valid values for the corresponding item aspect (in localizedAspectName) are returned here. These suggested values for the item aspect depend on the listing category and on the information specified in the listing. Sellers should confirm accuracy of the values before applying them to the listing. Please use getItemAspectsForCategory in the Taxonomy API or GetCategorySpecifics in the Trading API to get a comprehensive list of required and recommended aspects for a given category and a list of supported aspect values for each.", - "items": { - "type": "string" - } - } - }, - "description": "This type is used by the aspectsRecommendation container, which is returned if eBay has found a listing with missing or invalid item aspects (ASPECTS_ADOPTION compliance type)." - }, - "ComplianceDetail": { - "type": "object", - "properties": { - "reasonCode": { - "type": "string", - "description": "This value states the nature of the listing violation. A reasonCode value is returned for each listing violation, and each compliance type can have several reason codes and related messages. The reasonCode values vary by compliance type. The reason codes for each compliance type are summarized below. Aspects adoption The reason codes for ASPECTS_ADOPTION compliance indicate that for the given violation, aspects listed in the violationData container are either missing from the listing or they have invalid values. The reason codes specify whether the violation is for required aspects, recommended (preferred) aspects, or soon to be required aspects. MISSING_OR_INVALID_REQUIRED_ASPECTS MISSING_OR_INVALID_PREFERRED_ASPECTS MISSING_OR_INVALID_SOON_TO_BE_REQUIRED_ASPECTS HTTPS The reason codes for HTTPS compliance identify where in the listing the violation occurs. For HTTPS policy violations, the seller will just need to remove the HTTP link (or update to HTTPS) from the listing details or product details: NON_SECURE_HTTP_LINK_IN_LISTING NON_SECURE_HTTP_LINK_IN_PRODUCT Non-eBay links The reason codes for OUTSIDE_EBAY_BUYING_AND_SELLING compliance identify the specific type of data (e.g., telephone number) that violated the policy. For each of these violations, the seller will just need to revise the listing, removing this information: UNAPPROVED_DOMAIN_WEBLINK_IN_LISTING PHONE_NUMBER_IN_LISTING EMAIL_ADDRESS_IN_LISTING Product adoption Product Adoption is not enforced at this time. Product adoption conformance Product Adoption is not enforced at this time. Returns policy The only RETURNS_POLICY reason code is UNSUPPORTED_RETURNS_PERIOD. The seller will have to revise their listing (or return business policy) with a supported return period for the site and category. The GetCategoryFeatures call of the Trading API can be used to verify the supported return periods for a particular category. For most eBay categories, the minimum return period that can be stated in a Returns Policy is 14 days for domestic and international sales, but some categories require a minimum 30-day return period." - }, - "message": { - "type": "string", - "description": "This field provides a textual summary of the listing violation. A message field is returned for each listing violation. This message will vary widely based on the compliance type and corresponding reason code." - }, - "variation": { - "description": "This container defines the variation within a multiple-variation listing that has the listing violation. This container is only returned if an individual variation within a multiple-variation listing has the listing violation.", - "$ref": "#/components/schemas/VariationDetails" - }, - "violationData": { - "type": "array", - "description": "This container provides more information about the listing violation, if applicable. The type of information that appears here will vary based on the compliance type and type of violation. For example, for ASPECTS_ADOPTION violations, this container lists the missing aspect(s) or aspect(s) with invalid values.", - "items": { - "$ref": "#/components/schemas/NameValueList" - } - }, - "correctiveRecommendations": { - "description": "This container is returned for ASPECTS_ADOPTION violations if eBay has found one or more item aspect name-value pairs that may be appropriate for the seller's product. In many cases, the missing or incorrect item aspect(s) shown under the corresponding violationData array, will also show up under the aspectRecommendations array with suggested value(s). Note: eBay catalog product adoption is not enforced for any eBay category at this time, so a recommended eBay product ID (aka ePID) will not be returned under the productRecommendation container at this time.", - "$ref": "#/components/schemas/CorrectiveRecommendations" - }, - "complianceState": { - "type": "string", - "description": "The enumeration value returned in this field indicates if the listing violation is considered to be OUT_OF_COMPLIANCE with an eBay listing policy, or the listing is considered to be AT_RISK of becoming non-compliant against an eBay listing policy. Generally, OUT_OF_COMPLIANCE policy violations can prevent the seller from revising a listing until the underlying violation(s) can be remedied. When the compliance state is AT_RISK, the seller is not blocked from revising the listing, but the seller should correct the violation to prevent the listing from being blocked for revisions in the future. Note: This field is returned for most violations, but not all. In the case that this field is not returned, it can be assumed that the state of the listing violation is OUT_OF_COMPLIANCE. For implementation help, refer to eBay API documentation" - } - }, - "description": "This type is used by each listing violation that is returned under the violations container." - }, - "ComplianceSummary": { - "type": "object", - "properties": { - "violationSummaries": { - "type": "array", - "description": "This container is an array of one or more policy violation counts. A policy violation count is returned for each unique eBay marketplace and compliance type violation. As long as there is at least one non-compliant listing for the specified compliance type(s), this container will be returned. If no non-compliant listings are found for the specified compliance type(s), an HTTP status code of 204 No Content is returned, and there is no response body.", - "items": { - "$ref": "#/components/schemas/ComplianceSummaryInfo" - } - } - }, - "description": "This type is the base type for the getListingViolationsSummary response. The violationSummaries container contains an array of policy violation counts for each unique eBay marketplace and compliance type violation." - }, - "ComplianceSummaryInfo": { - "type": "object", - "properties": { - "complianceType": { - "type": "string", - "description": "This enumeration value indicates the type of compliance. See ComplianceTypeEnum for more information on each compliance type. For implementation help, refer to eBay API documentation" - }, - "marketplaceId": { - "type": "string", - "description": "This enumeration value indicates the eBay marketplace where the listing violations exist. For implementation help, refer to eBay API documentation" - }, - "listingCount": { - "type": "integer", - "description": "This integer value indicates the number of eBay listings that are currently violating the compliance type indicated in the complianceType field, for the eBay marketplace indicated in the marketplaceId field.", - "format": "int32" - } - }, - "description": "This type is used by each unique eBay marketplace and compliance type combination that is returned in the getListingViolationsSummary response to indicate the total number of listing violations in regards to that eBay marketplace and compliance type." - }, - "ComplianceViolation": { - "type": "object", - "properties": { - "complianceType": { - "type": "string", - "description": "This enumeration value indicates the compliance type of listing violation. See ComplianceTypeEnum for more information on each compliance type. This will always be returned for each listing violation that is found. For implementation help, refer to eBay API documentation" - }, - "listingId": { - "type": "string", - "description": "The unique identifier of the eBay listing that currently has the corresponding listing violation{s). This field will always be returned for each listing that has one or more violations." - }, - "sku": { - "type": "string", - "description": "The seller-defined SKU value of the product in the listing with the violation{s). This field is only returned if defined in the listing. SKU values are optional in listings except when creating listings using the Inventory API model." - }, - "offerId": { - "type": "string", - "description": "Note: This field is for future use, and will not be returned, even for listings created through the Inventory API. The unique identifier of the offer. This field is only applicable and returned for listings that were created through the Inventory API. To convert an Inventory Item object into an eBay listing, an Offer object must be created and published." - }, - "violations": { - "type": "array", - "description": "This container consists of an array of one or more listing violations applicable to the eBay listing specified in the listingId field. This array is returned for each eBay listing that has one or more violations. For each returned violation, the fields that are returned and the details that are given will depend on the listing violation.", - "items": { - "$ref": "#/components/schemas/ComplianceDetail" - } - } - }, - "description": "This type is used by each listing violation that is returned under the listingViolations container." - }, - "CorrectiveRecommendations": { - "type": "object", - "properties": { - "productRecommendation": { - "description": "This container is only applicable (and possibly returned) for the PRODUCT_ADOPTION and PRODUCT_ADOPTION_CONFORMANCE compliance types, and since eBay catalog product adoption is not enforced for any eBay category at this time, the productRecommendation container will not be returned at this time.", - "$ref": "#/components/schemas/ProductRecommendation" - }, - "aspectRecommendations": { - "type": "array", - "description": "This container is returned for ASPECTS_ADOPTION violations if eBay has found one or more item aspect name-value pairs that may be appropriate for the seller's product. In many cases, the missing or invalid item aspect(s) shown under the corresponding violationData array, will also show up under this array with suggested value(s).", - "items": { - "$ref": "#/components/schemas/AspectRecommendations" - } - } - }, - "description": "This type is used by the correctiveRecommendations container, which is returned if eBay has suggestions for how to correct the given violation." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of erro." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } - }, - "description": "This type defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } - } - }, - "NameValueList": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "This is the name of the variation aspect, or the name of the category of information that is returned through the name-value pair. The type of information that appears here will vary based on the compliance type and type of violation." - }, - "value": { - "type": "string", - "description": "This is the value of the variation aspect (in name field), or the value of the category of information that is returned through the name-value pair. The type of information that appears here will vary based on the compliance type and type of violation." - } - }, - "description": "This type is used to provide a name-value pair, including the identifying aspects of a product variation through the variationAspects container." - }, - "PagedComplianceViolationCollection": { - "type": "object", - "properties": { - "offset": { - "type": "integer", - "description": "This integer value shows the offset of the current page of results. The offset value controls the first listing violation in the result set that will be displayed at the top of the response. The offset and limit query parameters are used to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the call retrieves listing violations 11 thru 20 from the resulting collection of violations. Note: This feature employs a zero-based index, where the first item in the list has an offset of 0. Default: 0 {zero)", - "format": "int32" - }, - "href": { - "type": "string", - "description": "The URI of the getListingViolations call request that produced the current page of the result set." - }, - "total": { - "type": "integer", - "description": "The total number of listing violations in the result set. If this value is higher than the limit value, there are multiple pages in the result set to view.", - "format": "int32" - }, - "next": { - "type": "string", - "description": "The getListingViolations call URI to use to view the next page of the result set. For example, the following URI returns listing violations 21 thru 30 from the collection of policy violations: path/listing_violation?limit=10&offset=20 This field is only returned if an additional page of listing violations exists." - }, - "prev": { - "type": "string", - "description": "The getListingViolations call URI to use to view the previous page of the result set. For example, the following URI returns listing violations 1 thru 10 from the collection of policy violations: path/listing_violation?limit=10&offset=0 This field is only returned if an previous page of listing violations exists." - }, - "limit": { - "type": "integer", - "description": "The maximum number of listing violations returned per page of the result set. The limit and offset query parameters are used to control the pagination of the output. Note: If this is the last or only page in the result set, it may contain fewer listing violations than the limit value. To determine the number of pages in the result set, divide this value into the value of total and round up to the next integer. Default: 50 Max: 200", - "format": "int32" - }, - "listingViolations": { - "type": "array", - "description": "An array of listing violations that match the criteria in the call request, including pagination control {if set). As long as there is at least one listing violation that matches the input criteria, this container will be returned. If no listing violations are found for the seller, an HTTP status code of 204 No Content is returned, and there is no response body.", - "items": { - "$ref": "#/components/schemas/ComplianceViolation" - } - } - }, - "description": "This type is the base response type of the getListingViolations method." - }, - "ProductRecommendation": { - "type": "object", - "properties": { - "epid": { - "type": "string", - "description": "This field will return the eBay Product ID {ePID) of an eBay Catalog product that eBay recommends that the seller use to make their listing compliant. Note: Product Adoption is not enforced at this time. Product Adoption violations are no longer returned." - } - }, - "description": "This type is used by the productRecommendation container, which is returned if eBay has found an eBay catalog product that may be a match for the product (or product variation) that has a listing violation. Note: eBay catalog product adoption is not enforced at this time, so product adoption violations are no longer returned. Due to this fact, this type and productRecommendation container are not currently applicable." - }, - "SuppressViolationRequest": { - "type": "object", - "properties": { - "complianceType": { - "type": "string", - "description": "The compliance type of the listing violation to suppress is specified in this field. The compliance type for each listing violation is found in the complianceType field under the listingViolations array in a getListingViolations response. Note: At this time, the suppressViolation method is only used to suppress aspect adoption listing violations in the 'at-risk' state, so ASPECTS_ADOPTION is currently the only supported value for this field. For implementation help, refer to eBay API documentation" - }, - "listingId": { - "type": "string", - "description": "The unique identifier of the listing with the violation(s) is specified in this field. The unique identifier of the listing with the listing violation(s) is found in the listingId field under the listingViolations array in a getListingViolations response. Note: At this time, the suppressViolation method is only used to suppress aspect adoption listing violations in the 'at-risk' state, so the listing specified in this field should be a listing with an ASPECTS_ADOPTION violation in the 'at-risk' state." - } - }, - "description": "This is the base request type of the suppressViolation method, and is used to identify the listing violation that the seller wishes to suppress." - }, - "VariationDetails": { - "type": "object", - "properties": { - "sku": { - "type": "string", - "description": "The seller-defined SKU value of the variation within the multiple-variation listing with the violation{s). This field is only returned if a seller-defined SKU value is defined for the variation. SKU values are optional in listing except when creating listings using the Inventory API." - }, - "variationAspects": { - "type": "array", - "description": "An array of one or more variation aspects that define a variation within a multiple-variation listing. The aspect{s) returned here define the individual variation, because these aspects will differ for each variation. Common varying aspects include color and size.", - "items": { - "$ref": "#/components/schemas/NameValueList" - } - } - }, - "description": "This type is used to identify the product variation that has the listing violation." - } - }, - "securitySchemes": { - "api_auth": { - "type": "oauth2", - "description": "The security definitions for this API. Please check individual operations for applicable scopes.", - "flows": { - "authorizationCode": { - "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", - "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", - "scopes": { - "https://api.ebay.com/oauth/api_scope/sell.inventory": "View and manage your inventory and offers" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/specs/sell_feed_v1_oas3.json b/specs/sell_feed_v1_oas3.json index 668a64fc..206bfcf0 100644 --- a/specs/sell_feed_v1_oas3.json +++ b/specs/sell_feed_v1_oas3.json @@ -1,3455 +1,3462 @@ { - "openapi": "3.0.0", - "info": { - "title": "Feed API", - "description": "

The Feed API lets sellers upload input files, download reports and files including their status, filter reports using URI parameters, and retrieve customer service metrics task details.

", - "contact": { - "name": "eBay Inc," - }, - "license": { - "name": "eBay API License Agreement", - "url": "https://go.developer.ebay.com/api-license-agreement" - }, - "version": "v1.3.1" - }, - "servers": [ - { - "url": "https://api.ebay.com{basePath}", - "description": "Production", - "variables": { - "basePath": { - "default": "/sell/feed/v1" - } - } - } - ], - "paths": { - "/order_task": { - "get": { - "tags": [ - "order_task" - ], - "description": "This method returns the details and status for an array of order tasks based on a specified feed_type or schedule_id. Specifying both feed_type and schedule_id results in an error. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.

If specifying the feed_type, limit which order tasks are returned by specifying filters such as the creation date range or period of time using look_back_days.

If specifying a schedule_id, the schedule template (that the schedule_id is based on) determines which order tasks are returned (see schedule_id for additional information). Each schedule_id applies to one feed_type.", - "operationId": "getOrderTasks", - "parameters": [ - { - "name": "date_range", - "in": "query", - "description": "The order tasks creation date range. This range is used to filter the results. The filtered results are filtered to include only tasks with a creation date that is equal to this date or is within specified range. Only orders less than 90 days old can be retrieved. Do not use with the look_back_days parameter.

Format: UTC

For example:

Tasks within a range
yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on September 8, 2019
2019-09-08T00:00:00.000Z..2019-09-09T00:00:00.000Z
", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "feed_type", - "in": "query", - "description": "The feed type associated with the task. The only presently supported value is LMS_ORDER_REPORT. Do not use with the schedule_id parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The maximum number of order tasks that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves order tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500

", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "look_back_days", - "in": "query", - "description": "The number of previous days in which to search for tasks. Do not use with the date_range parameter. If both date_range and look_back_days are omitted, this parameter's default value is used.

Default: 7

Range: 1-90 (inclusive) ", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "The number of order tasks to skip in the result set before returning the first order in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "schedule_id", - "in": "query", - "description": "The schedule ID associated with the order task. A schedule periodically generates a report for the feed type specified by the schedule template (see scheduleTemplateId in createSchedule). Do not use with the feed_type parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OrderTaskCollection" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160004": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "You must submit either a 'feed_type' or 'schedule_id'." - }, - "160005": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Both 'feed_type' and 'schedule_id' were provided. Please remove one of them." - }, - "160006": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feed_type' {feedTypeValue} is invalid." - }, - "160007": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'schedule_id' {scheduleID} is invalid." - }, - "160008": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Both 'look_back_days' and 'date_range' were provided. Please remove one of them." - }, - "160009": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The format of the 'date_range' is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ." - }, - "160010": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'date_range' must be less than or equal to 90 days." - }, - "160011": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'look_back_days' value must be greater than zero and less than or equal to 90." - }, - "160012": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'limit' value must be greater than zero and less than or equal to 500." - }, - "160013": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value cannot be less than zero." - }, - "160029": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value must be a multiple of the 'limit' value." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.fulfillment" - ] - } - ] - }, - "post": { - "tags": [ - "order_task" - ], - "description": "This method creates an order download task with filter criteria for the order report. When using this method, specify the feedType, schemaVersion, and filterCriteria for the report. The method returns the location response header containing the getOrderTask call URI to retrieve the order task you just created. The URL includes the eBay-assigned task ID, which you can use to reference the order task.

To retrieve the status of the task, use the getOrderTask method to retrieve a single task ID or the getOrderTasks method to retrieve multiple order task IDs.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

The following list contains this method's authorization scope and its corresponding feed type:

  • https://api.ebay.com/oauth/api_scope/sell.fulfillment: LMS_ORDER_REPORT

For details about how this method is used, see General feed types in the Selling Integration Guide.

Note: At this time, the createOrderTask method only supports order creation date filters and not modified order date filters. Do not include the modifiedDateRange filter in your request payload.

", - "operationId": "createOrderTask", - "parameters": [ - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "The ID of the eBay marketplace where the item is hosted.

Note: This value is case sensitive.

For example:

X-EBAY-C-MARKETPLACE-ID:EBAY_US

This identifies the eBay marketplace that applies to this task. See MarketplaceIdEnum.

", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "description not needed", - "content": { - "application/json": { - "schema": { - "description": "description not needed", - "$ref": "#/components/schemas/CreateOrderTaskRequest" - } - } - }, - "required": true - }, - "responses": { - "202": { - "description": "Accepted" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160017": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feedType' is missing or invalid." - }, - "160018": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'schemaVersion' is invalid." - }, - "160019": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'filterCriteria' is invalid. {additionalInfo}" - }, - "160027": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID header is missing or invalid." - }, - "160030": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "This resource is not applicable for the feed type {feedTypeValue}. For more information, see the documentation for this API." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - }, - "160022": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "You are not allowed to access this resource. Contact eBay Developer Technical Support for assistance." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "160024": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "You have reached the maximum number of feed tasks that can be queued or processed concurrently. Wait for current tasks to complete before adding tasks. For more information, see the documentation for this API." - }, - "160025": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "You have exceeded the maximum number of records or tasks that can be created or processed in the period (hourly or daily). Wait until the present period ends before trying again. Please reference the API documentation for more information." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.fulfillment" - ] - } - ] - } - }, - "/order_task/{task_id}": { - "get": { - "tags": [ - "order_task" - ], - "description": "This method retrieves the task details and status of the specified task. The input is task_id.

For details about how this method is used, see Working with Order Feeds in the Selling Integration Guide.

", - "operationId": "getOrderTask", - "parameters": [ - { - "name": "task_id", - "in": "path", - "description": "The ID of the task. This ID is generated when the task was created by the createOrderTask method.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OrderTask" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160003": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Task {taskID} does not exist." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.fulfillment" - ] - } - ] - } - }, - "/inventory_task": { - "get": { - "tags": [ - "inventory_task" - ], - "description": "This method searches for multiple tasks of a specific feed type, and includes date filters and pagination.", - "operationId": "getInventoryTasks", - "parameters": [ - { - "name": "feed_type", - "in": "query", - "description": "The feed type associated with the inventory task. Either feed_type or schedule_id is required. Do not use with the schedule_id parameter. Presently, only one feed type is available:
  • LMS_ACTIVE_INVENTORY_REPORT
", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "schedule_id", - "in": "query", - "description": "The ID of the schedule for which to retrieve the latest result file. This ID is generated when the schedule was created by the createSchedule method. Schedules apply to downloaded reports (LMS_ACTIVE_INVENTORY_REPORT). Either schedule_id or feed_type is required. Do not use with the feed_type parameter.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "look_back_days", - "in": "query", - "description": "The number of previous days in which to search for tasks. Do not use with the date_range parameter. If both date_range and look_back_days are omitted, this parameter's default value is used.

Default: 7

Range: 1-90 (inclusive)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "date_range", - "in": "query", - "description": "Specifies the range of task creation dates used to filter the results. The results are filtered to include only tasks with a creation date that is equal to this date or is within specified range.

Note: Maximum date range window size is 90 days.


Valid Format (UTC): yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

For example: Tasks created on March 31, 2021
2021-03-31T00:00:00.000Z..2021-03-31T00:00:00.000Z

", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The maximum number of tasks that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "The number of tasks to skip in the result set before returning the first task in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InventoryTaskCollection" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160004": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "You must submit either a 'feed_type' or 'schedule_id'." - }, - "160005": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Both 'feed_type' and 'schedule_id' were provided. Please remove one of them." - }, - "160006": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feed_type' {feedTypeValue} is invalid." - }, - "160007": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'schedule_id' {scheduleID} is invalid." - }, - "160008": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Both 'look_back_days' and 'date_range' were provided. Please remove one of them." - }, - "160009": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The format of the 'date_range' is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.sssZ..yyyy-MM-ddThh:mm:ss.sssZ." - }, - "160010": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'date_range' must be less than or equal to 90 days." - }, - "160011": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'look_back_days' value must be greater than zero and less than or equal to 90." - }, - "160012": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'limit' value must be greater than zero and less than or equal to 500." - }, - "160013": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value cannot be less than zero." - }, - "160029": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value must be a multiple of the 'limit' value." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - }, - "post": { - "tags": [ - "inventory_task" - ], - "description": "This method creates an inventory-related download task for a specified feed type with optional filter criteria. When using this method, specify the feedType.

This method returns the location response header containing the getInventoryTask call URI to retrieve the inventory task you just created. The URL includes the eBay-assigned task ID, which you can use to reference the inventory task.

To retrieve the status of the task, use the getInventoryTask method to retrieve a single task ID or the getInventoryTasks method to retrieve multiple task IDs.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

Presently, this method supports Active Inventory Report. The ActiveInventoryReport returns a report that contains price and quantity information for all of the active listings for a specific seller. A seller can use this information to maintain their inventory on eBay.", - "operationId": "createInventoryTask", - "parameters": [ - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "The ID of the eBay marketplace where the item is hosted.

Note: This value is case sensitive.

For example:

X-EBAY-C-MARKETPLACE-ID:EBAY_US

This identifies the eBay marketplace that applies to this task. See MarketplaceIdEnum.

", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The request payload containing the version, feedType, and optional filterCriteria.", - "content": { - "application/json": { - "schema": { - "description": "The request payload containing the version, feedType, and optional filterCriteria.", - "$ref": "#/components/schemas/CreateInventoryTaskRequest" - } - } - }, - "required": true - }, - "responses": { - "202": { - "description": "Accepted" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160017": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feedType' is missing or invalid." - }, - "160018": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'schemaVersion' is invalid." - }, - "160019": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'filterCriteria' is invalid. {additionalInfo}" - }, - "160027": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID header is missing or invalid." - }, - "160030": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "This resource is not applicable for the feed type {feedTypeValue}. For more information, see the documentation for this API." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - }, - "160022": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "You are not allowed to access this resource. Contact eBay Developer Technical Support for assistance." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "160024": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "You have reached the maximum number of feed tasks that can be queued or processed concurrently. Wait for current tasks to complete before adding tasks. For more information, see the documentation for this API." - }, - "160025": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "You have exceeded the maximum number of records or tasks that can be created or processed in the period (hourly or daily). Wait until the present period ends before trying again. Please reference the API documentation for more information." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } + "openapi": "3.0.0", + "info": { + "title": "Feed API", + "description": "

The Feed API lets sellers upload input files, download reports and files including their status, filter reports using URI parameters, and retrieve customer service metrics task details.

", + "contact": { + "name": "eBay Inc," }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - } - }, - "/inventory_task/{task_id}": { - "get": { - "tags": [ - "inventory_task" - ], - "description": "This method retrieves the task details and status of the specified inventory-related task. The input is task_id.", - "operationId": "getInventoryTask", - "parameters": [ - { - "name": "task_id", - "in": "path", - "description": "The ID of the task. This ID was generated when the task was created by the createInventoryTask method", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InventoryTask" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160003": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Task {taskID} does not exist." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } + "license": { + "name": "eBay API License Agreement", + "url": "https://developer.ebay.com/join/api-license-agreement" }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory" - ] - } - ] - } + "version": "v1.3.1" }, - "/schedule": { - "get": { - "tags": [ - "schedule" - ], - "description": "This method retrieves an array containing the details and status of all schedules based on the specified feed_type. Use this method to find a schedule if you do not know the schedule_id.", - "operationId": "getSchedules", - "parameters": [ - { - "name": "feed_type", - "in": "query", - "description": "The feedType associated with the schedule.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The maximum number of schedules that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves schedules 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "The number of schedules to skip in the result set before returning the first schedule in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserScheduleCollection" + "servers": [ + { + "url": "https://api.ebay.com{basePath}", + "description": "Production", + "variables": { + "basePath": { + "default": "/sell/feed/v1" } - } } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160012": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'limit' value must be greater than zero and less than or equal to 500." - }, - "160013": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value cannot be less than zero." - }, - "160017": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feedType' is missing or invalid." - }, - "160029": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value must be a multiple of the 'limit' value." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - }, - "post": { - "tags": [ - "schedule" - ], - "description": "This method creates a schedule, which is a subscription to the specified schedule template. A schedule periodically generates a report for the feedType specified by the template. Specify the same feedType as the feedType of the associated schedule template. When creating the schedule, if available from the template, you can specify a preferred trigger hour, day of the week, or day of the month. These and other fields are conditionally available as specified by the template.

Note: Make sure to include all fields required by the schedule template (scheduleTemplateId). Call the getScheduleTemplate method (or the getScheduleTemplates method), to find out which fields are required or optional. If a field is optional and a default value is provided by the template, the default value will be used if omitted from the payload.

A successful call returns the location response header containing the getSchedule call URI to retrieve the schedule you just created. The URL includes the eBay-assigned schedule ID, which you can use to reference the schedule task.

To retrieve the details of the create schedule task, use the getSchedule method for a single schedule ID or the getSchedules method to retrieve all schedule details for the specified feed_type. The number of schedules for each feedType is limited. Error code 160031 is returned when you have reached this maximum.

Note: Except for schedules with a HALF-HOUR frequency, all schedules will ideally run at the start of each hour ('00' minutes). Actual start time may vary time may vary due to load and other factors.

", - "operationId": "createSchedule", - "requestBody": { - "description": "In the request payload: feedType and scheduleTemplateId are required; scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.", - "content": { - "application/json": { - "schema": { - "description": "In the request payload: feedType and scheduleTemplateId are required; scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.", - "$ref": "#/components/schemas/CreateUserScheduleRequest" - } - } - }, - "required": true - }, - "responses": { - "201": { - "description": "Created", - "headers": { - "Location": { - "schema": { - "type": "string", - "description": "The URL of the schedule, which includes the id." - } - } + } + ], + "paths": { + "/order_task": { + "get": { + "tags": [ + "order_task" + ], + "description": "This method returns the details and status for an array of order tasks based on a specified feed_type or schedule_id. Specifying both feed_type and schedule_id results in an error. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.

If specifying the feed_type, limit which order tasks are returned by specifying filters such as the creation date range or period of time using look_back_days.

If specifying a schedule_id, the schedule template (that the schedule_id is based on) determines which order tasks are returned (see schedule_id for additional information). Each schedule_id applies to one feed_type.", + "operationId": "getOrderTasks", + "parameters": [ + { + "name": "date_range", + "in": "query", + "description": "The order tasks creation date range. This range is used to filter the results. The filtered results are filtered to include only tasks with a creation date that is equal to this date or is within specified range. Only orders less than 90 days old can be retrieved. Do not use with the look_back_days parameter.

Format: UTC

For example:

Tasks within a range
yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on September 8, 2019
2019-09-08T00:00:00.000Z..2019-09-09T00:00:00.000Z
", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "feed_type", + "in": "query", + "description": "The feed type associated with the order tasks being retrieved. The only presently supported value is LMS_ORDER_REPORT

See Report download feed types for more information.

Note: Do not use with the schedule_id parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The maximum number of order tasks that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves order tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500

", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "look_back_days", + "in": "query", + "description": "The number of previous days in which to search for tasks. Do not use with the date_range parameter. If both date_range and look_back_days are omitted, this parameter's default value is used.

Default: 7

Range: 1-90 (inclusive) ", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "The number of order tasks to skip in the result set before returning the first order in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "schedule_id", + "in": "query", + "description": "The schedule ID associated with the order tasks being retrieved. A schedule periodically generates a report, and these schedules can be created with the createSchedule method.

Note: Do not use with the feed_type parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.
Use the getSchedules method to retrieve schedule IDs.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderTaskCollection" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160004": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "You must submit either a 'feed_type' or 'schedule_id'." + }, + "160005": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Both 'feed_type' and 'schedule_id' were provided. Please remove one of them." + }, + "160006": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feed_type' {feedTypeValue} is invalid." + }, + "160007": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'schedule_id' {scheduleID} is invalid." + }, + "160008": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Both 'look_back_days' and 'date_range' were provided. Please remove one of them." + }, + "160009": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The format of the 'date_range' is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ." + }, + "160010": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'date_range' must be less than or equal to 90 days." + }, + "160011": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'look_back_days' value must be greater than zero and less than or equal to 90." + }, + "160012": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'limit' value must be greater than zero and less than or equal to 500." + }, + "160013": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value cannot be less than zero." + }, + "160029": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value must be a multiple of the 'limit' value." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.fulfillment" + ] + } + ] }, - "content": { - "application/json": { - "schema": { - "type": "object" - } - } + "post": { + "tags": [ + "order_task" + ], + "description": "This method creates an order download task with filter criteria for the order report. When using this method, specify the feedType, schemaVersion, and filterCriteria for the report. The method returns the location response header containing the getOrderTask call URI to retrieve the order task you just created. The URL includes the eBay-assigned task ID, which you can use to reference the order task.

To retrieve the status of the task, use the getOrderTask method to retrieve a single task ID or the getOrderTasks method to retrieve multiple order task IDs.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

The following list contains this method's authorization scope and its corresponding feed type:

  • https://api.ebay.com/oauth/api_scope/sell.fulfillment: LMS_ORDER_REPORT

For details about how this method is used, see General feed types in the Selling Integration Guide.

Note: At this time, the createOrderTask method only supports order creation date filters and not modified order date filters. Do not include the modifiedDateRange filter in your request payload.

", + "operationId": "createOrderTask", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "description not needed", + "content": { + "application/json": { + "schema": { + "description": "description not needed", + "$ref": "#/components/schemas/CreateOrderTaskRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Accepted" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160017": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feedType' is missing or invalid." + }, + "160018": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'schemaVersion' is invalid." + }, + "160019": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'filterCriteria' is invalid. {additionalInfo}" + }, + "160027": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID header is missing or invalid." + }, + "160030": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "This resource is not applicable for the feed type {feedTypeValue}. For more information, see the documentation for this API." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + }, + "160022": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "You are not allowed to access this resource. Contact eBay Developer Technical Support for assistance." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "160024": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "You have reached the maximum number of feed tasks that can be queued or processed concurrently. Wait for current tasks to complete before adding tasks. For more information, see the documentation for this API." + }, + "160025": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "You have exceeded the maximum number of records or tasks that can be created or processed in the period (hourly or daily). Wait until the present period ends before trying again. Please reference the API documentation for more information." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.fulfillment" + ] + } + ] } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160017": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feedType' is missing or invalid." - }, - "160032": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'scheduleTemplateId' is invalid. Call the getScheduleTemplates method to get the available schedule templates." - }, - "160033": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feedType' is not associated with the 'scheduleTemplateId'. Please provide a 'feedType' that matches the 'scheduleTemplateId'. Call the getScheduleTemplates method to get the available schedule templates." - }, - "160034": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The '{fieldName}' is invalid, missing, or not allowed." - }, - "160036": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The '{fieldName}' is in the past." - }, - "160037": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'scheduleEndDate' is before 'scheduleStartDate'." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - }, - "160022": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "You are not allowed to access this resource. Contact eBay Developer Technical Support for assistance." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "160031": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "You have reached the maximum number of subscribed schedules for the 'feedType' {feedType}. To subscribe to another schedule, you must delete one." - }, - "160035": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "Duplicate schedule (a matching schedule already exists). Use the getSchedules method to see the existing schedules." - }, - "160040": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "The 'scheduleTemplateId' is inactive. You cannot create or modify a schedule with an inactive 'scheduleTemplateId'." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/schedule/{schedule_id}": { - "get": { - "tags": [ - "schedule" - ], - "description": "This method retrieves schedule details and status of the specified schedule. Specify the schedule to retrieve using the schedule_id. Use the getSchedules method to find a schedule if you do not know the schedule_id.", - "operationId": "getSchedule", - "parameters": [ - { - "name": "schedule_id", - "in": "path", - "description": "The ID of the schedule for which to retrieve the details. This ID is generated when the schedule was created by the createSchedule method.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserScheduleResponse" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160038": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The schedule id {schedule_id} does not exist." - } - } + "/order_task/{task_id}": { + "get": { + "tags": [ + "order_task" + ], + "description": "This method retrieves the task details and status of the specified task. The input is task_id.

For details about how this method is used, see Working with Order Feeds in the Selling Integration Guide.

", + "operationId": "getOrderTask", + "parameters": [ + { + "name": "task_id", + "in": "path", + "description": "This path parameter is the unique identifier of the order task being retrieved.

Use the getOrderTasks method to retrieve order task IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderTask" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160003": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Task {taskID} does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.fulfillment" + ] + } + ] } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - }, - "put": { - "tags": [ - "schedule" - ], - "description": "This method updates an existing schedule. Specify the schedule to update using the schedule_id path parameter. If the schedule template has changed after the schedule was created or updated, the input will be validated using the changed template.

Note: Make sure to include all fields required by the schedule template (scheduleTemplateId). Call the getScheduleTemplate method (or the getScheduleTemplates method), to find out which fields are required or optional. If you do not know the scheduleTemplateId, call the getSchedule method to find out.

", - "operationId": "updateSchedule", - "parameters": [ - { - "name": "schedule_id", - "in": "path", - "description": "The ID of the schedule to update. This ID is generated when the schedule was created by the createSchedule method.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "In the request payload: scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.", - "content": { - "application/json": { - "schema": { - "description": "In the request payload: scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.", - "$ref": "#/components/schemas/UpdateUserScheduleRequest" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160034": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The '{fieldName}' is invalid, missing, or not allowed." - }, - "160036": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The '{fieldName}' is in past." - }, - "160037": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'scheduleEndDate' is before 'scheduleStartDate'." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160038": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The schedule id {schedule_id} does not exist." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "160040": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "The 'scheduleTemplateId' is inactive. You cannot create or modify a schedule with an inactive 'scheduleTemplateId'." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - }, - "delete": { - "tags": [ - "schedule" - ], - "description": "This method deletes an existing schedule. Specify the schedule to delete using the schedule_id path parameter.", - "operationId": "deleteSchedule", - "parameters": [ - { - "name": "schedule_id", - "in": "path", - "description": "The schedule_id of the schedule to delete. This ID was generated when the task was created. If you do not know the schedule_id, use the getSchedules method to return all schedules based on a specified feed_type and find the schedule_id of the schedule to delete.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160038": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The schedule id {schedule_id} does not exist." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/schedule/{schedule_id}/download_result_file": { - "get": { - "tags": [ - "schedule" - ], - "description": "This method downloads the latest result file generated by the schedule. The response of this call is a compressed or uncompressed CSV, XML, or JSON file, with the applicable file extension (for example: csv.gz). Specify the schedule_id path parameter to download its last generated file.", - "operationId": "getLatestResultFile", - "parameters": [ - { - "name": "schedule_id", - "in": "path", - "description": "The ID of the schedule for which to retrieve the latest result file. This ID is generated when the schedule was created by the createSchedule method.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "headers": { - "content-disposition": { - "schema": { - "type": "string", - "description": "It contains the file metadata like file name." - } - } + "/inventory_task": { + "get": { + "tags": [ + "inventory_task" + ], + "description": "This method searches for multiple tasks of a specific feed type, and includes date filters and pagination.", + "operationId": "getInventoryTasks", + "parameters": [ + { + "name": "feed_type", + "in": "query", + "description": "The feed type associated with the inventory tasks being retrieved. Presently, only one feed type is available:
  • LMS_ACTIVE_INVENTORY_REPORT
See Report value feed types for more information.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "schedule_id", + "in": "query", + "description": "Note: Schedule functionality for ActiveInventoryReport is currently unavailable, so this field is not usable.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "look_back_days", + "in": "query", + "description": "The number of previous days in which to search for tasks. Do not use with the date_range parameter. If both date_range and look_back_days are omitted, this parameter's default value is used.

Default: 7

Range: 1-90 (inclusive)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "date_range", + "in": "query", + "description": "Specifies the range of task creation dates used to filter the results. The results are filtered to include only tasks with a creation date that is equal to this date or is within specified range.

Note: Maximum date range window size is 90 days.


Valid Format (UTC): yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

For example: Tasks created on March 31, 2021
2021-03-31T00:00:00.000Z..2021-03-31T00:00:00.000Z

", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The maximum number of tasks that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "The number of tasks to skip in the result set before returning the first task in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InventoryTaskCollection" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160004": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "You must submit either a 'feed_type' or 'schedule_id'." + }, + "160005": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Both 'feed_type' and 'schedule_id' were provided. Please remove one of them." + }, + "160006": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feed_type' {feedTypeValue} is invalid." + }, + "160007": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'schedule_id' {scheduleID} is invalid." + }, + "160008": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Both 'look_back_days' and 'date_range' were provided. Please remove one of them." + }, + "160009": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The format of the 'date_range' is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.sssZ..yyyy-MM-ddThh:mm:ss.sssZ." + }, + "160010": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'date_range' must be less than or equal to 90 days." + }, + "160011": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'look_back_days' value must be greater than zero and less than or equal to 90." + }, + "160012": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'limit' value must be greater than zero and less than or equal to 500." + }, + "160013": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value cannot be less than zero." + }, + "160029": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value must be a multiple of the 'limit' value." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] }, - "content": { - "application/octet-stream": { - "schema": { - "$ref": "#/components/schemas/StreamingOutput" - } - } + "post": { + "tags": [ + "inventory_task" + ], + "description": "This method creates an inventory-related download task for a specified feed type with optional filter criteria. When using this method, specify the feedType.

This method returns the location response header containing the getInventoryTask call URI to retrieve the inventory task you just created. The URL includes the eBay-assigned task ID, which you can use to reference the inventory task.

To retrieve the status of the task, use the getInventoryTask method to retrieve a single task ID or the getInventoryTasks method to retrieve multiple task IDs.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

Presently, this method supports Active Inventory Report. The ActiveInventoryReport returns a report that contains price and quantity information for all of the active listings for a specific seller. A seller can use this information to maintain their inventory on eBay.", + "operationId": "createInventoryTask", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The request payload containing the version, feedType, and optional filterCriteria.", + "content": { + "application/json": { + "schema": { + "description": "The request payload containing the version, feedType, and optional filterCriteria.", + "$ref": "#/components/schemas/CreateInventoryTaskRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Accepted" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160017": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feedType' is missing or invalid." + }, + "160018": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'schemaVersion' is invalid." + }, + "160019": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'filterCriteria' is invalid. {additionalInfo}" + }, + "160027": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID header is missing or invalid." + }, + "160030": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "This resource is not applicable for the feed type {feedTypeValue}. For more information, see the documentation for this API." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + }, + "160022": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "You are not allowed to access this resource. Contact eBay Developer Technical Support for assistance." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "160024": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "You have reached the maximum number of feed tasks that can be queued or processed concurrently. Wait for current tasks to complete before adding tasks. For more information, see the documentation for this API." + }, + "160025": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "You have exceeded the maximum number of records or tasks that can be created or processed in the period (hourly or daily). Wait until the present period ends before trying again. Please reference the API documentation for more information." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] } - }, - "400": { - "description": "Bad Request" - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160021": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "No file found for 'schedule_id' {scheduleID}." - }, - "160038": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The schedule id {schedule_id} does not exist." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/schedule_template/{schedule_template_id}": { - "get": { - "tags": [ - "schedule" - ], - "description": "This method retrieves the details of the specified template. Specify the template to retrieve using the schedule_template_id path parameter. Use the getScheduleTemplates method to find a schedule template if you do not know the schedule_template_id.", - "operationId": "getScheduleTemplate", - "parameters": [ - { - "name": "schedule_template_id", - "in": "path", - "description": "The ID of the template to retrieve. If you do not know the schedule_template_id, refer to the documentation or use the getScheduleTemplates method to find the available schedule templates.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ScheduleTemplateResponse" - } - } + "/inventory_task/{task_id}": { + "get": { + "tags": [ + "inventory_task" + ], + "description": "This method retrieves the task details and status of the specified inventory-related task. The input is task_id.", + "operationId": "getInventoryTask", + "parameters": [ + { + "name": "task_id", + "in": "path", + "description": "This path parameter is the unique identifier of the inventory task being retrieved.

Use the getInventoryTasks method to retrieve inventory task IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InventoryTask" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160003": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Task {taskID} does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory" + ] + } + ] } - }, - "400": { - "description": "Bad Request" - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160039": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The schedule template id {schedule_template_id} does not exist. Please provide a valid schedule template id as contained in the documentation or by calling the getScheduleTemplates method." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/schedule_template": { - "get": { - "tags": [ - "schedule" - ], - "description": "This method retrieves an array containing the details and status of all schedule templates based on the specified feed_type. Use this method to find a schedule template if you do not know the schedule_template_id.", - "operationId": "getScheduleTemplates", - "parameters": [ - { - "name": "feed_type", - "in": "query", - "description": "The feed type of the schedule templates to retrieve.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The maximum number of schedule templates that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves schedule templates 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "The number of schedule templates to skip in the result set before returning the first template in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ScheduleTemplateCollection" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160012": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'limit' value must be greater than zero and less than or equal to 500." - }, - "160013": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value cannot be less than zero." - }, - "160017": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feedType' is missing or invalid." - }, - "160029": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value must be a multiple of the 'limit' value." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } + "/schedule": { + "get": { + "tags": [ + "schedule" + ], + "description": "This method retrieves an array containing the details and status of all schedules based on the specified feed_type. Use this method to find a schedule if you do not know the schedule_id.", + "operationId": "getSchedules", + "parameters": [ + { + "name": "feed_type", + "in": "query", + "description": "The feed type associated with the schedules being retrieved.

Note: Schedules are currently only available for LMS_ORDER_REPORT.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The maximum number of schedules that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves schedules 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "The number of schedules to skip in the result set before returning the first schedule in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserScheduleCollection" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160012": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'limit' value must be greater than zero and less than or equal to 500." + }, + "160013": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value cannot be less than zero." + }, + "160017": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feedType' is missing or invalid." + }, + "160029": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value must be a multiple of the 'limit' value." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] + }, + "post": { + "tags": [ + "schedule" + ], + "description": "This method creates a schedule, which is a subscription to the specified schedule template. A schedule periodically generates a report for the feedType specified by the template. Specify the same feedType as the feedType of the associated schedule template. When creating the schedule, if available from the template, you can specify a preferred trigger hour, day of the week, or day of the month. These and other fields are conditionally available as specified by the template.

Note: Make sure to include all fields required by the schedule template (scheduleTemplateId). Call the getScheduleTemplate method (or the getScheduleTemplates method), to find out which fields are required or optional. If a field is optional and a default value is provided by the template, the default value will be used if omitted from the payload.

A successful call returns the location response header containing the getSchedule call URI to retrieve the schedule you just created. The URL includes the eBay-assigned schedule ID, which you can use to reference the schedule task.

To retrieve the details of the create schedule task, use the getSchedule method for a single schedule ID or the getSchedules method to retrieve all schedule details for the specified feed_type. The number of schedules for each feedType is limited. Error code 160031 is returned when you have reached this maximum.

Note: Except for schedules with a HALF-HOUR frequency, all schedules will ideally run at the start of each hour ('00' minutes). Actual start time may vary time may vary due to load and other factors.

", + "operationId": "createSchedule", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "In the request payload: feedType and scheduleTemplateId are required; scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.", + "content": { + "application/json": { + "schema": { + "description": "In the request payload: feedType and scheduleTemplateId are required; scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.", + "$ref": "#/components/schemas/CreateUserScheduleRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created", + "headers": { + "Location": { + "schema": { + "type": "string", + "description": "The URL of the schedule, which includes the id." + } + } + }, + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160017": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feedType' is missing or invalid." + }, + "160032": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'scheduleTemplateId' is invalid. Call the getScheduleTemplates method to get the available schedule templates." + }, + "160033": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feedType' is not associated with the 'scheduleTemplateId'. Please provide a 'feedType' that matches the 'scheduleTemplateId'. Call the getScheduleTemplates method to get the available schedule templates." + }, + "160034": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The '{fieldName}' is invalid, missing, or not allowed." + }, + "160036": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The '{fieldName}' is in the past." + }, + "160037": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'scheduleEndDate' is before 'scheduleStartDate'." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + }, + "160022": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "You are not allowed to access this resource. Contact eBay Developer Technical Support for assistance." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "160031": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "You have reached the maximum number of subscribed schedules for the 'feedType' {feedType}. To subscribe to another schedule, you must delete one." + }, + "160035": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "Duplicate schedule (a matching schedule already exists). Use the getSchedules method to see the existing schedules." + }, + "160040": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "The 'scheduleTemplateId' is inactive. You cannot create or modify a schedule with an inactive 'scheduleTemplateId'." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/task": { - "get": { - "tags": [ - "task" - ], - "description": "This method returns the details and status for an array of tasks based on a specified feed_type or scheduledId. Specifying both feed_type and scheduledId results in an error. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.

If specifying the feed_type, limit which tasks are returned by specifying filters, such as the creation date range or period of time using look_back_days. Also, by specifying the feed_type, both on-demand and scheduled reports are returned.

If specifying a scheduledId, the schedule template (that the schedule ID is based on) determines which tasks are returned (see schedule_id for additional information). Each scheduledId applies to one feed_type. ", - "operationId": "getTasks", - "parameters": [ - { - "name": "date_range", - "in": "query", - "description": "Specifies the range of task creation dates used to filter the results. The results are filtered to include only tasks with a creation date that is equal to this date or is within specified range. Only tasks that are less than 90 days can be retrieved.

Note: Maximum date range window size is 90 days.


Valid Format (UTC):yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

For example: Tasks created on September 8, 2019
2019-09-08T00:00:00.000Z..2019-09-09T00:00:00.000Z", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "feed_type", - "in": "query", - "description": "The feed type associated with the tasks to be returned. Only use a feedType that is available for your API:
  • Order Feeds: LMS_ORDER_ACK, LMS_ORDER_REPORT
  • Large Merchant Services (LMS) Feeds: See Available FeedTypes

Do not use with the schedule_id parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The maximum number of tasks that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "look_back_days", - "in": "query", - "description": "The number of previous days in which to search for tasks. Do not use with the date_range parameter. If both date_range and look_back_days are omitted, this parameter's default value is used.

Default: 7

Range: 1-90 (inclusive)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "The number of tasks to skip in the result set before returning the first task in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "schedule_id", - "in": "query", - "description": "The schedule ID associated with the task. A schedule periodically generates a report for the feed type specified by the schedule template (see scheduleTemplateId in createSchedule). Do not use with the feed_type parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TaskCollection" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160004": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "You must submit either a 'feed_type' or 'schedule_id'." - }, - "160005": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Both 'feed_type' and 'schedule_id' were provided. Please remove one of them." - }, - "160006": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feed_type' {feedTypeValue} is invalid." - }, - "160007": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'schedule_id' {scheduleID} is invalid." - }, - "160008": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Both 'look_back_days' and 'date_range' were provided. Please remove one of them." - }, - "160009": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The format of the 'date_range' is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ." - }, - "160010": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'date_range' must be less than or equal to 90 days." - }, - "160011": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'look_back_days' value must be greater than zero and less than or equal to 90." - }, - "160012": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'limit' value must be greater than zero and less than or equal to 500." - }, - "160013": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value cannot be less than zero." - }, - "160016": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'date_range' value is not valid. Ensure that the beginning of the range is before the end of the range." - }, - "160029": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value must be a multiple of the 'limit' value." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } + "/schedule/{schedule_id}": { + "get": { + "tags": [ + "schedule" + ], + "description": "This method retrieves schedule details and status of the specified schedule. Specify the schedule to retrieve using the schedule_id. Use the getSchedules method to find a schedule if you do not know the schedule_id.", + "operationId": "getSchedule", + "parameters": [ + { + "name": "schedule_id", + "in": "path", + "description": "This path parameter is the unique identifier of the schedule for which to retrieve details.

Use the getSchedules method to retrieve schedule IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserScheduleResponse" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160038": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The schedule id {schedule_id} does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] + }, + "put": { + "tags": [ + "schedule" + ], + "description": "This method updates an existing schedule. Specify the schedule to update using the schedule_id path parameter. If the schedule template has changed after the schedule was created or updated, the input will be validated using the changed template.

Note: Make sure to include all fields required by the schedule template (scheduleTemplateId). Call the getScheduleTemplate method (or the getScheduleTemplates method), to find out which fields are required or optional. If you do not know the scheduleTemplateId, call the getSchedule method to find out.

", + "operationId": "updateSchedule", + "parameters": [ + { + "name": "schedule_id", + "in": "path", + "description": "This path parameter is the unique identifier of the schedule being updated.

Use the getSchedules method to retrieve schedule IDs.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "In the request payload: scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.", + "content": { + "application/json": { + "schema": { + "description": "In the request payload: scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.", + "$ref": "#/components/schemas/UpdateUserScheduleRequest" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160034": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The '{fieldName}' is invalid, missing, or not allowed." + }, + "160036": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The '{fieldName}' is in past." + }, + "160037": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'scheduleEndDate' is before 'scheduleStartDate'." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160038": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The schedule id {schedule_id} does not exist." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "160040": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "The 'scheduleTemplateId' is inactive. You cannot create or modify a schedule with an inactive 'scheduleTemplateId'." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] + }, + "delete": { + "tags": [ + "schedule" + ], + "description": "This method deletes an existing schedule. Specify the schedule to delete using the schedule_id path parameter.", + "operationId": "deleteSchedule", + "parameters": [ + { + "name": "schedule_id", + "in": "path", + "description": "This path parameter is the unique identifier of the schedule being deleted.

Use the getSchedules method to retrieve schedule IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160038": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The schedule id {schedule_id} does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - }, - "post": { - "tags": [ - "task" - ], - "description": "This method creates an upload task or a download task without filter criteria. When using this method, specify the feedType and the feed file schemaVersion. The feed type specified sets the task as a download or an upload task.

For details about the upload and download flows, see Working with Order Feeds in the Selling Integration Guide.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

The following list contains this method's authorization scopes and their corresponding feed types:

  • https://api.ebay.com/oauth/api_scope/sell.inventory: See LMS FeedTypes
  • https://api.ebay.com/oauth/api_scope/sell.fulfillment: LMS_ORDER_ACK (specify for upload tasks). Also see LMS FeedTypes
  • https://api.ebay.com/oauth/api_scope/sell.marketing: None*
  • https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly: None*

* Reserved for future release

", - "operationId": "createTask", - "parameters": [ - { - "name": "X-EBAY-C-MARKETPLACE-ID", - "in": "header", - "description": "The ID of the eBay marketplace where the item is hosted.

Note: This value is case sensitive.

For example:

X-EBAY-C-MARKETPLACE-ID:EBAY_US

This identifies the eBay marketplace that applies to this task. See MarketplaceIdEnum.

", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "description not needed", - "content": { - "application/json": { - "schema": { - "description": "description not needed", - "$ref": "#/components/schemas/CreateTaskRequest" - } + "/schedule/{schedule_id}/download_result_file": { + "get": { + "tags": [ + "schedule" + ], + "description": "This method downloads the latest Order Report generated by the schedule. The response of this call is a compressed or uncompressed CSV, XML, or JSON file, with the applicable file extension (for example: csv.gz). Specify the schedule_id path parameter to download its last generated file.", + "operationId": "getLatestResultFile", + "parameters": [ + { + "name": "schedule_id", + "in": "path", + "description": "This path parameter is the unique identifier of the schedule for which to retrieve the latest Order Report.

Use the getSchedules method to retrieve schedule IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "content-disposition": { + "schema": { + "type": "string", + "description": "It contains the file metadata like file name." + } + } + }, + "content": { + "application/octet-stream": { + "schema": { + "$ref": "#/components/schemas/StreamingOutput" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160021": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "No file found for 'schedule_id' {scheduleID}." + }, + "160038": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The schedule id {schedule_id} does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "required": true }, - "responses": { - "202": { - "description": "Accepted" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160017": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feedType' is missing or invalid." - }, - "160018": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'schemaVersion' is invalid." - }, - "160027": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The X-EBAY-C-MARKETPLACE-ID header is missing or invalid." - }, - "160030": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "This resource is not applicable for the feed type {feedTypeValue}. For more information, see the documentation for this API." - } - } + "/schedule_template/{schedule_template_id}": { + "get": { + "tags": [ + "schedule" + ], + "description": "This method retrieves the details of the specified template. Specify the template to retrieve using the schedule_template_id path parameter. Use the getScheduleTemplates method to find a schedule template if you do not know the schedule_template_id.", + "operationId": "getScheduleTemplate", + "parameters": [ + { + "name": "schedule_template_id", + "in": "path", + "description": "This path parameter is the unique identifier of the schedule template being retrieved.

Use the getScheduleTemplates method to retrieve schedule template IDs.

Note: Template schedules are currently only available for LMS_ORDER_REPORT.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScheduleTemplateResponse" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160039": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The schedule template id {schedule_template_id} does not exist. Please provide a valid schedule template id as contained in the documentation or by calling the getScheduleTemplates method." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - }, - "160022": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "You are not allowed to access this resource. Contact eBay Developer Technical Support for assistance." - } - } - } - }, - "409": { - "description": "Conflict", - "x-response-codes": { - "errors": { - "160024": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "You have reached the maximum number of feed tasks that can be queued or processed concurrently. Wait for current tasks to complete before adding tasks. For more information, see the documentation for this API." - }, - "160025": { - "domain": "API_FEED", - "category": "BUSINESS", - "description": "You have exceeded the maximum number of records or tasks that can be created or processed in the period (hourly or daily). Wait until the present period ends before trying again. Please reference the API documentation for more information." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/task/{task_id}/download_input_file": { - "get": { - "tags": [ - "task" - ], - "description": "This method downloads the file previously uploaded using uploadFile. Specify the task_id from the uploadFile call.

Note: With respect to LMS, this method applies to all feed types except LMS_ORDER_REPORT and LMS_ACTIVE_INVENTORY_REPORT. See LMS API Feeds in the Selling Integration Guide.

", - "operationId": "getInputFile", - "parameters": [ - { - "name": "task_id", - "in": "path", - "description": "The task ID associated with the file to be downloaded.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "headers": { - "content-disposition": { - "schema": { - "type": "string", - "description": "Returns metadata for the downloaded file." - } - } - }, - "content": { - "application/octet-stream": { - "schema": { - "$ref": "#/components/schemas/StreamingOutput" - } - } + "/schedule_template": { + "get": { + "tags": [ + "schedule" + ], + "description": "This method retrieves an array containing the details and status of all schedule templates based on the specified feed_type. Use this method to find a schedule template if you do not know the schedule_template_id.", + "operationId": "getScheduleTemplates", + "parameters": [ + { + "name": "feed_type", + "in": "query", + "description": "The feed type of the schedule templates to retrieve.

Note: Schedules are currently only available for LMS_ORDER_REPORT.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The maximum number of schedule templates that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves schedule templates 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "The number of schedule templates to skip in the result set before returning the first template in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScheduleTemplateCollection" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160012": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'limit' value must be greater than zero and less than or equal to 500." + }, + "160013": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value cannot be less than zero." + }, + "160017": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feedType' is missing or invalid." + }, + "160029": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value must be a multiple of the 'limit' value." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "400": { - "description": "Bad Request" - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160003": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Task {taskID} does not exist." - }, - "160014": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "No file found for task ID {taskID}." - }, - "160015": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'task_id' {taskID} is a download task, which in invalid for an input file. " - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/task/{task_id}/download_result_file": { - "get": { - "tags": [ - "task" - ], - "description": "This method retrieves the generated file that is associated with the specified task ID. The response of this call is a compressed or uncompressed CSV, XML, or JSON file, with the applicable file extension (for example: csv.gz).

For details about how this method is used, see Working with Order Feeds in the Selling Integration Guide.

Note: The status of the task to retrieve must be in the COMPLETED or COMPLETED_WITH_ERROR state before this method can retrieve the file. You can use the getTask or getTasks method to retrieve the status of the task.

", - "operationId": "getResultFile", - "parameters": [ - { - "name": "task_id", - "in": "path", - "description": "The ID of the task associated with the file you want to download. This ID was generated when the task was created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "headers": { - "content-disposition": { - "schema": { - "type": "string", - "description": "Returns metadata for the downloaded file." - } - } + "/task": { + "get": { + "tags": [ + "task" + ], + "description": "This method returns the details and status for an array of tasks based on a specified feed_type or schedule_id. Specifying both feed_type and schedule_id results in an error. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.

If specifying the feed_type, limit which tasks are returned by specifying filters, such as the creation date range or period of time using look_back_days. Also, by specifying the feed_type, both on-demand and scheduled reports are returned.

If specifying a schedule_id, the schedule template (that the schedule ID is based on) determines which tasks are returned (see schedule_id for additional information). Each scheduledId applies to one feed_type. ", + "operationId": "getTasks", + "parameters": [ + { + "name": "date_range", + "in": "query", + "description": "Specifies the range of task creation dates used to filter the results. The results are filtered to include only tasks with a creation date that is equal to this date or is within specified range. Only tasks that are less than 90 days can be retrieved.

Note: Maximum date range window size is 90 days.


Valid Format (UTC):yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

For example: Tasks created on September 8, 2019
2019-09-08T00:00:00.000Z..2019-09-09T00:00:00.000Z", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "feed_type", + "in": "query", + "description": "The feed type associated with the tasks to be returned. Only use a feedType that is available for your API:
  • Order Feeds: LMS_ORDER_ACK, LMS_ORDER_REPORT
  • Inventory Upload Feed Types: See Available FeedTypes
Do not use with the schedule_id parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The maximum number of tasks that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "look_back_days", + "in": "query", + "description": "The number of previous days in which to search for tasks. Do not use with the date_range parameter. If both date_range and look_back_days are omitted, this parameter's default value is used.

Default: 7

Range: 1-90 (inclusive)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "The number of tasks to skip in the result set before returning the first task in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "schedule_id", + "in": "query", + "description": "The unique identifier associated with the tasks being returned. A schedule periodically generates a report for the feed type specified by the schedule template.

Note: Schedules are currently only available for LMS_ORDER_REPORT.
Do not use with the feed_type parameter.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskCollection" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160004": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "You must submit either a 'feed_type' or 'schedule_id'." + }, + "160005": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Both 'feed_type' and 'schedule_id' were provided. Please remove one of them." + }, + "160006": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feed_type' {feedTypeValue} is invalid." + }, + "160007": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'schedule_id' {scheduleID} is invalid." + }, + "160008": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Both 'look_back_days' and 'date_range' were provided. Please remove one of them." + }, + "160009": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The format of the 'date_range' is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ." + }, + "160010": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'date_range' must be less than or equal to 90 days." + }, + "160011": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'look_back_days' value must be greater than zero and less than or equal to 90." + }, + "160012": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'limit' value must be greater than zero and less than or equal to 500." + }, + "160013": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value cannot be less than zero." + }, + "160016": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'date_range' value is not valid. Ensure that the beginning of the range is before the end of the range." + }, + "160029": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value must be a multiple of the 'limit' value." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] }, - "content": { - "application/octet-stream": { - "schema": { - "$ref": "#/components/schemas/StreamingOutput" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } + "post": { + "tags": [ + "task" + ], + "description": "This method creates an upload task or a download task without filter criteria. When using this method, specify the feedType and the feed file schemaVersion. The feed type specified sets the task as a download or an upload task.

For details about the upload and download flows, see Working with Order Feeds in the Selling Integration Guide.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

The following list contains this method's authorization scopes and their corresponding feed types:

  • https://api.ebay.com/oauth/api_scope/sell.inventory: See LMS FeedTypes
  • https://api.ebay.com/oauth/api_scope/sell.fulfillment: LMS_ORDER_ACK (specify for upload tasks). Also see LMS FeedTypes
  • https://api.ebay.com/oauth/api_scope/sell.marketing: None*
  • https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly: None*

* Reserved for future release

", + "operationId": "createTask", + "parameters": [ + { + "name": "X-EBAY-C-MARKETPLACE-ID", + "in": "header", + "description": "The ID of the eBay marketplace where the item is hosted.

For example:

X-EBAY-C-MARKETPLACE-ID:EBAY_US

This identifies the eBay marketplace that applies to this task. See MarketplaceIdEnum for supported values.

Note: When listing the items in the feed file on the French Canada and French Belgium marketplaces, also set the Accept-Language header as needed.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The Accept-Language header is required for listing items in the French Canada and French Belgium marketplaces. Set the following headers to list items on these marketplaces:
  • French Canada: Set the X-EBAY-C-MARKETPLACE-ID header value to EBAY_CA and include the Accept-Language header with a value of fr-CA.
  • French Belgium: Set the X-EBAY-C-MARKETPLACE-ID header value to EBAY_BE and include the Accept-Language header with a value of fr-BE.
", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "description not needed", + "content": { + "application/json": { + "schema": { + "description": "description not needed", + "$ref": "#/components/schemas/CreateTaskRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Accepted" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160017": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feedType' is missing or invalid." + }, + "160018": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'schemaVersion' is invalid." + }, + "160027": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The X-EBAY-C-MARKETPLACE-ID header is missing or invalid." + }, + "160030": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "This resource is not applicable for the feed type {feedTypeValue}. For more information, see the documentation for this API." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + }, + "160022": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "You are not allowed to access this resource. Contact eBay Developer Technical Support for assistance." + } + } + } + }, + "409": { + "description": "Conflict", + "x-response-codes": { + "errors": { + "160024": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "You have reached the maximum number of feed tasks that can be queued or processed concurrently. Wait for current tasks to complete before adding tasks. For more information, see the documentation for this API." + }, + "160025": { + "domain": "API_FEED", + "category": "BUSINESS", + "description": "You have exceeded the maximum number of records or tasks that can be created or processed in the period (hourly or daily). Wait until the present period ends before trying again. Please reference the API documentation for more information." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160003": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Task {taskID} does not exist." - }, - "160014": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "No file found for task ID {taskID}." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/task/{task_id}": { - "get": { - "tags": [ - "task" - ], - "description": "This method retrieves the details and status of the specified task. The input is task_id.

For details of how this method is used, see Working with Order Feeds in the Selling Integration Guide. ", - "operationId": "getTask", - "parameters": [ - { - "name": "task_id", - "in": "path", - "description": "The ID of the task. This ID was generated when the task was created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Task" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } - } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160003": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Task {taskID} does not exist." - } - } + "/task/{task_id}/download_input_file": { + "get": { + "tags": [ + "task" + ], + "description": "This method downloads the file previously uploaded using uploadFile. Specify the task_id from the uploadFile call.

Note: With respect to LMS, this method applies to all feed types except LMS_ORDER_REPORT and LMS_ACTIVE_INVENTORY_REPORT. See LMS API Feeds in the Selling Integration Guide.

", + "operationId": "getInputFile", + "parameters": [ + { + "name": "task_id", + "in": "path", + "description": "This path parameter is the unique identifier of the task associated with the input file to be downloaded.

Use the getTasks method to retrieve task IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "content-disposition": { + "schema": { + "type": "string", + "description": "Returns metadata for the downloaded file." + } + } + }, + "content": { + "application/octet-stream": { + "schema": { + "$ref": "#/components/schemas/StreamingOutput" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160003": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Task {taskID} does not exist." + }, + "160014": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "No file found for task ID {taskID}." + }, + "160015": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'task_id' {taskID} is a download task, which in invalid for an input file. " + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/task/{task_id}/upload_file": { - "post": { - "tags": [ - "task" - ], - "description": "This method associates the specified file with the specified task ID and uploads the input file. After the file has been uploaded, the processing of the file begins.

Reports often take time to generate and it's common for this method to return an HTTP status of 202, which indicates the report is being generated. Use the getTask with the task ID or getTasks to determine the status of a report.

The status flow is QUEUED > IN_PROCESS > COMPLETED or COMPLETED_WITH_ERROR. When the status is COMPLETED or COMPLETED_WITH_ERROR, this indicates the file has been processed and the order report can be downloaded. If there are errors, they will be indicated in the report file.

For details of how this method is used in the upload flow, see Working with Order Feeds in the Selling Integration Guide.

Note: This method applies to all Seller Hub feed types and LMS feed types except LMS_ORDER_REPORT and LMS_ACTIVE_INVENTORY_REPORT. See LMS feed types and Seller Hub feed types.

Note: You must use a Content-Type header with its value set to \"multipart/form-data\". See Samples for information.

", - "operationId": "uploadFile", - "parameters": [ - { - "name": "task_id", - "in": "path", - "description": "The task_id associated with the file that will be uploaded. This ID was generated when the specified task was created.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/FormDataContentDisposition" - } + "/task/{task_id}/download_result_file": { + "get": { + "tags": [ + "task" + ], + "description": "This method retrieves the generated file that is associated with the specified task ID. The response of this call is a compressed or uncompressed CSV, XML, or JSON file, with the applicable file extension (for example: csv.gz).

For details about how this method is used, see Working with Order Feeds in the Selling Integration Guide.

Note: The status of the task to retrieve must be in the COMPLETED or COMPLETED_WITH_ERROR state before this method can retrieve the file. You can use the getTask or getTasks method to retrieve the status of the task.

", + "operationId": "getResultFile", + "parameters": [ + { + "name": "task_id", + "in": "path", + "description": "This path parameter is the unique identifier of the task associated with the file to be downloaded.

Use the getTasks method to retrieve task IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "content-disposition": { + "schema": { + "type": "string", + "description": "Returns metadata for the downloaded file." + } + } + }, + "content": { + "application/octet-stream": { + "schema": { + "$ref": "#/components/schemas/StreamingOutput" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160003": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Task {taskID} does not exist." + }, + "160014": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "No file found for task ID {taskID}." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "required": false }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160020": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The format of the file to be uploaded is invalid. {additionalInfo}" - }, - "160023": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Task {taskID} cannot upload a file." - }, - "160026": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "This task has expired and you cannot use it to upload a file. You must upload a file within a hour of creating the task." - }, - "160028": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The file you tried to upload is too large. Please try using a smaller file. For more information, see the documentation for this API." - }, - "160100": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Payload not found. Make sure your file is uploaded inside the Request Body under the key name 'file'." - } - } - } - }, - "403": { - "description": "Forbidden", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - } - } + "/task/{task_id}": { + "get": { + "tags": [ + "task" + ], + "description": "This method retrieves the details and status of the specified task. The input is task_id.

For details of how this method is used, see Working with Order Feeds in the Selling Integration Guide. ", + "operationId": "getTask", + "parameters": [ + { + "name": "task_id", + "in": "path", + "description": "This path parameter is the unique identifier of the task being retrieved.

Use the getTasks method to retrieve task IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Task" + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160003": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Task {taskID} does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "404": { - "description": "Not Found", - "x-response-codes": { - "errors": { - "160003": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Task {taskID} does not exist." - } - } - } - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.inventory", - "https://api.ebay.com/oauth/api_scope/sell.fulfillment", - "https://api.ebay.com/oauth/api_scope/sell.marketing", - "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - }, - "/customer_service_metric_task": { - "get": { - "tags": [ - "customer_service_metric_task" - ], - "description": "Use this method to return an array of customer service metric tasks. You can limit the tasks returned by specifying a date range.

Note: You can pass in either the look_back_days or date_range, but not both.

", - "operationId": "getCustomerServiceMetricTasks", - "parameters": [ - { - "name": "date_range", - "in": "query", - "description": "The task creation date range. The results are filtered to include only tasks with a creation date that is equal to the dates specified or is within the specified range. Do not use with the look_back_days parameter.

Format: UTC

For example, tasks within a range:

yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on March 8, 2020

2020-03-08T00:00.00.000Z..2020-03-09T00:00:00.000Z

Maximum: 90 days

", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "feed_type", - "in": "query", - "description": "The feed type associated with the task. The only presently supported value is CUSTOMER_SERVICE_METRICS_REPORT.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "The number of customer service metric tasks to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

For example, if offset is set to 10 and limit is set to 10, the call retrieves tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Note:This feature employs a zero-based list, where the first item in the list has an offset of 0.

Default: 10

Maximum: 500

", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "look_back_days", - "in": "query", - "description": "The number of previous days in which to search for tasks. Do not use with the date_range parameter. If both date_range and look_back_days are omitted, this parameter's default value is used.

Default value: 7

Range: 1-90 (inclusive)

", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "The number of customer service metric tasks to skip in the result set before returning the first task in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomerServiceMetricTaskCollection" - } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - }, - "160005": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Both 'feed_type' and 'schedule_id' were provided. Please remove one of them." - }, - "160006": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feed_type' {feedTypeValue} is invalid." - }, - "160008": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Both 'look_back_days' and 'date_range' were provided. Please remove one of them." - }, - "160009": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The format of the 'date_range' is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ." - }, - "160010": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'date_range' must be less than or equal to 90 days." - }, - "160011": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'look_back_days' value must be greater than zero and less than or equal to 90." - }, - "160012": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'limit' value must be greater than zero and less than or equal to 500." - }, - "160013": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value cannot be less than zero." - }, - "160029": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'offset' value must be a multiple of the 'limit' value." - } - } + "/task/{task_id}/upload_file": { + "post": { + "tags": [ + "task" + ], + "description": "This method associates the specified file with the specified task ID and uploads the input file. After the file has been uploaded, the processing of the file begins.

Reports often take time to generate and it's common for this method to return an HTTP status of 202, which indicates the report is being generated. Use the getTask with the task ID or getTasks to determine the status of a report.

The status flow is QUEUED > IN_PROCESS > COMPLETED or COMPLETED_WITH_ERROR. When the status is COMPLETED or COMPLETED_WITH_ERROR, this indicates the file has been processed and the order report can be downloaded. If there are errors, they will be indicated in the report file.

For details of how this method is used in the upload flow, see Working with Order Feeds in the Selling Integration Guide.

This call does not have a JSON Request payload but uploads the file as form-data. For example:

 fileName: "AddFixedPriceItem_Macbook.xml" 
name: "file"
type: "form-data"
file: @"/C:/Users/.../AddFixedPriceItem_Macbook.7z"
See Samples for information.

Note: This method applies to all Seller Hub feed types, and to all LMS feed types except LMS_ORDER_REPORT and LMS_ACTIVE_INVENTORY_REPORT.

Note: You must use a Content-Type header with its value set to \"multipart/form-data\". See Samples for information.

Note: For LMS feed types, upload a regular XML file or an XML file in zipped format (both formats are allowed).

", + "operationId": "uploadFile", + "parameters": [ + { + "name": "task_id", + "in": "path", + "description": "This path parameter is the unique identifier of the task associated with the file that will be uploaded.

Use the getTasks method to retrieve task IDs.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to multipart/form-data.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160020": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The format of the file to be uploaded is invalid. {additionalInfo}" + }, + "160023": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Task {taskID} cannot upload a file." + }, + "160026": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "This task has expired and you cannot use it to upload a file. You must upload a file within a hour of creating the task." + }, + "160028": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The file you tried to upload is too large. Please try using a smaller file. For more information, see the documentation for this API." + }, + "160100": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Payload not found. Make sure your file is uploaded inside the Request Body under the key name 'file'." + } + } + } + }, + "403": { + "description": "Forbidden", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + } + } + } + }, + "404": { + "description": "Not Found", + "x-response-codes": { + "errors": { + "160003": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Task {taskID} does not exist." + } + } + } + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.inventory", + "https://api.ebay.com/oauth/api_scope/sell.fulfillment", + "https://api.ebay.com/oauth/api_scope/sell.marketing", + "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly", + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "403": { - "description": "Forbidden" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - }, - "post": { - "tags": [ - "customer_service_metric_task" - ], - "description": "

Use this method to create a customer service metrics download task with filter criteria for the customer service metrics report. When using this method, specify the feedType and filterCriteria including both evaluationMarketplaceId and customerServiceMetricType for the report. The method returns the location response header containing the call URI to use with getCustomerServiceMetricTask to retrieve status and details on the task.

Only CURRENT Customer Service Metrics reports can be generated with the Sell Feed API. PROJECTED reports are not supported at this time. See the getCustomerServiceMetric method document in the Analytics API for more information about these two types of reports.

Note: Before calling this API, retrieve the summary of the seller's performance and rating for the customer service metric by calling getCustomerServiceMetric (part of the Analytics API). You can then populate the create task request fields with the values from the response. This technique eliminates failed tasks that request a report for a customerServiceMetricType and evaluationMarketplaceId that are without evaluation.

", - "operationId": "createCustomerServiceMetricTask", - "parameters": [ - { - "name": "accept-language", - "in": "header", - "description": "Use this header to specify the natural language in which the authenticated user desires the response.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "Request payload containing version, feedType, and optional filterCriteria.", - "content": { - "application/json": { - "schema": { - "description": "Request payload containing version, feedType, and optional filterCriteria.", - "$ref": "#/components/schemas/CreateServiceMetricsTaskRequest" - } + "/customer_service_metric_task": { + "get": { + "tags": [ + "customer_service_metric_task" + ], + "description": "Use this method to return an array of customer service metric tasks. You can limit the tasks returned by specifying a date range.

Note: You can pass in either the look_back_days or date_range, but not both.

", + "operationId": "getCustomerServiceMetricTasks", + "parameters": [ + { + "name": "date_range", + "in": "query", + "description": "The task creation date range. The results are filtered to include only tasks with a creation date that is equal to the dates specified or is within the specified range. Do not use with the look_back_days parameter.

Format: UTC

For example, tasks within a range:

yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on March 8, 2020

2020-03-08T00:00.00.000Z..2020-03-09T00:00:00.000Z

Maximum: 90 days

", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "feed_type", + "in": "query", + "description": "The feed type associated with the tasks being retrieved. The only presently supported value is CUSTOMER_SERVICE_METRICS_REPORT.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The number of customer service metric tasks to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

For example, if offset is set to 10 and limit is set to 10, the call retrieves tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Note:This feature employs a zero-based list, where the first item in the list has an offset of 0.

Default: 10

Maximum: 500

", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "look_back_days", + "in": "query", + "description": "The number of previous days in which to search for tasks. Do not use with the date_range parameter. If both date_range and look_back_days are omitted, this parameter's default value is used.

Default value: 7

Range: 1-90 (inclusive)

", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "The number of customer service metric tasks to skip in the result set before returning the first task in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerServiceMetricTaskCollection" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + }, + "160005": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Both 'feed_type' and 'schedule_id' were provided. Please remove one of them." + }, + "160006": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feed_type' {feedTypeValue} is invalid." + }, + "160008": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Both 'look_back_days' and 'date_range' were provided. Please remove one of them." + }, + "160009": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The format of the 'date_range' is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ." + }, + "160010": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'date_range' must be less than or equal to 90 days." + }, + "160011": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'look_back_days' value must be greater than zero and less than or equal to 90." + }, + "160012": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'limit' value must be greater than zero and less than or equal to 500." + }, + "160013": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value cannot be less than zero." + }, + "160029": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'offset' value must be a multiple of the 'limit' value." + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] + }, + "post": { + "tags": [ + "customer_service_metric_task" + ], + "description": "

Use this method to create a customer service metrics download task with filter criteria for the customer service metrics report. When using this method, specify the feedType and filterCriteria including both evaluationMarketplaceId and customerServiceMetricType for the report. The method returns the location response header containing the call URI to use with getCustomerServiceMetricTask to retrieve status and details on the task.

Only CURRENT Customer Service Metrics reports can be generated with the Sell Feed API. PROJECTED reports are not supported at this time. See the getCustomerServiceMetric method document in the Analytics API for more information about these two types of reports.

Note: Before calling this API, retrieve the summary of the seller's performance and rating for the customer service metric by calling getCustomerServiceMetric (part of the Analytics API). You can then populate the create task request fields with the values from the response. This technique eliminates failed tasks that request a report for a customerServiceMetricType and evaluationMarketplaceId that are without evaluation.

", + "operationId": "createCustomerServiceMetricTask", + "parameters": [ + { + "name": "Accept-Language", + "in": "header", + "description": "Use this header to specify the natural language in which the authenticated user desires the response. For example, en-US for English or de-DE for German.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Content-Type", + "in": "header", + "description": "This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Request payload containing version, feedType, and optional filterCriteria.", + "content": { + "application/json": { + "schema": { + "description": "Request payload containing version, feedType, and optional filterCriteria.", + "$ref": "#/components/schemas/CreateServiceMetricsTaskRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Accepted" + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160017": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'feedType' is missing or invalid." + }, + "160018": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'schemaVersion' is invalid." + }, + "160024": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "You have reached the maximum number of feed tasks that can be queued or processed concurrently. Wait for current tasks to complete before adding tasks. For more information, see the documentation for this API." + }, + "160025": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "You have exceeded the maximum number of feed tasks that can be created or processed in a given period (hour or day). Wait until the present period ends before adding tasks. For more information, see the documentation for this API." + }, + "164500": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'customerServiceMetricType' in 'filterCriteria' is not a valid type. Valid metric types are ITEM_NOT_AS_DESCRIBED or ITEM_NOT_RECEIVED." + }, + "164501": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'evaluationMarketplaceId' in 'filterCriteria' is not a supported marketplace. For a complete list of the supported marketplace IDs, see the documentation." + }, + "164502": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'listingCategories' in 'filterCriteria' or some part of the 'listingCategories' is invalid. {additionalInfo}" + }, + "164503": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'shippingRegions' in 'filterCriteria' or some part of the 'shippingRegions' is invalid. {additionalInfo}" + }, + "164504": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The Accept-Language header is missing or invalid." + }, + "164505": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'filterCriteria' is missing or invalid." + }, + "164506": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'listingCategories' is not applicable to the 'customerServiceMetricType' {customerServiceMetricType} in 'filterCriteria'." + }, + "164507": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The 'shippingRegions' is not applicable to the 'customerServiceMetricType' {customerServiceMetricType} in 'filterCriteria'." + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "required": true }, - "responses": { - "202": { - "description": "Accepted" - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160017": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'feedType' is missing or invalid." - }, - "160018": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'schemaVersion' is invalid." - }, - "160024": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "You have reached the maximum number of feed tasks that can be queued or processed concurrently. Wait for current tasks to complete before adding tasks. For more information, see the documentation for this API." - }, - "160025": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "You have exceeded the maximum number of feed tasks that can be created or processed in a given period (hour or day). Wait until the present period ends before adding tasks. For more information, see the documentation for this API." - }, - "164500": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'customerServiceMetricType' in 'filterCriteria' is not a valid type. Valid metric types are ITEM_NOT_AS_DESCRIBED or ITEM_NOT_RECEIVED." - }, - "164501": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'evaluationMarketplaceId' in 'filterCriteria' is not a supported marketplace. For a complete list of the supported marketplace IDs, see the documentation." - }, - "164502": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'listingCategories' in 'filterCriteria' or some part of the 'listingCategories' is invalid. {additionalInfo}" - }, - "164503": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'shippingRegions' in 'filterCriteria' or some part of the 'shippingRegions' is invalid. {additionalInfo}" - }, - "164504": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The Accept-Language header is missing or invalid." - }, - "164505": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'filterCriteria' is missing or invalid." - }, - "164506": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'listingCategories' is not applicable to the 'customerServiceMetricType' {customerServiceMetricType} in 'filterCriteria'." - }, - "164507": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The 'shippingRegions' is not applicable to the 'customerServiceMetricType' {customerServiceMetricType} in 'filterCriteria'." - } - } + "/customer_service_metric_task/{task_id}": { + "get": { + "tags": [ + "customer_service_metric_task" + ], + "description": "

Use this method to retrieve customer service metric task details for the specified task. The input is task_id.

", + "operationId": "getCustomerServiceMetricTask", + "parameters": [ + { + "name": "task_id", + "in": "path", + "description": "This path parameter is the unique identifier of the customer service metric task being retrieved.

Use the getCustomerServiceMetricTasks method to retrieve task IDs.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceMetricsTask" + } + } + } + }, + "400": { + "description": "Bad Request", + "x-response-codes": { + "errors": { + "160002": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." + }, + "160003": { + "domain": "API_FEED", + "category": "REQUEST", + "description": "Task {taskID} does not exist." + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error", + "x-response-codes": { + "errors": { + "160001": { + "domain": "API_FEED", + "category": "APPLICATION", + "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + } + } + } + } + }, + "security": [ + { + "api_auth": [ + "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" + ] + } + ] } - }, - "403": { - "description": "Forbidden" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." - } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } + } }, - "/customer_service_metric_task/{task_id}": { - "get": { - "tags": [ - "customer_service_metric_task" - ], - "description": "

Use this method to retrieve customer service metric task details for the specified task. The input is task_id.

", - "operationId": "getCustomerServiceMetricTask", - "parameters": [ - { - "name": "task_id", - "in": "path", - "description": "Use this path parameter to specify the task ID value for the customer service metric task to retrieve.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServiceMetricsTask" + "components": { + "schemas": { + "CreateInventoryTaskRequest": { + "type": "object", + "properties": { + "feedType": { + "type": "string", + "description": "The feed type associated with the inventory task you are about to create. Presently, only one feed type is available:
  • LMS_ACTIVE_INVENTORY_REPORT
See Report download feed types for more information." + }, + "filterCriteria": { + "description": "This container allows a seller to create an ActiveInventoryReport for a single listing format.", + "$ref": "#/components/schemas/InventoryFilterCriteria" + }, + "schemaVersion": { + "type": "string", + "description": "The version number of the inventory task to use for the feedType.

Note: This field must have a value of 1.0." + } + }, + "description": "This type defines inventory-related download task request fields." + }, + "CreateOrderTaskRequest": { + "type": "object", + "properties": { + "feedType": { + "type": "string", + "description": "The feed type associated with the task. The only presently supported value is LMS_ORDER_REPORT.

See Report download feed types for more information." + }, + "filterCriteria": { + "description": "The container for the filter fields. This container is used to set the filter criteria for the order report. A seller can set date range filters and/or can retrieve orders in a specific state.", + "$ref": "#/components/schemas/OrderFilterCriteria" + }, + "schemaVersion": { + "type": "string", + "description": "The schema version of the LMS OrderReport. For the LMS_ORDER_REPORT feed type, see the OrderReport reference page to see the present schema version. The schemaVersion value is the version number shown at the top of the OrderReport page.

Restriction: This value must be 1113 or higher. The OrderReport schema version is updated about every two weeks. All version numbers are odd numbers (even numbers are skipped). For example, the next release version after '1113' is '1115'." + } + }, + "description": "The type that defines the fields for the createOrderTask request." + }, + "CreateServiceMetricsTaskRequest": { + "type": "object", + "properties": { + "feedType": { + "type": "string", + "description": "The feedType specified for the customer service metric task being created. The report lists the transaction details that contribute to the service metrics evaluation. Supported types include:

CUSTOMER_SERVICE_METRICS_REPORT

" + }, + "filterCriteria": { + "description": "This container is used to customize and set criteria for Customer Service Metric report that will be associated with the task.", + "$ref": "#/components/schemas/CustomerServiceMetricsFilterCriteria" + }, + "schemaVersion": { + "type": "string", + "description": "The version number of the customer service metric.

Note: This field must have a value of 1.0." + } + }, + "description": "The type that defines the fields for the Customer Service Metric reports generated with the Feed API." + }, + "CreateTaskRequest": { + "type": "object", + "properties": { + "feedType": { + "type": "string", + "description": "The feed type associated with the task. Available feed types:
" + }, + "schemaVersion": { + "type": "string", + "description": "The schemaVersion/version number of the file format:
" + } + }, + "description": "The type that defines the fields for the createTask method." + }, + "CreateUserScheduleRequest": { + "type": "object", + "properties": { + "feedType": { + "type": "string", + "description": "The name of the feed type for the created schedule.

Use the getScheduleTemplates method to retrieve the feed type of a schedule template.

Note: Schedules are currently only available for LMS_ORDER_REPORT." + }, + "preferredTriggerDayOfMonth": { + "type": "integer", + "description": "The preferred day of the month to trigger the schedule. This field can be used with preferredTriggerHour for monthly schedules. The last day of the month is used for numbers larger than the actual number of days in the month.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Minimum: 1

Maximum: 31", + "format": "int32" + }, + "preferredTriggerDayOfWeek": { + "type": "string", + "description": "The preferred day of the week to trigger the schedule. This field can be used with preferredTriggerHour for weekly schedules.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value. For implementation help, refer to eBay API documentation" + }, + "preferredTriggerHour": { + "type": "string", + "description": "The preferred two-digit hour of the day to trigger the schedule.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC hhZ

For example, the following represents 11:00 am UTC: 11Z" + }, + "scheduleEndDate": { + "type": "string", + "description": "The timestamp on which the report generation (subscription) ends. After this date, the schedule status becomes INACTIVE.

Use this field, if available, to end the schedule in the future. This value must be later than scheduleStartDate (if supplied). This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC yyyy-MM-ddTHHZ

For example, the following represents UTC October 10, 2021 at 10:00 AM:
2021-10-10T10Z" + }, + "scheduleName": { + "type": "string", + "description": "The schedule name assigned by the user for the created schedule." + }, + "scheduleStartDate": { + "type": "string", + "description": "The timestamp to start generating the report. After this timestamp, the schedule status becomes active until either the scheduleEndDate occurs or the scheduleTemplateId becomes inactive.

Use this field, if available, to start the schedule in the future but before the scheduleEndDate (if supplied). This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC yyyy-MM-ddTHHZ

For example, the following represents a schedule start date of UTC October 01, 2020 at 12:00 PM:
2020-01-01T12Z" + }, + "scheduleTemplateId": { + "type": "string", + "description": "The unique identifier of the template to be used for this schedule.

Use the getScheduleTemplates method to retrieve the schedule template ID. This method requires a schedule template ID that is ACTIVE.

Note: Schedules are currently only available for LMS_ORDER_REPORT." + }, + "schemaVersion": { + "type": "string", + "description": "The schema version of a schedule." + } + }, + "description": "The type that defines the fields for the createSchedule method." + }, + "CustomerServiceMetricTaskCollection": { + "type": "object", + "properties": { + "href": { + "type": "string", + "description": "The URI of the current page of results." + }, + "limit": { + "type": "integer", + "description": "The value of the limit parameter submitted in the request, which is the maximum number of tasks to return per page, from the result set. A result set is the complete set of tasks returned by the method.

Note: Even though this parameter is not required to be submitted in the request, the parameter defaults to 10 if omitted.

Note: If this is the last or only page of the result set, the page may contain fewer tasks than the limit value. To determine the number of pages in a result set, divide the total value (total number of tasks matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total tasks) and the limit value was 50 (show 50 tasks per page), the total number of pages in the result set is three, so the seller would have to make three separate getCustomerServiceMetricTasks calls to view all tasks matching the input criteria.

", + "format": "int32" + }, + "next": { + "type": "string", + "description": "The relative path to the call URI for the next page of results. This value is returned if there is an additional page of results to return from the result set." + }, + "offset": { + "type": "integer", + "description": "The number of results skipped in the result set before returning the first result. This value can be set in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.

", + "format": "int32" + }, + "prev": { + "type": "string", + "description": "The URI for the previous page of results. This parameter is returned if a previous page of results from the result set exists." + }, + "tasks": { + "type": "array", + "description": "An array of the customer service tasks on this page. The tasks are sorted by creation date. An empty array is returned if the filter criteria excludes all tasks.", + "items": { + "$ref": "#/components/schemas/ServiceMetricsTask" + } + }, + "total": { + "type": "integer", + "description": "The total number of tasks that match the criteria.", + "format": "int32" + } + }, + "description": "This type defines customer service metric task response fields." + }, + "CustomerServiceMetricsFilterCriteria": { + "type": "object", + "properties": { + "customerServiceMetricType": { + "type": "string", + "description": "An enumeration value that specifies the customer service metric that eBay tracks to measure seller performance.

See CustomerServiceMetricTypeEnum for values. For implementation help, refer to eBay API documentation" + }, + "evaluationMarketplaceId": { + "type": "string", + "description": "An enumeration value that specifies the eBay marketplace where the evaluation occurs.

See MarketplaceIdEnum for values. For implementation help, refer to eBay API documentation" + }, + "listingCategories": { + "type": "array", + "description": "A list of listing category IDs on which the service metric is measured. A seller can use one or more L1 (top-level) eBay categories to get metrics specific to those L1 categories. The Category IDs for each L1 category are required. Category ID values for L1 categories can be retrieved using the Taxonomy API.

Note: Pass this attribute to narrow down your filter results for the ITEM_NOT_AS_DESCRIBED customerServiceMetricType.

Supported categories include:

primary(L1) category Id

", + "items": { + "type": "string" + } + }, + "shippingRegions": { + "type": "array", + "description": "A list of shipping region enumeration values on which the service metric is measured. This comma delimited array allows the seller to customize the report to focus on domestic or international shipping.

Note: Pass this attribute to narrow down your filter results for the ITEM_NOT_RECEIVED customerServiceMetricType.

Supported categories include:

primary(L1) category Id

See ShippingRegionTypeEnum for values", + "items": { + "type": "string", + "description": " For implementation help, refer to eBay API documentation" + } + } + }, + "description": "A complex data type that filters data for report creation. See CustomerServiceMetricsFilterCriteria for fields and descriptions." + }, + "DateRange": { + "type": "object", + "properties": { + "from": { + "type": "string", + "description": "The beginning date in the range. If the parent type is included, both the from and/or the to fields become conditionally required.

Format: UTC yyyy-MM-ddThh:mm:ss.SSSZ

For example: Tasks within a range
yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on March 31, 2021
2021-03-31T00:00:00.000Z..2021-03-31T00:00:00.000Z " + }, + "to": { + "type": "string", + "description": "The end date for the date range, which is inclusive. If the parent type is included, both the from and/or the to fields become conditionally required.

For example:

Tasks within a range
yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on March 31, 2021
2021-03-31T00:00:00.000Z..2021-03-31T00:00:00.000Z " + } + }, + "description": "The type that defines the fields for a date range." + }, + "Error": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Identifies the type of erro." + }, + "domain": { + "type": "string", + "description": "Name for the primary system where the error occurred. This is relevant for application errors." + }, + "errorId": { + "type": "integer", + "description": "A unique number to identify the error.", + "format": "int32" + }, + "inputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "longMessage": { + "type": "string", + "description": "A more detailed explanation of the error." + }, + "message": { + "type": "string", + "description": "Information on how to correct the problem, in the end user's terms and language where applicable." + }, + "outputRefIds": { + "type": "array", + "description": "An array of request elements most closely associated to the error.", + "items": { + "type": "string" + } + }, + "parameters": { + "type": "array", + "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", + "items": { + "$ref": "#/components/schemas/ErrorParameter" + } + }, + "subdomain": { + "type": "string", + "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." + } + }, + "description": "This type defines the fields that can be returned in an error." + }, + "ErrorParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The object of the error." + }, + "value": { + "type": "string", + "description": "The value of the object." + } } - } - } - }, - "400": { - "description": "Bad Request", - "x-response-codes": { - "errors": { - "160002": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes." - }, - "160003": { - "domain": "API_FEED", - "category": "REQUEST", - "description": "Task {taskID} does not exist." + }, + "InventoryFilterCriteria": { + "type": "object", + "properties": { + "listingFormat": { + "type": "string", + "description": "The listing format for the ActiveInventoryReport being created. Supported types are:
  • AUCTION
  • FIXED_PRICE
For implementation help, refer to eBay API documentation" + } + }, + "description": "This container is used to set the filter criteria for the ActiveInventoryReport. A seller can create an ActiveInventoryReport for a single listing format." + }, + "InventoryTask": { + "type": "object", + "properties": { + "taskId": { + "type": "string", + "description": "The ID of the task. This ID is generated when the task was created by the createInventoryTask method." + }, + "status": { + "type": "string", + "description": "The status of the task. Users must wait until status is complete before moving on to the next step (such as uploading/downloading a file). For implementation help, refer to eBay API documentation" + }, + "feedType": { + "type": "string", + "description": "The feed type associated with the inventory task." + }, + "creationDate": { + "type": "string", + "description": "The date the task was created." + }, + "completionDate": { + "type": "string", + "description": "The timestamp when the task status went into the COMPLETED, COMPLETED_WITH_ERROR, or PARTIALLY_PROCESSED state. This field is only returned if the status is one of the three completed values." + }, + "schemaVersion": { + "type": "string", + "description": "The schema version number associated with the task." + }, + "detailHref": { + "type": "string", + "description": "The path to the call URI used to retrieve the task. This field points to the getInventoryTask URI." + }, + "uploadSummary": { + "description": "This container provides summary information on an upload feed (not applicable for download feed types).", + "$ref": "#/components/schemas/UploadSummary" + }, + "filterCriteria": { + "description": "This container is used to set the filter criteria for the ActiveInventoryReport. A seller can retrieve listings for a specified format.", + "$ref": "#/components/schemas/InventoryFilterCriteria" + } } - } - } - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error", - "x-response-codes": { - "errors": { - "160001": { - "domain": "API_FEED", - "category": "APPLICATION", - "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance." + }, + "InventoryTaskCollection": { + "type": "object", + "properties": { + "href": { + "type": "string", + "description": "The path to the call URI that produced the current page of results." + }, + "limit": { + "type": "integer", + "description": "The value of the limit parameter submitted in the request, which is the maximum number of inventory tasks to return per page, from the result set. A result set is the complete set of tasks returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 10 if omitted. Additionally, if this is the last or only page of the result set, the page may contain fewer tasks than the limit value submitted in the request.

To determine the number of pages in a result set, divide the total value (total number of tasks matching the input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total tasks) and the limit value was 50 (show 50 tasks per page), the total number of pages in the result set is three, so the seller would have to make three separate getInventoryTasks calls to view all tasks matching the input criteria.", + "format": "int32" + }, + "next": { + "type": "string", + "description": "The path to the call URI for the next page of results. This value is returned if there is an additional page of results to return from the result set." + }, + "offset": { + "type": "integer", + "description": "The number of results skipped in the result set before listing the first returned result. This value can be specified in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list, where the first item in the list has an offset of 0.", + "format": "int32" + }, + "prev": { + "type": "string", + "description": "The path to the call URI for the previous page of results. This is returned if there is a previous page of results from the result set." + }, + "tasks": { + "type": "array", + "description": "An array of the inventory tasks on this page. The tasks are sorted by creation date.

Note: An empty array is returned if the filter criteria excludes all tasks.", + "items": { + "$ref": "#/components/schemas/InventoryTask" + } + }, + "total": { + "type": "integer", + "description": "The total number of inventory tasks that match the input criteria.", + "format": "int32" + } } - } - } - } - }, - "security": [ - { - "api_auth": [ - "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly" - ] - } - ] - } - } - }, - "components": { - "schemas": { - "CreateInventoryTaskRequest": { - "type": "object", - "properties": { - "schemaVersion": { - "type": "string", - "description": "The schemaVersion/version number of the file format (use the schema version of the API to which you are programming):" - }, - "feedType": { - "type": "string", - "description": "The feed type associated with the inventory task you are about to create. Use a feedType that is available for your API. Presently, only one feed type is available:
  • LMS_ACTIVE_INVENTORY_REPORT

See Report download feed types for more information." - }, - "filterCriteria": { - "description": "The container for the filter fields. This container is used to set the filter criteria for the ActiveInventoryReport. A seller can retrieve listings for a specified format.", - "$ref": "#/components/schemas/InventoryFilterCriteria" - } - } - }, - "CreateOrderTaskRequest": { - "type": "object", - "properties": { - "feedType": { - "type": "string", - "description": "The feed type associated with the task. The only presently supported value is LMS_ORDER_REPORT. See Report download feed types for more information." - }, - "filterCriteria": { - "description": "The container for the filter fields. This container is used to set the filter criteria for the order report. A seller can set date range filters and/or can retrieve orders in a specific state.", - "$ref": "#/components/schemas/OrderFilterCriteria" - }, - "schemaVersion": { - "type": "string", - "description": "The schema version of the LMS OrderReport. For the LMS_ORDER_REPORT feed type, see the OrderReport reference page to see the present schema version. The schemaVersion value is the version number shown at the top of the OrderReport page.

Restriction: This value must be 1113 or higher. The OrderReport schema version is updated about every two weeks. All version numbers are odd numbers (even numbers are skipped). For example, the next release version after '1113' is '1115'." - } - }, - "description": "The type that defines the fields for the createOrderTask request." - }, - "CreateServiceMetricsTaskRequest": { - "type": "object", - "properties": { - "feedType": { - "type": "string", - "description": "The feedType specified for the task. The report lists the transaction details that contribute to the service metrics evaluation. Supported types include:

CUSTOMER_SERVICE_METRICS_REPORT

" - }, - "filterCriteria": { - "description": "This container is used to customize and set criteria for Customer Service Metric report that will be associated with the task.", - "$ref": "#/components/schemas/CustomerServiceMetricsFilterCriteria" - }, - "schemaVersion": { - "type": "string", - "description": "The version number of the file format.

Valid value: 1.0

" - } - }, - "description": "The type that defines the fields for the Customer Service Metric reports generated with the Feed API." - }, - "CreateTaskRequest": { - "type": "object", - "properties": { - "feedType": { - "type": "string", - "description": "The feed type associated with the task. Only use a feedType that is available for your API. Available feed types:

" - }, - "schemaVersion": { - "type": "string", - "description": "The schemaVersion/version number of the file format (use the schema version of the API to which you are programming):" - } - }, - "description": "The type that defines the fields for the createTask method." - }, - "CreateUserScheduleRequest": { - "type": "object", - "properties": { - "feedType": { - "type": "string", - "description": "The name of the feed type for the created schedule. Match the feed_type from the schedule template associated with this schedule." - }, - "preferredTriggerDayOfMonth": { - "type": "integer", - "description": "The preferred day of the month to trigger the schedule. This field can be used with preferredTriggerHour for monthly schedules. The last day of the month is used for numbers larger than the actual number of days in the month.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Minimum: 1

Maximum: 31", - "format": "int32" - }, - "preferredTriggerDayOfWeek": { - "type": "string", - "description": "The preferred day of the week to trigger the schedule. This field can be used with preferredTriggerHour for weekly schedules.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value. For implementation help, refer to eBay API documentation" - }, - "preferredTriggerHour": { - "type": "string", - "description": "The preferred two-digit hour of the day to trigger the schedule.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC hhZ

For example, the following represents 11:00 am UTC: 11Z" - }, - "scheduleEndDate": { - "type": "string", - "description": "The timestamp on which the report generation (subscription) ends. After this date, the schedule status becomes INACTIVE.

Use this field, if available, to end the schedule in the future. This value must be later than scheduleStartDate (if supplied). This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC yyyy-MM-ddTHHZ

For example, the following represents UTC October 10, 2021 at 10:00 AM:
2021-10-10T10Z" - }, - "scheduleName": { - "type": "string", - "description": "The schedule name assigned by the user for the created schedule." - }, - "scheduleStartDate": { - "type": "string", - "description": "The timestamp to start generating the report. After this timestamp, the schedule status becomes active until either the scheduleEndDate occurs or the scheduleTemplateId becomes inactive.

Use this field, if available, to start the schedule in the future but before the scheduleEndDate (if supplied). This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC yyyy-MM-ddTHHZ

For example, the following represents a schedule start date of UTC October 01, 2020 at 12:00 PM:
2020-01-01T12Z" - }, - "scheduleTemplateId": { - "type": "string", - "description": "The ID of the template associated with the schedule ID. You can get this ID from the documentation or by calling the getScheduleTemplates method. This method requires a schedule template ID that is ACTIVE." - }, - "schemaVersion": { - "type": "string", - "description": "The schema version of the schedule feedType. This field is required if the feedType has a schema version.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value." - } - }, - "description": "The type that defines the fields for the createSchedule method." - }, - "CustomerServiceMetricTaskCollection": { - "type": "object", - "properties": { - "href": { - "type": "string", - "description": "The URI of the current page of results." - }, - "limit": { - "type": "integer", - "description": "The value of the limit parameter submitted in the request, which is the maximum number of tasks to return per page, from the result set. A result set is the complete set of tasks returned by the method.

Note: Even though this parameter is not required to be submitted in the request, the parameter defaults to 10 if omitted.

Note: If this is the last or only page of the result set, the page may contain fewer tasks than the limit value. To determine the number of pages in a result set, divide the total value (total number of tasks matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total tasks) and the limit value was 50 (show 50 tasks per page), the total number of pages in the result set is three, so the seller would have to make three separate getCustomerServiceMetricTasks calls to view all tasks matching the input criteria.

", - "format": "int32" - }, - "next": { - "type": "string", - "description": "The relative path to the call URI for the next page of results. This value is returned if there is an additional page of results to return from the result set." - }, - "offset": { - "type": "integer", - "description": "The number of results skipped in the result set before returning the first result. This value can be set in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.

", - "format": "int32" - }, - "prev": { - "type": "string", - "description": "The URI for the previous page of results. This parameter is returned if a previous page of results from the result set exists." - }, - "tasks": { - "type": "array", - "description": "An array of the customer service tasks on this page. The tasks are sorted by creation date. An empty array is returned if the filter criteria excludes all tasks.", - "items": { - "$ref": "#/components/schemas/ServiceMetricsTask" - } - }, - "total": { - "type": "integer", - "description": "The total number of tasks that match the criteria.", - "format": "int32" - } - } - }, - "CustomerServiceMetricsFilterCriteria": { - "type": "object", - "properties": { - "customerServiceMetricType": { - "type": "string", - "description": "An enumeration value that specifies the customer service metric that eBay tracks to measure seller performance. See CustomerServiceMetricTypeEnum for values. For implementation help, refer to eBay API documentation" - }, - "evaluationMarketplaceId": { - "type": "string", - "description": "An enumeration value that specifies the eBay marketplace where the evaluation occurs. See MarketplaceIdEnum for values. For implementation help, refer to eBay API documentation" - }, - "listingCategories": { - "type": "array", - "description": "A list of listing category IDs on which the service metric is measured. A seller can use one or more L1 (top-level) eBay categories to get metrics specific to those L1 categories. The Category IDs for each L1 category are required. Category ID values for L1 categories can be retrieved using the Taxonomy API.

Note: Pass this attribute to narrow down your filter results for the ITEM_NOT_AS_DESCRIBED customerServiceMetricType.

Supported categories include:

primary(L1) category Id

", - "items": { - "type": "string" - } - }, - "shippingRegions": { - "type": "array", - "description": "A list of shipping region enumeration values on which the service metric is measured. This comma delimited array allows the seller to customize the report to focus on domestic or international shipping.

Note: Pass this attribute to narrow down your filter results for the ITEM_NOT_RECEIVED customerServiceMetricType.

Supported categories include:

primary(L1) category Id

See ShippingRegionTypeEnum for values", - "items": { - "type": "string", - "description": " For implementation help, refer to eBay API documentation" - } - } - }, - "description": "A complex data type that filters data for report creation. See CustomerServiceMetricsFilterCriteria for fields and descriptions." - }, - "DateRange": { - "type": "object", - "properties": { - "from": { - "type": "string", - "description": "The beginning date in the range. If the parent type is included, both the from and/or the to fields become conditionally required.

Format: UTC yyyy-MM-ddThh:mm:ss.SSSZ

For example: Tasks within a range
yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on March 31, 2021
2021-03-31T00:00:00.000Z..2021-03-31T00:00:00.000Z " - }, - "to": { - "type": "string", - "description": "The end date for the date range, which is inclusive. If the parent type is included, both the from and/or the to fields become conditionally required.

For example:

Tasks within a range
yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on March 31, 2021
2021-03-31T00:00:00.000Z..2021-03-31T00:00:00.000Z " - } - }, - "description": "The type that defines the fields for a date range." - }, - "Error": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Identifies the type of erro." - }, - "domain": { - "type": "string", - "description": "Name for the primary system where the error occurred. This is relevant for application errors." - }, - "errorId": { - "type": "integer", - "description": "A unique number to identify the error.", - "format": "int32" - }, - "inputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "longMessage": { - "type": "string", - "description": "A more detailed explanation of the error." - }, - "message": { - "type": "string", - "description": "Information on how to correct the problem, in the end user's terms and language where applicable." - }, - "outputRefIds": { - "type": "array", - "description": "An array of request elements most closely associated to the error.", - "items": { - "type": "string" - } - }, - "parameters": { - "type": "array", - "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.", - "items": { - "$ref": "#/components/schemas/ErrorParameter" - } - }, - "subdomain": { - "type": "string", - "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc." - } - }, - "description": "This type defines the fields that can be returned in an error." - }, - "ErrorParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The object of the error." - }, - "value": { - "type": "string", - "description": "The value of the object." - } - } - }, - "FormDataContentDisposition": { - "type": "object", - "properties": { - "creationDate": { - "type": "string", - "description": "The file creation date.

Format: UTC yyyy-MM-ddThh:mm:ss.SSSZ

For example:

Created on September 8, 2019

2019-09-08T00:00:00.000Z

" - }, - "fileName": { - "type": "string", - "description": "The name of the file including its extension (for example, xml or csv) to be uploaded." - }, - "modificationDate": { - "type": "string", - "description": "The file modified date.

Format: UTC yyyy-MM-ddThh:mm:ss.SSSZ

For example:

Created on September 9, 2019

2019-09-09T00:00:00.000Z

" - }, - "name": { - "type": "string", - "description": "A content identifier. The only presently supported name is file." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" }, - "description": "The parameters you want associated with the file." - }, - "readDate": { - "type": "string", - "description": "The date you read the file.

Format: UTC yyyy-MM-ddThh:mm:ss.SSSZ

For example:

Created on September 10, 2019

2019-09-10T00:00:00.000Z

" - }, - "size": { - "type": "integer", - "description": "The size of the file.", - "format": "int32" - }, - "type": { - "type": "string", - "description": "The file type. The only presently supported type is form-data." - } - }, - "description": "The metadata for the file." - }, - "InventoryFilterCriteria": { - "type": "object", - "properties": { - "listingFormat": { - "type": "string", - "description": "The type of buying option for the order. For implementation help, refer to eBay API documentation" - } - }, - "description": "The container for the filter fields. This container is used to set the filter criteria for the order report. A seller can retrieve listings for a specified format." - }, - "InventoryTask": { - "type": "object", - "properties": { - "taskId": { - "type": "string", - "description": "The ID of the task. This ID is generated when the task was created by the createInventoryTask method." - }, - "status": { - "type": "string", - "description": "The status of the task. Users must wait until status is complete before moving on to the next step (such as uploading/downloading a file). For implementation help, refer to eBay API documentation" - }, - "feedType": { - "type": "string", - "description": "The feed type associated with the inventory task." - }, - "creationDate": { - "type": "string", - "description": "The date the task was created." - }, - "completionDate": { - "type": "string", - "description": "The timestamp when the task status went into the COMPLETED, COMPLETED_WITH_ERROR, or PARTIALLY_PROCESSED state. This field is only returned if the status is one of the three completed values." - }, - "schemaVersion": { - "type": "string", - "description": "The schema version number associated with the task." - }, - "detailHref": { - "type": "string", - "description": "The path to the call URI used to retrieve the task. This field points to the getInventoryTask URI." - }, - "uploadSummary": { - "description": "This container provides summary information on an upload feed (not applicable for download feed types).", - "$ref": "#/components/schemas/UploadSummary" - }, - "filterCriteria": { - "description": "This container is used to set the filter criteria for the ActiveInventoryReport. A seller can retrieve listings for a specified format.", - "$ref": "#/components/schemas/InventoryFilterCriteria" - } - } - }, - "InventoryTaskCollection": { - "type": "object", - "properties": { - "href": { - "type": "string", - "description": "The path to the call URI that produced the current page of results." - }, - "limit": { - "type": "integer", - "description": "The value of the limit parameter submitted in the request, which is the maximum number of inventory tasks to return per page, from the result set. A result set is the complete set of tasks returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 10 if omitted. Additionally, if this is the last or only page of the result set, the page may contain fewer tasks than the limit value submitted in the request.

To determine the number of pages in a result set, divide the total value (total number of tasks matching the input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total tasks) and the limit value was 50 (show 50 tasks per page), the total number of pages in the result set is three, so the seller would have to make three separate getInventoryTasks calls to view all tasks matching the input criteria.", - "format": "int32" - }, - "next": { - "type": "string", - "description": "The path to the call URI for the next page of results. This value is returned if there is an additional page of results to return from the result set." - }, - "offset": { - "type": "integer", - "description": "The number of results skipped in the result set before listing the first returned result. This value can be specified in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list, where the first item in the list has an offset of 0.", - "format": "int32" - }, - "prev": { - "type": "string", - "description": "The path to the call URI for the previous page of results. This is returned if there is a previous page of results from the result set." - }, - "tasks": { - "type": "array", - "description": "An array of the inventory tasks on this page. The tasks are sorted by creation date.

Note: An empty array is returned if the filter criteria excludes all tasks.", - "items": { - "$ref": "#/components/schemas/InventoryTask" - } - }, - "total": { - "type": "integer", - "description": "The total number of inventory tasks that match the input criteria.", - "format": "int32" - } - } - }, - "OrderFilterCriteria": { - "type": "object", - "properties": { - "creationDateRange": { - "description": "The creation date range of the orders you want returned. Set the date range so it contains less than 10 days (maximum). If you do not specify a DateRange, results from the last 10 days will be returned by default.", - "$ref": "#/components/schemas/DateRange" - }, - "modifiedDateRange": { - "description": "The modified date range of the orders you want returned.

Note: This container is for future use. At this time, the createOrderTask method only supports order creation date filters and not modified order date filters.

", - "$ref": "#/components/schemas/DateRange" - }, - "orderStatus": { - "type": "string", - "description": "The order status of the orders returned. If the filter is omitted from createOrderTask call, orders that are in both ACTIVE and COMPLETED states are returned. For implementation help, refer to eBay API documentation" - } - }, - "description": "The type that defines the fields for the order filters." - }, - "OrderTask": { - "type": "object", - "properties": { - "completionDate": { - "type": "string", - "description": "The timestamp when the task went into the COMPLETED or COMPLETED_WITH_ERROR state. This state means that eBay has compiled the report for the seller based on the seller’s filter criteria, and the seller can run a getResultFile call to download the report." - }, - "creationDate": { - "type": "string", - "description": "The date the task was created." - }, - "detailHref": { - "type": "string", - "description": "The path to the call URI used to retrieve the task." - }, - "feedType": { - "type": "string", - "description": "The feed type associated with the task." - }, - "filterCriteria": { - "description": "A container that returns the filter criteria used.", - "$ref": "#/components/schemas/OrderFilterCriteria" - }, - "schemaVersion": { - "type": "string", - "description": "The schema version number associated with the create task." - }, - "status": { - "type": "string", - "description": "The enumeration value that indicates the state of the task that was submitted in the request. See FeedStatusEnum for information.

The values COMPLETED and COMPLETED_WITH_ERROR indicate the Order Report file is ready to download.

For implementation help, refer to eBay API documentation" - }, - "taskId": { - "type": "string", - "description": "The ID of the task that was submitted in the request." - }, - "uploadSummary": { - "description": "This container provides summary information on an upload feed (not applicable for download feed types).", - "$ref": "#/components/schemas/UploadSummary" - } - }, - "description": "The type that defines the fields for the getOrderTask response." - }, - "OrderTaskCollection": { - "type": "object", - "properties": { - "href": { - "type": "string", - "description": "The path to the call URI that produced the current page of results." - }, - "limit": { - "type": "integer", - "description": "The value of the limit parameter submitted in the request, which is the maximum number of order tasks to return per page, from the result set. A result set is the complete set of tasks returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 10 if omitted.

Note: If this is the last or only page of the result set, the page may contain fewer tasks than the limit value. To determine the number of pages in a result set, divide the total value (total number of tasks matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total tasks) and the limit value was 50 (show 50 tasks per page), the total number of pages in the result set is three, so the seller would have to make three separate getOrderTasks calls to view all tasks matching the input criteria.

", - "format": "int32" - }, - "next": { - "type": "string", - "description": "The path to the call URI for the next page of results. This value is returned if there is an additional page of results to return from the result set." - }, - "offset": { - "type": "integer", - "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.

", - "format": "int32" - }, - "prev": { - "type": "string", - "description": "The path to the call URI for the previous page of results. This is returned if there is a previous page of results from the result set." - }, - "tasks": { - "type": "array", - "description": "An array of the order tasks on this page. The tasks are sorted by creation date. An empty array is returned if the filter criteria excludes all tasks.", - "items": { - "$ref": "#/components/schemas/OrderTask" - } - }, - "total": { - "type": "integer", - "description": "The total number of order tasks that match the input criteria.", - "format": "int32" - } - }, - "description": "The type that defines the fields for a paginated result set of orders. The response consists of 0 or more sequenced pages where each page has 0 or more items." - }, - "ScheduleTemplateCollection": { - "type": "object", - "properties": { - "href": { - "type": "string", - "description": "The path to the call URI that produced the current page of results." - }, - "limit": { - "type": "integer", - "description": "The value of the limit parameter submitted in the request, which is the maximum number of schedule templates to return per page, from the result set. A result set is the complete set of schedule templates returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 10 if omitted.

Note: If this is the last or only page of the result set, the page may contain fewer tasks than the limit value. To determine the number of pages in a result set, divide the total value (total number of tasks matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total tasks) and the limit value was 50 (show 50 tasks per page), the total number of pages in the result set is three, so the seller would have to make three separate getScheduleTemplates calls to view all tasks matching the input criteria.

", - "format": "int32" - }, - "next": { - "type": "string", - "description": "The path to the call URI for the next page of results. This value is returned if there is an additional page of results to return from the result set." - }, - "offset": { - "type": "integer", - "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.

", - "format": "int32" - }, - "prev": { - "type": "string", - "description": "The path to the call URI for the previous page of results. This is returned if there is a previous page of results from the result set." - }, - "scheduleTemplates": { - "type": "array", - "description": "An array of the schedule templates on this page. An empty array is returned if the filter criteria excludes all tasks.", - "items": { - "$ref": "#/components/schemas/ScheduleTemplateResponse" - } - }, - "total": { - "type": "integer", - "description": "The total number of schedule templates that match the input criteria.", - "format": "int32" - } - }, - "description": "The type that defines the fields for a paginated result set of schedule templates. The response consists of 0 or more sequenced pages where each page has 0 or more items." - }, - "ScheduleTemplateResponse": { - "type": "object", - "properties": { - "feedType": { - "type": "string", - "description": "The feed type of the schedule template.

Note: When calling createSchedule and updateSchedule methods you must match the feed type specified by the schedule template (this feedType).

" - }, - "frequency": { - "type": "string", - "description": "This field specifies how often the schedule is generated. If set to HALF_HOUR or ONE_HOUR, you cannot set a preferredTriggerHour using createSchedule or updateSchedule. For implementation help, refer to eBay API documentation" - }, - "name": { - "type": "string", - "description": "The template name provided by the template." - }, - "scheduleTemplateId": { - "type": "string", - "description": "The ID of the template. Use this ID to create a schedule based on the properties of this schedule template." - }, - "status": { - "type": "string", - "description": "The present status of the template. You cannot create or modify a schedule using a template with an INACTIVE status. For implementation help, refer to eBay API documentation" - }, - "supportedConfigurations": { - "type": "array", - "description": "An array of the configuration supported by this template.", - "items": { - "$ref": "#/components/schemas/SupportedConfiguration" - } - } - }, - "description": "The type that defines the fields for a paginated result set of available schedule templates. The response consists of 0 or more sequenced pages where each page has 0 or more items." - }, - "ServiceMetricsTask": { - "type": "object", - "properties": { - "completionDate": { - "type": "string", - "description": "The timestamp when the customer service metrics task went into the COMPLETED or COMPLETED_WITH_ERROR state. This field is only returned if the status is one of the two completed values. This state means that eBay has compiled the report for the seller based on the seller’s filter criteria, and the seller can run a getResultFile call to download the report." - }, - "creationDate": { - "type": "string", - "description": "The date the customer service metrics task was created." - }, - "detailHref": { - "type": "string", - "description": "The relative getCustomerServiceMetricTask call URI path to retrieve the corresponding task." - }, - "feedType": { - "type": "string", - "description": "The feed type associated with the task." - }, - "filterCriteria": { - "description": "This container shows the criteria set for the report.", - "$ref": "#/components/schemas/CustomerServiceMetricsFilterCriteria" - }, - "schemaVersion": { - "type": "string", - "description": "The schema version number of the file format. If omitted, the default value is used.

Default value: 1.0

" - }, - "status": { - "type": "string", - "description": "An enumeration value that indicates the state of the task. See FeedStatusEnum for values. For implementation help, refer to eBay API documentation" - }, - "taskId": { - "type": "string", - "description": "The unique eBay-assigned ID of the task." - } - } - }, - "StreamingOutput": { - "type": "object", - "description": "File stream" - }, - "SupportedConfiguration": { - "type": "object", - "properties": { - "defaultValue": { - "type": "string", - "description": "The default value for the property. If a value is omitted from the schedule and a default value is supplied, the default value is used." - }, - "property": { - "type": "string", - "description": "Properties supported by the template. Properties can include the following:

*/ + fieldgroups?: string; + /** @description This query parameter specifies the unique identifier of an item group for which information is to be returned. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

This ID is returned in the itemGroupHref field of the search and getItem methods.

For Example:
https://api.ebay.com/buy/browse/v1/item/get_items_by_item_group?item_group_id=3**********6
*/ item_group_id: string; + /** @description This query parameter sets the item quantity to be used when calculating the shipping estimate information returned in the shippingOptions container of the response.

This value must be a positive integer value and should not exceed the quantity available in the listing. This field is not recommended for auction listings, as they will always have a quantity of 1. */ + quantity_for_shipping_estimate?: string; + }; + header?: { + /** @description This header is can be used in following two situations:
  • To retrieve the itemAffiliateWebUrl field in the response, the ePN affiliate can pass in their affiliate credentials using this header. For more information, see Header for affiliate information.
  • If the listing is using calculated or flat-rate shipping with shipping rate tables, the user can use this header to provide country and postal code in order for the shippingOption container, which includes shipping costs and delivery estimates, to be returned. For more information, see Header for shipping information accuracy.
*/ + "X-EBAY-C-ENDUSERCTX"?: string; + /** @description This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US */ + "X-EBAY-C-MARKETPLACE-ID"?: string; + /** @description This header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:
  • When targeting the French locale of the Belgium marketplace, it is required to pass in fr-BE to specify this. If this locale is not specified, the language will default to Dutch.
  • When targeting the French locale of the Canadian marketplace, it is required to pass in fr-CA to specify this. If this locale is not specified, the language will default to English.
*/ + "Accept-Language"?: string; }; - header?: never; path?: never; cookie?: never; }; @@ -1660,28 +1842,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -1689,11 +1879,15 @@ export interface operations { parameters: { query?: never; header: { - /** @description The ID of the eBay marketplace you want to use. Note: This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions. */ - "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US */ + "X-EBAY-C-MARKETPLACE-ID"?: string; + /** @description This header indicates the format of the request body provided by the client.

Its value should be set to application/json.

For more information, refer to HTTP request headers in the Using eBay RESTful APIs guide. */ + "Content-Type": string; + /** @description This header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:
  • When targeting the French locale of the Belgium marketplace, it is required to pass in fr-BE to specify this. If this locale is not specified, the language will default to Dutch.
  • When targeting the French locale of the Canadian marketplace, it is required to pass in fr-CA to specify this. If this locale is not specified, the language will default to English.
*/ + "Accept-Language"?: string; }; path: { - /** @description The eBay RESTful identifier of an item (such as a part you want to check). This ID is returned by the Browse and Feed API methods.

RESTful Item ID Format: v1|#|#
For example: v1|2**********2|0 or v1|1**********2|4**********2

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview. */ + /** @description This path parameter specifies the unique RESTful identifier of an item (such as the park you want to check).

RESTful Item ID Format: v1|#|#

For a single SKU listing, pass in the item ID:
v1|2**********2|0
For a multi-SKU listing, pass in the identifier of the variation:
v1|1**********2|4**********2

For more information about item IDs for RESTful APIs, refer to Item ID legacy API compatibility overview in the Buying Integration Guide. */ item_id: string; }; cookie?: never; @@ -1715,256 +1909,39 @@ export interface operations { }; /** @description Bad Request */ 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - addItem: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["AddCartItemInput"]; - }; - }; - responses: { - /** @description OK */ - 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["RemoteShopcartResponse"]; + "application/json": components["schemas"]["Error"]; }; }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Insufficient permissions to fulfill the request */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getShoppingCart: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["RemoteShopcartResponse"]; - }; - }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; /** @description Not Found */ 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - removeItem: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["RemoveCartItemInput"]; - }; - }; - responses: { - /** @description OK */ - 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["RemoteShopcartResponse"]; - }; - }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Insufficient permissions to fulfill the request */ - 403: { - headers: { - [name: string]: unknown; + "application/json": components["schemas"]["Error"]; }; - content?: never; }; /** @description Conflict */ 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateQuantity: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateCartItemInput"]; - }; - }; - responses: { - /** @description OK */ - 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["RemoteShopcartResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Insufficient permissions to fulfill the request */ - 403: { - headers: { - [name: string]: unknown; + "application/json": components["schemas"]["Error"]; }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; diff --git a/src/types/restful/specs/buy_deal_v1_oas3.ts b/src/types/restful/specs/buy_deal_v1_oas3.ts index da8ed5c8..825bdd43 100644 --- a/src/types/restful/specs/buy_deal_v1_oas3.ts +++ b/src/types/restful/specs/buy_deal_v1_oas3.ts @@ -11,7 +11,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves a paginated set of deal items. The result set contains all deal items associated with the specified search criteria and marketplace ID. Request headers This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide. Restrictions This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions. eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. */ + /** @description This method retrieves a paginated set of deal items. The result set contains all deal items associated with the specified search criteria and marketplace ID.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. */ get: operations["getDealItems"]; put?: never; post?: never; @@ -28,7 +28,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the details for an eBay event. The result set contains detailed information associated with the specified event ID, such as applicable coupons, start and end dates, and event terms. Request headers This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide. Restrictions This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions. eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. */ + /** @description This method retrieves the details for an eBay event. The result set contains detailed information associated with the specified event ID, such as applicable coupons, start and end dates, and event terms.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. */ get: operations["getEvent"]; put?: never; post?: never; @@ -45,7 +45,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method returns paginated results containing all eBay events for the specified marketplace. Request headers This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide. Restrictions This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions. eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. */ + /** @description This method returns paginated results containing all eBay events for the specified marketplace.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. */ get: operations["getEvents"]; put?: never; post?: never; @@ -62,7 +62,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method returns a paginated set of event items. The result set contains all event items associated with the specified search criteria and marketplace ID. Request headers This method uses the X-EBAY-C-ENDUSERCTX request header to support revenue sharing for eBay Partner Networks and to improve the accuracy of shipping and delivery time estimations. For details see, Request headers in the Buying Integration Guide. Restrictions This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions. eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. */ + /** @description This method returns a paginated set of event items. The result set contains all event items associated with the specified search criteria and marketplace ID.

Restrictions

This method can return a maximum of 10,000 items. For a list of supported sites and other restrictions, see API Restrictions.

eBay Partner Network: In order to receive a commission for your sales, you must use the URL returned in the itemAffiliateWebUrl field to forward your buyer to the ebay.com site. */ get: operations["getEventItems"]; put?: never; post?: never; @@ -78,9 +78,9 @@ export interface components { schemas: { /** @description The currency and value of the item. */ Amount: { - /** @description The three-letter ISO 4217 code representing the currency of the amount in the value field. Default: The currency of the authenticated user's country. For implementation help, refer to eBay API documentation */ + /** @description The three-letter ISO 4217 code representing the currency of the amount in the value field.

Default: The currency of the authenticated user's country. For implementation help, refer to eBay API documentation */ currency?: string; - /** @description The monetary value, in the currency specified by the currency field. */ + /** @description The monetary value, in the currency specified by the currency field. */ value?: string; }; /** @description The details for the coupon available for the item. */ @@ -114,11 +114,11 @@ export interface components { image?: components["schemas"]["Image"]; /** @description The item web URL with affiliate attribution. */ itemAffiliateWebUrl?: string; - /** @description The unique identifier for the deal item group. This is the parent item ID for the seller-defined variations. Note: This field is returned for multiple-SKU items. */ + /** @description The unique identifier for the deal item group. This is the parent item ID for the seller-defined variations.

Note: This field is returned for multiple-SKU items. */ itemGroupId?: string; /** @description An enumeration value that indicates the type of item group. An item group contains items that have various aspect differences, such as color, size, or storage capacity. For implementation help, refer to eBay API documentation */ itemGroupType?: string; - /** @description The unique identifier for the deal item. Note: This field is only returned for single-SKU items. */ + /** @description The unique identifier for the deal item.

Note: This field is only returned for single-SKU items. */ itemId?: string; /** @description The web URL for the deal item. */ itemWebUrl?: string; @@ -126,7 +126,7 @@ export interface components { legacyItemId?: string; /** @description The original price for the deal item, and the discount amount and percentage. */ marketingPrice?: components["schemas"]["MarketingPrice"]; - /** @description The price for the deal item. Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + /** @description The price for the deal item.

Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ price?: components["schemas"]["Amount"]; /** @description A list of programs applicable to the item. */ qualifiedPrograms?: string[]; @@ -134,9 +134,9 @@ export interface components { shippingOptions?: components["schemas"]["ShippingOption"][]; /** @description The title of the deal item. */ title?: string; - /** @description The price per unit for the deal item. Some European countries require listings for certain types of products to include the price per unit so that buyers can accurately compare prices. For example: "unitPricingMeasure": "100g", "unitPrice": {   "value": "7.99",   "currency": "GBP" */ + /** @description The price per unit for the deal item. Some European countries require listings for certain types of products to include the price per unit so that buyers can accurately compare prices.

For example:

"unitPricingMeasure": "100g",
"unitPrice": {
  "value": "7.99",
  "currency": "GBP"
*/ unitPrice?: components["schemas"]["Amount"]; - /** @description The designation used to specify the quantity of the deal item, such as size, weight, volume, and count. This helps buyers compare prices. For example, the following tells the buyer that the item is 7.99 per 100 grams. "unitPricingMeasure": "100g", "unitPrice": {   "value": "7.99",   "currency": "GBP" */ + /** @description The designation used to specify the quantity of the deal item, such as size, weight, volume, and count. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

"unitPricingMeasure": "100g",
"unitPrice": {
  "value": "7.99",
  "currency": "GBP"
*/ unitPricingMeasure?: string; }; /** @description The result set for the deal item search. */ @@ -147,14 +147,14 @@ export interface components { href?: string; /** * Format: int32 - * @description The maximum number of items, from the current result set, returned on a single page. Default: 20 + * @description The maximum number of items, from the current result set, returned on a single page.

Default: 20 */ limit?: number; /** @description The relative path to the next set of results. */ next?: string; /** * Format: int32 - * @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0 + * @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0 */ offset?: number; /** @description The relative path to the previous set of results. */ @@ -234,11 +234,11 @@ export interface components { image?: components["schemas"]["Image"]; /** @description The item web URL with affiliate attribution. */ itemAffiliateWebUrl?: string; - /** @description The unique identifier for the event item group. This is the parent item ID for the seller-defined variations. Note: This field is returned for multiple-SKU items. */ + /** @description The unique identifier for the event item group. This is the parent item ID for the seller-defined variations.

Note: This field is returned for multiple-SKU items. */ itemGroupId?: string; /** @description An enumeration value that indicates the type of item group. An item group contains items that have various aspect differences, such as color, size, or storage capacity. For implementation help, refer to eBay API documentation */ itemGroupType?: string; - /** @description The unique identifier for the event item. Note: This field is only returned for single-SKU items. */ + /** @description The unique identifier for the event item.

Note: This field is only returned for single-SKU items. */ itemId?: string; /** @description The web URL for the event item. */ itemWebUrl?: string; @@ -254,9 +254,9 @@ export interface components { shippingOptions?: components["schemas"]["ShippingOption"][]; /** @description The title of the event item. */ title?: string; - /** @description The price per unit for the event item. Some European countries require listings for certain types of products to include the price per unit so that buyers can accurately compare prices. For example: "unitPricingMeasure": "100g", "unitPrice": {   "value": "7.99",   "currency": "GBP" */ + /** @description The price per unit for the event item. Some European countries require listings for certain types of products to include the price per unit so that buyers can accurately compare prices.

For example:

"unitPricingMeasure": "100g",
"unitPrice": {
  "value": "7.99",
  "currency": "GBP"
*/ unitPrice?: components["schemas"]["Amount"]; - /** @description The designation used to specify the quantity of the event item, such as size, weight, volume, and count. This helps buyers compare prices. For example, the following tells the buyer that the item is 7.99 per 100 grams. "unitPricingMeasure": "100g", "unitPrice": {   "value": "7.99",   "currency": "GBP" */ + /** @description The designation used to specify the quantity of the event item, such as size, weight, volume, and count. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

"unitPricingMeasure": "100g",
"unitPrice": {
  "value": "7.99",
  "currency": "GBP"
*/ unitPricingMeasure?: string; }; /** @description The result set for the event item search. */ @@ -267,14 +267,14 @@ export interface components { href?: string; /** * Format: int32 - * @description The maximum number of items, from the current result set, returned on a single page. Default: 20 + * @description The maximum number of items, from the current result set, returned on a single page.

Default: 20 */ limit?: number; /** @description The relative path to the next set of results. */ next?: string; /** * Format: int32 - * @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0 + * @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0 */ offset?: number; /** @description The relative path to the previous set of results. */ @@ -293,14 +293,14 @@ export interface components { href?: string; /** * Format: int32 - * @description The maximum number of items, from the current result set, returned on a single page. Default: 20 + * @description The maximum number of items, from the current result set, returned on a single page.

Default: 20 */ limit?: number; /** @description The relative path to the next set of results. */ next?: string; /** * Format: int32 - * @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0 + * @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0 */ offset?: number; /** @description The relative path to the previous set of results. */ @@ -326,18 +326,18 @@ export interface components { MarketingPrice: { /** @description The monetary value of the seller discount. */ discountAmount?: components["schemas"]["Amount"]; - /** @description The percentage of the seller discount based on the value returned in the originalPrice field. */ + /** @description The percentage of the seller discount based on the value returned in the originalPrice field. */ discountPercentage?: string; /** @description The monetary value of the item prior to the discount. */ originalPrice?: components["schemas"]["Amount"]; - /** @description The pricing treatment (discount) that was applied to the price of the item. Note: The pricing treatment affects how and where the discounted price can be displayed. For implementation help, refer to eBay API documentation */ + /** @description The pricing treatment (discount) that was applied to the price of the item.

Note: The pricing treatment affects how and where the discounted price can be displayed. For implementation help, refer to eBay API documentation */ priceTreatment?: string; }; /** @description The details provided for the shipping provider, such as shipping cost and type. */ ShippingOption: { - /** @description The final shipping cost for all items after all discounts are applied. Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + /** @description The final shipping cost for all items after all discounts are applied.

Note: The price does include the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ shippingCost?: components["schemas"]["Amount"]; - /** @description The class of the shipping cost. Valid Values: FIXED or CALCULATED Code so that your app gracefully handles any future changes to this list. */ + /** @description The class of the shipping cost.

Valid Values: FIXED or CALCULATED

Code so that your app gracefully handles any future changes to this list. */ shippingCostType?: string; }; /** @description The terms for the event, provided in a full-text description and summary. */ @@ -359,20 +359,22 @@ export interface operations { getDealItems: { parameters: { query?: { - /** @description The unique identifier of the eBay category for the search. */ + /** @description This query parameter specifies the unique identifier of the eBay category for the search.

For details see Get Categories for Buy APIs. */ category_ids?: string; - /** @description A filter for commissionable deals. Restriction: This filter is currently only supported for the US marketplace. */ + /** @description This query parameter allows the response to filter by commissionable items.

If set to true, only commissionable items will be returned in the response. If set to false, commissionable items will not be returned in the response.

Note: This filter is currently only supported for the US marketplace. */ commissionable?: string; - /** @description A filter for items that can be shipped to the specified country. */ + /** @description This query parameter allows the response to only return items that can be shipped to the specified country (2-digit ISO code). */ delivery_country?: string; /** @description The maximum number of items, from the current result set, returned on a single page. */ limit?: string; - /** @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0 */ + /** @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0 */ offset?: string; }; header: { - /** @description A header used to specify the eBay marketplace ID. */ + /** @description This header identifies the eBay marketplace.

See HTTP request headers for supported marketplace ID values. */ "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers section of the Buying Integration Guide. */ + "X-EBAY-C-ENDUSERCTX"?: string; }; path?: never; cookie?: never; @@ -415,11 +417,13 @@ export interface operations { parameters: { query?: never; header: { - /** @description A header used to specify the eBay marketplace ID. */ + /** @description This header identifies the eBay marketplace.

See HTTP request headers for supported marketplace ID values. */ "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers section of the Buying Integration Guide. */ + "X-EBAY-C-ENDUSERCTX"?: string; }; path: { - /** @description The unique identifier for the eBay event. */ + /** @description This path parameters specifies the unique identifier for the eBay event being retrieved.

Use the getEvents method to retrieve event IDs. */ event_id: string; }; cookie?: never; @@ -468,14 +472,16 @@ export interface operations { getEvents: { parameters: { query?: { - /** @description The maximum number of items, from the current result set, returned on a single page. Default: 20 Maximum Value: 100 */ + /** @description The maximum number of items, from the current result set, returned on a single page.

Default: 20

Maximum Value: 100 */ limit?: string; - /** @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0 */ + /** @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0 */ offset?: string; }; header: { - /** @description A header used to specify the eBay marketplace ID. */ + /** @description This header identifies the eBay marketplace.

See HTTP request headers for supported marketplace ID values. */ "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers section of the Buying Integration Guide. */ + "X-EBAY-C-ENDUSERCTX"?: string; }; path?: never; cookie?: never; @@ -517,20 +523,22 @@ export interface operations { getEventItems: { parameters: { query: { - /** @description The unique identifier of the eBay category for the search. Maximum Value: 1 */ + /** @description This query parameter specifies the unique identifiers of the eBay categories for the search.

For details see Get Categories for Buy APIs.

Maximum Value: 1 */ category_ids?: string; - /** @description A filter for items that can be shipped to the specified country. */ + /** @description This query parameter allows the response to only return items that can be shipped to the specified country (2-digit ISO code). */ delivery_country?: string; - /** @description The unique identifiers for the eBay events. Maximum Value: 1 */ + /** @description This query parameter specifies the unique identifiers for the eBay event items being retrieved.

Use the getEvents method to retrieve event IDs.

Maximum Value: 1 */ event_ids: string; - /** @description The maximum number of items, from the current result set, returned on a single page. Default: 20 */ + /** @description The maximum number of items, from the current result set, returned on a single page.

Default: 20 */ limit?: string; - /** @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Default: 0 */ + /** @description The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned.

Default: 0 */ offset?: string; }; header: { - /** @description A header used to specify the eBay marketplace ID. */ + /** @description This header identifies the eBay marketplace.

See HTTP request headers for supported marketplace ID values. */ "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header is required to support revenue sharing for eBay Partner Network and to improve the accuracy of shipping and delivery time estimations.

For additional information, refer to Use request headers section of the Buying Integration Guide. */ + "X-EBAY-C-ENDUSERCTX"?: string; }; path?: never; cookie?: never; diff --git a/src/types/restful/specs/buy_feed_v1_beta_oas3.ts b/src/types/restful/specs/buy_feed_v1_beta_oas3.ts index 8e7ac15e..2d9bf4b3 100644 --- a/src/types/restful/specs/buy_feed_v1_beta_oas3.ts +++ b/src/types/restful/specs/buy_feed_v1_beta_oas3.ts @@ -11,7 +11,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method lets you download a TSV_GZIP (tab separated value gzip) Item feed file. The feed file contains all the items from all the child categories of the specified category. The first line of the file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section. There are two types of item feed files generated: A daily Item feed file containing all the newly listed items for a specific category, date, and marketplace (feed_scope = NEWLY_LISTED) A weekly Item Bootstrap feed file containing all the items in a specific category and marketplace (feed_scope = ALL_ACTIVE) Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future. URLs for this method Production URL: https://api.ebay.com/buy/feed/v1_beta/ Sandbox URL: https://api.sandbox.ebay.com/buy/feed/v1_beta/ Downloading feed files Item feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file. In addition to the API, there is an open source Feed SDK written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file. Note: The response is always a TSV_GZIP file. However for documentation purposes, the response is shown as JSON fields so that the value returned in each column can be explained. The order of the response fields, shows you the order of the columns in the feed file. Restrictions For a list of supported sites and other restrictions, see API Restrictions. */ + /** @description This method lets you download a TSV_GZIP (tab separated value gzip) Item feed file. The feed file contains all the items from all the child categories of the specified category. The first line of the file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section.

There are two types of item feed files generated:
  • A daily Item feed file containing all the newly listed items for a specific category, date, and marketplace (feed_scope = NEWLY_LISTED)
  • A weekly Item Bootstrap feed file containing all the items in a specific category and marketplace (feed_scope = ALL_ACTIVE)

Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
Note:The downloaded file will be gzipped automatically, so there is no reason to supply Accept-Encoding:gzip as a header. If this header is supplied, the downloaded file will be compressed twice, and this has no extra benefit.

Downloading feed files

Item feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file.For more information about using these headers, see Retrieve a gzip feed file.

In addition to the API, there is an open source Feed SDK written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.

Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions. */ get: operations["getItemFeed"]; put?: never; post?: never; @@ -28,7 +28,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method lets you download a TSV_GZIP (tab separated value gzip) Item Group feed file. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. There are two types of item group feed files generated: A daily Item Group feed file containing the item group variation information associated with items returned in the Item feed file for a specific day, category, and marketplace. (feed_scope = NEWLY_LISTED) A weekly Item Group Bootstrap feed file containing all the item group variation information associated with items returned in the Item Bootstrap feed file for all the items in a specific category. (feed_scope = ALL_ACTIVE) Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future. The contents of these feed files are based on the contents of the corresponding daily Item or Item Bootstrap feed file. When a new Item or Item Bootstrap feed file is generated, the service reads the file and if an item in the file has a primaryItemGroupId value, which indicates the item is part of an item group, it uses that value to return the item group (parent item) information for that item in the corresponding Item Group or Item Group Bootstrap feed file. This information includes the name/value pair of the aspects of the items in this group returned in the variesByLocalizedAspects column. For example, if the item was a shirt some of the variation names could be Size, Color, etc. Also the images for the various aspects are returned in the additionalImageUrls column. The first line in any feed file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section. Combining the Item Group and Item feed files The Item Group or Item Group Bootstrap feed file contains details about the item group (parent item), including the item group ID itemGroupId. You match the value of itemGroupId from the Item Group feed file with the value of primaryItemGroupId from the corresponding daily Item or Item Bootstrap feed file. URLs for this method Production URL: https://api.ebay.com/buy/feed/v1_beta/ Sandbox URL: https://api.sandbox.ebay.com/buy/feed/v1_beta/ Downloading feed files Item Group feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file. Note: The response is always only a TSV_GZIP file. However for documentation purposes, the response is shown as JSON fields so that the value returned in each column can be explained. The order of the response fields, shows you the order of the columns in the feed file. Restrictions For a list of supported sites and other restrictions, see API Restrictions. */ + /** @description This method lets you download a TSV_GZIP (tab separated value gzip) Item Group feed file. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.

There are two types of item group feed files generated:
  • A daily Item Group feed file containing the item group variation information associated with items returned in the Item feed file for a specific day, category, and marketplace. (feed_scope = NEWLY_LISTED)
  • A weekly Item Group Bootstrap feed file containing all the item group variation information associated with items returned in the Item Bootstrap feed file for all the items in a specific category. (feed_scope = ALL_ACTIVE)

Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
Note:The downloaded file will be gzipped automatically, so there is no reason to supply Accept-Encoding:gzip as a header. If this header is supplied, the downloaded file will be compressed twice, and this has no extra benefit.
The contents of these feed files are based on the contents of the corresponding daily Item or Item Bootstrap feed file. When a new Item or Item Bootstrap feed file is generated, the service reads the file and if an item in the file has a primaryItemGroupId value, which indicates the item is part of an item group, it uses that value to return the item group (parent item) information for that item in the corresponding Item Group or Item Group Bootstrap feed file.

This information includes the name/value pair of the aspects of the items in this group returned in the variesByLocalizedAspects column. For example, if the item was a shirt some of the variation names could be Size, Color, etc. Also the images for the various aspects are returned in the additionalImageUrls column.

The first line in any feed file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section.

Combining the Item Group and Item feed files

The Item Group or Item Group Bootstrap feed file contains details about the item group (parent item), including the item group ID itemGroupId. You match the value of itemGroupId from the Item Group feed file with the value of primaryItemGroupId from the corresponding daily Item or Item Bootstrap feed file.

Downloading feed files

Item Group feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieve a gzip feed file.

Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions. */ get: operations["getItemGroupFeed"]; put?: never; post?: never; @@ -45,7 +45,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description The Hourly Snapshot feed file is generated each hour every day for all categories. This method lets you download an Hourly Snapshot TSV_GZIP (tab separated value gzip) feed file containing the details of all the items that have changed within the specified day and hour for a specific category. This means to generate the 8AM file of items that have changed from 8AM and 8:59AM, the service starts at 9AM. You can retrieve the 8AM snapshot file at 10AM. Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future. You can use the response from this method to update the item details of items stored in your database. By comparing the value of itemSnapshotDate for the same item you will be able to tell which information is the latest. Important: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated. URLs for this method Production URL: https://api.ebay.com/buy/feed/v1_beta/ Sandbox URL: https://api.sandbox.ebay.com/buy/feed/v1_beta/ Downloading feed files Hourly snapshot feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file. Note: The response is always a TSV_GZIP file. However for documentation purposes, the response is shown as JSON fields so that the value returned in each column can be explained. The order of the response fields, shows you the order of the columns in the feed file. Restrictions For a list of supported sites and other restrictions, see API Restrictions. */ + /** @description The Hourly Snapshot feed file is generated each hour every day for most categories. This method lets you download an Hourly Snapshot TSV_GZIP (tab-separated value gzip) feed file containing the details of all the items that have changed within the specified day and hour for a specific category. This means to generate the 8AM file of items that have changed from 8AM and 8:59AM, the service starts at 9AM. You can retrieve the 8AM snapshot file at 10AM.

Snapshot feeds now include new listings. You can check itemCreationDate to identify listings that were newly created within the specified hour.

Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.

You can use the response from this method to update the item details of items stored in your database. By looking at the value of itemSnapshotDate for a given item, you will be able to tell which information is the latest.
Important: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated.
Note:The downloaded file will be gzipped automatically, so there is no reason to supply Accept-Encoding:gzip as a header. If this header is supplied, the downloaded file will be compressed twice, and this has no extra benefit.

Downloading feed files

Hourly snapshot feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file.

Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions. */ get: operations["getItemSnapshotFeed"]; put?: never; post?: never; @@ -55,15 +55,15 @@ export interface paths { patch?: never; trace?: never; }; - "/product": { + "/item_priority": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description Each day an Item feed file is generated for every top-level (L1) category. This file contains all the newly listed items for that day that are in the category including all its child categories. Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future. The service reads this Item feed file and if an item in the Item feed file has an epid (eBay Product Id) value, the service uses that value to return the product information for that item in the Product feed file for that day and category. This method lets you download the Product TSV_GZIP (tab separated value gzip) feed file containing the product information for items in the Item feed file that were associated with a product. The first line of the file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the Response fields section. To store all the item details provided by the Feed API, you would use the getItemFeed, getItemDescriptionFeed, getItemGroupFeed, and getProductFeed methods using the same parameters. For example:     /item?feed_scope=NEWLY_LISTED&category_id=625&date=20170918     /item_description?feed_scope=NEWLY_LISTED&category_id=625&date=20170918     /item-group?feed_scope=NEWLY_LISTED&category_id=625&date=20170918     /product?feed_scope=NEWLY_LISTED&category_id=625&date=20170918 Combining the Product and Item feed files The Product feed file contains details about the product, including the product epid. You match the value of epid from the Product feed file with the value of epid from the Item feed file for the same day and category. Downloading feed files Product feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieving a gzip feed file. URLs for this method Production URL: https://api.ebay.com/buy/feed/v1_beta/ Sandbox URL: https://api.sandbox.ebay.com/buy/feed/v1_beta/ Note: The response is always a TSV_GZIP file. However for documentation purposes, the response is shown as JSON fields so that the value returned in each column can be explained. The order of the response fields, shows you the order of the columns in the feed file. Restrictions For a list of supported sites and other restrictions, see API Restrictions. */ - get: operations["getProductFeed"]; + /** @description Using this method, you can download a TSV_GZIP (tab separated value gzip) Item Priority feed file, which allows you to track changes (deltas) in the status of your priority items, such as when an item is added or removed from a campaign. The delta feed tracks the changes to the status of items within a category you specify in the input URI. You can also specify a specific date for the feed you want returned.

Important! You must consume the daily feeds (Item, Item Group) before consuming the Item Priority feed. This ensures that your inventory is up to date.


Note: The downloaded file will be gzipped automatically, so there is no reason to supply Accept-Encoding:gzip as a header. If this header is supplied, the downloaded file will be compressed twice, and this has no extra benefit.

Downloading feed files

Note: Filters are applied to the feed files. For details, see Feed File Filters. When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
Priority Item feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the Range request header. The Content-range response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see Retrieve a gzip feed file.

In addition to the API, there is an open source Feed SDK written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.

Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions. */ + get: operations["getItemPriorityFeed"]; put?: never; post?: never; delete?: never; @@ -106,19 +106,19 @@ export interface components { /** @description The value of the object. */ value?: string; }; - /** @description The type that defines the columns returned in the Item feed file. */ + /** @description The type that defines the columns returned in the Item feed file. */ Item: { - /** @description The unique identifier of the eBay item. */ + /** @description The unique identifier of an item in eBay RESTful format. An example would be v1|1**********2|4**********2. */ itemId?: string; - /** @description The seller created title of the item. This text is an escaped string when special characters are present, using the following rules: Double quotes (") and backslashes (\) in the Title are escaped with a backslash (\) character If there are any tabs (\t), double quotes ("), or backslashes (\) in the Title, the entire Title will be wrapped in double quotes. For example Before: Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series After: "Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\Tracking" "Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series" */ + /** @description The seller created title of the item. This text is an escaped string when special characters are present, using the following rules:

  • Double quotes (") and backslashes (\) in the Title are escaped with a backslash (\) character
  • If there are any tabs (\t), double quotes ("), or backslashes (\) in the Title, the entire Title will be wrapped in double quotes.

For example

Before:

Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking

Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series

After:

"Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\ Tracking"

"Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series"

*/ title?: string; - /** @description The URL to the primary image of the item. This is the URL of the largest image available based on what the seller submitted. */ + /** @description The URL to the primary image of the item. This is the URL of the largest image available based on what the seller submitted. */ imageUrl?: string; - /** @description The label of the category. For example: Toys & Hobbies|Action Figures|Comic Book Heroes */ + /** @description The label of the category. For example: Toys & Hobbies|Action Figures|Comic Book Heroes */ category?: string; - /** @description The ID of the category of the item. For example: The ID for Toys & Hobbies|Action Figures|Comic Book Heroes is 158671. */ + /** @description The ID of the category of the item. For example: The ID for Toys & Hobbies|Action Figures|Comic Book Heroes is 158671. */ categoryId?: string; - /** @description A comma separated list of the purchase options available for the item, such as FIXED_PRICE, AUCTION. FIXED_PRICE - Returned for fixed-price items (non-auction) AUCTION - Returned for auction items without Buy It Now feature FIXED_PRICE and AUCTION - Returned for auction items enabled with the Buy It Now feature Code so that your app gracefully handles any future changes to this list. */ + /** @description A comma separated list of the purchase options available for the item. Currently the only supported option is FIXED_PRICE.

Important! This field no longer returns values and is scheduled for deprecation.

*/ buyingOptions?: string; /** @description The seller's eBay user name. */ sellerUsername?: string; @@ -126,159 +126,254 @@ export interface components { sellerFeedbackPercentage?: string; /** @description The feedback score of the seller. This value is based on the ratings from eBay members that bought items from this seller. */ sellerFeedbackScore?: string; - /** @description The unique Global Trade Item Number of the item as defined by http://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value. */ + /** @description The unique Global Trade Item Number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value. */ gtin?: string; /** @description The name brand of the item, such as Nike, Apple, etc. */ brand?: string; - /** @description The manufacturer part number, which is a number that is used in combination with brand to identify a product. */ + /** @description The manufacturer part number, which is a number that is used in combination with brand to identify a product. */ mpn?: string; - /** @description The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling. */ + /** @description The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling. */ epid?: string; - /** @description The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names. Code so that your app gracefully handles any future changes to this list. */ + /** @description The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list. */ conditionId?: string; - /** @description The text describing the condition of the item. For a list of condition names, see Item Condition IDs and Names. Code so that your app gracefully handles any future changes to this list. */ + /** @description The text describing the condition of the item. For a list of condition names, see Item Condition IDs and Names. */ condition?: string; - /** @description The price of the item. This price can be a discounted price. If it is discounted, information about the discount is returned in the originalPriceValue, originalPriceCurrency, discountAmount, and discountPercentage columns. */ + /** @description The price of the item, which can be a discounted price. If it is discounted, information about the discount is returned in the originalPriceValue, originalPriceCurrency, discountAmount, and discountPercentage columns.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ priceValue?: string; - /** @description The currency used for the price of the item. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation */ + /** @description The currency used for the price of the item. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation */ priceCurrency?: string; /** @description The unique identifier for the item group that contains this item. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. */ primaryItemGroupId?: string; - /** @description The item group type. Supported value: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller. Code so that your app gracefully handles any future changes to this list. */ + /** @description The item group type. Supported value: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

*/ primaryItemGroupType?: string; - /** @description A timestamp indicating when the item's sale period will end based on its start date and duration. For Good 'Til Cancelled' items, no value is returned in this column. Format: UTC (yyyy-MM-ddThh:mm:ss.sssZ). */ + /** @description A timestamp indicating when the item's sale period will end based on its start date and duration. For Good 'Til Cancelled items, no value is returned in this column.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ */ itemEndDate?: string; - /** @description An identifier generated/incremented when a seller revises the item. There are two types of item revisions; seller changes, such as changing the title and eBay system changes, such as changing the quantity when an item is purchased. This ID is changed only when the seller makes a change to the item. */ + /** @description An identifier generated/incremented when a seller revises the item. There are two types of item revisions:
  • Seller changes, such as changing the title
  • eBay system changes, such as changing the quantity when an item is purchased
This ID is changed only when the seller makes a change to the item. */ sellerItemRevision?: string; /** @description The country where the item is physically located. */ itemLocationCountry?: string; - /** @description A semicolon separated list of the name/value pairs for the aspects of the item, which are BASE64 encoded. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;). Example without Label    Encoded Format:    encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue    Encoded Example (The delimiters are empathized):    U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==    Decoded:    Size:XL;Color:Red;Sleeves:Long Example with Label    Encoded Format:    encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|    Encoded Example (The delimiters are empathized):    UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=    Decoded:    Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7 Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string. For more information, see Encoded Aspects in the Buying Integration Guide. */ + /** @description A semicolon separated list of the name/value pairs for the aspects of the item, which are Base64 encoded. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;).

Example without Label

   Encoded Format:
   encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue

   Encoded Example (The delimiters are emphasized):
   U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==

   Decoded:
   Size:XL;Color:Red;Sleeves:Long


Example with Label

   Encoded Format:
   encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|

   Encoded Example (The delimiters are emphasized):
   UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=

   Decoded:
   Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7

Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string.

For more information, see Encoded Aspects in the Buying Integration Guide.

*/ localizedAspects?: string; - /** @description An enumeration value representing the eBay status of the seller. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value representing the eBay status of the seller.

Valid Values: TOP_RATED, ABOVE_STANDARD, or an empty value.

An empty value indicates a return of anything other than TOP_RATED or ABOVE_STANDARD.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ sellerTrustLevel?: string; - /** @description An enumeration value representing the item's availability (possibility of being purchased). Values: AVAILABLE TEMPORARILY_UNAVAILABLE UNAVAILABLE Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value representing the item's availability (possibility of being purchased).

Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ availability?: string; - /** @description A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image. Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only. */ + /** @description A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image.

Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only.

*/ imageAlteringProhibited?: boolean; /** * Format: int32 - * @description The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned. + * @description The estimated quantity of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is very difficult to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.

Note: If the seller of an item has the available threshold setting turned on, the value of this field will be null, and the availability of the item will instead be expressed through the availabilityThresholdType and availabilityThreshold fields. */ estimatedAvailableQuantity?: number; - /** @description This column has a value only when the seller sets their Display Item Quantity preference to Display "More than 10 available" in your listing (if applicable). The value of this column will be MORE_THAN. This indicates that the seller has more than the 'Display Item Quantity', which is 10, in stock for this item. The following are the Display Item Quantity preferences the seller can set. Display "More than 10 available" in your listing (if applicable) If the seller enables this preference, this column will have a value as long as there are more than 10 of this item in inventory. If the quantity is equal to 10 or drops below 10, this column will be null and the estimated quantity of the item is returned in the estimatedAvailableQuantity column. Display the exact quantity in your items If the seller enables this preference, the availabilityThresholdType and availabilityThreshold columns will be null and the estimated quantity of the item is returned in the estimatedAvailableQuantity column. Note: Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. Code so that your app gracefully handles any future changes to these preferences. For implementation help, refer to eBay API documentation */ + /** @description This column has a value only when the seller sets their availability threshold preference. The value of this column will show MORE_THAN, which indicates that the seller has more than the available threshold preference in stock for this item. Because the quantity of an item can change several times within a second, it is very difficult to return the exact quantity.

Note: This field and the availabilityThreshold field will be returned as null if the actual quantity meets or drops below the threshold value, and then the buyer will want to look at the value in the estimatedAvailableQuantity field. For implementation help, refer to eBay API documentation */ availabilityThresholdType?: string; /** * Format: int32 - * @description This column has a value only when the seller sets their 'display item quantity' preference to Display "More than 10 available" in your listing (if applicable). The value of this column will be "10", which is the threshold value. Code so that your app gracefully handles any future changes to this value. + * @description This column has a value only when the seller sets their availability threshold preference. The value of this column will be "10", which is the threshold value.

Note: This field and the availabilityThresholdType field will be returned as null if the actual quantity meets or drops below the threshold value, and then the buyer will want to look at the value in the estimatedAvailableQuantity field. */ availabilityThreshold?: number; /** @description Indicates whether the seller accepts returns for the item. */ returnsAccepted?: boolean; /** * Format: int32 - * @description The amount of time the buyer has to return the item after the purchase date. This can be the number of years, months, or days depending on returnPeriodUnit. For example, if this value is '30', and the returnPeriodUnit value is 'DAY', the return period is 30 days. + * @description The amount of days that the buyer has to return the item after the purchase date. For example, if this value is '30', the return period is 30 days. */ returnPeriodValue?: number; - /** @description An enumeration value that indicates the period of time being used to measure the duration, such as business days or months, or years. See the TimeDurationUnitEnum type for a list of possible time-measuring units. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value that indicates the period of time being used to measure the duration, such as business days, months, or years.

TimeDurationUnitEnum is a common type shared by multiple eBay APIs and fields to express the time unit, but for return period duration, this value will always be DAY. For implementation help, refer to eBay API documentation */ returnPeriodUnit?: string; - /** @description An enumeration value that indicates how a buyer is refunded when an item is returned. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value that indicates how a buyer is refunded when an item is returned.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation */ refundMethod?: string; - /** @description An enumeration value that indicates the alternative methods for a full refund when an item is returned. This column will have data if the seller offers the buyer an item replacement or exchange instead of a monetary refund. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value that indicates the alternative methods for a full refund when an item is returned. This column will have data if the seller offers the buyer an item replacement or exchange instead of a monetary refund.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation */ returnMethod?: string; - /** @description The party responsible for the return shipping costs when an item is returned. Valid Values: BUYER or SELLER Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description The party responsible for the return shipping costs when an item is returned.

Valid Values: BUYER or SELLER

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ returnShippingCostPayer?: string; - /** @description Indicates the credit card service that will be used to process the transaction. If this column contains PAYPAL, you can use the Buy Order API to checkout and purchase the item. If this column is empty, you must use another method for checkout. */ + /** @description This field is returned empty. For a list of payment methods available for a marketplace, see eBay help pages or the actual View Item page.

Important! This field no longer returns values and is scheduled for deprecation.

*/ acceptedPaymentMethods?: string; - /** @description A comma separated list of delivery options for the item, such as SHIP_TO_HOME and SELLER_ARRANGED_LOCAL_PICKUP. This column lets you filter out items that cannot be shipped to the buyer. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description A comma-separated list of available delivery options. This column lets you filter out items than cannot be shipped to the buyer.

Valid Values: SHIP_TO_HOME, SELLER_ARRANGED_LOCAL_PICKUP, IN_STORE_PICKUP, and PICKUP_DROP_OFF.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ deliveryOptions?: string; - /** @description A pipe (|) separated alphabetical list of the geographic countries and regions where the seller will ship the item. If a region is specified, you will need to subtract any countries and regions returned in the shipToExcludedRegions column to fully understand where the seller will ship. The COUNTRY: list is separated from the REGION: list with a semicolon (;). Format Example: COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA; Country Values: The two-letter ISO 3166 standard code of the country. Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE Code so that your app gracefully handles any future changes to this list. */ + /** @description A pipe (|) separated alphabetical list of the geographic countries and regions where the seller will ship the item.

If a region is specified, you will need to subtract any countries and regions returned in the shipToExcludedRegions column to fully understand where the seller will ship.

The COUNTRY: list is separated from the REGION: list with a semicolon (;).

Format Example:
COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA;

Country Values: The two-letter ISO 3166 standard code of the country.

Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE

Code so that your app gracefully handles any future changes to this list. */ shipToIncludedRegions?: string; - /** @description A pipe (|) separated alphabetical list of the geographic countries and regions where the item cannot be shipped. These countries and regions refine (restrict) the shipToIncludedRegions list. The COUNTRY: list is separated from the REGION: list with a semicolon (;). Format Example: COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA; Country Values: The two-letter ISO 3166 standard code of the country. Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE Code so that your app gracefully handles any future changes to this list. */ + /** @description A pipe (|) separated alphabetical list of the geographic countries and regions where the item cannot be shipped.

These countries and regions refine (restrict) the shipToIncludedRegions list. The COUNTRY: list is separated from the REGION: list with a semicolon (;).

Format Example:
COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA;

Country Values: The two-letter ISO 3166 standard code of the country.

Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE

Code so that your app gracefully handles any future changes to this list. */ shipToExcludedRegions?: string; - /** @description The ePID (eBay Product ID of a product from the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data. If the seller provided an ePID for the item, the seller's value is returned in the epid column. */ + /** @description The ePID (eBay Product ID of a product in the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data.

If the seller actually provided an ePID at listing time for the item, the ePID value is returned in the epid column instead. */ inferredEpid?: string; - /** @description The GTIN (Global Trade Item Number) of the product as defined by http://www.gtin.info, which as been programmatically determined by eBay. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value. If the seller provided a GTIN for the item, the seller's value is returned in the gtin column. */ + /** @description The GTIN (Global Trade Item Number) of the product as defined by https://www.gtin.info, which as been programmatically determined by eBay. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value.

If the seller provided a GTIN for the item, the seller's value is returned in the gtin column. */ inferredGtin?: string; - /** @description The name brand for the item, such as Nike or Apple, which has been programmatically determined by eBay. To identify the product, this is always used along with MPN. If the seller provided a brand for the item, the seller's value is returned in the brand column. */ + /** @description The name brand for the item, such as Nike or Apple, which has been programmatically determined by eBay. To identify the product, this is always used along with MPN.

If the seller provided a brand for the item, the seller's value is returned in the brand column. */ inferredBrand?: string; - /** @description The MPN (Manufacturer's Part Number) for the item, which has been programmatically determined by eBay. To identify the product, this is always used along with brand. If the seller provided a MPN for the item, the seller's value is returned in the mpn column. */ + /** @description The MPN (Manufacturer's Part Number) for the item, which has been programmatically determined by eBay. To identify the product, this is always used along with brand.

If the seller provided a MPN for the item, the seller's value is returned in the mpn column. */ inferredMpn?: string; - /** @description A semicolon separated list of the name/value pairs for the aspects of the item, which are BASE64 encoded. These aspects have been programmatically determined by eBay. If the seller provided aspects for the item, the seller's values are returned in the localizedAspects column. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;). Example without Label    Encoded Format:    encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue    Encoded Example (The delimiters are empathized):    U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==    Decoded:    Size:XL;Color:Red;Sleeves:Long Example with Label    Encoded Format:    encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|    Encoded Example (The delimiters are empathized):    UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=    Decoded:    Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7 Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string. For more information, see Encoded Aspects in the Buying Integration Guide. */ + /** @description A semicolon separated list of the name/value pairs for the aspects of the item, which are Base64 encoded. These aspects have been programmatically determined by eBay. If the seller provided aspects for the item, the seller's values are returned in the localizedAspects column.

The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;).

Example without Label

   Encoded Format:
   encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue

   Encoded Example (The delimiters are emphasized):
   U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==

   Decoded:
   Size:XL;Color:Red;Sleeves:Long


Example with Label

   Encoded Format:
   encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|

   Encoded Example (The delimiters are emphasized):
   UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=

   Decoded:
   Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7

Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string.

For more information, see Encoded Aspects in the Buying Integration Guide.

*/ inferredLocalizedAspects?: string; - /** @description A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values. */ + /** @description A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values. */ additionalImageUrls?: string; /** @description The original selling price of the item. This lets you surface a strikethrough price for the item. */ originalPriceValue?: string; - /** @description The currency of the originalPriceValue of the item and the discountAmount. For implementation help, refer to eBay API documentation */ + /** @description The currency of the originalPriceValue of the item and the discountAmount. For implementation help, refer to eBay API documentation */ originalPriceCurrency?: string; - /** @description The calculated amount of the discount (originalPriceValue - priceValue). For example, if originalPriceValue is 70 and priceValue is 56, this value would be 14. Note: The currency shown in originalPriceCurrency is used for both discountAmount and originalPriceCurrency. */ + /** @description The calculated amount of the discount (originalPriceValue - priceValue). For example, if originalPriceValue is 70 and priceValue is 56, this value would be 14.

Note: The currency shown in originalPriceCurrency is used for both discountAmount and originalPriceCurrency.

*/ discountAmount?: string; - /** @description The calculated discount percentage. For example, if originalPriceValue is 70 and discountAmount is 14, this value will be 20. */ + /** @description The calculated discount percentage. For example, if originalPriceValue is 70 and discountAmount is 14, this value will be 20. */ discountPercentage?: string; - /** @description Indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating. The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models. To retrieve the manufacturer's specifications for this item, when they are available, use the getItem method in the Browse API. The information is returned in the productFicheWebUrl field. */ + /** @description Indicates the European energy efficiency rating (EEK) of the item. Data is returned in this column only if the seller specified the energy efficiency rating.

The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models.

To retrieve the manufacturer's specifications for this item, when they are available, use the getItem method in the Browse API. The information is returned in the productFicheWebUrl field. */ energyEfficiencyClass?: string; - /** @description A pipe separated list of the qualified programs available for the item. Currently, the only qualified program returned is EBAY_PLUS. Note: The EBAY_PLUS program is supported only on the EBAY_DE and EBAY_AU marketplaces. This means the qualifiedPrograms column will be populated only in feed files for these marketplaces. Program Values: EBAY_PLUS */ + /** @description A pipe separated list of the qualified programs available for the item.

Valid Values:
*/ qualifiedPrograms?: string; /** * Format: int32 - * @description The number of items in a lot. In other words, a lot size is the number of items that are being sold together. A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below. For example: Item Lot Definition Lot Size A package of 24 AA batteries A box of 10 packages 10 A P235/75-15 Goodyear tire 4 tires 4 Fashion Jewelry Rings Package of 100 assorted rings 100 Note: Lots are not supported in all categories. + * @description The number of items in a lot. In other words, a lot size is the number of items that are being sold together.

A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below.

For example:

Item Lot Definition Lot Size
A package of 24 AA batteries A box of 10 packages 10
A P235/75-15 Goodyear tire 4 tires 4
Fashion Jewelry Rings Package of 100 assorted rings 100


Note: Lots are not supported in all categories. */ lotSize?: number; - /** @description The unit of measurement used for the package dimensions, such as INCH, FEET, CENTIMETER, or METER. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description The unit of measurement used for the package dimensions, such as INCH, FEET, CENTIMETER, or METER.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation */ lengthUnitOfMeasure?: string; - /** @description The width of the shipping package that contains the item. */ + /** @description The width of the shipping package that contains the item.

Important! This field no longer returns values and is scheduled for deprecation.

*/ packageWidth?: string; - /** @description The height of the shipping package that contains the item. */ + /** @description The height of the shipping package that contains the item.

Important! This field no longer returns values and is scheduled for deprecation.

*/ packageHeight?: string; - /** @description The length of the shipping package that contains the item. */ + /** @description The length of the shipping package that contains the item.

Important! This field no longer returns values and is scheduled for deprecation.

*/ packageLength?: string; - /** @description The unit of measurement used for the package weight, such as POUND, KILOGRAM, OUNCE, or GRAM. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description The unit of measurement used for the package weight, such as POUND, KILOGRAM, OUNCE, or GRAM.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation */ weightUnitOfMeasure?: string; - /** @description The weight of the package that contains the item. */ + /** @description The weight of the package that contains the item.

Important! This field no longer returns values and is scheduled for deprecation.

*/ packageWeight?: string; + /** @description The name of the shipping provider, such as FedEx, or USPS.

Important! This field no longer returns values and is scheduled for deprecation.

*/ + shippingCarrierCode?: string; + /** @description The type of shipping service. For example, USPS First Class.

Important! This field no longer returns values and is scheduled for deprecation.

*/ + shippingServiceCode?: string; + /** @description The type of a shipping option, such as EXPEDITED, ONE_DAY, STANDARD, ECONOMY, PICKUP, etc. */ + shippingType?: string; + /** @description The final shipping cost for all the items after all discounts are applied.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + shippingCost?: string; + /** @description Indicates the class of the shipping cost.

Valid Values: FIXED or CALCULATED. */ + shippingCostType?: string; + /** @description Any per item additional shipping costs for a multi-item purchase. For example, let's say the shipping cost for a power cord is $3. But for an additional cord, the shipping cost is only $1. So if you bought 3 cords, the shippingCost would be $3 and this value would be $2 ($1 for each additional item).

Important! This field no longer returns values and is scheduled for deprecation.

*/ + additionalShippingCostPerUnit?: string; + /** + * Format: int32 + * @description The number of items used when calculating the estimation information.

Important! This field no longer returns values and is scheduled for deprecation.

+ */ + quantityUsedForEstimate?: number; + /** @description This is the price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:

"unitPricingMeasure": "100g",
"unitPrice": {
  "value": "7.99",
  "currency": "GBP"
*/ + unitPrice?: string; + /** @description The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

"unitPricingMeasure": "100g",
"unitPrice": {
  "value": "7.99",
  "currency": "GBP"
*/ + unitPricingMeasure?: string; + /** @description The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page. */ + legacyItemId?: string; + /** @description A pipe-separated list of alerts available for the item.

For example, if the DELAYED_DELIVERY alert was returned for an item, it would indicate a delay in shipping by the seller. */ + alerts?: string; + /** @description A string value that specifies whether the seller is a business or an individual. This is determined when the seller registers with eBay. If the seller registers for a business account, the value returned in this field will be BUSINESS. If the seller registers for a private account, the value returned in this field will be INDIVIDUAL.

Note: This designation is required by the tax laws in some countries.

This field is returned only on the following sites: EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, and EBAY_PL.

Code so that your app gracefully handles any future changes to this list.

Valid Values: BUSINESS or INDIVIDUAL */ + sellerAccountType?: string; + /** @description The URL to the image that shows the information on the tyre label. */ + tyreLabelImageUrl?: string; + /** @description EPN (eBay Partner Network) publishers append this value to their affiliate tracking URL when using an EPN tracking link to track changes that occur to Priority Listing items.

Example:amdata=enc%3AAQAFAAAAkB1DmsmXf%2BqZ%2BCEMGdebW6oR75GCMdBmc4MCQ%2FCEPqgKHbT0jdWhPwfY5LdUs6HTaP0eBlwKE7Smy2eDslewF7l3xjwWxjqwzNAnsYgxn2PiGkTKbiQSQytFUiymdtANpk1qOnBOoMGMK%2BWsji7jYlvySSs9o9s24TxD6RqWZpNrltzOU7mfnv3H40SZ3YESzg%3D%3D

See Creating an EPN Tracking Link for information on EPN tracking links. */ + priorityListingPayload?: string; + /** @description A timestamp indicating when the item was created.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ */ + itemCreationDate?: string; + /** @description The URL of the View Item page of the item.

For example:

Single SKU:
https://www.ebay.de/itm/2********0

MSKU:
https://www.ebay.com/itm/2********9?var=5********2 */ + itemWebUrl?: string; + /** @description URL to the gallery or default image of the item. The other images of the item are returned in the additionalImageUrls field.

For example

https://i.ebayimg.com/00/s/M********w/z/W********p/$_1.JPG?set_id=8********F */ + defaultImageUrl?: string; + /** @description The URL of the View Item page of the item, with the affiliate tracking ID appended to it.

For example

https://www.ebay.de/itm/2********0?mkevt=1&mkcid=1&mkrid=707-53477-19255-0&campid=CAMPAIGNID&toolid=2***6&customid=CUSTOMID */ + itemAffiliateWebUrl?: string; + /** @description The age group that the product is recommended for.

Valid values: newborn, infant, toddler, kids, adult. */ + ageGroup?: string; + /** @description The color of the item. */ + color?: string; + /** @description Text describing the pattern used on the item. For example, paisley.

Note: All the item aspects, including this aspect, are returned in the localizedAspects container. */ + pattern?: string; + /** @description The size of the item. */ + size?: string; + /** @description In cases where items could vary by gender, this specifies for which gender the product is intended. Possible values include male, female, and unisex. */ + gender?: string; + /** @description The material that the item is made of. */ + material?: string; + /** @description For an item that is priced by the unit, the total number of units that are on offer. For example, if the item is priced by the meter and 50 cm is on offer, the totalUnits would be 0.5 m. */ + totalUnits?: string; + /** @description The amount of the Eco Participation Fee, a fee paid toward the eventual disposal of the purchased item. */ + ecoParticipationFeeValue?: string; + /** @description The currency in which the Eco Participation Fee for the item is paid. */ + ecoParticipationFeeCurrency?: string; + /** @description The seller-defined label of the TAKE_BACK custom policy for the item. A TAKE_BACK policy describes the seller's regulatory responsibility to take back a purchased item for disposal when the buyer purchases a new one. */ + takeBackPolicyLabel?: string; + /** @description The seller-defined description of the TAKE_BACK custom policy for the item. */ + takeBackPolicyDescription?: string; + /** @description The ID of the signal word for the hazardous material. */ + hazmatSignalWordId?: string; + /** @description The localized signal word for the hazardous material, such as 'Danger'. */ + hazmatSignalWord?: string; + /** @description The IDs of hazardous material statements, separated by the pipe symbol. For example:

H200|H221 */ + hazmatStatementIds?: string; + /** @description The Base64 encoded descriptions of hazardous material statements, separated by the pipe symbol. For example:

encoded(Unstable explosives)|encoded(Flammable gas) */ + hazmatStatementDescriptions?: string; + /** @description The IDs of hazardous material pictograms, separated by the pipe symbol. For example:

SGH01|SGH02 */ + hazmatPictogramIds?: string; + /** @description The Base64 encoded descriptions of hazardous material pictograms, separated by the pipe symbol. For example:

encoded(exploding bomb)|encoded(flame) */ + hazmatPictogramDescriptions?: string; + /** @description The image URLs of hazardous material pictograms, separated by the pipe symbol. For example:

https://img1|https://img2 */ + hazmatPictogramImageUrls?: string; + /** @description Base64 encoded additional information about the hazardous material. */ + hazmatAdditionalInformation?: string; + /** @description A score that describes how easy it is to repair the product. Score values range from 0.1 (hardest to repair) to 10.0 (easiest), always including a single decimal place. */ + repairScore?: string; + /** @description Note: Condition descriptors are currently only available for the following trading card categories:
  • Non-Sport Trading Card Singles
  • CCG Individual Cards
  • Sports Trading Card Singles

This field contains a list of the name/value pairs for the condition descriptors of the item, which are Base64 encoded. The descriptors are separated as follows: Note: The separators ( : ; | ) are not encoded. You must decode each name, and value or values separately. You cannot decode the entire string.
The name and value are numeric IDs that map to the name and value, respectively, of a condition descriptor. A condition descriptor name-value pair provides more information about an item's condition in a structured way. Descriptors are name-value attributes that can be either from a closed set or open text. For more information on the numeric IDs and their text equivalents, use the getItemConditionPolicies method of the Metadata API. */ + conditionDescriptors?: string; + /** @description The unique identifier of an eBay user across all eBay sites. This value does not change, even when a user changes their username. */ + sellerUserId?: string; }; - /** @description The type that defines the columns returned in the Item Group feed file. */ + /** @description The type that defines the columns returned in the Item Group feed file. */ ItemGroup: { - /** @description The unique identifier for the item group. This ID is returned in the primaryItemGroupId column of the Item Feed file. */ + /** @description The unique identifier for the item group. This ID is returned in the primaryItemGroupId column of the Item Feed file. */ itemGroupId?: string; - /** @description The item group type. For example: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller. Code so that your app gracefully handles any future changes to this list. */ + /** @description The item group type. For example: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

*/ itemGroupType?: string; - /** @description The seller created title of the item group. This text is an escaped string when special characters are present, using the following rules: Double quotes (") and backslashes (\) in the Title are escaped with a backslash (\) character If there are any tabs (\t), double quotes ("), or backslashes (\) in the Title, the entire Title will be wrapped in double quotes. For example Before: Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series After: "Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\Tracking" "Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series" */ + /** @description The seller created title of the item group. This text is an escaped string when special characters are present, using the following rules:

For example

Before:

Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking

Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series

After:

"Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\ Tracking"

"Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series"

*/ title?: string; - /** @description A pipe separated (|) list of the aspect (variation) names for this item group. The aspect name is BASE64 encoded. Note: This column can contain multiple values.    Encoded Format:    aspectName|aspectName    Encoded Example (The delimiters are empathized):    Q29sb3I=|U2l6ZQ==    Decoded:    Color|Size */ + /** @description A pipe separated (|) list of the aspect (variation) names for this item group. The aspect name is Base64 encoded. Note: This column can contain multiple values.

   Encoded Format:
   aspectName|aspectName

   Encoded Example (The delimiters are emphasized):
   Q29sb3I=|U2l6ZQ==

   Decoded:
   Color|Size

*/ variesByLocalizedAspects?: string; - /** @description The URL to the primary image of the item. The other images of the item group are returned in the additionalImageUrls column. */ + /** @description The URL to the primary image of the item. The other images of the item group are returned in the additionalImageUrls column. */ imageUrl?: string; - /** @description A pipe separated (|) list of URLs for the additional images for the item group. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values. */ + /** @description A pipe separated (|) list of URLs for the additional images for the item group. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values. */ additionalImageUrls?: string; - /** @description A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image. Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only. */ + /** @description A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image.

Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only.

*/ imageAlteringProhibited?: boolean; }; - /** @description The type that defines the array for the items returned in the Item Group feed file. */ + /** @description The type that defines the array for the items returned in the Item Group feed file. */ ItemGroupResponse: { - /** @description The container for the array of items groups returned by the getItemGroupFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values for each item. The header labels match the fields that are described in the Response fields section. */ + /** @description The container for the array of items groups returned by the getItemGroupFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values for each item. The header labels match the fields that are described in the Response fields section. */ itemGroups?: components["schemas"]["ItemGroup"][]; }; - /** @description The type that defines the array for the items returned in the Item feed file. */ + ItemPriority: { + /** @description The unique identifier of an item in eBay RESTful format. An example would be v1|1********2|4********2. */ + itemId?: string; + /** @description EPN (eBay Partner Network) publishers append this value to their affiliate tracking URL when using an EPN tracking link to track changes that occur to Priority Listing items.

Example:_trkparms=ispr%3D1&amdata=enc%3AAQAFAAAAkB1DmsmXf%2BqZ%2BCEMGdebW6oR75GCMdBmc4MCQ%2FCEPqgKHbT0jdWhPwfY5LdUs6HTaP0eBlwKE7Smy2eDslewF7l3xjwWxjqwzNAnsYgxn2PiGkTKbiQSQytFUiymdtANpk1qOnBOoMGMK%2BWsji7jYlvySSs9o9s24TxD6RqWZpNrltzOU7mfnv3H40SZ3YESzg%3D%3D

See Creating an EPN Tracking Link for information on EPN tracking links. */ + priorityListingPayload?: string; + /** @description Status change indicator of the listing.

Values: Note: When a listing is removed from the campaign, PriorityListingPayload will be empty.

When multiple status changes are returned for a listing, the changeMetadata value will be a pipe-separated string (e.g., ADDED_TO_CAMPAIGN|TRACKING_PAYLOAD_REFRESHED).

To use the returned value, you will need to separate the string by pipe (|). */ + changeMetadata?: string; + }; + ItemPriorityResponse: { + /** @description The container for the array of items returned by the getItemPriorityFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values on each line. The header labels match the fields that are described in the Response fields section. */ + itemDelta?: components["schemas"]["ItemPriority"][]; + }; + /** @description The type that defines the array for the items returned in the Item feed file. */ ItemResponse: { - /** @description The container for the array of items returned by the getItemFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values on each line. The header labels match the fields that are described in the Response fields section. */ + /** @description The container for the array of items returned by the getItemFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values on each line. The header labels match the fields that are described in the Response fields section. */ items?: components["schemas"]["Item"][]; }; - /** @description The type that defines the columns returned in the Hourly Snapshot feed file. Note: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated. */ + /** @description The type that defines the columns returned in the Hourly Snapshot feed file.

Note: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated.

*/ ItemSnapshot: { - /** @description The unique identifier of the eBay item. */ + /** @description The unique identifier of an item in eBay RESTful format. An example would be v1|1**********2|4**********2. */ itemId?: string; - /** @description An enumeration value representing the item's availability (possibility of being purchased). Values: AVAILABLE TEMPORARILY_UNAVAILABLE UNAVAILABLE Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value representing the item's availability (possibility of being purchased).

Values: Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ availability?: string; - /** @description The seller created title of the item. This text is an escaped string when special characters are present, using the following rules: Double quotes (") and backslashes (\) in the Title are escaped with a backslash (\) character If there are any tabs (\t), double quotes ("), or backslashes (\) in the Title, the entire Title will be wrapped in double quotes. For example Before: Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series After: "Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\Tracking" "Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series" */ + /** @description The seller created title of the item. This text is an escaped string when special characters are present, using the following rules:

For example

Before:

Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking

Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series

After:

"Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\ Tracking"

"Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series"

*/ title?: string; - /** @description The URL to the primary image of the item. This is the URL of the largest image available based on what the seller submitted. */ + /** @description The URL to the primary image of the item. This is the URL of the largest image available based on what the seller submitted. */ imageUrl?: string; - /** @description The label of the category of the item. For example: Toys & Hobbies|Action Figures|Comic Book Heroes . */ + /** @description The label of the category of the item. For example: Toys & Hobbies|Action Figures|Comic Book Heroes . */ category?: string; - /** @description The ID of the category of the item. For example: The ID for Toys & Hobbies|Action Figures|Comic Book Heroes is 158671. */ + /** @description The ID of the category of the item. For example: The ID for Toys & Hobbies|Action Figures|Comic Book Heroes is 158671. */ categoryId?: string; - /** @description A comma separated list of the purchase options available for the item, such as FIXED_PRICE, AUCTION. Code so that your app gracefully handles any future changes to this list. Note: This column can contain multiple values. */ + /** @description A comma separated list of the purchase options available for the item. Currently the only supported option is FIXED_PRICE.

Important! This field no longer returns values and is scheduled for deprecation.

*/ buyingOptions?: string; /** @description The seller's eBay user name. */ sellerUsername?: string; @@ -286,120 +381,209 @@ export interface components { sellerFeedbackPercentage?: string; /** @description The feedback score of the seller. This value is based on the ratings from eBay members that bought items from this seller. */ sellerFeedbackScore?: string; - /** @description The unique Global Trade Item Number of the item as defined by http://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value. */ + /** @description The unique Global Trade Item Number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value. */ gtin?: string; /** @description The name brand of the item, such as Nike, Apple, etc. */ brand?: string; - /** @description The manufacturer part number, which is a number that is used in combination with brand to identify a product. */ + /** @description The manufacturer part number, which is a number that is used in combination with brand to identify a product. */ mpn?: string; - /** @description The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling. */ + /** @description The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling. */ epid?: string; - /** @description The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names. Code so that your app gracefully handles any future changes to this list. */ + /** @description The identifier of the condition of the item. For example, 1000 is the identifier for NEW. For a list of condition names and IDs, see Item Condition IDs and Names.

Code so that your app gracefully handles any future changes to this list. */ conditionId?: string; - /** @description The text describing the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names. Code so that your app gracefully handles any future changes to this list. */ + /** @description The text describing the condition of the item, such as New or Used. For a list of condition names, see Item Condition IDs and Names. */ condition?: string; - /** @description The price of the item. Note: This price can be a discounted price. */ + /** @description The price of the item, which can be a discounted price.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ priceValue?: string; - /** @description The currency used for the price of the item. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation */ + /** @description The currency used for the price of the item. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation */ priceCurrency?: string; /** @description The unique identifier for the item group that contains this item. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc. */ primaryItemGroupId?: string; - /** @description The item group type. Supported value: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller. Code so that your app gracefully handles any future changes to this list. */ + /** @description The item group type. Supported value: SELLER_DEFINED_VARIATIONS, indicates that the item group was created by the seller.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

*/ primaryItemGroupType?: string; - /** @description A timestamp indicating when the item's sale period will end based on its start date and duration. For Good 'Til Cancelled' items, no value is returned in this column. Format: UTC (yyyy-MM-ddThh:mm:ss.sssZ). */ + /** @description A timestamp indicating when the item's sale period will end based on its start date and duration. For Good 'Til Cancelled items, no value is returned in this column.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ */ itemEndDate?: string; - /** @description An identifier generated/incremented when a seller revises the item. There are two types of item revisions; seller changes, such as changing the title and eBay system changes, such as changing the quantity when an item is purchased. This ID is changed only when the seller makes a change to the item. */ + /** @description An identifier generated/incremented when a seller revises the item. There are two types of item revisions: This ID is changed only when the seller makes a change to the item. */ sellerItemRevision?: string; /** @description The country where the item is physically located. */ itemLocationCountry?: string; - /** @description A semicolon separated list of the name/value pairs for the aspects of the item, which are BASE64 encoded. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;). Example without Label    Encoded Format:    encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue    Encoded Example (The delimiters are empathized):    U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==    Decoded:    Size:XL;Color:Red;Sleeves:Long Example with Label    Encoded Format:    encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|    Encoded Example (The delimiters are empathized):    UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=    Decoded:    Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7 Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string. For more information, see Encoded Aspects in the Buying Integration Guide. */ + /** @description A semicolon separated list of the name/value pairs for the aspects of the item, which are Base64 encoded. The aspect label is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;).

Example without Label

   Encoded Format:
   encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue

   Encoded Example (The delimiters are emphasized):
   U2l6ZQ==:WEw=;Q29sb3I=:UmVk;U2xlZXZlcw==:TG9uZw==

   Decoded:
   Size:XL;Color:Red;Sleeves:Long


Example with Label

   Encoded Format:
   encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|

   Encoded Example (The delimiters are emphasized):
   UHJvZHVjdCBJZGVudGlmaWVycw==|R1RJTg==:MDE5MDE5ODA2NjYzMw==;QlJBTkQ=:QXBwbGU=;UHJvZHVjdCBLZXkgRmVhdHVyZXM=|TW9kZWw=:aVBob25lIDc=

   Decoded:
   Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7

Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string.

For more information, see Encoded Aspects in the Buying Integration Guide.

*/ localizedAspects?: string; - /** @description An enumeration value representing the eBay status of the seller. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value representing the eBay status of the seller.

Valid Values: TOP_RATED, ABOVE_STANDARD, or an empty value.

An empty value indicates a return of anything other than TOP_RATED or ABOVE_STANDARD.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ sellerTrustLevel?: string; - /** @description A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image. Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only. */ + /** @description A boolean that indicates whether the images can be altered. If the value is true, you cannot modify the image.

Note: Due to image licensing agreements and other legal concerns, modification (including resizing) of some images is strictly prohibited. These images are for display as-is only.

*/ imageAlteringProhibited?: boolean; /** * Format: int32 - * @description The estimated number of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned. + * @description The estimated quantity of this item that are available for purchase. Because the quantity of an item can change several times within a second, it is very difficult to return the exact quantity. So instead of returning quantity, the estimated availability of the item is returned.

Note: If the seller of an item has the available threshold setting turned on, the value of this field will be null, and the availability of the item will instead be expressed through the availabilityThresholdType and availabilityThreshold fields. */ estimatedAvailableQuantity?: number; - /** @description This column has a value only when the seller sets their Display Item Quantity preference to Display "More than 10 available" in your listing (if applicable). The value of this column will be MORE_THAN. This indicates that the seller has more than the 'Display Item Quantity', which is 10, in stock for this item. The following are the Display Item Quantity preferences the seller can set. Display "More than 10 available" in your listing (if applicable) If the seller enables this preference, this column will have a value as long as there are more than 10 of this item in inventory. If the quantity is equal to 10 or drops below 10, this column will be null and the estimated quantity of the item is returned in the estimatedAvailableQuantity column. Display the exact quantity in your items If the seller enables this preference, the availabilityThresholdType and availabilityThreshold columns will be null and the estimated quantity of the item is returned in the estimatedAvailableQuantity column. Note: Because the quantity of an item can change several times within a second, it is impossible to return the exact quantity. Code so that your app gracefully handles any future changes to these preferences. For implementation help, refer to eBay API documentation */ + /** @description This column has a value only when the seller sets their availability threshold preference. The value of this column will show MORE_THAN, which indicates that the seller has more than the available threshold preference in stock for this item. Because the quantity of an item can change several times within a second, it is very difficult to return the exact quantity.

Note: This field and the availabilityThreshold field will be returned as null if the actual quantity meets or drops below the threshold value, and then the buyer will want to look at the value in the estimatedAvailableQuantity field. For implementation help, refer to eBay API documentation */ availabilityThresholdType?: string; /** * Format: int32 - * @description This column has a value only when the seller sets their 'display item quantity' preference to Display "More than 10 available" in your listing (if applicable). The value of this column will be "10", which is the threshold value. Code so that your app gracefully handles any future changes to this value. + * @description This column has a value only when the seller sets their availability threshold preference.

The value of this column will be "10", which is the threshold value.

Note: This field and the availabilityThresholdType field will be returned as null if the actual quantity meets or drops below the threshold value, and then the buyer will want to look at the value in the estimatedAvailableQuantity field. */ availabilityThreshold?: number; - /** @description This timestamp denotes the date and time the changes for that item were picked up and added to the snapshot feed file. For example, let's say you have a snapshot feed file and also ran the getItem method. When you compare the same item information from the two sources, you see that the price in the getItem method response is different from the price in the snapshot feed file. By knowing the date and time you submitted the getItem method, you can use the itemSnapshotDate data to determine which price is the most current for this item. */ + /** @description This timestamp denotes the date and time the changes for that item were picked up and added to the snapshot feed file.

For example, let's say you have a snapshot feed file and also ran the getItem method. When you compare the same item information from the two sources, you see that the price in the getItem method response is different from the price in the snapshot feed file. By knowing the date and time you submitted the getItem method, you can use the itemSnapshotDate data to determine which price is the most current for this item.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ */ itemSnapshotDate?: string; /** @description The original selling price of the item. This lets you surface a strikethrough price for the item. */ originalPriceValue?: string; - /** @description The currency of the originalPriceValue of the item and the discountAmount. For implementation help, refer to eBay API documentation */ + /** @description The currency of the originalPriceValue of the item and the discountAmount. For implementation help, refer to eBay API documentation */ originalPriceCurrency?: string; - /** @description The calculated amount of the discount (originalPriceValue - priceValue). For example, if originalPriceValue is 70 and priceValue is 56, this value would be 14. Note: The currency shown in originalPriceCurrency is used for both discountAmount and originalPriceCurrency. */ + /** @description The calculated amount of the discount (originalPriceValue - priceValue). For example, if originalPriceValue is 70 and priceValue is 56, this value would be 14.

Note: The currency shown in originalPriceCurrency is used for both discountAmount and originalPriceCurrency. */ discountAmount?: string; - /** @description The calculated discount percentage. For example, if originalPriceValue is 70 and discountAmount is 14, this value will be 20. */ + /** @description The calculated discount percentage. For example, if originalPriceValue is 70 and discountAmount is 14, this value will be 20. */ discountPercentage?: string; /** @description Indicates whether the seller accepts returns for the item. */ returnsAccepted?: boolean; /** * Format: int32 - * @description The amount of time the buyer has to return the item after the purchase date. This can be the number of years, months, or days depending on returnPeriodUnit. For example, if this value is '30', and the returnPeriodUnit value is 'DAY', the return period is 30 days. + * @description The amount of days that the buyer has to return the item after the purchase date. For example, if this value is 30, the return period is 30 days. */ returnPeriodValue?: number; - /** @description An enumeration value representing the period of time being used to measure the duration, such as business days or months, or years. See the TimeDurationUnitEnum type for a list of possible time-measuring units. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value that indicates the period of time being used to measure the duration, such as business days, months, or years.

TimeDurationUnitEnum is a common type shared by multiple eBay APIs and fields to express the time unit, but for return period duration, this value will always be DAY. For implementation help, refer to eBay API documentation */ returnPeriodUnit?: string; - /** @description An enumeration value representing how a buyer is refunded when an item is returned. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value representing how a buyer is refunded when an item is returned.

Code so that your app gracefully handles any future changes to this list.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation */ refundMethod?: string; - /** @description An enumeration value that indicates the alternative methods for a full refund when an item is returned. This column will have data if the seller offers the buyer an item replacement or exchange instead of a monetary refund. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value that indicates the alternative methods for a full refund when an item is returned. This column will have data if the seller offers the buyer an item replacement or exchange instead of a monetary refund.

Important! This field no longer returns values and is scheduled for deprecation.

For implementation help, refer to eBay API documentation */ returnMethod?: string; - /** @description An enumeration value that indicates the party responsible for the return shipping costs when an item is returned. Valid Values: BUYER or SELLER Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value that indicates the party responsible for the return shipping costs when an item is returned.

Valid Values: BUYER or SELLER

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ returnShippingCostPayer?: string; - /** @description Indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating. The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models. To retrieve the manufacturer's specifications for this item, when they are available, use the getItem method in the Browse API. The information is returned in the productFicheWebUrl field. */ + /** @description Indicates the European energy efficiency rating (EEK) of the item. This field is returned only if the seller specified the energy efficiency rating.

The rating is a set of energy efficiency classes from A to G, where 'A' is the most energy efficient and 'G' is the least efficient. This rating helps buyers choose between various models.

To retrieve the manufacturer's specifications for this item, when they are available, use the getItem method in the Browse API. The information is returned in the productFicheWebUrl field. */ energyEfficiencyClass?: string; - /** @description A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values. */ + /** @description A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values. */ additionalImageUrls?: string; - /** @description A comma separated list of delivery options for the item, such as SHIP_TO_HOME and SELLER_ARRANGED_LOCAL_PICKUP. This column lets you filter out items that cannot be shipped to the buyer. Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description A comma-separated list of available delivery options. This column lets you filter out items than cannot be shipped to the buyer.

Valid Values: SHIP_TO_HOME, SELLER_ARRANGED_LOCAL_PICKUP, IN_STORE_PICKUP, and PICKUP_DROP_OFF.

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ deliveryOptions?: string; - /** @description A pipe (|) separated alphabetical list of the geographic countries and regions where the seller will ship the item. If a region is specified, you will need to subtract any countries and regions returned in the shipToExcludedRegions column to fully understand where the seller will ship. The COUNTRY: list is separated from the REGION: list with a semicolon (;). Format Example: COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA; Country Values: The two-letter ISO 3166 standard code of the country. Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE Code so that your app gracefully handles any future changes to this list. */ + /** @description A pipe (|) separated alphabetical list of the geographic countries and regions where the seller will ship the item.

If a region is specified, you will need to subtract any countries and regions returned in the shipToExcludedRegions column to fully understand where the seller will ship.

The COUNTRY: list is separated from the REGION: list with a semicolon (;).

Format Example:
COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA;

Country Values: The two-letter ISO 3166 standard code of the country.

Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE

Code so that your app gracefully handles any future changes to this list. */ shipToIncludedRegions?: string; - /** @description A pipe (|) separated alphabetical list of the geographic countries and regions where the item cannot be shipped. These countries and regions refine (restrict) the shipToIncludedRegions list. The COUNTRY: list is separated from the REGION: list with a semicolon (;). Format Example: COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA; Country Values: The two-letter ISO 3166 standard code of the country. Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE Code so that your app gracefully handles any future changes to this list. */ + /** @description A pipe (|) separated alphabetical list of the geographic countries and regions where the item cannot be shipped. These countries and regions refine (restrict) the shipToIncludedRegions list.

The COUNTRY: list is separated from the REGION: list with a semicolon (;).

Format Example:
COUNTRY:US|BM|GL|MX|PM;REGION:AFRICA|ASIA|CENTRAL_AMERICA_AND_CARIBBEAN|EUROPE|MIDDLE_EAST|OCEANIA|SOUTH_AMERICA|SOUTHEAST_ASIA;

Country Values: The two-letter ISO 3166 standard code of the country.

Region Values: AFRICA, AMERICAS, ANTARCTIC, ARCTIC, ASIA, AUSTRALIA, CENTRAL_AMERICA_AND_CARIBBEAN, EUROPE, EURO_UNION, GREATER_CHINA, MIDDLE_EAST, NORTH_AMERICA, OCEANIA, REST_OF_ASIA, SOUTHEAST_ASIA, SOUTH_AMERICA, WORLDWIDE

Code so that your app gracefully handles any future changes to this list. */ shipToExcludedRegions?: string; - /** @description Indicates the credit card service that will be used to process the transaction. If this column contains PAYPAL, you can use the Buy Order API to checkout and purchase the item. If this column is empty, you must use another method for checkout. */ + /** @description This field is returned empty. For a list of payment methods available for a marketplace, see eBay help pages or the actual View Item page.

Important! This field no longer returns values and is scheduled for deprecation.

*/ acceptedPaymentMethods?: string; - /** @description A pipe separated list of the qualified programs available for the item, such as EBAY_PLUS */ + /** @description A pipe separated list of the qualified programs available for the item, such as EBAY_PLUS and AUTHENTICITY_GUARANTEE.

eBay Plus is a premium account option for buyers, which provides benefits such as fast free domestic shipping and free returns on selected items. Top-Rated eBay sellers must opt in to eBay Plus to be able to offer the program on qualifying listings. Sellers must commit to next-day delivery of those items. Note: eBay Plus is available only to buyers in Germany, Austria, and Australia marketplaces.

The eBay Authenticity Guarantee program enables third-party authenticators to perform authentication verification inspections on items such as watches and sneakers. */ qualifiedPrograms?: string; /** * Format: int32 - * @description The number of items in a lot. In other words, a lot size is the number of items that are being sold together. A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below. For example: Item Lot Definition Lot Size A package of 24 AA batteries A box of 10 packages 10 A P235/75-15 Goodyear tire 4 tires 4 Fashion Jewelry Rings Package of 100 assorted rings 100 Note: Lots are not supported in all categories. + * @description The number of items in a lot. In other words, a lot size is the number of items that are being sold together.

A lot is a set of two or more items included in a single listing that must be purchased together in a single order line item. All the items in the lot are the same but there can be multiple items in a single lot, such as the package of batteries shown in the example below.

Item Lot Definition Lot Size
A package of 24 AA batteries A box of 10 packages 10
A P235/75-15 Goodyear tire 4 tires 4
Fashion Jewelry Rings Package of 100 assorted rings 100


Note: Lots are not supported in all categories. */ lotSize?: number; + /** @description The name of the shipping provider, such as FedEx, or USPS.

Important! This field no longer returns values and is scheduled for deprecation.

*/ + shippingCarrierCode?: string; + /** @description The type of shipping service. For example, USPS First Class.

Important! This field no longer returns values and is scheduled for deprecation.

*/ + shippingServiceCode?: string; + /** @description The type of a shipping option, such as EXPEDITED, ONE_DAY, STANDARD, ECONOMY, PICKUP, etc. */ + shippingType?: string; + /** @description The final shipping cost for all the items after all discounts are applied.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see the VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + shippingCost?: string; + /** @description Indicates the class of the shipping cost.

Valid Values: FIXED or CALCULATED

Code so that your app gracefully handles any future changes to this list. */ + shippingCostType?: string; + /** @description Any per item additional shipping costs for a multi-item purchase. For example, let's say the shipping cost for a power cord is $3. But for an additional cord, the shipping cost is only $1. So if you bought 3 cords, the shippingCost would be $3 and this value would be $2 ($1 for each additional item).

Important! This field no longer returns values and is scheduled for deprecation.

*/ + additionalShippingCostPerUnit?: string; + /** + * Format: int32 + * @description The number of items used when calculating the shipping estimation information.

Important! This field no longer returns values and is scheduled for deprecation.

+ */ + quantityUsedForEstimate?: number; + /** @description This is the price per unit for the item. Some European countries require listings for certain types of products to include the price per unit so buyers can accurately compare prices.

For example:

"unitPricingMeasure": "100g",
"unitPrice": {
  "value": "7.99",
  "currency": "GBP"
*/ + unitPrice?: string; + /** @description The designation, such as size, weight, volume, count, etc., that was used to specify the quantity of the item. This helps buyers compare prices.

For example, the following tells the buyer that the item is 7.99 per 100 grams.

"unitPricingMeasure": "100g",
"unitPrice": {
  "value": "7.99",
  "currency": "GBP"
*/ + unitPricingMeasure?: string; + /** @description The ePID (eBay Product ID of a product in the eBay product catalog) for the item, which has been programmatically determined by eBay using the item's title, aspects, and other data.

If the seller actually provided an ePID at listing time for the item, the ePID value is returned in the epid column instead. */ + inferredEpid?: string; + /** @description A timestamp indicating when the item was created.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ */ + itemCreationDate?: string; + /** @description The unique identifier of the eBay listing that contains the item. This is the traditional/legacy ID that is often seen in the URL of the listing View Item page. */ + legacyItemId?: string; + /** @description A pipe-separated list of alerts available for the item.

For example, if the DELAYED_DELIVERY alert was returned for an item, it would indicate a delay in shipping by the seller. */ + alerts?: string; + /** @description A string value that specifies whether the seller is a business or an individual. This is determined when the seller registers with eBay. If the seller registers for a business account, the value returned in this field will be BUSINESS. If the seller registers for a private account, the value returned in this field will be INDIVIDUAL.

Note: This designation is required by the tax laws in some countries.

This field is returned only on the following sites: EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, and EBAY_PL.

Code so that your app gracefully handles any future changes to this list.

Valid Values: BUSINESS or INDIVIDUAL */ + sellerAccountType?: string; + /** @description The URL to the image that shows the information on the tyre label. */ + tyreLabelImageUrl?: string; + /** @description The age group that the product is recommended for.

Valid values: newborn, infant, toddler, kids, adult. */ + ageGroup?: string; + /** @description The color of the item. */ + color?: string; + /** @description (Primary Item Aspect) Text describing the pattern used on the item. For example, paisley.

Note: All the item aspects, including this aspect, are returned in the localizedAspects container. */ + pattern?: string; + /** @description The size of the item. */ + size?: string; + /** @description In cases where items could vary by gender, this specifies for which gender the product is intended. Possible values include male, female, and unisex. */ + gender?: string; + /** @description The material that the item is made of. */ + material?: string; + /** @description For an item that is priced by the unit, the total number of units that are on offer. For example, if the item is priced by the meter and 50 cm is on offer, the totalUnits would be 0.5 m. */ + totalUnits?: string; + /** @description URL to the gallery or default image of the item. The other images of the item are returned in the additionalImageUrls field.

For example

https://i.ebayimg.com/00/s/M********w/z/W********p/$_1.JPG?set_id=8********F */ + defaultImageUrl?: string; + /** @description The URL of the View Item page of the item.

For example:

Single SKU:
https://www.ebay.de/itm/2********0

MSKU:
https://www.ebay.com/itm/2********9?var=5********2 */ + itemWebUrl?: string; + /** @description The URL of the View Item page of the item, with the affiliate tracking ID appended to it.

For example

https://www.ebay.de/itm/2********0?mkevt=1&mkcid=1&mkrid=707-53477-19255-0&campid=CAMPAIGNID&toolid=2***6&customid=CUSTOMID */ + itemAffiliateWebUrl?: string; + /** @description The seller created description of the item.

For example:

Brand-new, unused, and unworn. Not in original packaging. */ + description?: string; + /** @description Status change indicator of the listing.

Values: */ + changeMetadata?: string; + /** @description The amount of the Eco Participation Fee, a fee paid toward the eventual disposal of the purchased item. */ + ecoParticipationFeeValue?: string; + /** @description The currency in which the Eco Participation Fee for the item is paid. */ + ecoParticipationFeeCurrency?: string; + /** @description The seller-defined label of the TAKE_BACK custom policy for the item. A TAKE_BACK policy describes the seller's regulatory responsibility to take back a purchased item for disposal when the buyer purchases a new one. */ + takeBackPolicyLabel?: string; + /** @description The seller-defined description of the TAKE_BACK custom policy for the item. */ + takeBackPolicyDescription?: string; + /** @description The unique identifier for the Authenticity Guarantee service associated with the item. */ + authenticityGuaranteeServiceId?: string; + /** @description An indication of whether the Authenticity Guarantee service is optional or mandatory for the item. For implementation help, refer to eBay API documentation */ + authenticityGuaranteeSelection?: string; + /** @description The price of the Authenticity Guarantee service for the item.

Note: The price returned in this field indicates the service fee for a single item quantity. */ + authenticityGuaranteeFeeValue?: string; + /** @description The currency used for the Authenticity Guarantee service fee. */ + authenticityGuaranteeFeeCurrency?: string; + /** @description The type of discount that the coupon applies. */ + couponDiscountType?: string; + /** @description The redemption code for the coupon. */ + couponRedemptionCode?: string; + /** @description A description of the coupon. */ + couponMessage?: string; + /** @description The URL to the coupon terms of use. */ + couponTermsWebUrl?: string; + /** @description The discount amount after the coupon is applied. */ + couponDiscountValue?: string; + /** @description The currency used to specify the coupon discount value. */ + couponDiscountCurrency?: string; + /** @description The expiration date for the coupon.

Format: UTC yyyy-MM-ddThh:mm:ss.sssZ */ + couponExpirationDate?: string; + /** @description The ID of the signal word for the hazardous material. */ + hazmatSignalWordId?: string; + /** @description The localized signal word for the hazardous material, such as 'Danger'. */ + hazmatSignalWord?: string; + /** @description The IDs of hazardous material statements, separated by the pipe symbol. For example:

H200|H221 */ + hazmatStatementIds?: string; + /** @description The Base64 encoded descriptions of hazardous material statements, separated by the pipe symbol. For example:

encoded(Unstable explosives)|encoded(Flammable gas) */ + hazmatStatementDescriptions?: string; + /** @description The IDs of hazardous material pictograms, separated by the pipe symbol. For example:

SGH01|SGH02 */ + hazmatPictogramIds?: string; + /** @description The Base64 encoded descriptions of hazardous material pictograms, separated by the pipe symbol. For example:

encoded(exploding bomb)|encoded(flame) */ + hazmatPictogramDescriptions?: string; + /** @description The image URLs of hazardous material pictograms, separated by the pipe symbol. For example:

https://img1|https://img2 */ + hazmatPictogramImageUrls?: string; + /** @description Base64 encoded additional information about the hazardous material. */ + hazmatAdditionalInformation?: string; + /** @description A score that describes how easy it is to repair the product. Score values range from 0.1 (hardest to repair) to 10.0 (easiest), always including a single decimal place. */ + repairScore?: string; + /** @description Note: Condition descriptors are currently only available for the following trading card categories:
  • Non-Sport Trading Card Singles
  • CCG Individual Cards
  • Sports Trading Card Singles

This field contains a list of the name/value pairs for the condition descriptors of the item, which are Base64 encoded. The descriptors are separated as follows: Note: The separators ( : ; | ) are not encoded. You must decode each name, and value or values separately. You cannot decode the entire string.

The name and value are numeric IDs that map to the name and value, respectively, of a condition descriptor. A condition descriptor name-value pair provides more information about an item's condition in a structured way. Descriptors are name-value attributes that can be either from a closed set or open text. For more information on the numeric IDs and their text equivalents, use the getItemConditionPolicies method of the Metadata API. */ + conditionDescriptors?: string; + /** @description The unique identifier for an eBay user across all eBay sites. This value does not change, even when a user changes their username. */ + sellerUserId?: string; }; - /** @description The type that defines the array for the items returned in the Hourly Snapshot feed file. */ + /** @description The type that defines the array for the items returned in the Hourly Snapshot feed file. */ ItemSnapshotResponse: { - /** @description The container for the array of items returned by the getItemSnapshotFeed method. Note: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated. */ + /** @description The container for the array of items returned by the getItemSnapshotFeed method.

Note: When the value of the availability column is UNAVAILABLE, only the itemId and availability columns are populated.

*/ items?: components["schemas"]["ItemSnapshot"][]; }; - /** @description The type that defines the columns returned in the getProductFeed feed file. */ - Product: { - /** @description The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product and in the Marketing API methods to retrieve 'also viewed' and 'also bought' products to encourage up-selling and cross-selling. */ - epid?: string; - /** @description The title of the product. This text is an escaped string when special characters are present, using the following rules: Double quotes (") and backslashes (\) in the Title are escaped with a backslash (\) character If there are any tabs (\t), double quotes ("), or backslashes (\) in the Title, the entire Title will be wrapped in double quotes. For example Before: Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\Tracking Marvel Legends HULK 8" Figure Avengers Age of Ultron Studios 6" Series After: "Misty Rainforest Modern Masters 2017 MTG Magic Fetch Land Free Ship W\\Tracking" "Marvel Legends HULK 8\" Figure Avengers Age of Ultron Studios 6\" Series" */ - title?: string; - /** @description The description of the product, which is BASE64 encoded. */ - description?: string; - /** @description The URL to the primary product image. This is the URL of the largest image available based on what the seller submitted. */ - imageUrl?: string; - /** @description A pipe separated (|) list of URLs for the additional images of the item. These images are in addition to the primary image, which is returned in the imageUrl column. Note: This column can contain multiple values. */ - additionalImageUrls?: string; - /** @description A list of the name/value pairs for the aspects of the product, which are BASE64 encoded. The aspect label, is separated by a pipe (|), the aspect name and value are separated by a colon (:) and the name/value pairs are separated by a semicolon (;). Example without Label Encoded: encodedName:encodedValue;encodedName:encodedValue;encodedName:encodedValue Decoded: Size:XL;Color:Red;Sleeves:Long Example with Label Encoded: encodedLabel|encodedName:encodedValue;encodedName:encodedValue;encodedLabel|encodedName:encodedValue Decoded: Product Identifiers|GTIN:0190198066633;BRAND:Apple;Product Key Features|Model:iPhone 7 Note: The separators ( | : ; ) are not encoded. You must decode each label, name, and value separately. You cannot decode the entire string. For more information, see Encoded Aspects in the Buying Integration Guide. */ - localizedProductAspects?: string; - }; - /** @description The type that defines the array for the products returned in the Product feed file. */ - ProductResponse: { - /** @description The container for the array of products returned by the getProdutFeed method. The data in the file is tab separated and the first row is the header, which labels the columns and indicates the order of the values on each line. The header labels match the fields that are described in the Response fields section. */ - products?: components["schemas"]["Product"][]; - }; }; responses: never; parameters: never; @@ -412,17 +596,19 @@ export interface operations { getItemFeed: { parameters: { query: { - /** @description Specifies the type of feed file to return. Valid Values: NEWLY_LISTED - Returns the daily Item feed file containing all items that were listed on the day specified by the date parameter in the category specified by the category_id parameter. The items are Good 'Til Cancelled and non-Good 'Til Cancelled items. If the item is a non-Good 'Til Cancelled item, the item's end date will be returned in the itemEndDate column. /item?feed_scope=NEWLY_LISTED&category_id=15032&date=20170925 ALL_ACTIVE - Returns the weekly Item Bootstrap feed file containing all the 'Good 'Til Cancelled' items in the category specified by the category_id parameter. Note: Bootstrap files are generated every Tuesday and the file is available on Wednesday. However, the exact time the file is available can vary so we recommend you download the Bootstrap file on Thursday. The items in the file are the items that were in the specified category on Sunday. /item?feed_scope=ALL_ACTIVE&category_id=15032 */ + /** @description This query parameter specifies the type of feed file to return.

Valid Values: */ feed_scope: string; - /** @description An eBay top-level category ID of the items to be returned in the feed file. The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplaces, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field. For example:   "categoryTreeNodeLevel": 1 For details see Get Categories for Buy APIs. Restriction: Must be a top-level (L1) category */ + /** @description This query parameter specifies the eBay top-level category ID of the items to be returned in the feed file.

The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplace, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field.

For example:
  "categoryTreeNodeLevel": 1

For details see Get Categories for Buy APIs.

Restriction: Must be a top-level (L1) category other than Real Estate. Items listed under Real Estate L1 categories are excluded from all feeds in all marketplaces. */ category_id: string; - /** @description The date of the daily Item feed file (feed_scope=NEWLY_LISTED) you want. The date is required only for the daily Item feed file. If you specify a date for the Item Bootstrap file (feed_scope=ALL_ACTIVE), the date is ignored and the latest file is returned. The date the Item Bootstrap feed file was generated is returned in the Last-Modified response header. The Item feed files are generated every day and there are always 14 files available. The daily Item feed files are available each day after 9AM MST (US Mountain Standard Time), which is -7 hours UTC time. There is a 48 hour latency when generating the Item feed files. This means you can download the file for July 10th on July 12 after 9AM MST. Note: For categories with a large number of items, the latency can be up to 72 hours. Format: yyyyMMdd Requirements: Required when feed_scope=NEWLY_LISTED Must be within 3-14 days in the past */ + /** @description This query parameter specifies the date of the daily Item feed file (feed_scope=NEWLY_LISTED) you want to retrieve.

The date is required only for the daily Item feed file. If you specify a date for the Item Bootstrap file (feed_scope=ALL_ACTIVE), the date is ignored and the latest file is returned. The date the Item Bootstrap feed file was generated is returned in the Last-Modified response header.

The Item feed files are generated every day and there are 14 daily files available.

Note: The daily Item feed files are available each day after 9AM MST (US Mountain Standard Time), which is -7 hours UTC time.

There is a 48 hour latency when generating the Item feed files. This means you can download the file for July 10th on July 12 after 9AM MST.

For categories with a large number of items, the latency can be up to 72 hours.

Format: yyyyMMdd

Requirements: */ date?: string; }; header: { - /** @description The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions. */ + /** @description The formats that the client accepts for the response.

A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format.

Default: application/json,text/tab-separated-values */ + Accept: string; + /** @description The ID of the eBay marketplace where the item is hosted. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions. */ "X-EBAY-C-MARKETPLACE-ID": string; - /** @description This header specifies the range in bytes of the chunks of the gzip file being returned. Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.   Range bytes=0-10485760 For more information about using this headers, see Retrieving a gzip feed file. Maximum: 100 MB (10MB in the Sandbox) */ + /** @description This header specifies the range in bytes of the chunks of the gzip file being returned.

Format: bytes=startpos-endpos

For example, the following retrieves the first 10 MBs of the feed file.

  Range bytes=0-10485760

For more information about using this header, see Retrieving a gzip feed file.

Maximum: 100 MB (10MB in the Sandbox) */ Range: string; }; path?: never; @@ -441,7 +627,7 @@ export interface operations { "text/tab-separated-values": components["schemas"]["ItemResponse"]; }; }; - /** @description No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details. */ + /** @description No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details. */ 204: { headers: { [name: string]: unknown; @@ -466,6 +652,13 @@ export interface operations { }; content?: never; }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Not found */ 404: { headers: { @@ -473,6 +666,13 @@ export interface operations { }; content?: never; }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Range not satisfiable */ 416: { headers: { @@ -480,7 +680,7 @@ export interface operations { }; content?: never; }; - /** @description Internal Server Error */ + /** @description Internal server error */ 500: { headers: { [name: string]: unknown; @@ -492,17 +692,19 @@ export interface operations { getItemGroupFeed: { parameters: { query: { - /** @description Specifies the type of file to return. Valid Values: NEWLY_LISTED - Returns the Item Group feed file containing the item group variation information for items in the daily Item feed file that were associated with an item group. The items in this type of Item feed file are items that were listed on the day specified by the date parameter in the category specified by the category_id parameter. The items will be Good 'Til Cancelled and non-Good 'Til Cancelled items. If the item is a non-Good 'Til Cancelled item, the item's end date will be returned in the itemEndDate column. /item_group?feed_scope=NEWLY_LISTED&category_id=15032&date=20170925 ALL_ACTIVE - Returns the weekly Item Group Bootstrap file containing the item group variation information for items in the weekly Item Bootstrap feed file that were associated with an item group. The items are 'Good 'Til Cancelled' items in the category specified by the category_id parameter. Note: Bootstrap files are generated every Tuesday and the file is available on Wednesday. However, the exact time the file is available can vary so we recommend you download the Bootstrap file on Thursday. The item groups in the file are for the items that were in the specified category on Sunday. /item_group?feed_scope=ALL_ACTIVE&category_id=15032 */ + /** @description This query parameter specifies the type of file to return.

Valid Values:

Restriction: Must be a top-level category other than Real Estate. Items listed under Real Estate L1 categories are excluded from all feeds in all marketplaces. */ category_id: string; - /** @description The date of the daily Item Group feed file (feed_scope=NEWLY_LISTED) you want. The date is required only for the daily Item Group feed file. If you specify a date for the Item Group Bootstrap file (feed_scope=ALL_ACTIVE), the date is ignored and the latest file is returned. The date the Item Group Bootstrap feed file was generated is returned in the Last-Modified response header. The Item Group feed files are generated every day and there are always 14 files available. There is a 48 hour latency when generating the files. This means on July 10, the latest feed file you can download is July 8. Note: The generated files are stored using MST (US Mountain Standard Time), which is -7 hours UTC time. Format: yyyyMMdd Requirement: Requirements: Required only when feed_scope=NEWLY_LISTED Must be within 3-14 days in the past */ + /** @description This query parameter specifies the date of the daily Item Group feed file (feed_scope=NEWLY_LISTED) you want.

The date is required only for the daily Item Group feed file. If you specify a date for the Item Group Bootstrap file (feed_scope=ALL_ACTIVE), the date is ignored and the latest file is returned. The date the Item Group Bootstrap feed file was generated is returned in the Last-Modified response header.

The Item Group feed files are generated every day and there are 14 daily files available.

There is a 48 hour latency when generating the files. This means on July 10, the latest feed file you can download is July 8.

Note: The generated files are stored using MST (US Mountain Standard Time), which is -7 hours UTC time.
Format: yyyyMMdd

Requirements: */ date?: string; }; header: { - /** @description The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions. */ + /** @description The formats that the client accepts for the response.

A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate error codes that are returned in JSON format.

Default: application/json,text/tab-separated-values */ + Accept: string; + /** @description The ID of the eBay marketplace where the item is hosted. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions. */ "X-EBAY-C-MARKETPLACE-ID": string; - /** @description This header specifies the range in bytes of the chunks of the gzip file being returned. Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.   Range bytes=0-10485760 For more information about using this headers, see Retrieving a gzip feed file. Maximum: 100 MB (10MB in the Sandbox) */ + /** @description This header specifies the range in bytes of the chunks of the gzip file being returned.

Format: bytes=startpos-endpos

For example, the following retrieves the first 10 MBs of the feed file.

  Range bytes=0-10485760

For more information about using this header, see Retrieving a gzip feed file.

Maximum: 100 MB (10MB in the Sandbox) */ Range?: string; }; path?: never; @@ -521,7 +723,7 @@ export interface operations { "text/tab-separated-values": components["schemas"]["ItemGroupResponse"]; }; }; - /** @description No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details. */ + /** @description No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details. */ 204: { headers: { [name: string]: unknown; @@ -546,6 +748,13 @@ export interface operations { }; content?: never; }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Not found */ 404: { headers: { @@ -553,6 +762,13 @@ export interface operations { }; content?: never; }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Range not satisfiable */ 416: { headers: { @@ -560,7 +776,7 @@ export interface operations { }; content?: never; }; - /** @description Internal Server Error */ + /** @description Internal server error */ 500: { headers: { [name: string]: unknown; @@ -572,15 +788,17 @@ export interface operations { getItemSnapshotFeed: { parameters: { query: { - /** @description An eBay top-level category ID of the items to be returned in the feed file. The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplace, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field. For example:   "categoryTreeNodeLevel": 1 For details see Get Categories for Buy APIs. Restriction: Must be a top-level category */ + /** @description This query parameter specifies the eBay top-level category ID of the items to be returned in the feed file.

The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplace, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field.

For example:
  "categoryTreeNodeLevel": 1

For details see Get Categories for Buy APIs.

Restriction: Must be a top-level category other than Real Estate. Items listed under Real Estate L1 categories are excluded from all feeds in all marketplaces. */ category_id: string; - /** @description The hour of the incremental feed file you want, for a particular day. There are always 14 days of Hourly Snapshot feed files available. If you specify that you want the 9AM file for July 15, 2017 (2017-07-15T09:00:00.000Z), the data in the feed file will be items that changed after 9AM on July 15, 2017. Restrictions: Files are generated on the hour, so minutes and seconds are always zeros.    (2017-07-12T09:00:00.000Z) Format: UTC format (yyyy-MM-ddThh:00:00.000Z) */ + /** @description This query parameter specifies the date and hour of the snapshot feed file you want to retrieve.

Each file contains the items that changed within the hour in the specified category. So, the 9AM file contains the items that changed between 9AM and 9:59AM on the day specified. It takes 2 hours to generate a snapshot file, which means to get the file for 9AM the earliest you could submit the call is at 11AM.

There are 7 days of Hourly Snapshot feed files available.

Note: The Feed API uses GMT, so you must convert your local time to GMT. For example, if you lived in California and wanted the September 15th 7pm file, you would submit the following call:

item_snapshot?category_id=625&snapshot_date=2017-09-16T02:00:00.000Z

Format: UTC yyyy-MM-ddThh:00:00.000Z

Note: Files are generated on the hour, so minutes and seconds are always zeros. */ snapshot_date: string; }; header: { - /** @description The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions. */ + /** @description The formats that the client accepts for the response.

A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate error codes that are returned in JSON format.

Default: application/json,text/tab-separated-values */ + Accept: string; + /** @description The ID of the eBay marketplace where the item is hosted. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions. */ "X-EBAY-C-MARKETPLACE-ID": string; - /** @description This header specifies the range in bytes of the chunks of the gzip file being returned. Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.   Range bytes=0-10485760 For more information about using this headers, see Retrieving a gzip feed file. Maximum: 100 MB (10MB in the Sandbox) */ + /** @description This header specifies the range in bytes of the chunks of the gzip file being returned.

Format: bytes=startpos-endpos

For example, the following retrieves the first 10 MBs of the feed file.

  Range bytes=0-10485760

For more information about using this header, see Retrieving a gzip feed file.

Maximum: 100 MB (10MB in the Sandbox) */ Range: string; }; path?: never; @@ -599,7 +817,7 @@ export interface operations { "text/tab-separated-values": components["schemas"]["ItemSnapshotResponse"]; }; }; - /** @description No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details. */ + /** @description No Content
This code is returned when there are no items that meet the criteria for this feed file. See Feed File Filters for details. */ 204: { headers: { [name: string]: unknown; @@ -617,13 +835,20 @@ export interface operations { "text/tab-separated-values": components["schemas"]["ItemSnapshotResponse"]; }; }; - /** @description Bad request */ + /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; content?: never; }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Not found */ 404: { headers: { @@ -631,6 +856,13 @@ export interface operations { }; content?: never; }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Range not satisfiable */ 416: { headers: { @@ -647,20 +879,20 @@ export interface operations { }; }; }; - getProductFeed: { + getItemPriorityFeed: { parameters: { query: { - /** @description Specifies the type of product feed file to return. Valid Values: NEWLY_LISTED - Returns the file containing the product information for items in the NEWLY_LISTED Item feed file that were associated with a product. The items in this type of Item feed file are items that were listed on the day specified by the date parameter in the category specified by the category_id parameter. The items will be Good 'Til Cancelled and non-Good 'Til Cancelled items. If the item is a non-Good 'Til Cancelled item, the item's end date will be returned in the itemEndDate column. /product?feed_scope=NEWLY_LISTED&category_id=15032&date=20170925 ALL_ACTIVE (bootstrap) - Returns the file containing the product information for items in the ALL_ACTIVE Item feed file that were associated with a product. The items in this type of Item feed file are all the 'Good 'Til Cancelled' items in the category specified by the category_id parameter. Note: Bootstrap files are generated every Tuesday and the file is available on Wednesday. However, the exact time the file is available can vary so we recommend you download the Bootstrap file on Thursday. The products in the file are the products that were in the specified category on Sunday. /product?feed_scope=ALL_ACTIVE&category_id=15032 */ - feed_scope: string; - /** @description An eBay top-level category ID of the items to be returned in the feed file. The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplaces, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field. For example:   "categoryTreeNodeLevel": 1 For details see Get Categories for Buy APIs. Restriction: Must be a top-level category */ + /** @description This query parameter specifies the eBay top-level category ID of the items to be returned in the feed file.

The list of eBay category IDs changes over time and category IDs are not the same across all the eBay marketplaces. To get a list of the top-level categories for a marketplaces, you can use the Taxonomy API getCategoryTree method. This method retrieves the complete category tree for the marketplace. The top-level categories are identified by the categoryTreeNodeLevel field.

For example:
  "categoryTreeNodeLevel": 1

For details see Get the eBay categories of a marketplace.

Restriction: Must be a top-level category other than Real Estate. Items listed under Real Estate L1 categories are excluded from all feeds in all marketplaces. */ category_id: string; - /** @description The date of the feed file you want. This is needed only when feed_scope=NEWLY_LISTED. If you specify a date and feed_scope=ALL_ACTIVE, the date is ignored and the latest file is returned. The date of the file is returned in the Last-Modified response header. The Product feed files are generated every day and there are always 14 daily feed files available. There is a 48 hour latency when generating the files. This means on July 10, the latest feed file you can download is July 8. In other words, if you wanted the file generated on July 10th, you would need to wait until July 12th. Note: The generated files are stored using MST (US Mountain Standard Time), which is -7 hours UTC time. Format: yyyyMMdd Requirements: Must be within 3-14 days in the past Required when feed_scope=NEWLY_LISTED */ - date?: string; + /** @description This query parameter specifies the date of the feed you want returned.

This can be up to 14 days in the past but cannot be set to a date in the future.

Format: yyyyMMdd

Note: The daily Item feed files are available each day after 9AM MST (US Mountain Standard Time), which is -7 hours UTC time.

There is a 48 hour latency when generating the Item feed files. This means you can download the file for July 10th on July 12 after 9AM MST.

For categories with a large number of items, the latency can be up to 72 hours. */ + date: string; }; header: { - /** @description The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions. */ + /** @description The formats that the client accepts for the response.

A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate error codes that are returned in JSON format.

Default: application/json,text/tab-separated-values */ + Accept: string; + /** @description The ID of the eBay marketplace where the item is hosted. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, Buy API Support by Marketplace. */ "X-EBAY-C-MARKETPLACE-ID": string; - /** @description This header specifies the range in bytes of the chunks of the gzip file being returned. Format: bytes=startpos-endpos For example, this retrieves the first 10 MBs of the feed file: bytes=0-10485760 For more information about using this headers, see Retrieving a gzip feed file. Maximum: 100 MB (10MB in the Sandbox) */ + /** @description Header specifying content range to be retrieved. Only supported range is bytes.

Example : bytes = 0-102400. */ Range: string; }; path?: never; @@ -676,10 +908,10 @@ export interface operations { [name: string]: unknown; }; content: { - "text/tab-separated-values": components["schemas"]["ProductResponse"]; + "text/tab-separated-values": components["schemas"]["ItemPriorityResponse"]; }; }; - /** @description No Content
This code is returned when there are no products that meet the criteria for this feed file. See Feed File Filters for details. */ + /** @description No Content */ 204: { headers: { [name: string]: unknown; @@ -694,7 +926,7 @@ export interface operations { [name: string]: unknown; }; content: { - "text/tab-separated-values": components["schemas"]["ProductResponse"]; + "text/tab-separated-values": components["schemas"]["ItemPriorityResponse"]; }; }; /** @description Bad request */ @@ -704,6 +936,13 @@ export interface operations { }; content?: never; }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Not found */ 404: { headers: { @@ -711,6 +950,13 @@ export interface operations { }; content?: never; }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Range not satisfiable */ 416: { headers: { @@ -718,7 +964,7 @@ export interface operations { }; content?: never; }; - /** @description Internal Server Error */ + /** @description Internal server error */ 500: { headers: { [name: string]: unknown; diff --git a/src/types/restful/specs/buy_marketing_v1_beta_oas3.ts b/src/types/restful/specs/buy_marketing_v1_beta_oas3.ts index 126484e3..2ba8d89f 100644 --- a/src/types/restful/specs/buy_marketing_v1_beta_oas3.ts +++ b/src/types/restful/specs/buy_marketing_v1_beta_oas3.ts @@ -4,40 +4,6 @@ */ export interface paths { - "/merchandised_product/get_also_bought_products": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This call returns products that were also bought when shoppers bought the product specified in the request. Showing 'also bought' products inspires up-selling and cross-selling. You specify the product by one of the following: epid - eBay Product ID gtin - Global Trade Item Number (UPC, ISBN, EAN) brand (brand name, such as Nike) plus mpn (Manufacturer's Part Number) Restrictions For a list of supported sites and other restrictions, see API Restrictions. Note: A maximum of 12 products are returned. The call will return up to 12 products, but it can be less than 12. If the number of products found is less than 12, the call will return all of the products matching the criteria. */ - get: operations["getAlsoBoughtByProduct"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/merchandised_product/get_also_viewed_products": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This call returns products that were also viewed when shoppers viewed the product specified in the request. Showing 'also viewed' products encourages up-selling and cross-selling. You specify the product by one of the following: epid - eBay Product ID gtin - Global Trade Item Number (UPC, ISBN, EAN) brand (brand name, such as Nike) plus mpn (Manufacturer's Part Number) Restrictions For a list of supported sites and other restrictions, see API Restrictions. Note: A maximum of 12 products are returned. The call will return up to 12 products, but it can be less than 12. If the number of products found is less than 12, the call will return all of the products matching the criteria. */ - get: operations["getAlsoViewedByProduct"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/merchandised_product": { parameters: { query?: never; @@ -45,7 +11,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This call returns an array of products based on the category and metric specified. This includes details of the product, such as the eBay product ID (EPID), title, and user reviews and ratings for the product. You can use the epid returned by this call in the Browse API search call to retrieve items for this product. Restrictions For a list of supported sites and other restrictions, see API Restrictions. */ + /** @description This method returns an array of products based on the category and metric specified. This includes details of the product, such as the eBay product ID (EPID), title, and user reviews and ratings for the product. You can use the epid returned by this method in the Browse API search method to retrieve items for this product.

Restrictions

*/ get: operations["getMerchandisedProducts"]; put?: never; post?: never; @@ -59,6 +25,20 @@ export interface paths { export type webhooks = Record; export interface components { schemas: { + /** @description This type defines the monetary value of an amount and the currency used. */ + Amount: { + /** @description The three-letter ISO 4217 code representing the currency of the amount in the value field. For implementation help, refer to eBay API documentation */ + currency?: string; + /** @description The monetary amount, in the currency specified by the currency field. */ + value?: string; + }; + /** @description The type that defines the fields for the best selling product information. */ + BestSellingProductResponse: { + /** @description An array of containers for the products. */ + merchandisedProducts?: components["schemas"]["MerchandisedProduct"][]; + /** @description The container with all the warnings for the input request. */ + warnings?: components["schemas"]["Error"][]; + }; /** @description The type that defines the fields that can be returned in an error. */ Error: { /** @description This string value indicates the error category. There are three categories of errors: request errors, application errors, and system errors. */ @@ -83,39 +63,25 @@ export interface components { /** @description The name of the subdomain in which the error or warning occurred. */ subdomain?: string; }; - /** @description An array of name/value pairs that provide more details regarding error condition. */ + /** @description An array of name/value pairs that provide details regarding the error. */ ErrorParameter: { /** @description This is the name of input field that caused an issue with the call request. */ name?: string; - /** @description This is the actual value that was passed in for the element specified in the name field. */ + /** @description This is the actual value that was passed in for the element specified in the name field. */ value?: string; }; - /** @description This type defines the monetary value of an amount and the currency used. */ - Amount: { - /** @description A three-letter ISO 4217 code that indicates the currency of the amount in the value field. For implementation help, refer to eBay API documentation */ - currency?: string; - /** @description The monetary amount, in the currency specified by the currency field. */ - value?: string; - }; - /** @description The type that defines the fields for the best selling product information. */ - BestSellingProductResponse: { - /** @description An array of containers for the products. */ - merchandisedProducts?: components["schemas"]["MerchandisedProduct"][]; - /** @description The container with all the warnings for the input request. */ - warnings?: components["schemas"]["Error"][]; - }; - /** @description Type the defines the details of an image, such as size and URL. Currently only imageUrl is getting populated. The height and width were added for future use. */ + /** @description Type the defines the details of an image, such as size and URL. Currently only imageUrl is getting populated. The height and width were added for future use. */ Image: { /** * Format: int32 - * @description Reserved for future use. + * @description Reserved for future use. */ height?: number; /** @description The URL of the image. */ imageUrl?: string; /** * Format: int32 - * @description Reserved for future use. + * @description Reserved for future use. */ width?: number; }; @@ -132,13 +98,13 @@ export interface components { MerchandisedProduct: { /** @description The average rating for the product based on eBay user ratings. */ averageRating?: string; - /** @description The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search call to retrieve items for this product. */ + /** @description The eBay product identifier of a product from the eBay product catalog. You can use this value in the Browse API search method to retrieve items for this product. */ epid?: string; /** @description The container for the product image. */ image?: components["schemas"]["Image"]; /** @description An array of containers for the product market price details, such as condition and market price. */ marketPriceDetails?: components["schemas"]["MarketPriceDetail"][]; - /** @description An array of containers for ratings of the product aspects, such as "Is it a good value". */ + /** @description An array of containers for ratings of the product aspects, such as "Is it a good value". */ ratingAspects?: components["schemas"]["RatingAspect"][]; /** * Format: int32 @@ -174,7 +140,7 @@ export interface components { * @description The number of eBay users that choose this rating aspect value. */ count?: number; - /** @description The percentage of the aspect rating value. ratingAspectDistributions.percentage = ratingAspectDistributions.count / ratingAspects.count */ + /** @description The percentage of the aspect rating value.

ratingAspectDistributions.percentage = ratingAspectDistributions.count / ratingAspects.count */ percentage?: string; /** @description The rating aspect. For example: TRUE or FALSE */ value?: string; @@ -188,154 +154,16 @@ export interface components { } export type $defs = Record; export interface operations { - getAlsoBoughtByProduct: { - parameters: { - query?: { - /** @description The brand of the product. Restriction: This must be used along with mpn. Required: You must specify one epid, or one gtin, or one brand plus mpn pair. */ - brand?: string; - /** @description The eBay product identifier of a product. Required: You must specify one epid, or one gtin, or one brand plus mpn pair. */ - epid?: string; - /** @description The unique Global Trade Item Number of the item as defined by http://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number value. Required: You must specify one epid, or one gtin, or one brand plus mpn pair. */ - gtin?: string; - /** @description The manufacturer part number of the product. Restriction: This must be used along with brand. Required: You must specify one epid, or one gtin, or one brand plus mpn pair. */ - mpn?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description This call returns products that were also bought when shoppers bought the product specified in the request. Showing 'also bought' products inspires up-selling and cross-selling. You specify the product by one of the following: epid - eBay Product ID gtin - Global Trade Item Number (UPC, ISBN, EAN) brand (brand name, such as Nike) plus mpn (Manufacturer's Part Number) Restrictions For a list of supported sites and other restrictions, see API Restrictions. Note: A maximum of 12 products are returned. The call will return up to 12 products, but it can be less than 12. If the number of products found is less than 12, the call will return all of the products matching the criteria. */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BestSellingProductResponse"]; - }; - }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; - }; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; - }; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; - }; - }; - }; - }; - getAlsoViewedByProduct: { - parameters: { - query?: { - /** @description The brand of the product. Restriction: This must be used along with mpn. Required: You must specify one epid, or one gtin, or one brand plus mpn pair. */ - brand?: string; - /** @description The eBay product identifier of a product. Required: You must specify one epid, or one gtin, or one brand plus mpn pair. */ - epid?: string; - /** @description The unique Global Trade Item Number of the item as defined by http://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number value. Required: You must specify one epid, or one gtin, or one brand plus mpn pair. */ - gtin?: string; - /** @description The manufacturer part number of the product. Restriction: This must be used along with brand. */ - mpn?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description This call returns products that were also viewed when shoppers viewed the product specified in the request. Showing 'also viewed' products encourages up-selling and cross-selling. You specify the product by one of the following: epid - eBay Product ID gtin - Global Trade Item Number (UPC, ISBN, EAN) brand (brand name, such as Nike) plus mpn (Manufacturer's Part Number) Restrictions For a list of supported sites and other restrictions, see API Restrictions. Note: A maximum of 12 products are returned. The call will return up to 12 products, but it can be less than 12. If the number of products found is less than 12, the call will return all of the products matching the criteria. */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BestSellingProductResponse"]; - }; - }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; - }; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; - }; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; - }; - }; - }; - }; getMerchandisedProducts: { parameters: { query: { - /** @description The aspect name/value pairs used to further refine product results. For example:    /buy/marketing/v1_beta/merchandised_product?category_id=31388&metric_name=BEST_SELLING&aspect_filter=Brand:Canon You can use the Browse API search call with the fieldgroups=ASPECT_REFINEMENTS field to return the aspects of a product. For implementation help, refer to eBay API documentation at https://developer.ebay.com/devzone/rest/api-ref/marketing/types/MarketingAspectFilter.html */ + /** @description This value specifies the aspect name/value pairs used to further refine product results.

For example:
   /buy/marketing/v1_beta/merchandised_product?category_id=31388&metric_name=BEST_SELLING&aspect_filter=Brand:Canon

You can use the Browse API search method with the fieldgroups=ASPECT_REFINEMENTS field to return the aspects of a product. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/marketing/types/gct:MarketingAspectFilter */ aspect_filter?: string; - /** @description This query parameter limits the products returned to a specific eBay category. The list of eBay category IDs is not published and category IDs are not all the same across all the eBay maketplace. You can use the following techniques to find a category by site: Use the Category Changes page. Use the Taxonomy API. For details see Get Categories for Buy APIs. Use the Browse API and submit the following call to get the dominantCategoryId for an item. /buy/browse/v1/item_summary/search?q=keyword&fieldgroups=ASPECT_REFINEMENTS Maximum: 1 Required: 1 */ + /** @description This query parameter limits the products returned to a specific eBay category.

The list of eBay category IDs is not published and category IDs are not all the same across all the eBay maketplace. You can use the following techniques to find a category by site:
  • Use the Category Changes page.
  • Use the Taxonomy API. For details see Get Categories for Buy APIs.
  • Use the Browse API and submit the following method to get the dominantCategoryId for an item.
    /buy/browse/v1/item_summary/search?q=keyword&fieldgroups=ASPECT_REFINEMENTS

Maximum: 1

Required: 1 */ category_id: string; - /** @description This value specifies the maximum number of products to return in a result set. Note: Maximum value means the call will return up to that many products per set, but it can be less than this value. If the number of products found is less than this value, the call will return all of the products matching the criteria. Default: 8 Maximum: 100 */ + /** @description This value specifies the maximum number of products to return in a result set.

Note: Maximum value means the method will return up to that many products per set, but it can be less than this value. If the number of products found is less than this value, the method will return all of the products matching the criteria.
Default: 8

Maximum: 100 */ limit?: string; - /** @description This value filters the result set by the specified metric. Only products in this metric are returned. Currently, the only metric supported is BEST_SELLING. Default: BEST_SELLING Maximum: 1 Required: 1 */ + /** @description This value filters the result set by the specified metric. Only products in this metric are returned.

Note: Currently, the only metric supported is BEST_SELLING.
Default: BEST_SELLING

Maximum: 1

Required: 1 */ metric_name: string; }; header?: never; @@ -344,7 +172,7 @@ export interface operations { }; requestBody?: never; responses: { - /** @description This call returns an array of products based on the category and metric specified. This includes details of the product, such as the eBay product ID (EPID), title, and user reviews and ratings for the product. You can use the epid returned by this call in the Browse API search call to retrieve items for this product. Restrictions For a list of supported sites and other restrictions, see API Restrictions. */ + /** @description OK */ 200: { headers: { [name: string]: unknown; @@ -358,22 +186,21 @@ export interface operations { headers: { [name: string]: unknown; }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; + content?: never; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; }; + content?: never; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; - }; + content?: never; }; }; }; diff --git a/src/types/restful/specs/buy_offer_v1_beta_oas3.ts b/src/types/restful/specs/buy_offer_v1_beta_oas3.ts index 7d950908..43f938b8 100644 --- a/src/types/restful/specs/buy_offer_v1_beta_oas3.ts +++ b/src/types/restful/specs/buy_offer_v1_beta_oas3.ts @@ -11,7 +11,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the bidding details that are specific to the buyer of the specified auction. This must be an auction where the buyer has already placed a bid. To retrieve the bidding information you use a user access token and pass in the item ID of the auction. You can also retrieve general bidding details about the auction, such as start price, minimum bid price, and the count of unique bidders, using the Browse API getItem method. URLs for this method Production URL: https://api.ebay.com/buy/offer/v1_beta/bidding/ Sandbox URL: https://api.sandbox.ebay.com/buy/offer/v1_beta/bidding/ Restrictions For a list of supported sites and other restrictions, see API Restrictions. */ + /** @description This method retrieves the bidding details that are specific to the buyer of the specified auction. This must be an auction where the buyer has already placed a bid.

To retrieve the bidding information you use a user access token and pass in the item ID of the auction. You can also retrieve general bidding details about the auction, such as minimum bid price and the count of unique bidders, using the Browse API getItems method.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

*/ get: operations["getBidding"]; put?: never; post?: never; @@ -30,7 +30,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method uses a user access token to place a proxy bid for the buyer on a specific auction item. The item must offer AUCTION as one of the buyingOptions. To place a bid, you pass in the item ID of the auction as a URI parameter and the buyer's maximum bid amount (maxAmount ) in the payload. By placing a proxy bid, the buyer is agreeing to purchase the item if they win the auction. After this bid is placed, if someone else outbids the buyer a bid, eBay automatically bids again for the buyer up to the amount of their maximum bid. When the bid exceeds the buyer's maximum bid, eBay will notify them that they have been outbid. To find auctions, you can use the Browse API to search for items and use a filter to return only auction items. For example: /buy/browse/v1/item_summary/search?q=iphone&filter=buyingOptions:{AUCTION} URLs for this method Production URL: https://api.ebay.com/buy/offer/v1_beta/bidding/ Sandbox URL: https://api.sandbox.ebay.com/buy/offer/v1_beta/bidding/ Restrictions For a list of supported sites and other restrictions, see API Restrictions. */ + /** @description This method uses a user access token to place a proxy bid for the buyer on a specific auction item. The item must offer AUCTION as one of the buyingOptions.

To place a bid, you pass in the item ID of the auction as a URI parameter and the buyer's maximum bid amount (maxAmount ) in the payload. By placing a proxy bid, the buyer is agreeing to purchase the item if they win the auction.

After this bid is placed, if someone else outbids the buyer a bid, eBay automatically bids again for the buyer up to the amount of their maximum bid. When the bid exceeds the buyer's maximum bid, eBay will notify them that they have been outbid.

To find auctions, you can use the Browse API to search for items and use a filter to return only auction items. For example:

/buy/browse/v1/item_summary/search?q=iphone&filter=buyingOptions:{AUCTION}

Restrictions

For a list of supported sites and other restrictions, see API Restrictions. */ post: operations["placeProxyBid"]; delete?: never; options?: never; @@ -44,7 +44,7 @@ export interface components { schemas: { /** @description The type that defines the fields for a monetary value and its currency. */ Amount: { - /** @description The three-letter ISO 4217 code representing the currency of the amount in the value field. For implementation help, refer to eBay API documentation */ + /** @description The three-letter ISO 4217 code representing the currency of the amount in the value field. For implementation help, refer to eBay API documentation */ currency?: string; /** @description The monetary amount. */ value?: string; @@ -53,7 +53,7 @@ export interface components { Bidding: { /** @description The date the auction will end. */ auctionEndDate?: string; - /** @description An enumeration value that represents the current state of the auction, such as ENDED or LIVE. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value that represents the current state of the auction, such as ACTIVE or ENDED.

If this value is ENDED and the value of highBidder is true, this indicates the buyer has won the auction. For implementation help, refer to eBay API documentation */ auctionStatus?: string; /** * Format: int32 @@ -62,15 +62,15 @@ export interface components { bidCount?: number; /** @description The amount of the highest bid, which is the current price of the item. */ currentPrice?: components["schemas"]["Amount"]; - /** @description The buyer's proxy bid, which is the maxAmount specified in the request. */ + /** @description The buyer's proxy bid, which is the maxAmount specified in the request. */ currentProxyBid?: components["schemas"]["ProxyBid"]; - /** @description Indicates if the buyer is the highest bidder. */ + /** @description Indicates if the buyer is the highest bidder.
  • If the value is false, this indicates that either the buyer has not bid on this item or has been out-bid.
  • If this value is true, this indicates the buyer is winning the auction and if the value of auctionStatus is ENDED, this indicates the buyer has won the auction.
*/ highBidder?: boolean; /** @description The eBay RESTful identifier of an item being bid on, which was submitted in the request. */ itemId?: string; - /** @description This indicates if the reserve price of the item has been met. A reserve price is set by the seller and is the minimum amount the seller is willing to sell the item for. If the highest bid is not equal to or higher than the reserve price when the auction ends, the listing ends and the item is not sold. Note: This is returned only for auctions that have a reserve price. */ + /** @description This indicates if the reserve price of the item has been met. A reserve price is set by the seller and is the minimum amount the seller is willing to sell the item for.

If the highest bid is not equal to or higher than the reserve price when the auction ends, the listing ends and the item is not sold.

Note: This is returned only for auctions that have a reserve price.

*/ reservePriceMet?: boolean; - /** @description The suggested bid amount for the next bid. Note: These are generated suggestions and do not guarantee the buyer will win the bid. This means these suggestions do not take into account the max bid amount of other bidders. The buyer can be outbid even if they submit the highest suggested bid. */ + /** @description The suggested bid amount for the next bid. Note: These are generated suggestions and do not guarantee the buyer will win the bid. This means these suggestions do not take into account the max bid amount of other bidders. The buyer can be outbid even if they submit the highest suggested bid. */ suggestedBidAmounts?: components["schemas"]["Amount"][]; }; /** @description This type defines the fields that can be returned in an error. */ @@ -105,9 +105,9 @@ export interface components { }; /** @description The type that defines the fields for placing a proxy bid. */ PlaceProxyBidRequest: { - /** @description The amount of the proxy bid to be placed. This is the maximum amount the buyer is willing to pay for the item. Note: Currency for the bid must be the currency specified by the seller when listing the item. If the currency has been converted, the seller's currency will be returned in the convertedFromCurrency field. VAT (value added tax) does not need to be added to the proxy bid amount even if VAT applies. */ + /** @description The amount of the proxy bid to be placed. This is the maximum amount the buyer is willing to pay for the item.

Note:
  • Currency for the bid must be the currency specified by the seller when listing the item.
  • VAT (value added tax) does not need to be added to the proxy bid amount even if VAT applies.
*/ maxAmount?: components["schemas"]["Amount"]; - /** @description Specifics whether buyer wants to give their consent to bid on adult-only items. For a buyer to bid on an adult-only item, you must collect their consent using this field and they must agree to the Terms of Use. For more information about adult-only items on eBay, see Adult-Only items on eBay. Default: false */ + /** @description Specifies whether the buyer wants to give their consent to bid on adult-only items. For a buyer to bid on an adult-only item, you must collect their consent using this field, and they must agree to the Terms of Use.

For more information about adult-only items on eBay, see Adult-Only items on eBay.

Default: false

*/ userConsent?: components["schemas"]["UserConsent"]; }; /** @description The type that defines the fields for the place proxy bid response. */ @@ -124,7 +124,7 @@ export interface components { }; /** @description The type that defines the fields for collecting the buyers consent. */ UserConsent: { - /** @description The type that defines the fields for buyer consent to bid on adult-only items. For more information about adult-only items on eBay, see Adult-Only items on eBay. */ + /** @description The type that defines the fields for buyer consent to bid on adult-only items.

This field must be included in the placeProxyBid request and set to true if the buyer is bidding on an adult-only item.

For more information about adult-only items on eBay, see Adult-Only items on eBay. */ adultOnlyItem?: boolean; }; }; @@ -140,11 +140,11 @@ export interface operations { parameters: { query?: never; header: { - /** @description The ID of the eBay marketplace where the buyer is based. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions. */ + /** @description The ID of the eBay marketplace where the buyer is based. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions. */ "X-EBAY-C-MARKETPLACE-ID": string; }; path: { - /** @description The eBay RESTful identifier of an item that you want the buyer's bidding information. This ID is returned by the Browse and Feed API methods. RESTful Item ID example: v1|272394640372|0 For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview. Restriction: The buyer must have placed a bid for this item. */ + /** @description This path parameter specifies the unique eBay RESTful identifier of an item for which you want the buyer's bidding information.

This ID is returned by the Browse and Feed API methods.

RESTful Item ID example: v1|2**********2|0

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.

Restriction: The buyer must have placed a bid for this item. */ item_id: string; }; cookie?: never; @@ -187,11 +187,13 @@ export interface operations { parameters: { query?: never; header: { - /** @description The ID of the eBay marketplace where the buyer is based. Note: This value is case sensitive. For example:   X-EBAY-C-MARKETPLACE-ID = EBAY_US For a list of supported sites see, API Restrictions. */ + /** @description The ID of the eBay marketplace where the buyer is based. This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions. */ "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; path: { - /** @description The eBay RESTful identifier of an item you want to bid on. This ID is returned by the Browse and Feed API methods. RESTful Item ID Example: v1|272394640372|0 For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview. */ + /** @description This path parameter specifies the unique eBay RESTful identifier of an item you want to bid on.

This ID is returned by the Browse and Feed Beta API methods.

RESTful Item ID Example: v1|2**********2|0

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview. */ item_id: string; }; cookie?: never; diff --git a/src/types/restful/specs/buy_order_v1_beta_oas3.ts b/src/types/restful/specs/buy_order_v1_beta_oas3.ts deleted file mode 100644 index 9e346333..00000000 --- a/src/types/restful/specs/buy_order_v1_beta_oas3.ts +++ /dev/null @@ -1,2971 +0,0 @@ -/** - * This file was auto-generated by openapi-typescript. - * Do not make direct changes to the file. - */ - -export interface paths { - "/checkout_session/{checkoutSessionId}/apply_coupon": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay proxy guest checkout session and applies it to all the eligible items in the order. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions Maximum: One coupon per order For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["applyCoupon"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/checkout_session/{checkoutSessionId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This method returns the details of the specified eBay member checkout session. The checkoutSessionId is passed in as a URI parameter and is required. This method has no request payload. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - get: operations["getCheckoutSession"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/checkout_session/initiate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method creates a eBay member checkout session, which is the first step in performing a checkout. You use this method to create a checkout session before you can process a checkout. This method assumes (and checks for) payment using PayPal, which is linked to the buyer's eBay account. You can use the updatePaymentInfo method to pay by a credit card. If the address submitted cannot be validated, a warning message will be returned. The method returns a checkoutSessionId that you use as a URI parameter in subsequent checkout methods. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. Tip: To test the entire checkout flow, you might need a "test" credit card. You can generate a credit card number from http://www.getcreditcardnumbers.com. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["initiateCheckoutSession"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/checkout_session/{checkoutSessionId}/place_order": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method creates the purchase order, pays for the items, and terminates the specified eBay member checkout session. The checkoutSessionId is passed in as a URI parameter and is required. Although there is not a request payload, for this method you must pass in { } in the request body. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. Note: If the credit card is declined, the checkout session is unusable. You will need to create a new checkout session for the order using the initiateCheckoutSession method. */ - post: operations["placeOrder"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/checkout_session/{checkoutSessionId}/remove_coupon": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay member checkout session. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is specified in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["removeCoupon"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/checkout_session/{checkoutSessionId}/update_payment_info": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the payment method information of the specified eBay member checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updatePaymentInfo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/checkout_session/{checkoutSessionId}/update_quantity": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the quantity of the specified line item in an eBay member checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateQuantity"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/checkout_session/{checkoutSessionId}/update_shipping_address": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the shipping address for in an eBay member checkout session. All the line items in an order must be shipped to the same address, but the shipping method can be specific to the line item. Note: If the address submitted cannot be validated, a warning message will be returned. This does not prevent the method from executing, but you may want to verify the address. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateShippingAddress"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/checkout_session/{checkoutSessionId}/update_shipping_option": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the shipping method for the specified line item in an eBay member checkout session. The shipping option can be set for each line item. This gives the shopper the ability choose the cost of shipping for each line item. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateShippingOption"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/{checkoutSessionId}/apply_coupon": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay guest checkout session and applies it to all the eligible items in the order. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions The PayPal Smart Button eBay guest payment flow does not support using coupons. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["applyGuestCoupon"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/{checkoutSessionId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This method returns the details of the specified guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. This method has no request payload. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - get: operations["getGuestCheckoutSession"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/initiate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method creates an eBay guest checkout session, which is the first step in performing a checkout. The method returns a checkoutSessionId that you use as a URI parameter in subsequent checkout methods. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. TIP: To test the entire checkout flow, you might need a "test" credit card. You can generate a credit card number from http://www.getcreditcardnumbers.com. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["initiateGuestCheckoutSession"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/{checkoutSessionId}/initiate_payment": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method is used only in the PayPal Smart Button eBay guest payment flow. It sets the payment to the PayPal Checkout, which enables eBay guests to pay for their items with or without having a PayPal account without leaving your App or site. You can use this payment flow whether you are PCI compliant or not. To pay for items, buyers can either: Sign into their PayPal account and use any payment method associated with that account. Without a PayPal account, they can pay using a credit card or a direct debit from their bank account. For details about this flow, see PayPal Smart Button eBay guest payment flow. Requirement: To use this method you must integrate with PayPal's checkout.js on the client side. API URLs To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions If you want to apply or remove a coupon, you must do that before using this method. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["initiateGuestPayment"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/{checkoutSessionId}/place_order": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method creates the purchase order, pays for the items, and terminates the specified guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. Request headers This method requires specific request headers. For details see, HTTP request headers section. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. Note: If the credit card is declined, the checkout session is unusable. You will need to create a new checkout session for the order using the initiateGuestCheckoutSession method. */ - post: operations["placeGuestOrder"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/{checkoutSessionId}/remove_coupon": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is specified in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions The PayPal Smart Button eBay guest payment flow does not support using coupons. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["removeGuestCoupon"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/{checkoutSessionId}/update_payment_info": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the payment method information of the specified guest checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateGuestPaymentInfo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/{checkoutSessionId}/update_quantity": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the quantity of the specified line item in an eBay guest checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateGuestQuantity"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/{checkoutSessionId}/update_shipping_address": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the shipping address for the order in an eBay guest checkout session. All the line items in an order must be shipped to the same address, but the shipping method can be specific to the line item. Note: If the address submitted cannot be validated, a warning message will be returned. This does not prevent the method from executing, but you may want to verify the address. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateGuestShippingAddress"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_checkout_session/{checkoutSessionId}/update_shipping_option": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the shipping method for the specified line item in an eBay guest checkout session. The shipping option can be set for each line item. This gives the shopper the ability choose the cost of shipping for each line item. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateGuestShippingOption"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/proxy_guest_checkout_session/{checkoutSessionId}/apply_coupon": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay proxy guest checkout session and applies it to all the eligible items in the order. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions Maximum: One coupon per order For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["applyProxyGuestCoupon"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/proxy_guest_checkout_session/{checkoutSessionId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This method returns the details of the specified eBay proxy guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. This method has no request payload. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - get: operations["getProxyGuestCheckoutSession"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/proxy_guest_checkout_session/initiate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method creates an eBay proxy guest checkout session, which is a payment flow that requires integration with a VSP (vault service provider), such as Braintree. The VSP handles only the methods within this flow that contain payment information. This method returns the details of the order and a marketplace specific checkoutSessionId that you use as a URI parameter in subsequent proxy_guest_checkout_session resource checkout methods. For details about the VSP payment flow, see Vault service eBay guest payment flow. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. TIP: To test the entire checkout flow, you might need a "test" credit card. You can generate a credit card number from http://www.getcreditcardnumbers.com. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["initiateProxyGuestCheckoutSession"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/proxy_guest_checkout_session/{checkoutSessionId}/place_order": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method creates the proxy guest purchase order, pays for the items, and terminates the specified guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["placeProxyGuestOrder"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/proxy_guest_checkout_session/{checkoutSessionId}/remove_coupon": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay proxy guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is specified in the payload and is also required. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["removeProxyGuestCoupon"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/proxy_guest_checkout_session/{checkoutSessionId}/update_payment_info": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method adds or changes the payment information of the specified proxy guest checkout session. This endpoint is invoked by the VSP (vault service provider) on behalf of the eBay partner. For details about the VSP payment flow, see Vault service eBay guest payment flow. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateProxyGuestPaymentInfo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/proxy_guest_checkout_session/{checkoutSessionId}/update_quantity": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the quantity of the specified line item in an eBay proxy guest checkout session. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateProxyGuestQuantity"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/proxy_guest_checkout_session/{checkoutSessionId}/update_shipping_address": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the shipping address for the order in an eBay proxy guest checkout session. All the line items in an order must be shipped to the same address, but the shipping method can be specific to the line item. Note: If the address submitted cannot be validated, a warning message will be returned. This does not prevent the method from executing, but you may want to verify the address. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateProxyGuestShippingAddress"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/proxy_guest_checkout_session/{checkoutSessionId}/update_shipping_option": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This method changes the shipping method for the specified line item in an eBay proxy guest checkout session. The shipping option can be set for each line item. This gives the shopper the ability choose the cost of shipping for each line item. To meet security requirements for payments, the URLs for this method are: Production URL: https://apix.ebay.com/buy/order/v1 Sandbox URL: https://apix.sandbox.ebay.com/buy/order/v1 Note: This method is not available in the eBay API Explorer. Restrictions This method is used only when the eBay partner is using a payment vault service, such as Braintree, to process payments. The Vault service eBay guest payment flow is supported only for the EBAY_US marketplace. For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - post: operations["updateProxyGuestShippingOption"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/guest_purchase_order/{purchaseOrderId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This method retrieves the details about a specific guest purchase order. It returns the line items, including purchase order status; dates created and modified; item quantity and listing data; payment and shipping information; and prices, taxes, and discounts and credits. The purchaseOrderId is passed in as a URI parameter and is required. This method has no request payload. The placeGuestOrder or method initiates the payment process, which can sometimes take a few minutes. You can use this method to not only get the details of a purchase order but to check the value of the purchaseOrderPaymentStatus field to determine if the order has been paid for. If the order has been paid for, this field will return PAID. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - get: operations["getGuestPurchaseOrder"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/purchase_order/{purchaseOrderId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This method retrieves the details about a specific eBay member purchase order. It returns the line items, including purchase order status; dates created and modified; item quantity and listing data; payment and shipping information; and prices, taxes, and discounts and credits. The purchaseOrderId is passed in as a URI parameter and is required. This method has no request payload. The placeOrder method initiates the payment process, which can sometimes take a few minutes. You can use this method to not only get the details of a purchase order but to check the value of the purchaseOrderPaymentStatus field to determine if the order has been paid for. If the order has been paid for, this field will return PAID. This method also returns the legacyItemId, legacyTransactionId, and legacyOrderId fields. The values in these fields enable eBay partners to use the Post Order API for eBay member checkouts, to process a return or cancellation. For more information, see Post order tasks in the Buy Integration Guide. Restrictions For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ - get: operations["getPurchaseOrder"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; -} -export type webhooks = Record; -export interface components { - schemas: { - /** @description The type that defines the fields for seller adjustments. An adjustment can be a credit or debit. */ - Adjustment: { - /** @description The container for the amount and currency of the adjustment. */ - amount?: components["schemas"]["Amount"]; - /** @description Text that describes the adjustment. */ - label?: string; - }; - /** @description The type the defines the fields for the details of a monetary amount, in the currency used by the method and in the original currency, if the amount was converted between currencies. */ - Amount: { - /** @description A three letter ISO 4217 code specifying the currency of the monetary amount. For implementation help, refer to eBay API documentation */ - currency?: string; - /** @description The monetary amount. */ - value?: string; - }; - /** @description The type that defines the fields for an address. Maximum characters AU, CA, & US - 40 DE & GB - 35 All other marketplaces - 50 */ - BillingAddress: { - /** @description The first line of the street address. Maximum characters AU, CA, & US - 40 DE & GB - 35 All other marketplaces - 50 */ - addressLine1?: string; - /** @description The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'. */ - addressLine2?: string; - /** @description The city of the address. */ - city?: string; - /** @description The two letter code representing the country of the address. For implementation help, refer to eBay API documentation */ - country?: string; - /** @description The county of the address. */ - county?: string; - /** @description The buyer's first name. */ - firstName?: string; - /** @description The buyer's last name. */ - lastName?: string; - /** @description The postal code of the address. */ - postalCode?: string; - /** @description The state or province of the address. Note: For the US marketplace, this is a 2 character value. For a list of these, see US State and Canada Province Codes. */ - stateOrProvince?: string; - }; - /** @description The type that defines the fields for initiateProxyGuestCheckoutSession request. */ - CheckoutSessionRequestWithoutPayment: { - /** @description The buyer's email address. */ - contactEmail?: string; - /** @description The buyer's first name. */ - contactFirstName?: string; - /** @description The buyer's last name. */ - contactLastName?: string; - /** @description The type that defines the fields for a line item in an eBay guest checkout session. Maximum number of line items: 10 */ - lineItemInputs?: components["schemas"]["LineItemInput"][]; - /** @description The container that returns the shipping address for an eBay guest checkout session. sThe Order API supports only domestic shipping. For example, an item purchased on the EBAY_DE marketplace can be shipped only to an address in Germany. Note: If the address cannot be validated, a warning message is be returned along with the response. */ - shippingAddress?: components["schemas"]["ShippingAddress"]; - }; - /** @description Type that defines the fields for a checkout session. */ - CheckoutSessionResponse: { - /** @description The container that returns the payment method that can be used to purchase the items. */ - acceptedPaymentMethods?: components["schemas"]["PaymentMethod"][]; - /** @description The container that returns the information for the coupons that were applied in the checkout session. */ - appliedCoupons?: components["schemas"]["Coupon"][]; - /** @description The checkoutSessionId submitted in the request. */ - checkoutSessionId?: string; - /** @description The time the checkout session will end. To purchase the items the order must be placed before this time. */ - expirationDate?: string; - /** @description An array of line items associated with the checkout session. */ - lineItems?: components["schemas"]["LineItem"][]; - /** @description The container that returns the grand total, costs, discounts, seller fees, and adjustments of all the line items. */ - pricingSummary?: components["schemas"]["PricingSummary"]; - /** @description The container that returns the payment methods that can be used for the checkout. This is returned only if you have used the updatePaymentInfo method to change the payment method. */ - providedPaymentInstrument?: components["schemas"]["ProvidedPaymentInstrument"]; - /** @description The container that returns the address to which the purchase order will be shipped. */ - shippingAddress?: components["schemas"]["ShippingAddress"]; - /** @description An array of any process errors or warnings that were generated during the method processing. */ - warnings?: components["schemas"]["Error"][]; - }; - /** @description The type the defines the fields for the coupon information. */ - Coupon: { - /** @description The redemption code of the coupon. Note: There can be only one redemption code per order. */ - redemptionCode?: string; - }; - /** @description The type that defines the fields for the coupon information used in the request. */ - CouponRequest: { - /** @description The redemption code of the coupon. Maximum: one redemption code per order */ - redemptionCode?: string; - }; - /** @description The type that defines the fields used to create an eBay guest checkout session. */ - CreateGuestCheckoutSessionRequest: { - /** @description The buyer's email address. */ - contactEmail?: string; - /** @description The buyer's first name. */ - contactFirstName?: string; - /** @description The buyer's last name. */ - contactLastName?: string; - /** @description The container that returns the credit card being used to pay for the items. */ - creditCard?: components["schemas"]["CreditCard"]; - /** @description The type that defines the fields for a line item in an eBay guest checkout session. Maximum number of line items: 10 */ - lineItemInputs?: components["schemas"]["LineItemInput"][]; - /** @description The container that returns the shipping address for an eBay guest checkout session. The Order API supports only domestic shipping. For example, an item purchased on the EBAY_DE marketplace can be shipped only to an address in Germany. Note: If the address cannot be validated, a warning message is be returned along with the response. */ - shippingAddress?: components["schemas"]["ShippingAddress"]; - }; - /** @description The type that defines the fields for creating a eBay member checkout session. */ - CreateSignInCheckoutSessionRequest: { - /** @description The container that returns the buyer's credit card information. */ - creditCard?: components["schemas"]["CreditCard"]; - /** @description The container for the line item information fields in an eBay member checkout session. Maximum number of line items: 10 */ - lineItemInputs?: components["schemas"]["LineItemInput"][]; - /** @description The container for the shipping address information in an eBay member checkout session. The Order API supports only domestic shipping. For example, an item purchased on the EBAY_DE marketplace can be shipped only to an address in Germany. Note: If the address cannot be validated, a warning message is be returned along with the response. */ - shippingAddress?: components["schemas"]["ShippingAddress"]; - }; - /** @description The type that defines the fields for the credit card that's used to pay for the items. */ - CreditCard: { - /** @description The name of the card holder under which the credit card was issued. */ - accountHolderName?: string; - /** @description The container that returns the billing address of the card holder. Note: If the address cannot be validated, a warning message will be returned. */ - billingAddress?: components["schemas"]["BillingAddress"]; - /** @description The type of the credit car, such as Visa or MasterCard. */ - brand?: string; - /** @description The credit card number on the card. */ - cardNumber?: string; - /** @description The Card Verification Value of the credit card. This value is also known as the card verification code (CVC) or card security code (CSC). This is a three-digit number on VISA, MasterCard, and Discover branded credit and debit cards. On American Express branded cards, this is a four-digit numeric code. Note: This number is not the PIN associated with the card. */ - cvvNumber?: string; - /** - * Format: int32 - * @description The month the credit card expires. - */ - expireMonth?: number; - /** - * Format: int32 - * @description The year the credit card expires. - */ - expireYear?: number; - }; - /** @description The type that defines the fields for the error messages. */ - Error: { - /** @description Identifies the type of error. */ - category?: string; - /** @description Name for the primary system where the error occurred. This is relevant for application errors. */ - domain?: string; - /** - * Format: int32 - * @description A unique number to identify the error. - */ - errorId?: number; - /** @description An array of request elements most closely associated to the error. */ - inputRefIds?: string[]; - /** @description A more detailed explanation of the error. */ - longMessage?: string; - /** @description Information on how to correct the problem, in the end user's terms and language where applicable. */ - message?: string; - /** @description An array of request elements most closely associated to the error. */ - outputRefIds?: string[]; - /** @description An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned. */ - parameters?: components["schemas"]["ErrorParameter"][]; - /** @description Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc. */ - subdomain?: string; - }; - /** @description An array of name/value pairs that provide more details regarding error condition. */ - ErrorParameter: { - /** @description The object of the error. */ - name?: string; - /** @description The value of the object. */ - value?: string; - }; - /** @description The type that defines the fields for the location of a tracking event. */ - EventLocation: { - /** @description The city where the tracking event occurred. */ - city?: string; - /** @description The two letter code representing the country of the address where the tracking event occurred. For implementation help, refer to eBay API documentation */ - country?: string; - /** @description The county where the tracking event occurred. */ - county?: string; - /** @description The postal code where the tracking event occurred. */ - postalCode?: string; - /** @description The state where the tracking event occurred. */ - stateOrProvince?: string; - }; - GuestCheckoutSessionResponse: { - /** @description The container that returns the payment method that can be used to purchase the items. */ - acceptedPaymentMethods?: components["schemas"]["PaymentMethod"][]; - /** @description The container that returns the information for the coupons that were applied in the checkout session. */ - appliedCoupons?: components["schemas"]["Coupon"][]; - /** @description The checkoutSessionId submitted in the request. */ - checkoutSessionId?: string; - /** @description The time the checkout session will end. To purchase the items the order must be placed before this time. */ - expirationDate?: string; - /** @description An array of line items associated with the checkout session. */ - lineItems?: components["schemas"]["LineItem"][]; - /** @description The container that returns the marketing consent fields. These fields show the legal marketing consent message to be shown to the buyer when they place the order, and the marketing channels, for example email, and marketing types, for example promotions, the buyer can choose to receive. */ - marketingMessages?: components["schemas"]["MarketingMessage"][]; - /** @description The container that returns the grand total, costs, discounts, seller fees, and adjustments of all the line items. */ - pricingSummary?: components["schemas"]["PricingSummary"]; - /** @description The container that returns the payment methods that can be used for the checkout. This is returned only if you have used the updatePaymentInfo method to change the payment method. */ - providedPaymentInstrument?: components["schemas"]["ProvidedPaymentInstrument"]; - /** @description The container that returns the address to which the purchase order will be shipped. */ - shippingAddress?: components["schemas"]["ShippingAddress"]; - /** @description An array of any process errors or warnings that were generated during the method processing. */ - warnings?: components["schemas"]["Error"][]; - }; - /** @description The type that defines the fields that enables the buyer to give or withhold their permission to receive marketing messages. */ - GuestPlaceOrderRequest: { - /** @description The container for the marketing channels, the types of messages the buyer can choose to receive, and the field to indicate whether the buyer wants to receive marketing materials from eBay. These fields are required for all marketplaces. See Marketing Consent Notice for details. */ - marketingTerms?: components["schemas"]["MarketingTerms"][]; - }; - /** @description The type that defines the fields for a guest purchase order. */ - GuestPurchaseOrder: { - /** @description The container that returns the information for the coupons that were applied in the order. */ - appliedCoupons?: components["schemas"]["Coupon"][]; - /** @description An array of the line items in the order. */ - lineItems?: components["schemas"]["OrderLineItem"][]; - /** @description The container that returns the monetary details of the order. */ - pricingSummary?: components["schemas"]["PricingSummary"]; - /** @description The creation date of the purchase order. */ - purchaseOrderCreationDate?: string; - /** @description The unique identifier of the purchase order. This value was returned in the purchaseOrderId field by the placeGuestOrder method. */ - purchaseOrderId?: string; - /** @description The container for the status of the payment for the purchase order. For implementation help, refer to eBay API documentation */ - purchaseOrderPaymentStatus?: string; - /** @description An enumeration value that indicates the current status of the buyer's payment and any refund that applies to the purchase order. For implementation help, refer to eBay API documentation */ - purchaseOrderStatus?: string; - /** @description The total amount of any refunds for the purchase order. */ - refundedAmount?: components["schemas"]["Amount"]; - /** @description The container for any warning messages. */ - warnings?: components["schemas"]["Error"][]; - }; - /** @description The type the defines the fields for the details of an image, such as size and URL. Currently only imageUrl is getting populated. The height and width were added for future use. */ - Image: { - /** - * Format: int32 - * @description Reserved for future use. - */ - height?: number; - /** @description The URL of the image. */ - imageUrl?: string; - /** - * Format: int32 - * @description Reserved for future use. - */ - width?: number; - }; - /** @description Type that defines the fields for the initiateGuestPayment method. */ - InitiatePaymentRequest: { - /** @description The enumeration value that specifies the payment method company. Note: The only value supported for the initiateGuestPayment method is PAYPAL_CHECKOUT. For implementation help, refer to eBay API documentation */ - paymentMethodBrandType?: string; - /** @description The enumeration value that specifies the payment method type. Note: The only value supported for the initiateGuestPayment method is WALLET. For implementation help, refer to eBay API documentation */ - paymentMethodType?: string; - }; - /** @description The type that defines the fields to support using the Post Order API for returns and cancellations. Restriction: The Post Order API can be used only with eBay member checkouts. */ - LegacyReference: { - /** @description The legacy ID used to identify an item. This is used by the Post Order API Create Return Request method. This call initiates the item return process. For more information on how to use this field in the Post Order API, see Create a return request in the Buy Integration Guide. Restriction: The Post Order API can be used only with eBay member checkouts. */ - legacyItemId?: string; - /** @description The legacy ID of the order. This is used by the Post Order API Submit Cancellation Request method. This method initiates the item cancellation process. For more information on how to use this field in the Post Order API, see Using the Post Order API. Restriction: The Post Order API can be used only with eBay member checkouts. */ - legacyOrderId?: string; - /** @description The legacy ID of the transaction. This is used by the Post Order API Create Return Request call. This call initiates the item return process. For more information on how to use this field in the Post Order API, see Using the Post Order API in the Buy Integration Guide. Restriction: The Post Order API can be used only with eBay member checkouts. */ - legacyTransactionId?: string; - }; - /** @description The container that returns an individual line item in a checkout transaction. */ - LineItem: { - /** @description The cost of a single item in this line item. This is the starting point for computing the price during checkout session. */ - baseUnitPrice?: components["schemas"]["Amount"]; - /** @description An eBay-assigned URL that points to an image of the item. eBay assigns the URL when the seller uploads the image. */ - image?: components["schemas"]["Image"]; - /** @description A unique eBay-assigned ID value that identifies the item. */ - itemId?: string; - /** @description A unique eBay-assigned ID value that identifies the line item in a checkout session. */ - lineItemId?: string; - /** @description The total cost for the items in this line item taking into account the quantity and applying any seller item discounts, such as Buy 1 Get 1, and any coupon that applies to this item. Note: This also does not include any shipping discounts, shipping costs, fees, or seller adjustments. */ - netPrice?: components["schemas"]["Amount"]; - /** @description An array of promotions applied with the item of this line item. */ - promotions?: components["schemas"]["Promotion"][]; - /** - * Format: int32 - * @description The number of individual items ordered for this line item, as specified by the buyer. - */ - quantity?: number; - /** @description The container that returns the information about the seller, such as their eBay user name. */ - seller?: components["schemas"]["Seller"]; - /** @description An array of the shipping methods that are available for the line item. By default, the first one will be selected. */ - shippingOptions?: components["schemas"]["ShippingOption"][]; - /** @description This text string is derived from the item condition and the item aspects (such as size, color, capacity, model, brand, etc.). */ - shortDescription?: string; - /** @description The seller created title of the item. */ - title?: string; - }; - /** @description The type that defines the fields for a line item. */ - LineItemInput: { - /** @description The eBay identifier of an item. This ID is returned by the Browse and Feed API methods. The ID must be in RESTful item ID format. For example: v1|262446562346|561248611424 or v1|112330214619|0. For more information about item ID for RESTful APIs, see the Legacy API compatibility. Each itemId will become a single line item. You can have a maximum of 10 itemId(s) per checkout. Maximum: 10 */ - itemId?: string; - /** - * Format: int32 - * @description The number of items ordered in this line item. - */ - quantity?: number; - }; - /** @description Type the defines the fields for the line item ID and the quantity. */ - LineItemReference: { - /** @description A unique eBay-assigned ID value to identify the line item in a purchase order. */ - lineItemId?: string; - /** - * Format: int32 - * @description The number of individual items ordered for this line item, as specified by the buyer. - */ - quantity?: number; - }; - /** @description The type that defines the marketing consent fields. These fields show the legal message to be shown to the buyer, and the marketing channels and marketing type the buyer can choose to receive. */ - MarketingMessage: { - /** @description This field returns the following marketing consent legal message. This message is to be shown to the buyer when they place the order. I agree to receive marketing offers, promotions, and surveys from eBay through emails. */ - legalMessage?: string; - /** @description A list of enumeration values representing the marketing channels, such as email, that the buyer can choose to receive. These are to be shown to the buyer when they place the order. */ - marketingChannels?: string[]; - /** @description A list of enumeration values representing the marketing types, such as OFFER, that the buyer can choose to receive. These are to be shown to the buyer when they place the order. */ - marketingTypes?: string[]; - }; - /** @description The type that defines the fields used to let the buyer opt-in or opt-out-of receiving marketing messages. And the list of marketing channels and types. */ - MarketingTerms: { - /** @description An enumeration value representing the available marketing channels, such as EMAIL. Valid Values: EMAIL */ - marketingChannels?: string[]; - /** @description A boolean that indicates whether the buyer wants to receive marketing messages. */ - marketingTermsAccepted?: boolean; - /** @description An enumeration value representing the available types of marketing messages. Valid Values: OFFER PROMOTION SURVEY Required: You must always pass in all these values, even if marketingTermsAccepted is set to false. See the Samples for an example. */ - marketingTypes?: string[]; - }; - /** @description The type that defines the fields for line item information in a purchase order. */ - OrderLineItem: { - /** @description The cost of a single item in this line item. */ - baseUnitPrice?: components["schemas"]["Amount"]; - /** @description The URL of the item's image. */ - image?: components["schemas"]["Image"]; - /** @description The identifier of the item. */ - itemId?: string; - /** @description The container that returns fields to support using the Post Order API for returns and cancellations. For information about what is returned in these fields and how to use the Post Order API, see Using the Post Order API. Note: The Post Order API can be used only with eBay member checkouts. */ - legacyReference?: components["schemas"]["LegacyReference"]; - /** @description The identifier of this line item. This is created by the initiateCheckoutSession for a member and initiateGuestCheckoutSession for a guest calls. */ - lineItemId?: string; - /** @description An enumeration value that indicates the payment status of this line item. For implementation help, refer to eBay API documentation */ - lineItemPaymentStatus?: string; - /** @description An enumeration value that indicates the fulfillment state of this line item. For implementation help, refer to eBay API documentation */ - lineItemStatus?: string; - /** @description The total cost for the items in this line item taking into account the quantity and applying any seller item discounts, such as Buy 1 Get 1, and any coupon that applies to this item. Note : This does not include any shipping discounts, shipping costs, or seller adjustments. */ - netPrice?: components["schemas"]["Amount"]; - /** @description For future use. The unique order ID for this line item. This value is the new eBay unique order ID, which is being rolled out starting in Summer 2019. In the future, this will replace the lineItems.legacyReference fields you use in the Post Order API. For details see, Easier order management with updated order numbers. */ - orderId?: string; - /** @description An array of promotions applied to the items in this line item. */ - promotions?: components["schemas"]["Promotion"][]; - /** - * Format: int32 - * @description The number of individual items in this line item. - */ - quantity?: number; - /** @description The container for information about the seller offering this item, such as the seller's user name. */ - seller?: components["schemas"]["Seller"]; - /** @description Information about the shipping provider used for this line item. */ - shippingDetail?: components["schemas"]["ShippingDetail"]; - /** @description The seller created title of the item. */ - title?: string; - }; - /** @description The type that defines the fields for the reference information about the payment method. */ - PaymentInstrument: { - /** @description The name of the credit card company (brand). */ - brand?: components["schemas"]["PaymentMethodBrand"]; - /** @description An enumeration value that indicates the method of payment, such as credit card. For implementation help, refer to eBay API documentation */ - paymentMethodType?: string; - }; - /** @description The type that defines the fields for the payment reference, such as last four digits of a credit card. */ - PaymentInstrumentReference: { - /** @description The identifier of the buyer's PayPal cart, which is returned by the initiateGuestPayment method. This ID is generated by PayPal and required for the PayPal Smart Button eBay guest payment flow. */ - externalReferenceId?: string; - /** @description The last four digits of the credit card number being used to pay for the items. */ - lastFourDigitForCreditCard?: string; - }; - /** @description The type that defines the fields for the payment method. */ - PaymentMethod: { - /** @description Text indicating the payment type. For example, when paying by credit card, this label will be CC . When paying using PayPal Smart Button eBay guest payment flow the label will be WALLET. */ - label?: string; - /** @description The URL of the image of the payment method logo. */ - logoImage?: components["schemas"]["Image"]; - /** @description An array of credit card brands that can be used as the payment method. */ - paymentMethodBrands?: components["schemas"]["PaymentMethodBrand"][]; - /** @description The type that defines the fields for legal messages and buyer consent verification. */ - paymentMethodMessages?: components["schemas"]["PaymentMethodMessage"][]; - /** @description An enumeration value that indicates the method of payment, such as credit card. For implementation help, refer to eBay API documentation */ - paymentMethodType?: string; - }; - /** @description The type that defines the fields for the credit card company (brand), which can be used as the payment method. */ - PaymentMethodBrand: { - /** @description The URL of the image of the credit card company (brand). */ - logoImage?: components["schemas"]["Image"]; - /** @description An enumeration value that indicates the credit card company (brand). For implementation help, refer to eBay API documentation */ - paymentMethodBrandType?: string; - }; - /** @description The type that defines the fields for legal messages and buyer consent verification. */ - PaymentMethodMessage: { - /** @description Information that eBay is legally obligated to show to the buyer. This field can be null, in which case do nothing. But if this field is not null, the value of this field must appear on the checkout page. Note: This field is not used for US purchases. */ - legalMessage?: string; - /** @description Reserved for future use. */ - privacyPolicyWebUrl?: string; - /** @description Reserved for future use. */ - requiredForUserConfirmation?: boolean; - /** @description Reserved for future use. */ - userAgreementWebUrl?: string; - }; - /** @description The type that defines the fields for the costs, discounts, and seller fees and adjustments of all the line items. */ - PricingSummary: { - /** @description The total amount of the coupon discounts in the purchase order. */ - additionalSavings?: components["schemas"]["Amount"]; - /** @description The total amount of any seller adjustments. An adjustment can be a credit or debit. This is used to catch any monetary changes to the purchase order that are not already captured in one of the other fields. */ - adjustment?: components["schemas"]["Adjustment"]; - /** @description The shipping cost for all the line items before any shipping discounts are applied. Let's say there were 4 line items and the shipping cost for each line item is $5. One of the line items qualifies for free shipping. The deliveryCost value would be $20, which is the total cost for shipping all the line items before any discounts were appiled. */ - deliveryCost?: components["schemas"]["Amount"]; - /** @description The total amount of the order shipping discounts for the all line items, such as free shipping. Let's say there were 4 line items and the shipping cost for each line items is $5. One of the line items qualifies for free shipping. The deliveryDiscounts value would be 5, which is the value of the free shipping discount. Note: This will always be a negative number. */ - deliveryDiscount?: components["schemas"]["Amount"]; - /** @description The total amount of any fees for all the line items, such as a recycling fee. */ - fee?: components["schemas"]["Amount"]; - /** @description The sum of the Global Shipping Program import charges for all line items. */ - importCharges?: components["schemas"]["Amount"]; - /** @description The total amount of all the item discounts for all line items, such as Buy 1 Get 1 free. Let's say there were 4 line items. One of the line items qualifies for free shipping, which is $5 and two items qualify for a Buy 1 Get 1 offer, which is a $6 and a $15 discount. The priceDiscount value would be 21, which is the total of the two Buy 1 Get 1 discounts. The shipping discount is not included. It is returned in the deliveryDiscount field. Note: This will always be a negative number. */ - priceDiscount?: components["schemas"]["Amount"]; - /** @description The total amount for all the line items taking into account the item quantity but before adding in taxes and shipping costs, or applying discounts, fees, and adjustments. */ - priceSubtotal?: components["schemas"]["Amount"]; - /** @description The total amount of the taxes for all the line items. */ - tax?: components["schemas"]["Amount"]; - /** @description The total of the purchase order. total = priceSubtotal + baseDeliveryCost + tax + importCharges + deliveryDiscounts + priceDiscount + adjustment. Note: deliveryDiscounts and priceDiscount are negative numbers. */ - total?: components["schemas"]["Amount"]; - }; - /** @description The type that defines the fields for the details of an item promotion. */ - Promotion: { - /** @description The discount amount on the applied promotional offer. */ - discount?: components["schemas"]["Amount"]; - /** @description Note: This field is not return in the purchase order methods response. */ - discountPercentage?: string; - /** @description The text for the promotion title, which describes the promotion. For example, Buy 1 Get 1. */ - message?: string; - /** @description An identifier of the promotion that was generated by the system when the promotion was created. */ - promotionCode?: string; - /** @description Indicates the kind of promotion. Some examples are: SellerDiscountedPromotionalOffer and COUPON. */ - promotionType?: string; - }; - /** @description The type that defines the fields for reference information about the payment method. This is returned only if you have used the updatePaymentInfo method to change the payment method. */ - ProvidedPaymentInstrument: { - /** @description The container that returns the payment reference, such as last four digits of a credit card. */ - paymentInstrumentReference?: components["schemas"]["PaymentInstrumentReference"]; - /** @description The container that returns the name and logo of the payment company (brand), such as Visa. */ - paymentMethodBrand?: components["schemas"]["PaymentMethodBrand"]; - /** @description An enumeration value that indicates the method of payment, such as CREDIT_CARD. For implementation help, refer to eBay API documentation */ - paymentMethodType?: string; - }; - /** @description The type that defines the fields for a purchase order, including line items, costs and charges, payment method, and the purchase order status. */ - PurchaseOrder: { - /** @description The container that returns the information for the coupons that were applied in the order. */ - appliedCoupons?: components["schemas"]["Coupon"][]; - /** @description An array of line items in the purchase order. */ - lineItems?: components["schemas"]["OrderLineItem"][]; - /** @description The payment method used for the purchase order. */ - paymentInstrument?: components["schemas"]["PaymentInstrument"]; - /** @description The container that returns the monetary details of the order. */ - pricingSummary?: components["schemas"]["PricingSummary"]; - /** @description The timestamp of when the purchase order was created. */ - purchaseOrderCreationDate?: string; - /** @description The unique identifier of the purchase order. This value was returned in the purchaseOrderId field by the place order guest methods. */ - purchaseOrderId?: string; - /** @description An enumeration value that indicates the status of the payment for the purchase order. For implementation help, refer to eBay API documentation */ - purchaseOrderPaymentStatus?: string; - /** @description The container for the current status of the buyer's payment and any refund that applies to the purchase order. For implementation help, refer to eBay API documentation */ - purchaseOrderStatus?: string; - /** @description The total amount of any refunds for purchase order. */ - refundedAmount?: components["schemas"]["Amount"]; - /** @description The shipping address for the purchase order. */ - shippingAddress?: components["schemas"]["ShippingAddress"]; - /** @description An array of the shipping providers and the purchase order delivery details. */ - shippingFulfillments?: components["schemas"]["ShippingFulfillment"][]; - /** @description An array of warning messages. These type of errors do not prevent the call from executing but should be checked. */ - warnings?: components["schemas"]["Error"][]; - }; - /** @description The type that defines the fields for the summary of a purchase order. */ - PurchaseOrderSummary: { - /** @description The URI of the purchase order. */ - purchaseOrderHref?: string; - /** @description A unique identifier of the purchase order. When a checkout session completes, a purchase order ID is generated but this does not indicate that the item has been purchased. Note: If there is a problem with the payment information, the purchase order ID will be returned and the PurchaseOrderPaymentStatusEnum field will return FAILED. */ - purchaseOrderId?: string; - /** @description An enumeration value that indicates the payment status for the purchase order. For implementation help, refer to eBay API documentation */ - purchaseOrderPaymentStatus?: string; - /** @description An array of warning messages. */ - warnings?: components["schemas"]["Error"][]; - }; - /** @description The type that defines the fields for the basic seller information. */ - Seller: { - /** @description The percentage of the total positive feedback. */ - feedbackPercentage?: string; - /** - * Format: int32 - * @description The feedback score of the seller. This value is based on the ratings from eBay members that bought items from this seller. - */ - feedbackScore?: number; - /** @description Indicates if the seller is a business or an individual. This is determined when the seller registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in some countries. This field is returned only on the following sites. EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL Valid values: BUSINESS INDIVIDUALCode so that your app gracefully handles any future changes to this list. */ - sellerAccountType?: string; - /** @description The user name created by the seller for use on eBay. */ - username?: string; - }; - /** @description The type that defines the fields for the details of a shipping event, such as DELIVERED. */ - ShipmentTrackingEvents: { - /** @description A string describing the tracking event. For example: On FedEx vehicle for delivery */ - description?: string; - /** @description The date of the shipment tracking event. UTC Format: yyyy-MM-ddThh:00:00.000Z For example: 2019-03-01T12:12:00.000Z */ - eventDate?: string; - /** @description A normalized string for shipment tracking event. For example: OUT_FOR_DELIVERY */ - eventType?: string; - /** @description Where the shipment tracking event occurred. For example: The city, state, postal code, and country of where the package was delivered. */ - location?: components["schemas"]["EventLocation"]; - }; - /** @description The type that defines the fields for a shipping address. For restrictions, see Shipping restrictions. */ - ShippingAddress: { - /** @description The first line of the street address where the item is being shipped. */ - addressLine1?: string; - /** @description The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'. */ - addressLine2?: string; - /** @description The city of the address where the item is being shipped. */ - city?: string; - /** @description The two letter code representing the country of the address. For implementation help, refer to eBay API documentation */ - country?: string; - /** @description The county of the address where the item is being shipped. */ - county?: string; - /** @description The phone number of the person receiving the package. */ - phoneNumber?: string; - /** @description The postal code of the address where the item is being shipped. */ - postalCode?: string; - /** @description Name of the person receiving the package. */ - recipient?: string; - /** @description The state or province of the address where the item is being shipped. */ - stateOrProvince?: string; - }; - /** @description The type that defines the shipping address fields. Note: If the address cannot be validated, a warning message is be returned along with the response. */ - ShippingAddressImpl: { - /** @description The first line of the street address. */ - addressLine1?: string; - /** @description The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'. */ - addressLine2?: string; - /** @description The city of the address. */ - city?: string; - /** @description The two letter code representing the country of the address. For implementation help, refer to eBay API documentation */ - country?: string; - /** @description The county of the address. */ - county?: string; - /** @description The phone number of the person receiving the package. Note: It is highly recommended that when entering the phone number you include the country code. For example, if a US phone number is 4081231234 you would enter +14081231234. If you do not include this code, the service will use the country specified in the country field. You can find the country code at https://countrycode.org. */ - phoneNumber?: string; - /** @description The postal code of the address. */ - postalCode?: string; - /** @description Full name of the person receiving the purchase order. */ - recipient?: string; - /** @description The state or province of the address. Note: For the US marketplace, this is a 2 character value. For a list of these, see US State and Canada Province Codes. */ - stateOrProvince?: string; - }; - /** @description The type that defines the fields for the shipping information, such as delivery date estimates and shipping provider. */ - ShippingDetail: { - /** @description The end of the date range in which the purchase order is expected to be delivered to the shipping address (final destination). */ - maxEstimatedDeliveryDate?: string; - /** @description The beginning of the date range in which the purchase order is expected to be delivered to the shipping address (final destination). */ - minEstimatedDeliveryDate?: string; - /** @description The shipping provider, such as FedEx, or USPS for the line item. */ - shippingCarrierCode?: string; - /** @description A name of a shipping type. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx). */ - shippingServiceCode?: string; - }; - /** @description The type that defines the fields for the shipping details. */ - ShippingFulfillment: { - /** @description The date the purchase order was delivered. */ - actualDeliveryDate?: string; - /** @description The container the returns the fields for the line item ID and the quantity. */ - lineItemReferences?: components["schemas"]["LineItemReference"][]; - /** @description The end of the date range in which the purchase order is expected to be delivered to the shipping address. */ - maxEstimatedDeliveryDate?: string; - /** @description The beginning of the date range in which the purchase order is expected to be delivered to the shipping address. */ - minEstimatedDeliveryDate?: string; - /** @description The container that returns all the shipment tracking events. */ - shipmentTrackingEvents?: components["schemas"]["ShipmentTrackingEvents"][]; - /** @description The shipping provider number associated with the purchase order that can be used to track the package. */ - shipmentTrackingNumber?: string; - /** @description The URL of the shipping provider's shipment tracking page. */ - shipmentTrackingUrl?: string; - /** @description The date the seller gave the purchase order to the shipping provider. */ - shippedDate?: string; - /** @description A name of the shipping provider, such as FedEx, or USPS. */ - shippingCarrierCode?: string; - /** @description A name of a shipping type. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx). */ - shippingServiceCode?: string; - }; - /** @description The type that defines the fields for the shipping options. */ - ShippingOption: { - /** @description The shipping cost using this shipping option for this line item before any shipping discounts. */ - baseDeliveryCost?: components["schemas"]["Amount"]; - /** @description The monetary value of any delivery discount. */ - deliveryDiscount?: components["schemas"]["Amount"]; - /** @description The Global Shipping Program import charges for this line item. */ - importCharges?: components["schemas"]["Amount"]; - /** @description The end of the date range in which the purchase order is expected to be delivered to the shipping address. */ - maxEstimatedDeliveryDate?: string; - /** @description The beginning of the date range in which the purchase order is expected to be delivered to the shipping address. */ - minEstimatedDeliveryDate?: string; - /** @description Indicates if the shipping method is selected. */ - selected?: boolean; - /** @description The shipping provider, such as FedEx, or USPS for the line item. */ - shippingCarrierCode?: string; - /** @description A unique ID for the selected shipping option/method. */ - shippingOptionId?: string; - /** @description A name of a shipping type. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx). */ - shippingServiceCode?: string; - }; - /** @description The type that defines the fields for payment information. */ - UpdatePaymentInformation: { - /** @description Container for the buyer's credit card information. */ - creditCard?: components["schemas"]["CreditCard"]; - /** @description The container that returns the wallet payment token. Note: Currently, this is supported only for eBay Guest checkouts. Support for eBay Member checkouts will be available in 2019. */ - wallet?: components["schemas"]["Wallet"]; - }; - /** @description The type that defines the fields used to update the quantity of a line item. */ - UpdateQuantity: { - /** @description A unique eBay-assigned ID value that identifys a line item in a purchase order. */ - lineItemId?: string; - /** - * Format: int32 - * @description The number of individual items ordered in this line item, as specified by the buyer. - */ - quantity?: number; - }; - /** @description The type that defines the fields used to update the shipping option of a line item. */ - UpdateShippingOption: { - /** @description A unique eBay-assigned ID value that identifies the line item in a checkout session. */ - lineItemId?: string; - /** @description A unique ID for the selected shipping option/method. */ - shippingOptionId?: string; - }; - /** @description The type that defines the fields for payment tokens. Note: Currently, this is supported only for eBay Guest checkouts. Support for eBay Member checkouts will be available in 2019. */ - Wallet: { - /** @description This token is a payment nonce. A payment method nonce is a secure, one-time-use reference to payment information. It's the key element that allows your server to communicate sensitive payment information to the payment processor server without ever touching the raw data. The nonce is generated by the payment processor. Note: Currently, this is supported only for eBay Guest checkouts. Support for eBay Member checkouts will be available in 2019. */ - paymentToken?: string; - }; - }; - responses: never; - parameters: never; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export interface operations { - applyCoupon: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used to apply a coupon to a checkout session. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CouponRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getCheckoutSession: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - initiateCheckoutSession: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description The container for the fields used by the initiateCheckoutSession method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CreateSignInCheckoutSessionRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - placeOrder: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PurchaseOrderSummary"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - removeCoupon: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used to remove a coupon from a checkout session. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CouponRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updatePaymentInfo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updatePaymentInfo method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["UpdatePaymentInformation"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateQuantity: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateQuantity method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateQuantity"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateShippingAddress: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateShippingAddress method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["ShippingAddressImpl"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateShippingOption: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned checkout session ID, for a specific eBay marketplace, that is returned by initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateShippingOption method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateShippingOption"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - applyGuestCoupon: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used to apply a coupon to a checkout session. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CouponRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getGuestCheckoutSession: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - initiateGuestCheckoutSession: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description The container for the fields used by the initiateGuestCheckoutSession method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CreateGuestCheckoutSessionRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - initiateGuestPayment: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the initiateGuestPayment method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["InitiatePaymentRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - placeGuestOrder: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific, eBay marketplace that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the placeGuestOrder method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["GuestPlaceOrderRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PurchaseOrderSummary"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - removeGuestCoupon: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used to remove a coupon from a checkout session. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CouponRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateGuestPaymentInfo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateGuestPaymentInfo method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["UpdatePaymentInformation"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateGuestQuantity: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateGuestQuantity method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateQuantity"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateGuestShippingAddress: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateGuestShippingAddress method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["ShippingAddressImpl"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateGuestShippingOption: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateGuestShippingOption method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateShippingOption"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - applyProxyGuestCoupon: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used to apply a coupon to a checkout session. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CouponRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getProxyGuestCheckoutSession: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - initiateProxyGuestCheckoutSession: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description The container for the fields used by the initiateProxyGuestCheckoutSession method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CheckoutSessionRequestWithoutPayment"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - placeProxyGuestOrder: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the placeProxyGuestOrder method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["GuestPlaceOrderRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PurchaseOrderSummary"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - removeProxyGuestCoupon: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used to remove a coupon from a checkout session. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CouponRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateProxyGuestPaymentInfo: { - parameters: { - query?: never; - header: { - /** @description The oAuth token. Note: The eBay partner must include this header in the request. */ - Authorization: string; - /** @description The UTC timestamp of the request, which is generated and added to the request by the VSP. */ - "X-EBAY-C-DATE": string; - /** @description The eBay marketplace ID. For a list of supported sites, see API Restrictions in the Order API overview. Note: The eBay partner must include this header in the request. */ - "X-EBAY-C-MARKETPLACE-ID": string; - /** @description A UUID (a 128-bit universal unique ID), which is generated and added to the request by the VSP. */ - "X-EBAY-C-REQUEST-NONCE": string; - /** @description The HMAC signature, which is generated and added to the request by the VSP. */ - "X-EBAY-C-SIGNATURE": string; - }; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateProxyGuestPaymentInfo method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["UpdatePaymentInformation"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateProxyGuestQuantity: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateProxyGuestQuantity method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateQuantity"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateProxyGuestShippingAddress: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateProxyGuestShippingAddress method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["ShippingAddressImpl"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateProxyGuestShippingOption: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the initiateProxyGuestCheckoutSession method. Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as what was used when this checkout session was created. See Checkout session restrictions in the Buy Integration Guide. */ - checkoutSessionId: string; - }; - cookie?: never; - }; - /** @description The container for the fields used by the updateProxyGuestShippingOption method. */ - requestBody?: { - content: { - "application/json": components["schemas"]["UpdateShippingOption"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestCheckoutSessionResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Resource Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getGuestPurchaseOrder: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique identifier of a purchase order made by a guest buyer, for which details are to be retrieved. This value is returned by the placeGuestOrder method in the purchaseOrderId field. The purchaseOrderId is passed in as a URI parameter and is required. */ - purchaseOrderId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GuestPurchaseOrder"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getPurchaseOrder: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique identifier of a purchase order made by an eBay member, for which details are to be retrieved. This value is returned by the placeOrder method in the purchaseOrderId field. The purchaseOrderId is passed in as a URI parameter and is required. */ - purchaseOrderId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PurchaseOrder"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Access Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; -} diff --git a/src/types/restful/specs/buy_order_v2_oas3.ts b/src/types/restful/specs/buy_order_v2_oas3.ts new file mode 100644 index 00000000..a70b001f --- /dev/null +++ b/src/types/restful/specs/buy_order_v2_oas3.ts @@ -0,0 +1,1216 @@ +/** + * This file was auto-generated by openapi-typescript. + * Do not make direct changes to the file. + */ + +export interface paths { + "/guest_checkout_session/{checkoutSessionId}/apply_coupon": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! Limited Release(Limited Release) This method is only available to select developers approved by business units.


This method adds a coupon to an eBay guest checkout session and applies it to all the eligible items in the order.

The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is in the payload and is also required.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ + post: operations["applyGuestCoupon"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/guest_checkout_session/{checkoutSessionId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! Limited Release(Limited Release) This method is only available to select developers approved by business units.


This method returns the details of the specified guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. This method has no request payload.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ + get: operations["getGuestCheckoutSession"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/guest_checkout_session/initiate": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! Limited Release(Limited Release) This method is only available to select developers approved by business units.


This method creates an eBay guest checkout session, which is the first step in performing a checkout. The method returns a checkoutSessionId that you use as a URI parameter in subsequent guest checkout methods.

Note: This method also returns the X-EBAY-SECURITY-SIGNATURE response header, which is a token that is used to launch the Checkout with eBay widget. The Checkout with eBay widget allows eBay guests to pay for items without leaving your site. For details about the Checkout with eBay widget, see Integrating the Checkout with eBay button.
Also see Negative Testing Using Stubs for information on how to emulate error conditions for this method using stubs.

TIP: To test the entire checkout flow, you might need a "test" credit card. You can generate a credit card number from http://www.getcreditcardnumbers.com.
For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ + post: operations["initiateGuestCheckoutSession"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/guest_checkout_session/{checkoutSessionId}/remove_coupon": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! Limited Release(Limited Release) This method is only available to select developers approved by business units.


This method removes a coupon from an eBay guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required. The redemption code of the coupon is specified in the payload and is also required.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ + post: operations["removeGuestCoupon"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/guest_checkout_session/{checkoutSessionId}/update_quantity": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! Limited Release(Limited Release) This method is only available to select developers approved by business units.


This method changes the quantity of the specified line item in an eBay guest checkout session.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ + post: operations["updateGuestQuantity"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/guest_checkout_session/{checkoutSessionId}/update_shipping_address": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! Limited Release(Limited Release) This method is only available to select developers approved by business units.


This method changes the shipping address for the order in an eBay guest checkout session. All the line items in an order must be shipped to the same address, but the shipping method can be specific to the line item.

Note: If the address submitted cannot be validated, a warning message will be returned. This does not prevent the method from executing, but you may want to verify the address.
For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ + post: operations["updateGuestShippingAddress"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/guest_checkout_session/{checkoutSessionId}/update_shipping_option": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! Limited Release(Limited Release) This method is only available to select developers approved by business units.


This method changes the shipping method for the specified line item in an eBay guest checkout session. The shipping option can be set for each line item. This gives the shopper the ability choose the cost of shipping for each line item.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ + post: operations["updateGuestShippingOption"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/guest_purchase_order/{purchaseOrderId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version of the Order API.

Important! Limited Release(Limited Release) This method is only available to select developers approved by business units.


This method retrieves the details about a specific guest purchase order. It returns the line items, including purchase order status, dates created and modified, item quantity and listing data, payment and shipping information, and prices, taxes, discounts and credits.

The purchaseOrderId is passed in as a URI parameter and is required.

Note: The purchaseOrderId value is returned in the call-back URL that is sent through the new eBay pay widget. For more information about eBay managed payments and the new Order API payment flow, see Order API in the Buying Integration Guide.
You can use this method to not only get the details of a purchase order, but to check the value of the purchaseOrderPaymentStatus field to determine if the order has been paid for. If the order has been paid for, this field will return PAID.

For a list of supported sites and other restrictions, see API Restrictions in the Order API overview. */ + get: operations["getGuestPurchaseOrder"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; +} +export type webhooks = Record; +export interface components { + schemas: { + /** @description A type that defines the fields for add-on services that may be applied or are automatically applied to an item in an order. */ + AddonService: { + /** @description The container that returns the amount and currency of the fee for an add-on service. */ + serviceFee?: components["schemas"]["Amount"]; + /** @description The container that returns the amount and currency of the sales tax applied against the add-on service fee. This tax is based on the state or territory in which the buyer is located. */ + serviceTax?: components["schemas"]["Amount"]; + /** @description An enumerated value that defines the type of add-on service. For implementation help, refer to eBay API documentation */ + serviceType?: string; + }; + /** @description A type that defines the fields for seller adjustments. An adjustment can be a credit or debit. */ + Adjustment: { + /** @description The container that returns the amount and currency of an adjustment. */ + amount?: components["schemas"]["Amount"]; + /** @description The text indicating what the adjustment was for. */ + label?: string; + }; + /** @description The type defining the monetary value of an amount in the currency used in on the eBay site offering the item and the conversion of that value into another currency. */ + Amount: { + /** @description The currency used in the monetary transaction. Generally, this is the currency used by the country of the eBay site offering the item. For implementation help, refer to eBay API documentation */ + currency?: string; + /** @description The amount of the currency specified in the currency field. The value of the currency defaults to the standard currency used by the country of the eBay site offering the item. */ + value?: string; + }; + /** @description A type that returns cost details for all of the line items in the order, such as tax, item price, delivery cost, and discounts. */ + ApiPricingSummaryV2: { + /** @description The total amount of the coupon discounts in the purchase order. */ + additionalSavings?: components["schemas"]["Amount"]; + /** @description The total fee for add-on services among all line items. */ + addonServicesFee?: components["schemas"]["Amount"]; + /** @description The total amount of any seller adjustments. An adjustment can be a credit or debit. This is used to catch any monetary changes to the order that are not already captured in one of the other fields. */ + adjustment?: components["schemas"]["Adjustment"]; + /** @description The delivery cost for all of the line items, after any delivery discounts are applied.

For example, there are four line items, and the delivery cost for each line item is $5. One of the line items qualifies for free delivery. The deliveryCost would be $15, which is the total cost for delivering all of the line items after the discount is applied.

Note: The cost includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + deliveryCost?: components["schemas"]["Amount"]; + /** @description The total amount of the order delivery discounts for all of the line items, such as free shipping. */ + deliveryDiscount?: components["schemas"]["Amount"]; + /** @description The total amount of any fees for all the line items in the order, such as a recycling fee. */ + fee?: components["schemas"]["Amount"]; + /** @description The sum of all Global Shipping Program import charges, for all the line items in the order. */ + importCharges?: components["schemas"]["Amount"]; + /** @description The total sum of cross-border import duties calculated for all line items in the order, which is paid by the buyer at checkout. */ + importDuties?: components["schemas"]["Amount"]; + /** @description The type of import tax applicable to the order, and the total amount of tax for all line items in the order. */ + importTax?: components["schemas"]["ImportTax"]; + /** @description The total discount amount for all line items in the order.

For example, there are four line items in the order. Two of the line items qualify for a Buy 1, Get 1 offer, which is a $6 and a $15 discount. The priceDiscount value returned would be 21, which is the total of the two discounts.

Note: Delivery discount amounts, if applicable, are not reflected in the value returned in this field. */ + priceDiscount?: components["schemas"]["Amount"]; + /** @description The total cost for all line items in the order, taking into account the item quantity, but before adding taxes and delivery costs, or applying discounts, fees, and adjustments.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + priceSubtotal?: components["schemas"]["Amount"]; + /** @description The total amount of taxes for all line items in the order. */ + tax?: components["schemas"]["Amount"]; + /** @description The total cost of the order, which includes: (priceSubtotal - priceDiscount) + deliveryCost + tax +/- adjustment + fee + importCharges - additionalSavings. */ + total?: components["schemas"]["Amount"]; + }; + /** @description A type that provides the status and outcome of an order line item going through the Authenticity Guarantee verification process. */ + AuthenticityVerificationProgram: { + /** @description An informational message that applies to the Authenticity Guarantee program. */ + description?: string; + /** @description An informational message regarding the authentication outcome of an Authenticity Guarantee verification inspection.

Note: This field is conditionally returned when there is information that applies to the Authenticity Guarantee program. */ + outcomeReason?: string; + /** @description An enumerated value that indicates whether the order line item has passed or failed the Authenticity Guarantee verification inspection, or whether the inspection and/or results are still pending.

Note: This field is conditionally returned when the purchase is complete.

Valid Values:
  • PENDING
  • PASSED
  • FAILED
  • INELIGIBLE
For implementation help, refer to eBay API documentation */ + status?: string; + /** @description The terms and conditions that apply to the Authenticity Guarantee program. */ + termsWebUrl?: string; + }; + /** @description A type that defines the fields for add-on services that may be applied or are automatically applied to an item in an order. */ + CheckoutAddonService: { + /** @description This boolean indicates whether the service is selected or not. */ + selected?: boolean; + /** @description The container that returns the amount and currency of the fee for an add-on service. */ + serviceFee?: components["schemas"]["Amount"]; + /** @description The unique identifier of the add-on service. */ + serviceId?: string; + /** @description The container that returns the amount and currency of the sales tax applied against the add-on service fee. This tax is based on the state or territory in which the buyer is located. */ + serviceTax?: components["schemas"]["Amount"]; + /** @description The type of add-on service, such as AUTHENTICITY_GUARANTEE. For implementation help, refer to eBay API documentation */ + serviceType?: string; + }; + /** @description A type that returns cost details for all of the line items in the order, such as tax, item price, delivery cost, and discounts. */ + ChkPricingSummaryV2: { + /** @description The total amount of the coupon discounts in the purchase order. */ + additionalSavings?: components["schemas"]["Amount"]; + /** @description The total amount of any seller adjustments. An adjustment can be a credit or debit. This is used to catch any monetary changes to the order that are not already captured in one of the other fields. */ + adjustment?: components["schemas"]["Adjustment"]; + /** @description The delivery cost for all of the line items, after any delivery discounts are applied.

For example, there are four line items, and the delivery cost for each line item is $5. One of the line items qualifies for free delivery. The deliveryCost would be $15, which is the total cost for delivering all of the line items after the discount is applied.

Note: The cost includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + deliveryCost?: components["schemas"]["Amount"]; + /** @description The total amount of any fees for all the line items in the order, such as a recycling fee. */ + fee?: components["schemas"]["Amount"]; + /** @description The sum of all Global Shipping Program import charges, for all the line items in the order. */ + importCharges?: components["schemas"]["ImportChargesV2"]; + /** @description The type of import tax applicable to the order, and the total amount of tax for all line items in the order. */ + importTax?: components["schemas"]["ImportTax"]; + /** @description The total discount amount for all line items in the order.

For example, there are four line items in the order. Two of the line items qualify for a Buy 1, Get 1 offer, which is a $6 and a $15 discount. The priceDiscount value returned would be 21, which is the total of the two discounts.

Note: Delivery discount amounts, if applicable, are not reflected in the value returned in this field. */ + priceDiscount?: components["schemas"]["Amount"]; + /** @description The total cost for all line items in the order, taking into account the item quantity, but before adding taxes and delivery costs, or applying discounts, fees, and adjustments.

Note: The price includes the value-added tax (VAT) and/or Buyer Protection fee for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see tax-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + priceSubtotal?: components["schemas"]["Amount"]; + /** @description The total amount of taxes for all line items in the order. */ + tax?: components["schemas"]["Amount"]; + /** @description The total cost of the order, which includes: (priceSubtotal - priceDiscount) + deliveryCost + tax +/- adjustment + fee + importCharges - additionalSavings. */ + total?: components["schemas"]["Amount"]; + }; + /** @description A type that defines the fields for the coupon information.

Note: This container is not returned for the getGuestPurchaseOrder method. */ + Coupon: { + /** @description The coupon redemption code. */ + redemptionCode?: string; + }; + /** @description A type that defines the fields for the coupon information used in the request. */ + CouponRequest: { + /** @description The redemption code of the coupon.

Maximum: One redemption code per order */ + redemptionCode?: string; + }; + /** @description A type that defines the fields used to create an eBay guest checkout session. */ + CreateGuestCheckoutSessionRequestV2: { + /** @description The buyer's email address. */ + contactEmail?: string; + /** @description An array used to define the line item(s) and desired quantity for an eBay guest checkout session.

Maximum: 10 line items */ + lineItemInputs?: components["schemas"]["LineItemInput"][]; + /** @description A container that defines the shipping address for an eBay guest checkout session.

Note: If the address cannot be validated, a warning message is returned along with the response. */ + shippingAddress?: components["schemas"]["ShippingAddress"]; + }; + /** @description A type that defines the fields for the error messages. */ + Error: { + /** @description This string value indicates the error category. There are three categories of errors: request errors, application errors, and system errors. */ + category?: string; + /** @description The name of the primary system where the error occurred. This is relevant for application errors. */ + domain?: string; + /** + * Format: int32 + * @description A unique code that identifies the particular error or warning that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms. + */ + errorId?: number; + /** @description An array of reference IDs that identify the specific request elements most closely associated to the error or warning, if any. */ + inputRefIds?: string[]; + /** @description A detailed description of the condition that caused the error or warning, and information on what what must be done to correct the problem. */ + longMessage?: string; + /** @description A description of the condition that caused the error or warning. */ + message?: string; + /** @description An array of reference IDs that identify the specific response elements most closely associated to the error or warning, if any. */ + outputRefIds?: string[]; + /** @description An array of warning and error messages that return one or more variables contextual information about the error or warning. This is often the field or value that triggered the error or warning. */ + parameters?: components["schemas"]["ErrorParameter"][]; + /** @description The name of the subdomain in which the error or warning occurred. */ + subdomain?: string; + }; + /** @description An array of name/value pairs that provide details regarding the error. */ + ErrorParameter: { + /** @description The name of the input field that caused an issue with the method request. */ + name?: string; + /** @description The actual value that was passed in for the element specified in the name field. */ + value?: string; + }; + /** @description A breakdown of the fees associated with the line item. */ + Fee: { + /** @description A container for the currency type and monetary amount of the fee associated with the line item. */ + amount?: components["schemas"]["Amount"]; + /** @description The type of fee associated with the line item. For implementation help, refer to eBay API documentation */ + feeType?: string; + }; + /** @description Guest session response v2 */ + GuestCheckoutSessionResponseV2: { + /** @description A container that returns the information for the coupons that were applied in the guest checkout session. */ + appliedCoupons?: components["schemas"]["Coupon"][]; + /** @description The eBay-assigned guest checkout session ID. This ID is created after a successful initiateGuestCheckoutSession call. */ + checkoutSessionId?: string; + /** @description An array of line items associated with the guest checkout session. */ + lineItems?: components["schemas"]["LineItem"][]; + /** @description A container that breaks down the costs for the order, including total cost, shipping cost, tax, fees, and any discounts. */ + pricingSummary?: components["schemas"]["ChkPricingSummaryV2"]; + /** @description A container that returns the address to which the purchase order will be shipped. */ + shippingAddress?: components["schemas"]["ShippingAddress"]; + /** @description An array of errors or warnings that were generated during the method processing. */ + warnings?: components["schemas"]["Error"][]; + }; + /** @description A type that defines the fields for a guest purchase order. */ + GuestPurchaseOrderV2: { + /** @description An array of line items in the order. */ + lineItems?: components["schemas"]["OrderLineItemV2"][]; + /** @description A container that breaks down the costs for the order, including total cost, shipping cost, tax, fees, and any discounts. */ + pricingSummary?: components["schemas"]["ApiPricingSummaryV2"]; + /** @description The creation date of the purchase order. */ + purchaseOrderCreationDate?: string; + /** @description The unique identifier of the purchase order. */ + purchaseOrderId?: string; + /** @description A container that returns the payment status for the purchase order. For implementation help, refer to eBay API documentation */ + purchaseOrderPaymentStatus?: string; + /** @description An enumeration value that indicates the current status of the buyer's payment and any refund that applies to the purchase order. For implementation help, refer to eBay API documentation */ + purchaseOrderStatus?: string; + /** @description The total amount of any refunds for the purchase order. */ + refundedAmount?: components["schemas"]["Amount"]; + /** @description Detailed tax information for items included in this order. */ + taxDetails?: components["schemas"]["TaxDetails"][]; + /** @description A container for any warning messages. */ + warnings?: components["schemas"]["Error"][]; + }; + /** @description A container that returns the URL for an image. */ + Image: { + /** @description The URL for the image. */ + imageUrl?: string; + }; + /** @description A type that defines the import charges that apply to an order. */ + ImportChargesV2: { + /** @description The amount of the import charge. */ + amount?: components["schemas"]["Amount"]; + /** @description The type of charge to apply to the order, such as import duties. For implementation help, refer to eBay API documentation */ + applicableChargeType?: string; + }; + /** @description This container defines the type of import tax applicable to the order, and the total amount of tax for all line items in the order. */ + ImportTax: { + /** @description The total amount of import tax for all line items of an order. */ + amount?: components["schemas"]["Amount"]; + /** @description An enumeration value that indicates the type of import tax applicable to the order. Currently, the only applicable import tax is the Goods and Services tax (indicated with GST). The Goods and Services tax is only applicable to orders for the eBay Australia marketplace. For implementation help, refer to eBay API documentation */ + importTaxType?: string; + }; + /** @description A type that defines the fields to support using the Post Order API for returns and cancellations.

Restriction: The Post Order API can be used only with eBay member checkouts. */ + LegacyReference: { + /** @description The legacy ID used to identify an item.

This is used by the Post Order API Create Return Request method. This call initiates the item return process. For more information on how to use this field in the Post Order API, see Create a return request in the Buy Integration Guide.

Restriction: The Post Order API can be used only with eBay member checkouts. */ + legacyItemId?: string; + /** @description The legacy ID of the order.

This is used by the Post Order API Submit Cancellation Request method. This method initiates the item cancellation process. For more information on how to use this field in the Post Order API, see Using the Post Order API.

Restriction: The Post Order API can be used only with eBay member checkouts. */ + legacyOrderId?: string; + /** @description The legacy ID of the transaction.

This is used by the Post Order API Create Return Request call. This call initiates the item return process. For more information on how to use this field in the Post Order API, see Using the Post Order API in the Buy Integration Guide.

Restriction: The Post Order API can be used only with eBay member checkouts. */ + legacyTransactionId?: string; + }; + /** @description A type that defines the fields for an individual line item. */ + LineItem: { + /** @description An array of add-on services for the line item. */ + addonServices?: components["schemas"]["CheckoutAddonService"][]; + /** @description A container returned for orders that are eligible for eBay's Authenticity Guarantee service. The seller ships Authenticity Guarantee service items to the authentication partner instead of the buyer. If the item is successfully authenticated, the authenticator will ship the item to the buyer. */ + authenticityVerification?: components["schemas"]["AuthenticityVerificationProgram"]; + /** @description The cost of a single quantity of the line item. This is the starting point for computing the price during the checkout session.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + baseUnitPrice?: components["schemas"]["Amount"]; + /** @description A breakdown of the fees applicable to the line item. */ + fees?: components["schemas"]["Fee"][]; + /** @description An eBay-assigned URL of the item image. */ + image?: components["schemas"]["Image"]; + /** @description The eBay identifier of an item. This ID is returned by the Browse and Feed API methods. The ID is in RESTful item ID format.

For example: v1|2**********6|5**********4 or v1|1**********9|0.

For more information about item IDs for RESTful APIs, see Legacy API compatibility. */ + itemId?: string; + /** @description A unique eBay-assigned ID value that identifies a line item in a checkout session. */ + lineItemId?: string; + /** @description The total cost for the line item, taking into account the quantity, any seller item discounts, and any coupon that applies.

Note: This does not include any shipping discounts, shipping costs, fees, or seller adjustments. */ + netPrice?: components["schemas"]["Amount"]; + /** @description An array of promotions applied to the line item. */ + promotions?: components["schemas"]["Promotion"][]; + /** + * Format: int32 + * @description The quantity ordered for the line item. + */ + quantity?: number; + /** @description A container that returns the information about the seller, such as their eBay user name. */ + seller?: components["schemas"]["Seller"]; + /** @description An array of shipping options that are available for the line item. By default, the first one will be selected.

Note: The updateGuestShippingOption method can be used to change the shipping option. */ + shippingOptions?: components["schemas"]["ShippingOption"][]; + /** @description A container that returns the tax information for the line item. */ + taxDetails?: components["schemas"]["TaxDetail"][]; + /** @description The seller-created title of the item. */ + title?: string; + }; + /** @description A type that defines the fields for a line item. */ + LineItemInput: { + /** @description The unique eBay-assigned identifier of an item. This ID is returned by the Browse and Feed API methods. The ID must be in RESTful item ID format.

For example: v1|2**********6|5**********4 or v1|1**********9|0.

For more information about item IDs for RESTful APIs, see Legacy API compatibility.

Each itemId will become a single line item.

Maximum: 10 per session */ + itemId?: string; + /** + * Format: int32 + * @description The quantity ordered in this line item. + */ + quantity?: number; + }; + /** @description A type that defines the fields for line item information in a purchase order. */ + OrderLineItemV2: { + /** @description An array of add-on services that apply to the order line item. */ + addonServices?: components["schemas"]["AddonService"][]; + /** @description A container that is returned for orders that are eligible for eBay's Authenticity Guarantee program. The seller ships Authenticity Guarantee program items to the authentication partner instead of the buyer. If the item is successfully authenticated, the authenticator will ship the item to the buyer. */ + authenticityVerification?: components["schemas"]["AuthenticityVerificationProgram"]; + /** @description The cost of a single quantity of the line item.

Note: The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + baseUnitPrice?: components["schemas"]["Amount"]; + /** @description A breakdown of the fees applicable to the line item. */ + fees?: components["schemas"]["Fee"][]; + /** @description An eBay-assigned URL of the item image. */ + image?: components["schemas"]["Image"]; + /** @description The eBay identifier of an item. This ID is returned by the Browse and Feed API methods. */ + itemId?: string; + /** @description When this value is true it indicates that the item has been put on hold due to a violation of eBay Policy. */ + itemOnHold?: boolean; + /** @description A container that returns fields to support using the Post Order API for returns and cancellations. For information about what is returned in these fields and how to use the Post Order API, see Using the Post Order API.

Note: The Post Order API can be used only with eBay member checkouts. */ + legacyReference?: components["schemas"]["LegacyReference"]; + /** @description A unique eBay-assigned ID value that identifies a line item in a checkout session. This is created by the initiateGuestCheckoutSession. */ + lineItemId?: string; + /** @description An enumeration value that indicates the payment status of the line item. For implementation help, refer to eBay API documentation */ + lineItemPaymentStatus?: string; + /** @description An enumeration value that indicates the fulfillment state of this line item.

Note: When there is no tracking information, the status will never change from FULFILLMENT_IN_PROGRESS; without tracking information, eBay has no way of knowing whether the order was delivered. For implementation help, refer to eBay API documentation */ + lineItemStatus?: string; + /** @description The total cost for the line item, taking into account the quantity, any seller item discounts, and any coupon that applies.

Note: This does not include any shipping discounts, shipping costs, fees, or seller adjustments. */ + netPrice?: components["schemas"]["Amount"]; + /** @description The unique order ID for the line item.

Maximum Length: 40 characters */ + orderId?: string; + /** @description An array of promotions applied to the line item. */ + promotions?: components["schemas"]["Promotion"][]; + /** + * Format: int32 + * @description The quantity ordered for the line item. + */ + quantity?: number; + /** @description A container for information about the seller offering this item, such as the seller's user name. */ + seller?: components["schemas"]["Seller"]; + /** @description A container for information about the shipping details of the order. */ + shippingDetail?: components["schemas"]["ShippingDetail"]; + /** @description A container for the tax information for the line item.

Note: The information in this container is only returned when requested from the GB marketplace, when applicable. */ + taxDetails?: components["schemas"]["TaxDetail"][]; + /** @description The seller-created title of the item. */ + title?: string; + }; + /** @description A container that returns the details of an item promotion. */ + Promotion: { + /** @description The details regarding the monetary value of the promotional discount.

Note: eBay Bucks are not supported. */ + discount?: components["schemas"]["Amount"]; + /** @description The text for the promotion title, which describes the promotion. */ + message?: string; + /** @description The kind of promotion. Some examples are: SellerDiscountedPromotionalOffer and COUPON. */ + promotionType?: string; + }; + /** @description A container that defines the full name of the person receiving the purchase order. */ + Recipient: { + /** @description The first name of the person receiving the purchase order. */ + firstName?: string; + /** @description The last name of the person receiving the purchase order. */ + lastName?: string; + }; + /** @description A type that provides region details for a tax jurisdiction. */ + Region: { + /** @description A localized text string that indicates the name of the region. Taxes are generally charged at the state/province level, or at the country level in the case of VAT tax. */ + regionName?: string; + /** @description An enumeration value that indicates the type of region for the tax jurisdiction.

Valid Values:
  • STATE_OR_PROVINCE
  • COUNTRY
For implementation help, refer to eBay API documentation */ + regionType?: string; + }; + /** @description A type that identifies the seller. */ + Seller: { + /** @description The user name created by the seller for use on eBay. */ + username?: string; + }; + /** @description A type that defines the fields for a shipping address. For restrictions, see Shipping restrictions.

Note: If the address cannot be validated, a warning message will be returned. */ + ShippingAddress: { + /** @description The first line of the street address where the item is being shipped.

Maximum:
  • 40 characters for AU, CA, and US marketplaces
  • 35 characters for DE and GB marketplaces
  • 50 characters for all other marketplaces
*/ + addressLine1?: string; + /** @description The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'.

Maximum:
  • 40 characters for AU, CA, and US marketplaces
  • 35 characters for DE and GB marketplaces
  • 50 characters for all other marketplaces
*/ + addressLine2?: string; + /** @description The city of the address where the item is being shipped. */ + city?: string; + /** @description The two letter code representing the country of the address. For implementation help, refer to eBay API documentation */ + country?: string; + /** @description The county of the address where the item is being shipped. */ + county?: string; + /** @description The phone number of the person receiving the package.

Note: It is highly recommended that when entering the phone number you include the country code.

For example, if a US phone number is 4********4, you would enter +14********4. If you do not include this code, the service will use the country specified in the country field.

You can find the country code at https://countrycode.org.
*/ + phoneNumber?: string; + /** @description The postal code of the address where the item is being shipped.

Note: This is optional when shipping to EBAY_HK (Hong Kong). */ + postalCode?: string; + /** @description The name of the person receiving the package. */ + recipient?: components["schemas"]["Recipient"]; + /** @description The state or province of the address.

Note: For the US marketplace, this is a two-character value. For a list of valid values, see US State and Canada Province Codes. */ + stateOrProvince?: string; + }; + /** @description A type that defines the shipping address fields.

Note: If the address cannot be validated, a warning message is returned along with the response. */ + ShippingAddressImpl: { + /** @description The first line of the street address where the item is being shipped.

Maximum:
  • 40 characters for AU, CA, and US marketplaces
  • 35 characters for DE and GB marketplaces
  • 50 characters for all other marketplaces
*/ + addressLine1?: string; + /** @description The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'.

Maximum:
  • 40 characters for AU, CA, and US marketplaces
  • 35 characters for DE and GB marketplaces
  • 50 characters for all other marketplaces
*/ + addressLine2?: string; + /** @description The city of the address where the item is being shipped. */ + city?: string; + /** @description The two letter code representing the country of the address. For implementation help, refer to eBay API documentation */ + country?: string; + /** @description The county of the address where the item is being shipped. */ + county?: string; + /** @description The phone number of the person receiving the package.

Note: It is highly recommended that when entering the phone number you include the country code.

For example, if a US phone number is 4********4, you would enter +14********4. If you do not include this code, the service will use the country specified in the country field.

You can find the country code at https://countrycode.org.
*/ + phoneNumber?: string; + /** @description The postal code of the address where the item is being shipped.

Note: This is optional when shipping to EBAY_HK (Hong Kong). */ + postalCode?: string; + /** @description The name of the person receiving the package. */ + recipient?: components["schemas"]["Recipient"]; + /** @description The state or province of the address.

Note: For the US marketplace, this is a two-character value. For a list of valid values, see US State and Canada Province Codes. */ + stateOrProvince?: string; + }; + /** @description A type that defines the fields for the shipping information, such as delivery date estimates and shipping provider. */ + ShippingDetail: { + /** @description This value indicates whether shipping for this order is managed by eBay (true) or by the seller (omitted if false or not applicable to the transaction).

When true, the value in the pricingSummary.deliveryCost container indicates the shipping cost paid directly by the buyer to eBay. */ + ebayShipping?: boolean; + /** @description The end of the date range in which the purchase order is expected to be delivered to the shipping address (final destination). */ + maxEstimatedDeliveryDate?: string; + /** @description The beginning of the date range in which the purchase order is expected to be delivered to the shipping address (final destination). */ + minEstimatedDeliveryDate?: string; + /** @description The shipping provider for the line item, such as FedEx or USPS. */ + shippingCarrierCode?: string; + /** @description The name of the shipping service option. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx). */ + shippingServiceCode?: string; + }; + /** @description A type that defines the fields for the shipping options. */ + ShippingOption: { + /** @description The delivery cost using this shipping option, for this line item, before any delivery discounts are applied.

Note: The cost includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the X-EBAY-C-MARKETPLACE-ID request header specifying the supported marketplace (such as EBAY_GB) to see VAT-inclusive pricing. For more information on VAT, refer to VAT Obligations in the EU. */ + baseDeliveryCost?: components["schemas"]["Amount"]; + /** @description The monetary value of any delivery discounts. */ + deliveryDiscount?: components["schemas"]["Amount"]; + /** @description This value indicates whether shipping for this order is managed by eBay (true) or by the seller (false). */ + ebayShipping?: boolean; + /** @description The Global Shipping Program import charges for this line item. */ + importCharges?: components["schemas"]["Amount"]; + /** @description The end of the date range in which the purchase order is expected to be delivered to the shipping address. */ + maxEstimatedDeliveryDate?: string; + /** @description The beginning of the date range in which the purchase order is expected to be delivered to the shipping address. */ + minEstimatedDeliveryDate?: string; + /** @description A field that indicates whether the shipping method is selected. */ + selected?: boolean; + /** @description The shipping provider for the line item, such as FedEx or USPS. */ + shippingCarrierCode?: string; + /** @description A unique ID for the selected shipping option/method. */ + shippingOptionId?: string; + /** @description The name of the shipping service code. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx). */ + shippingServiceCode?: string; + }; + /** @description This type provides detailed information about the tax that has been collected for an item. */ + TaxClassificationDetail: { + /** @description A container for the currency type and monetary amount of the tax collected for an item. */ + amount?: components["schemas"]["Amount"]; + /** @description Indicates the type of tax that has been collected for the item. For implementation help, refer to eBay API documentation */ + taxType?: string; + }; + /** @description A type that defines the tax fields. */ + TaxDetail: { + /** @description A field that indicates whether tax was applied for the cost of the item and its shipping. */ + includedInPrice?: boolean; + /** @description A container that returns the tax jurisdiction information. */ + taxJurisdiction?: components["schemas"]["TaxJurisdiction"]; + /** @description A field that indicates the type of tax that may be collected for the item. For implementation help, refer to eBay API documentation */ + taxType?: string; + }; + /** @description This type provides detailed information for taxes collected for each item within an order. */ + TaxDetails: { + /** @description A container for the currency type and monetary amount of the tax item. */ + amount?: components["schemas"]["Amount"]; + /** @description Specifies what the tax item pertains to, such as a tangible object (ITEM_TAX), a service (SERVICE_TAX), or shipping fees (SHIPPING_TAX). For implementation help, refer to eBay API documentation */ + taxClassification?: string; + /** @description Provides a detailed accounting, by TaxType, of taxes collected for each item within an order. */ + taxClassificationDetails?: components["schemas"]["TaxClassificationDetail"][]; + }; + /** @description The type that defines the fields for the tax jurisdiction details. */ + TaxJurisdiction: { + /** @description The region of the tax jurisdiction. */ + region?: components["schemas"]["Region"]; + /** @description The identifier of the tax jurisdiction. */ + taxJurisdictionId?: string; + }; + /** @description A type that defines the fields used to update the quantity of a line item. */ + UpdateQuantity: { + /** @description A unique eBay-assigned ID value that identifies a line item in a purchase order.

For example: v1|2**********6|5**********4 or v1|1**********9|0.

For more information about item IDs for RESTful APIs, see Legacy API compatibility. */ + lineItemId?: string; + /** + * Format: int32 + * @description The quantity of the line item that you wish to update. + */ + quantity?: number; + }; + /** @description A type that defines the fields used to update the shipping option of a line item. */ + UpdateShippingOption: { + /** @description A unique eBay-assigned ID value that identifies the line item in a checkout session.

For example: v1|2**********6|5**********4 or v1|1**********9|0.

For more information about item IDs for RESTful APIs, see Legacy API compatibility */ + lineItemId?: string; + /** @description A unique identifier of the selected shipping option/method. */ + shippingOptionId?: string; + }; + }; + responses: never; + parameters: never; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; +export interface operations { + applyGuestCoupon: { + parameters: { + query?: never; + header: { + /** @description This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + /** @description This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user. */ + "X-EBAY-C-ENDUSERCTX"?: string; + }; + path: { + /** @description This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details. */ + checkoutSessionId: string; + }; + cookie?: never; + }; + /** @description The container for the fields used to apply a coupon to a guest checkout session. */ + requestBody?: { + content: { + "application/json": components["schemas"]["CouponRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GuestCheckoutSessionResponseV2"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Access Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Resource Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + getGuestCheckoutSession: { + parameters: { + query?: never; + header: { + /** @description This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user. */ + "X-EBAY-C-ENDUSERCTX"?: string; + }; + path: { + /** @description This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details. */ + checkoutSessionId: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GuestCheckoutSessionResponseV2"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Access Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Resource Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + initiateGuestCheckoutSession: { + parameters: { + query?: never; + header: { + /** @description This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user. */ + "X-EBAY-C-ENDUSERCTX"?: string; + /** @description This header identifies the eBay marketplace where the order will occur.

See HTTP request headers for the marketplace ID values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + /** @description The container for the fields used by the initiateGuestCheckoutSession method. */ + requestBody?: { + content: { + "application/json": components["schemas"]["CreateGuestCheckoutSessionRequestV2"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + "X-EBAY-SECURITY-SIGNATURE"?: string; + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GuestCheckoutSessionResponseV2"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + removeGuestCoupon: { + parameters: { + query?: never; + header: { + /** @description This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + /** @description This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user. */ + "X-EBAY-C-ENDUSERCTX"?: string; + }; + path: { + /** @description This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details. */ + checkoutSessionId: string; + }; + cookie?: never; + }; + /** @description The container for the fields used by the removeGuestCoupon method. */ + requestBody?: { + content: { + "application/json": components["schemas"]["CouponRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GuestCheckoutSessionResponseV2"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Access Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Resource Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + updateGuestQuantity: { + parameters: { + query?: never; + header: { + /** @description This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + /** @description This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user. */ + "X-EBAY-C-ENDUSERCTX"?: string; + }; + path: { + /** @description This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details. */ + checkoutSessionId: string; + }; + cookie?: never; + }; + /** @description The container for the fields used by the updateGuestQuantity method. */ + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateQuantity"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GuestCheckoutSessionResponseV2"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Access Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Resource Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + updateGuestShippingAddress: { + parameters: { + query?: never; + header: { + /** @description This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + /** @description This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user. */ + "X-EBAY-C-ENDUSERCTX"?: string; + }; + path: { + /** @description This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details. */ + checkoutSessionId: string; + }; + cookie?: never; + }; + /** @description The container for the fields used by the updateGuestShippingAddress method. */ + requestBody?: { + content: { + "application/json": components["schemas"]["ShippingAddressImpl"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GuestCheckoutSessionResponseV2"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Access Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Resource Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + updateGuestShippingOption: { + parameters: { + query?: never; + header: { + /** @description This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + /** @description This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user. */ + "X-EBAY-C-ENDUSERCTX"?: string; + }; + path: { + /** @description This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.

This value is returned by the initiateGuestCheckoutSession method.

Note: When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See Checkout session restrictions in the Buy Integration Guide for details. */ + checkoutSessionId: string; + }; + cookie?: never; + }; + /** @description The container for the fields used by the updateGuestShippingOption method. */ + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateShippingOption"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GuestCheckoutSessionResponseV2"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Access Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Resource Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + getGuestPurchaseOrder: { + parameters: { + query?: never; + header?: { + /** @description This header identifies the eBay marketplace where the order will occur.

Note: For this method, this value must match the X-EBAY-C-MARKETPLACE-ID used when the associated checkout session was created.
See HTTP request headers for the marketplace ID values. */ + "X-EBAY-C-MARKETPLACE-ID"?: string; + /** @description This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user. */ + "X-EBAY-C-ENDUSERCTX"?: string; + }; + path: { + /** @description This path parameter specifies the unique identifier of a purchase order made by a guest buyer, for which details are to be retrieved.

Note: This value is returned in the response URL that is sent through the new eBay pay widget. For more information about eBay managed payments and the new Order API payment flow, see Order API in the Buying Integration Guide. */ + purchaseOrderId: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GuestPurchaseOrderV2"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Access Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; +} diff --git a/src/types/restful/specs/cancellation_oas3.ts b/src/types/restful/specs/cancellation_oas3.ts index e9ebeddd..54e60d0a 100644 --- a/src/types/restful/specs/cancellation_oas3.ts +++ b/src/types/restful/specs/cancellation_oas3.ts @@ -38,23 +38,6 @@ export interface paths { patch?: never; trace?: never; }; - "/cancellation/{cancelId}/confirm": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Buyer confirms the refund from a cancellation was received */ - post: operations["confirmRefundReceived"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/cancellation": { parameters: { query?: never; @@ -174,27 +157,6 @@ export interface operations { }; }; }; - confirmRefundReceived: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique eBay-assigned identifier of the cancellation request to be approved. */ - cancelId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; createCancellation: { parameters: { query?: never; diff --git a/src/types/restful/specs/case_oas3.ts b/src/types/restful/specs/case_oas3.ts index fde7f8d0..d3323b70 100644 --- a/src/types/restful/specs/case_oas3.ts +++ b/src/types/restful/specs/case_oas3.ts @@ -21,23 +21,6 @@ export interface paths { patch?: never; trace?: never; }; - "/casemanagement/{caseId}/close": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Buyer closes a case */ - post: operations["closeCase"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/casemanagement/{caseId}": { parameters: { query?: never; @@ -55,57 +38,6 @@ export interface paths { patch?: never; trace?: never; }; - "/casemanagement/{caseId}/issue_refund": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Seller issues a refund for a case */ - post: operations["issueCaseRefund"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/casemanagement/{caseId}/provide_shipment_info": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Buyer provides return shipment information */ - post: operations["provideReturnShipmentInfo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/casemanagement/{caseId}/provide_return_address": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Seller provides a return address to the buyer */ - post: operations["providesReturnAddress"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/casemanagement/search": { parameters: { query?: never; @@ -156,27 +88,6 @@ export interface operations { }; }; }; - closeCase: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique identifier of a case. This URI parameter is required in order to identify the case for which an appeal will be filed against. The case is identified by the caseId that is passed in as part of the call URI. */ - caseId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; getCase: { parameters: { query?: never; @@ -198,69 +109,6 @@ export interface operations { }; }; }; - issueCaseRefund: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique identifier of a case. This URI parameter is required in order to identify the case for which an appeal will be filed against. The case is identified by the caseId that is passed in as part of the call URI. */ - caseId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - provideReturnShipmentInfo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique identifier of a case. This URI parameter is required in order to identify the case for which an appeal will be filed against. The case is identified by the caseId that is passed in as part of the call URI. */ - caseId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - providesReturnAddress: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique identifier of a case. This URI parameter is required in order to identify the case for which an appeal will be filed against. The case is identified by the caseId that is passed in as part of the call URI. */ - caseId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; search: { parameters: { query?: never; diff --git a/src/types/restful/specs/commerce_catalog_v1_beta_oas3.ts b/src/types/restful/specs/commerce_catalog_v1_beta_oas3.ts index b674a2f2..f2770f3f 100644 --- a/src/types/restful/specs/commerce_catalog_v1_beta_oas3.ts +++ b/src/types/restful/specs/commerce_catalog_v1_beta_oas3.ts @@ -4,50 +4,6 @@ */ export interface paths { - "/change_request/{change_request_id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * @deprecated - * @description Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be decommissioned in Q1 of 2020. Currently, this method may still return data for a valid change request ID, but the data will be static, the status will not change, and it will not be possible to make any changes to the change request. At any time, it is possible that all catalog change requests for a user will be removed, and then this method will just trigger this error: The specified change request ID was not found. (error code 75150). Use this call to retrieve the contents of a catalog change request based on its unique identifier, change_request_id. The change_request_id value was originally generated by the createChangeRequest call, and is returned by the getChangeRequests call in the changeRequests.changeRequestId field. - */ - get: operations["getChangeRequest"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/change_request": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * @deprecated - * @description Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be decommissioned in Q1 of 2020. Currently, this method may still return existing change requests for a user, but the data will be static, the statuses will not change, and it will not be possible to make any changes to any of the change requests. At any time, it is possible that all catalog change requests for a user will be removed, and then this method will just return an empty changeRequests array. Use this call to search for and retrieve one or more catalog change requests that were submitted by the authenticated user based on their creation date, processing status, reference type or reference ID. - */ - get: operations["getChangeRequests"]; - put?: never; - /** - * @deprecated - * @description Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be decommissioned in Q1 of 2020. This method is no longer supported for any eBay categories and will return this error if used: Change Request is not supported for this product at this moment. (error code 75157) When sellers are unable to identify an eBay catalog product on which to base their item listing, this call enables you to request that eBay update an existing product record or create a new product record that will successfully match the seller's inventory item. - */ - post: operations["createChangeRequest"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/product/{epid}": { parameters: { query?: never; @@ -55,7 +11,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This call retrieves details of the catalog product identified by the eBay product identifier (ePID) specified in the request. These details include the product's title and description, aspects and their values, associated images, applicable category IDs, and any recognized identifiers that apply to the product. For a new listing, you can use the search call to identify candidate products on which to base the listing, then use the getProduct call to present the full details of those candidate products to the seller to makea a final selection. */ + /** @description This method retrieves details of the catalog product identified by the eBay product identifier (ePID) specified in the request. These details include the product's title and description, aspects and their values, associated images, applicable category IDs, and any recognized identifiers that apply to the product.

For a new listing, you can use the search method to identify candidate products on which to base the listing, then use the getProduct method to present the full details of those candidate products to the seller to make a a final selection. */ get: operations["getProduct"]; put?: never; post?: never; @@ -72,7 +28,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This call searches for and retrieves summaries of one or more products in the eBay catalog that match the search criteria provided by a seller. The seller can use the summaries to select the product in the eBay catalog that corresponds to the item that the seller wants to offer for sale. When a corresponding product is found and adopted by the seller, eBay will use the product information to populate the item listing. The criteria supported by search include keywords, product categories, and category aspects. To see the full details of a selected product, use the getProduct call. In addition to product summaries, this call can also be used to identify refinements, which help you to better pinpoint the product you're looking for. A refinement consists of one or more aspect values and a count of the number of times that each value has been used in previous eBay listings. An aspect is a property (e.g. color or size) of an eBay category, used by sellers to provide details about the items they're listing. The refinement container is returned when you include the fieldGroups query parameter in the request with a value of ASPECT_REFINEMENTS or FULL. Example A seller wants to find a product that is "gray" in color, but doesn't know what term the manufacturer uses for that color. It might be Silver, Brushed Nickel, Pewter, or even Grey. The returned refinement container identifies all aspects that have been used in past listings for products that match your search criteria, along with all of the values those aspects have taken, and the number of times each value was used. You can use this data to present the seller with a histogram of the values of each aspect. The seller can see which color values have been used in the past, and how frequently they have been used, and selects the most likely value or values for their product. You issue the search call again with those values in the aspect_filter parameter to narrow down the collection of products returned by the call. Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. If you provide more than one of these parameters, they will be combined with a logical AND to further refine the returned collection of matching products. Note: This call requires that certain special characters in the query parameters be percent-encoded:     (space) = %20       , = %2C       : = %3A       [ = %5B       ] = %5D       { = %7B       | = %7C       } = %7D This requirement applies to all query parameter values. However, for readability, call examples and samples in this documentation will not use the encoding. This call returns product summaries rather than the full details of the products. To retrieve the full details of a product, use the getProduct call with an ePID. */ + /** @description This method searches for and retrieves summaries of one or more products in the eBay catalog that match the search criteria provided by a seller. The seller can use the summaries to select the product in the eBay catalog that corresponds to the item that the seller wants to offer for sale. When a corresponding product is found and adopted by the seller, eBay will use the product information to populate the item listing. The criteria supported by search include keywords, product categories, and category aspects. To see the full details of a selected product, use the getProduct call.

In addition to product summaries, this method can also be used to identify refinements, which help you to better pinpoint the product you're looking for. A refinement consists of one or more aspect values and a count of the number of times that each value has been used in previous eBay listings. An aspect is a property (e.g. color or size) of an eBay category, used by sellers to provide details about the items they're listing. The refinement container is returned when you include the fieldGroups query parameter in the request with a value of ASPECT_REFINEMENTS or FULL.

Example
A seller wants to find a product that is "gray" in color, but doesn't know what term the manufacturer uses for that color. It might be Silver, Brushed Nickel, Pewter, or even Grey. The returned refinement container identifies all aspects that have been used in past listings for products that match your search criteria, along with all of the values those aspects have taken, and the number of times each value was used. You can use this data to present the seller with a histogram of the values of each aspect. The seller can see which color values have been used in the past, and how frequently they have been used, and selects the most likely value or values for their product. You issue the search method again with those values in the aspect_filter parameter to narrow down the collection of products returned by the call.


Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. If you provide more than one of these parameters, they will be combined with a logical AND to further refine the returned collection of matching products.

Note: This method requires that certain special characters in the query parameters be percent-encoded:

    (space) = %20       , = %2C       : = %3A       [ = %5B       ] = %5D       { = %7B       | = %7C       } = %7D

This requirement applies to all query parameter values. However, for readability, method examples and samples in this documentation will not use the encoding.


This method returns product summaries rather than the full details of the products. To retrieve the full details of a product, use the getProduct method with an ePID. */ get: operations["search"]; put?: never; post?: never; @@ -82,40 +38,6 @@ export interface paths { patch?: never; trace?: never; }; - "/get_product_metadata": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified catalog product and its associated or suggested categories, as well as the values currently associated with that product. The array is a union (with duplicates removed) of all returned aspects. After using the search and getProduct calls to find a catalog product that matches a seller's inventory item, you may discover a matching product, but determine that one or more product details are missing or inaccurate. You can propose updates to the product's aspects and aspect values for the catalog by taking the following steps: Use the Taxonomy API's category_tree calls to discover the appropriate category or categories for the seller's inventory item. See Finding categories for a listing or promotion. Use getProductMetadata to determine the aspects of your selected categories and the values of those aspects that should be added to the aspects and values already associated with your product. Use the createChangeRequest call to to submit a change request to update the product in the eBay catalog for your seller's marketplace. Note: The X-EBAY-C-MARKETPLACE-ID request header is required to identify the user's business context. The eBay Product Identifier (ePID) for a catalog product is also required and is specified through the epid query parameter. */ - get: operations["getProductMetadata"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/get_product_metadata_for_categories": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified eBay categories. The array is a union (with duplicates removed) of all returned aspects. After using the search and getProduct calls to find a catalog product that matches a seller's inventory item, you may determine that a matching product does not exist in the eBay catalog. You can propose a new product for the catalog by taking the following steps: Use the Taxonomy API's category_tree calls to discover the appropriate category or categories for the seller's inventory item. See Finding categories for a listing or promotion. Use getProductMetadataForCategories to determine the aspects of your selected categories that should be associated with your new product. Use the createChangeRequest call to to submit a change request to add the new product to the eBay catalog for your seller's marketplace. Note: The X-EBAY-C-MARKETPLACE-ID request header is required to identify the user's business context. At least one eBay category ID is required and is specified through the primary_category_id query parameter. */ - get: operations["getProductMetadataForCategories"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; } export type webhooks = Record; export interface components { @@ -129,126 +51,23 @@ export interface components { }; /** @description This type contains information about one category aspect that is associated with a specified category. */ AspectDistribution: { - /** @description Contains information about one or more values of the category aspect identified by localizedAspectName. */ + /** @description Contains information about one or more values of the category aspect identified by localizedAspectName. */ aspectValueDistributions?: components["schemas"]["AspectValueDistribution"][]; - /** @description The localized name of an aspect that is associated with the category identified by dominantCategoryId. */ + /** @description The localized name of an aspect that is associated with the category identified by dominantCategoryId. */ localizedAspectName?: string; }; /** @description This type contains information about one value of a specified aspect. This value serves as a product refinement. */ AspectValueDistribution: { - /** @description The localized value of the category aspect identified by refinement.aspectDistributions.localizedAspectName. */ + /** @description The localized value of the category aspect identified by refinement.aspectDistributions.localizedAspectName. */ localizedAspectValue?: string; /** * Format: int32 - * @description The number of times the value of localizedAspectValue has been used for eBay product listings. By comparing this quantity to the matchCount for other values of the same aspect, you can present a histogram of the values to sellers, who can use that information to select which aspect value is most appropriate for their product. You can then include the user-selected value in the the search call's aspect_filter parameter to refine your search. + * @description The number of times the value of localizedAspectValue has been used for eBay product listings. By comparing this quantity to the matchCount for other values of the same aspect, you can present a histogram of the values to sellers, who can use that information to select which aspect value is most appropriate for their product. You can then include the user-selected value in the the search call's aspect_filter parameter to refine your search. */ matchCount?: number; - /** @description A HATEOAS reference that further refines the search with this particular localizedAspectValue. */ + /** @description A HATEOAS reference that further refines the search with this particular localizedAspectValue. */ refinementHref?: string; }; - /** @description This type contains detailed information about each required and recommended aspect associated with an eBay category. These details include the aspect name, supported/possible values, and constraint information. */ - CategoryAspect: { - /** @description Returned only if this field is populated. This provides information and context for the category aspect. The help text can be presented to the seller to clarify the intended purpose of this aspect, and recommendations for its use. For example, the help text for the Country/Region of Manufacture aspect is: Specifying the country/region of manufacture can help streamline customs clearance. */ - aspectHelpText?: string; - /** @description Contains information about the input and formatting constraints of the category aspect, including the data type and format, input mode, occurrence, and cardinality. */ - constraint?: components["schemas"]["ProductAspectConstraint"]; - /** @description The name of the category aspect. */ - name?: string; - /** @description Not returned if the value of the constraint field is FREE_TEXT and there are no stored values for this aspect. Contains information about one or more supported values for the category identified by the name field), as well as constraint information for those values. */ - values?: components["schemas"]["CategoryAspectValue"][]; - }; - /** @description This type contains the supported values for a given category aspect name, as well as constraint information for specified category aspect values for a product. */ - CategoryAspectValue: { - /** @description A supported value of the corresponding category aspect (shown in the aspects.name field). Every supported value for the category aspect is shown in the aspects.values container. */ - value?: string; - /** @description Not returned if the value of the value field can always be selected for this aspect of the specified category (that is, when no constraints apply to using the value). Contains a list of the dependencies that identify when the value of the value field is available for the current aspect. Each dependency specifies the values of another aspect of the same category (a control aspect), for which the current value of the current aspect can also be selected by the seller. Example: A shirt is available in three sizes and three colors, but only the Small and Medium sizes come in Green. Thus for the Color aspect, the value Green is constrained by its dependency on Size (the control aspect). Only when the Size aspect value is Small or Medium, can the Color aspect value of Green be selected by the seller. */ - valueConstraints?: components["schemas"]["ValueConstraint"][]; - }; - /** @description This type contains the full details of a specified catalog change request, including the original payload of the createChangeRequest call, processing status and key dates, and resolution details. */ - ChangeRequest: { - /** @description The unique identifier of this change request. This value was originally generated by the createChangeRequest call and returned in the location code of that call's HTTP response header. */ - changeRequestId?: string; - /** @description The current processing status of this change request. If the value of this field is APPROVED_WITH_MODIFICATIONS, the change request has been approved with one or more modifications applied by eBay. Check the processResolution.corrections response object for details about the modifications. If the value of this field is REJECTED, the change request has been rejected for violating eBay standards or for conflicting with an existing product record. Check the processResolution.violations response object for details about the rejection. Available values: APPROVED — Upon review, the change request has been approved as submitted. APPROVED_WITH_MODIFICATIONS — Upon review, the change request has been approved with one or more corrections applied by eBay. Check the processResolution.corrections response object for details about the modifications. REJECTED — Upon review, the change request has been rejected for a conflict with an existing catalog product, or for violating eBay standards. Check the processResolution.violations response object for details about the rejection. SUBMITTED — The change request has been submitted and is being processed. UNDER_EXTENDED_REVIEW — After one hour of review, the change request is under extended review by eBay. UNDER_REVIEW — Upon submission/processing, the change request is under review by eBay. This typically takes up to one hour. For implementation help, refer to eBay API documentation */ - changeRequestStatus?: string; - /** @description The type of catalog modification being requested by this change request. Available values: PRODUCT_CREATION — Change request to create a new product PRODUCT_UPDATE — Change request to update an existing product For implementation help, refer to eBay API documentation */ - changeRequestType?: string; - /** @description The creation date of this change request. */ - creationDate?: string; - /** @description eBay's estimate of the completion date of this change request. */ - expectedCompletionDate?: string; - /** @description Returned if the value of changeRequestStatus is one of the following: APPROVED APPROVED_WITH_MODIFICATIONS — Indicates that the product was created or updated by eBay with certain corrections applied to its attributes or aspects. REJECTED — Indicates that the suggested product either conflicts with existing products or violates eBay standards. This container provides details of conflicting products, corrections required, or violations that were discovered in this change request */ - processResolution?: components["schemas"]["ProcessResolution"]; - /** @description A text description and explanation of the status indicated by the changeRequestStatus field. */ - processStatusMessage?: string; - /** @description A text description of why this change request was submitted. */ - reasonForChangeRequest?: string; - /** @description Returned if the referenceType field is returned in the response. This is the identifier of an object of the type specified by the value of referenceType. For example, if the value of referenceType is INVENTORY_ITEM, this field should contain the seller's SKU for an inventory item. */ - referenceId?: string; - /** @description Returned if this field was included in the the createChangeRequest call. This specifies the type of eBay object that the seller wants to create or update using the requested change. It applies to objects that are incomplete due to the need for a matching catalog product. Providing a referenceType and a referenceId in a catalog change request enables eBay to automatically apply the resulting new or updated product directly to the specified object without requiring additional action on your part. Available values: INVENTORY_ITEM — The requested change will support the completion of an inventory item, which you can then use to create an offer. LISTING — The requested change will support the modification of an active product listing. LISTING_DRAFT — The requested change will support the completion of an offer, which you can then publish as a product listing. For implementation help, refer to eBay API documentation */ - referenceType?: string; - /** @description Returned if the value of changeRequestStatus is APPROVED, APPROVED_WITH_MODIFICATIONS, or REJECTED. This is the date that the change request was resolved. */ - resolutionDate?: string; - /** @description Contains the full details of the suggested product, including information about the product's identifiers, description, product images, categories, and aspects. */ - suggestedProduct?: components["schemas"]["SuggestedProduct"]; - }; - /** @description This type contains information about an existing catalog product that presents a conflict with a seller's suggested product. */ - ConflictingProduct: { - /** @description The eBay assigned identifier of this conflict. */ - conflictCode?: string; - /** @description Contains information about one or more aspects of the conflicting product, which the seller's change request either duplicates or provides similar values. The seller should either accept the conflicting product's aspects and values and adopt the product as is, or submit a change request to create or update a product that doesn't conflict with an existing product record. */ - differentiatingAspects?: components["schemas"]["ProductAspect"][]; - /** @description The eBay product ID of the conflicting catalog product. */ - epid?: string; - /** @description The reason for this conflict. */ - reason?: string; - }; - /** @description This type contains information about a correction that eBay has applied to the suggested product in a change request. */ - Correction: { - /** @description Returned only if the value of corrections.productAttribute.attributeName is ASPECT_NAME. Contains the name and values of a product aspect that has been corrected by eBay in this change request. */ - aspectValues?: components["schemas"]["CorrectionAspectValues"]; - /** @description The eBay-assigned identifier of the correction type for this correction. */ - correctionCode?: string; - /** @description Contains the name of a particular product attribute with an incorrect value, and if the name is not ASPECT_NAME (a product aspect), the incorrect and correct values of the attribute. For correction information about a product aspect, see the corrections.aspectValues container. */ - productAttribute?: components["schemas"]["CorrectionProductAttribute"]; - /** @description The reason why this correction is required. */ - reason?: string; - }; - /** @description This type contains a value of a given eBay product aspect which must be corrected, along with the correct value. */ - CorrectionAspectValue: { - /** @description The aspect's correct value */ - newValue?: string; - /** @description The aspect's current incorrect value. */ - value?: string; - }; - /** @description This type identifies a product aspect that requires correction in a catalog change request, along with its aspect values that must be corrected. */ - CorrectionAspectValues: { - /** @description The localized name of this product aspect that requires correction, such as Model Number, Size, or Color. */ - aspectName?: string; - /** @description A list of one or more values of this product aspect that must be corrected. */ - values?: components["schemas"]["CorrectionAspectValue"][]; - }; - /** @description Contains information about a particular product attribute with an incorrect value. */ - CorrectionProductAttribute: { - /** @description The name of the product attribute type in the change request which requires correction, such as BRAND, CATEGORY, or TITLE. See the ProductAttributeName type for available values. Note: If the value of this field is ASPECT_NAME, see corrections.aspectValues for correction information. For implementation help, refer to eBay API documentation */ - attributeName?: string; - /** @description Not returned if the value of attributeName is ASPECT_NAME (see instead corrections.aspectValues). This is the named attribute's correct value. */ - newValue?: string; - /** @description Not returned if the value of attributeName is ASPECT_NAME (see instead corrections.aspectValues). This is the named attribute's current incorrect value. */ - value?: string; - }; - /** @description This type contains the input payload of the createChangeRequest call, including the type of request, the reason for a product update request, and the details of the new or updated product being suggested. */ - CreateChangeRequestPayload: { - /** @description The type of catalog modification being requested by this change request. Available values: PRODUCT_CREATION — Change request to create a new product PRODUCT_UPDATE — Change request to update an existing product For implementation help, refer to eBay API documentation */ - changeRequestType?: string; - /** @description Required if the value of changeRequestType is PRODUCT_UPDATE, and optional otherwise; this is a text description of why this change is being requested. */ - reasonForChangeRequest?: string; - /** @description Required if the referenceType field is included in the request. This is the identifier of an object of the type specified by the value of referenceType. For example, if the value of referenceType is INVENTORY_ITEM, this field should contain the seller's SKU for an inventory item. */ - referenceId?: string; - /** @description The type of object that the requested change is intended to support. This applies to objects that are incomplete due to the need for a matching catalog product. Providing a referenceType and a referenceId in a catalog change request enables eBay to automatically apply the resulting new or updated product directly to the specified object without requiring additional action on your part. Available values: INVENTORY_ITEM — The requested change will support the completion of an inventory item, which you can then use to create an offer. LISTING — The requested change will support the modification of an active product listing. LISTING_DRAFT — The requested change will support the completion of an offer, which you can then publish as a product listing. For implementation help, refer to eBay API documentation */ - referenceType?: string; - /** @description Contains the full details of the suggested product, including information about the product's identifiers, description, product images, categories, and aspects. */ - suggestedProduct?: components["schemas"]["SuggestedProduct"]; - }; /** @description This type defines the fields that can be returned in an error. */ Error: { /** @description Identifies the type of erro. */ @@ -279,32 +98,6 @@ export interface components { /** @description The value of the object. */ value?: string; }; - /** @description This type contains the output payload of the getChangeRequests call, which is a portion of the collection of change requests that match the search criteria. The returned set of change requests is a page, and the response includes information for navigating the output pages. */ - GetChangeRequestsResponse: { - /** @description Contains the full details of one or more catalog change requests, including the original payload of the createChangeRequest call, processing status and key dates, and resolution details. */ - changeRequests?: components["schemas"]["ChangeRequest"][]; - /** @description The URI of the getChangeRequests call request that produced this page of results. */ - href?: string; - /** - * Format: int32 - * @description The maximum number of change requests in this page, a subset of the full collection of change requests that match the filter criteria of this call. This field combines with the offset field to identify the change requests being returned. - */ - limit?: number; - /** @description The getChangeRequests call URI for the next page. For example, the following URI returns records 41 thru 50 from the collection of change requests: path/change_request?limit=10&offset=40 Note: This feature employs a zero-based list, where the first order in the list has an offset of 0. */ - next?: string; - /** - * Format: int32 - * @description The first change request in this page based on its position in the returned collection of change requests. For example, if offset is set to 10 and limit is set to 10, this page includes change requests 11 thru 20 from the resulting collection of change requests. Note: This feature employs a zero-based list, where the first item in the list has an offset of 0. - */ - offset?: number; - /** @description The getChangeRequests call URI for the previous page. For example, the following URI returns orders 21 thru 30 from the collection of orders: path/change_request?limit=10&offset=20 Note: This feature employs a zero-based list, where the first order in the list has an offset of 0. */ - prev?: string; - /** - * Format: int32 - * @description The total number of change requests in the collection. Note: If no change requests are found, this field is returned with a value of 0. - */ - total?: number; - }; /** @description This type contains information about a product image stored in eBay Picture Services (EPS). */ Image: { /** @@ -320,27 +113,19 @@ export interface components { */ width?: number; }; - /** @description This type provides details of conflicting products, corrections required, or violations that were discovered in a change request. */ - ProcessResolution: { - /** @description Contains information about one or more existing products with identifying information that matches or instersects with the suggested product. For each conflicting product, the difference is in the presence or value of one or more product aspects. If the seller accepts the aspects and their values of the conflicting product (such as a color value of scarlet instead of crimson), that product can be adopted by the seller instead of the suggested product. If the seller does not accept any of the conflicting products as is, you can submit a change request to update one of them, or to create a new product for which identifying information doesn't overlap with an existing product enough to produce a conflict. */ - conflictingProducts?: components["schemas"]["ConflictingProduct"][]; - /** @description Contains information about one or more corrections to this change request that eBay has applied to the new or updated product. Sellers can accept these corrections by adopting the product, which is identified by the epid field. */ - corrections?: components["schemas"]["Correction"][]; - /** @description Returned only if the value of changeRequestStatus is APPROVED or APPROVED_WITH_MODIFICATIONS; this is the eBay identifier of the resulting product. */ - epid?: string; - /** @description The URI of the getProduct call request that retrieves this product's details. This field is returned under one of the following conditions: The value of changeRequestType is PRODUCT_UPDATE. The value of changeRequestType is PRODUCT_CREATION, and the value of changeRequestStatus is APPROVED or APPROVED_WITH_MODIFICATIONS. */ - productHref?: string; - /** @description Contains information about one or more violations in the values of the suggested product's aspects or fixed attributes. */ - violations?: components["schemas"]["Violation"][]; - }; /** @description This type contains the full details of a specified product, including information about the product's identifiers, product images, aspects, and categories. */ Product: { - /** @description Contains information about additional images associated with this product. For the primary image, see the image container. */ + /** @description Contains information about additional images associated with this product. For the primary image, see the image container. */ additionalImages?: components["schemas"]["Image"][]; /** @description Contains an array of the category aspects and their values that are associated with this product. */ aspects?: components["schemas"]["Aspect"][]; /** @description The manufacturer's brand name for this product. */ brand?: string; + /** + * Format: int32 + * @description The number of distinct motor vehicles that are compatible with the product.

This field is only applicable for and will only be returned for Parts & Accessory products on the eBay US Motors marketplace. + */ + compatibilityCount?: number; /** @description The rich description of this product, which might contain HTML. */ description?: string; /** @description A list of all European Article Numbers (EANs) that identify this product. */ @@ -349,15 +134,15 @@ export interface components { epid?: string; /** @description A list of all GTINs that identify this product. Currently this can include EAN, ISBN, and UPC identifier types. */ gtin?: string[]; - /** @description Contains information about the primary image of this product. For more images of this product, see the additionalImages container. */ + /** @description Contains information about the primary image of this product. For more images of this product, see the additionalImages container. */ image?: components["schemas"]["Image"]; /** @description A list of all International Standard Book Numbers (ISBNs) that identify this product. */ isbn?: string[]; /** @description A list of all MPN values that the manufacturer uses to identify this product. */ mpn?: string[]; - /** @description A list of category IDs (other than the value of primaryCategoryId) for all the leaf categories to which this product might belong. */ + /** @description A list of category IDs (other than the value of primaryCategoryId) for all the leaf categories to which this product might belong. */ otherApplicableCategoryIds?: string[]; - /** @description The identifier of the leaf category that eBay recommends using to list this product, based on previous listings of similar products. Products in the eBay catalog are not automatically associated with any particular category, but using an inappropriate category can make it difficult for prospective buyers to find the product. For other possible categories that might be used, see otherApplicableCategoryIds. */ + /** @description The identifier of the leaf category that eBay recommends using to list this product, based on previous listings of similar products. Products in the eBay catalog are not automatically associated with any particular category, but using an inappropriate category can make it difficult for prospective buyers to find the product. For other possible categories that might be used, see otherApplicableCategoryIds. */ primaryCategoryId?: string; /** @description The URL for this product's eBay product page. */ productWebUrl?: string; @@ -368,136 +153,37 @@ export interface components { /** @description The current version number of this product record in the catalog. */ version?: string; }; - /** @description This type contains the name and values of a category aspect that is associated with a particular product. */ - ProductAspect: { - /** @description The name of the product aspect, such as Model Number, Size, or Color. */ - name?: string; - /** @description Required or returned if a value is provided for the name field. This is a list of one or more localized values of this product aspect. */ - values?: string[]; - }; - /** @description This type contains information about the constraints for an aspect that's associated with a specific eBay category or eBay Catalog product. */ - ProductAspectConstraint: { - /** @description The data type used to represent the aspect. See the AspectDataTypeEnum type for more information about each data type. For implementation help, refer to eBay API documentation */ - aspectDataType?: string; - /** @description Returned only if the value of aspectDataType is STRING or NUMBER. The required format for date or number values (e.g. a date value may be expressed as MMYYYY or MMYY). */ - aspectFormat?: string; - /** @description Indicates whether the seller must select from a closed list of aspect values, or can input the aspect value manually. For implementation help, refer to eBay API documentation */ - aspectMode?: string; - /** @description A value of true indicates that the aspect is mandatory for products listed in this category. */ - aspectRequired?: boolean; - /** @description This value indicates the level of importance of the product identifier appearing in the catalog product. For implementation help, refer to eBay API documentation */ - importance?: string; - /** @description Indicates whether the aspect requires only one value, or can accept multiple values when listing in this category. An example of a product aspect that will often have numerous values is Features. For implementation help, refer to eBay API documentation */ - productToAspectCardinality?: string; - }; - /** @description This type contains information about a product aspect associated with a given catalog product. */ - ProductAspectValue: { - /** @description A supported value of the corresponding product aspect (shown in the aspects.name field). Every supported value for the product aspect is shown under the aspects.values container. Note that one of these values can possibly be used instead of the product aspect value(s) currently defined for the eBay Catalog product and specified in the aspects.valuesAssociatedWithProduct array. */ - value?: string; - /** @description Not returned if the value of the value field can always be selected for this aspect of the specified category. Contains a list of the dependencies that identify when the value of the value field is available for the current aspect. Each dependency specifies the values of another aspect of the same category (a control aspect), for which the current value of the current aspect can also be selected by the seller. Example: A shirt is available in three sizes and three colors, but only the Small and Medium sizes come in Green. Thus for the Color aspect, the value Green is constrained by its dependency on Size (the control aspect). Only when the Size aspect value is Small or Medium, can the Color aspect value of Green be selected by the seller. */ - valueConstraints?: components["schemas"]["ValueConstraint"][]; - }; - /** @description This type contains information about certain available product attributes, their input requirements, and their constraints for specified categories. */ - ProductIdentifier: { - /** @description Contains information about the input, formatting, and occurrence constraints of the product identifier. */ - constraint?: components["schemas"]["ProductIdentifierConstraint"]; - /** @description A list of one or more valid values for this product identifier. */ - values?: string[]; - }; - /** @description This type contains information about the input, formatting, and occurrence constraints of a product identifier. */ - ProductIdentifierConstraint: { - /** @description This value indicates the level of importance of the product identifier appearing in the catalog product. For implementation help, refer to eBay API documentation */ - importance?: string; - /** @description Indicates whether the seller must select from a closed list of identifier values, or can input the identifier manually. For implementation help, refer to eBay API documentation */ - mode?: string; - /** @description A value of true indicates that the identifier is mandatory for the product or categories specified. */ - required?: boolean; - }; - /** @description This type contains information about certain available product attributes, their input requirements, and their constraints for a specified product and any specified categories. */ - ProductIdentifierForProductMetadata: { - /** @description Contains information about the input, formatting, and occurrence constraints of the product identifier. */ - constraint?: components["schemas"]["ProductIdentifierConstraint"]; - /** @description The identifier value currently associated with the product. */ - valueAssociatedWithProduct?: string; - /** @description A list of one or more valid values for this product identifier. */ - values?: string[]; - }; - /** @description This type is the container type for the response payload of the getProductMetadata call, which returns merged aspect metadata for a catalog product. */ - ProductMetadata: { - /** @description Contains information about one or more aspects that are supported for the specified catalog product, including those that are currently associated with the product. This is a union (with duplicates removed) of all aspects associated with the specified category or categories (if provided) and those associated with the product. */ - aspects?: components["schemas"]["ProductMetadataAspect"][]; - /** @description Contains information about available brand names, their input requirements, and their constraints for the specified product and categories. */ - brand?: components["schemas"]["ProductIdentifierForProductMetadata"]; - /** @description The European Article Numbers (EANs) that identify this product. */ - ean?: components["schemas"]["ProductIdentifierForProductMetadata"]; - /** @description The International Standard Book Numbers (ISBNs) associated with the product. */ - isbn?: components["schemas"]["ProductIdentifierForProductMetadata"]; - /** @description Contains information about available Manufacturer Product Numbers (MPNs), their input requirements, and their constraints for the specified product and categories. */ - mpn?: components["schemas"]["ProductIdentifierForProductMetadata"]; - /** @description The Universal Product Codes (UPCs) associated with the product. */ - upc?: components["schemas"]["ProductIdentifierForProductMetadata"]; - }; - /** @description This type contains detailed information about an aspect that's supported for a given eBay Catalog product. These details include the aspect name, current value(s), supported/possible values, and constraint information. */ - ProductMetadataAspect: { - /** @description Returned only if this field is populated. This provides information and context for the product aspect. The help text can be presented to the seller to clarify the intended purpose of the aspect, and recommendations for its use. For example, the help text for the Country/Region of Manufacture aspect is: Specifying the country/region of manufacture can help streamline customs clearance. */ - aspectHelpText?: string; - /** @description Contains information about the constraints for this product aspect, including data type and format, input mode, and occurrence. */ - constraint?: components["schemas"]["ProductAspectConstraint"]; - /** @description A value of true indicates that this product aspect can be removed from the specified catalog product definition by omitting it from a product change request. A value of false indicates that this product aspect cannot be dropped (although it is possible that its value could be modified). */ - droppable?: boolean; - /** @description The name of the product aspect, such as Model Number, Size, or Color. */ - name?: string; - /** @description Not returned if the value of the constraint field is FREE_TEXT and there are no stored values for this aspect. Contains information about the supported values for the product aspect identified by the name field, as well as constraint information for the product aspect values. These values can be used instead of the product aspect value(s) currently defined for the eBay Catalog product, and those specified in the valuesAssociatedWithProduct array. */ - values?: components["schemas"]["ProductAspectValue"][]; - /** @description The value(s) currently defined for the eBay Catalog product for the product aspect identified by the corresponding name field. */ - valuesAssociatedWithProduct?: string[]; - }; - /** @description This type is the container type for the response payload of the getProductMetadataForCategories call, which returns required and recommended product aspects, brand names, and manufacturer part numbers for one or more eBay categories. */ - ProductMetadataForCategories: { - /** @description Contains information about one or more required and recommended product aspects associated with the specified eBay category or categories. This is a union (with duplicates removed) of all aspects associated with the specified categories. */ - aspects?: components["schemas"]["CategoryAspect"][]; - /** @description Contains information about available brand names, their input requirements, and their constraints for the specified categories. */ - brand?: components["schemas"]["ProductIdentifier"]; - /** @description The European Article Numbers (EANs) that identify this product. */ - ean?: components["schemas"]["ProductIdentifier"]; - /** @description The International Standard Book Numbers (ISBNs) associated with the product. */ - isbn?: components["schemas"]["ProductIdentifier"]; - /** @description Contains information about available Manufacturer Product Numbers (MPNs), their input requirements, and their constraints for the specified categories. */ - mpn?: components["schemas"]["ProductIdentifier"]; - /** @description The Universal Product Codes (UPCs) associated with the product. */ - upc?: components["schemas"]["ProductIdentifier"]; - }; - /** @description This type contains the specifications for the collection of products that match the search or filter criteria of a search call. A maximum of 200 product summaries is returned (the result set), fewer if you include the limit query parameter in the request. */ + /** @description This type contains the specifications for the collection of products that match the search or filter criteria of a search call. A maximum of 200 product summaries is returned (the result set), fewer if you include the limit query parameter in the request. */ ProductSearchResponse: { - /** @description This field is reserved for internal or future use. */ + /** @description This field is reserved for internal or future use. */ href?: string; /** * Format: int32 - * @description The number of product summaries returned in the response. This is the result set, a subset of the full collection of products that match the search or filter criteria of this call. If the limit query parameter was included in the request, this field will have the same value. Default: 50 + * @description The number of product summaries returned in the response. This is the result set, a subset of the full collection of products that match the search or filter criteria of this call. If the limit query parameter was included in the request, this field will have the same value.

Default: 50 */ limit?: number; - /** @description This field is reserved for internal or future use. */ + /** @description This field is reserved for internal or future use. */ next?: string; /** * Format: int32 - * @description This field is reserved for internal or future use. + * @description This field is reserved for internal or future use. */ offset?: number; - /** @description This field is reserved for internal or future use. */ + /** @description This field is reserved for internal or future use. */ prev?: string; - /** @description Returned if the fieldGroups query parameter was omitted from the request, or if it was included with a value of MATCHING_PRODUCTS or FULL. This container provides an array of product summaries in the current result set for products that match the combination of the q, category_ids, and aspect_filter parameters that were provided in the request. Each product summary includes information about the product's identifiers, product images, aspects, the product page URL, and the getProduct URL for retrieving the product details. */ + /** @description Returned if the fieldGroups query parameter was omitted from the request, or if it was included with a value of MATCHING_PRODUCTS or FULL. This container provides an array of product summaries in the current result set for products that match the combination of the q, category_ids, and aspect_filter parameters that were provided in the request. Each product summary includes information about the product's identifiers, product images, aspects, the product page URL, and the getProduct URL for retrieving the product details. */ productSummaries?: components["schemas"]["ProductSummary"][]; - /** @description Returned only if the fieldGroups query parameter was included in the request with a value of ASPECT_REFINEMENTS or FULL. An aspect is a property of a category, used by sellers to provide details about the items they're listing. For example, the Cell Phones & Smartphones category (#9355) includes a Storage Capacity aspect. This container provides information about the distribution of values of a set of category aspects. The category aspects are those associated with the category that eBay determines is most likely to cover the products that match the search criteria. */ + /** @description Returned only if the fieldGroups query parameter was included in the request with a value of ASPECT_REFINEMENTS or FULL.

An aspect is a property of a category, used by sellers to provide details about the items they're listing. For example, the Cell Phones & Smartphones category (#9355) includes a Storage Capacity aspect.

This container provides information about the distribution of values of a set of category aspects. The category aspects are those associated with the category that eBay determines is most likely to cover the products that match the search criteria. */ refinement?: components["schemas"]["Refinement"]; /** * Format: int32 - * @description This field is reserved for internal or future use. + * @description This field is reserved for internal or future use. */ total?: number; }; - /** @description This type contains a summary of a specified product. The product summary includes information about the product's identifiers, product images, aspects, and the getProduct URL for retrieving the product details. */ + /** @description This type contains a summary of a specified product. The product summary includes information about the product's identifiers, product images, aspects, and the getProduct URL for retrieving the product details. */ ProductSummary: { - /** @description Contains information about additional images associated with this product. For the primary image, see the image container. */ + /** @description Contains information about additional images associated with this product. For the primary image, see the image container. */ additionalImages?: components["schemas"]["Image"][]; /** @description Contains an array of the category aspects and their values that are associated with this product. */ aspects?: components["schemas"]["Aspect"][]; @@ -507,15 +193,15 @@ export interface components { ean?: string[]; /** @description The eBay product ID of this product. */ epid?: string; - /** @description A list of all GTINs that identify this product. This includes all of the values returned in the ean, isbn, and upc fields. */ + /** @description A list of all GTINs that identify this product. This includes all of the values returned in the ean, isbn, and upc fields. */ gtin?: string[]; - /** @description Contains information about the primary image of this product. For more images of this product, see the additionalImages container. */ + /** @description Contains information about the primary image of this product. For more images of this product, see the additionalImages container. */ image?: components["schemas"]["Image"]; /** @description A list of all International Standard Book Numbers (ISBNs) that identify this product. */ isbn?: string[]; /** @description A list of all Manufacturer Product Number (MPN) values that the manufacturer uses to identify this product. */ mpn?: string[]; - /** @description The URI of the getProduct call request that retrieves this product's details. */ + /** @description The URI of the getProduct call request that retrieves this product's details. */ productHref?: string; /** @description The URL for this product's eBay product page. */ productWebUrl?: string; @@ -526,74 +212,11 @@ export interface components { }; /** @description This type identifies a product category and the aspects associated with that category. Each aspect distribution container returns the distribution of values that have been used for the aspect. */ Refinement: { - /** @description Contains information about one or more aspects that are associated with the category identified by dominantCategoryId. */ + /** @description Contains information about one or more aspects that are associated with the category identified by dominantCategoryId. */ aspectDistributions?: components["schemas"]["AspectDistribution"][]; /** @description The ID of the category that eBay determines is most likely to cover the products matching the search criteria. */ dominantCategoryId?: string; }; - /** @description This type contains the full details of a suggested product, including information about the product's identifiers, description, product images, categories, and aspects. */ - SuggestedProduct: { - /** @description A list of URLs for additional images associated with the suggested product. For the URL of the primary image, see the imageUrl field. */ - additionalImageUrls?: string[]; - /** @description Contains one or more category aspects and their values that are associated with the suggested product. */ - aspects?: components["schemas"]["ProductAspect"][]; - /** @description The manufacturer's brand name for the suggested product. */ - brand?: string; - /** @description A rich description of the suggested product, which can contain HTML, including the following basic tags: Text formatting tags such as <b>, <i>, <br>, <ol>, <ul>, and <li> Table formatting tags such as <table>, <tr>, <td>, <th>, <thead>, <tfoot>, <tbody>, <caption>, <col>, and <colgroup> Note: Active content from sellers is prohibited on eBay, including animation or video via JavaScript, Flash, plug-ins, or form actions. */ - description?: string; - /** @description A list of all European Article Numbers (EANs) that identify the suggested product. */ - ean?: string[]; - /** @description Required or returned only if the value of the changeRequestType field is PRODUCT_UPDATE. This is the eBay product ID of the product record for which an update is being suggested. */ - epid?: string; - /** @description Required or returned if the value of the changeRequestType field is PRODUCT_CREATION. This is the URL of the primary image associated with the suggested product. */ - imageUrl?: string; - /** @description A list of all International Standard Book Numbers (ISBNs) that identify the suggested product. */ - isbn?: string[]; - /** @description A list of all Manufacturer Product Number (MPN) values that the manufacturer uses to identify the suggested product. */ - mpn?: string[]; - /** @description A list of category IDs (other than the value of primaryCategoryId) for all the leaf categories to which the suggested product might belong. */ - otherApplicableCategoryIds?: string[]; - /** @description The identifier of the category that eBay recommends using to list the suggested product, based on previous listings of similar products. Products in the eBay catalog are not automatically associated with any particular category, but using an inappropriate category can make it difficult for prospective buyers to find the product. For other possible categories that might be used, see otherApplicableCategoryIds. */ - primaryCategoryId?: string; - /** @description The catalog title that will be used as the listing title for all item listings based on the suggested product. */ - title?: string; - /** @description A list of all Universal Product Codes (UPCs) that identify the suggested product. */ - upc?: string[]; - /** @description Required or returned only if the value of changeRequestType is PRODUCT_UPDATE. This is the current version number in the catalog of the product record for which an update is being suggested. */ - version?: string; - }; - /** @description This type contains a list of the dependencies that identify when a particular value is available for a given aspect of a given category. Each dependency specifies the values of another aspect of the same category (the control aspect), for which the given value of the given aspect can also be selected by the seller. This container consists of constraint information for the corresponding product aspect value. */ - ValueConstraint: { - /** @description The name of the control aspect on which the current aspect value depends. */ - applicableForAspectName?: string; - /** @description Contains a list of the values of the control aspect on which this aspect's value depends. When the control aspect has any of the specified values, the current value of the current aspect will also be available. */ - applicableForAspectValues?: string[]; - }; - /** @description This type contains information about a violation of eBay standards in a change request. */ - Violation: { - /** @description Returned only if the value of productAttribute.name is ASPECT_NAME. Contains the name of a product aspect that is in violation of eBay standards in this change request, along with its values that produced the violation. */ - aspectsValues?: components["schemas"]["ViolationAspectValues"]; - /** @description Contains the name of a particular product attribute with a value in violation of eBay standards, and if the name is not ASPECT_NAME (a product aspect), the value of the attribute that's in violation of eBay standards. */ - productAttribute?: components["schemas"]["ViolationProductAttribute"]; - /** @description An explanation of the reason for this violation. */ - reason?: string; - /** @description The eBay-assigned identifier of the violation type of this violation. */ - violationCode?: string; - }; - /** @description Contains the name of a product aspect that is in violation of eBay standards in a particular catalog change request, along with its values that produced the violation. */ - ViolationAspectValues: { - /** @description The localized name of this product aspect that's in violation, such as Model Number, Size, or Color. */ - aspectName?: string; - /** @description A list of one or more values of this product aspect that are in violation of eBay standards. */ - values?: string[]; - }; - /** @description This type contains the name of a particular product attribute with a value in violation of eBay standards, and if the name is not ASPECT_NAME (a product aspect), the values of the attribute that are in violation. */ - ViolationProductAttribute: { - /** @description The name of the product attribute type in the change request which is in violation, such as BRAND, CATEGORY, or TITLE. See the ProductAttributeName type for available values. Note: If the value of this field is ASPECT_NAME, see violations.aspectsValues for violation information. For implementation help, refer to eBay API documentation */ - name?: string; - /** @description Not returned if the value of name is ASPECT_NAME (see instead violations.aspectsValues). This is a list of the named attribute's values that are in violation. */ - values?: string[]; - }; }; responses: never; parameters: never; @@ -603,177 +226,15 @@ export interface components { } export type $defs = Record; export interface operations { - getChangeRequest: { - parameters: { - query?: never; - header: { - /** @description Use this header to identify the authenticated user's business context. This header is currently limited to EBAY_US, EBAY_AU, EBAY_CA, and EBAY_GB values. If not included with your request, the marketplace value defaults to EBAY_US. Note that it does not indicate a language preference or end-user location. */ - "X-EBAY-C-MARKETPLACE-ID": string; - /** @description Use this header to specify the natural language in which the authenticated user desires the response. */ - "Accept-Language"?: string; - }; - path: { - /** @description The unique identifier of the change request being requested. This value was originally generated by the createChangeRequest call, and is returned by the getChangeRequests call in the changeRequests.changeRequestId field. */ - change_request_id: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ChangeRequest"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getChangeRequests: { - parameters: { - query?: { - /** @description One or more comma-separated criteria for narrowing down the collection of change requests returned by this call. These criteria correspond to specific fields in the response payload. Multiple filter criteria combine to further restrict the results. The available criteria are as follows: creationDate The time period during which qualifying change requests were created (the changeRequests.creationDate field). In the URI, this is expressed as a starting timestamp, with or without an ending timestamp (in brackets). The timestamps are in ISO 8601 format, which uses the 24-hour Universal Coordinated Time (UTC) clock. For example: creationDate:[2016-02-21T08:25:43.511Z..] identifies orders created on or after the given timestamp. creationDate:[2016-02-21T08:25:43.511Z..2016-04-21T08:25:43.511Z] identifies orders created between the given timestamps, inclusive. changeRequestStatus The degree to which qualifying change requests have been resolved (the changeRequests.changeRequestStatus field). For example: changeRequestStatus:{SUBMITTED} specifies change requests that have been submitted and are being processed. changeRequestStatus:{UNDER_REVIEW|APPROVED_WITH_MODIFICATIONS} specifies change requests that are being reviewed by eBay, and change requests that have been approved, but eBay has made some modifications such as correcting typographic errors. changeRequestStatus:{REJECTED} specifies change requests that have been rejected by eBay because of a violation. referenceId The identifier of an object of the type specified by the value of the referenceType parameter. For example, if the value of referenceType is INVENTORY_ITEM, this field should contain the seller's SKU for an inventory item. If you include this without the referenceType parameter, the filter will apply to objects of any reference type with this reference ID, if specified in the change request. This parameter can take multiple values. For example: referenceId:{234242|675756} referenceType The type of object that a requested catalog change is intended to support, if specified in the change request (the changeRequests.referenceType field). For example: referenceType:{INVENTORY_ITEM} indicates that the requested change will support the completion of an inventory item, which you can then use to create an offer. referenceType:{LISTING} indicates that the requested change will support the modification of an active product listing. referenceType:{LISTING_DRAFT} indicates that the requested change will support the completion of an offer, which you can then publish as a product listing. For implementation help, refer to eBay API documentation at https://developer.ebay.com/devzone/rest/api-ref/catalog/types/FilterField.html */ - filter?: string; - /** @description The number of change requests to return. This is the result set, a subset of the full collection of change requests that match the filter criteria of this call. Maximum: 200 Default: 50 */ - limit?: string; - /** @description The first change request to return based on its position in the returned collection of change requests. Use this parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the call retrieves change requests 11 thru 20 from the resulting collection of change requests. Note: This feature employs a zero-based list, where the first item in the list has an offset of 0. Default: 0 (zero) */ - offset?: string; - }; - header: { - /** @description Use this header to identify the authenticated user's business context. This header is currently limited to EBAY_US, EBAY_AU, EBAY_CA, and EBAY_GB values. If not included with your request, the marketplace value defaults to EBAY_US. Note that it does not indicate a language preference or end-user location. */ - "X-EBAY-C-MARKETPLACE-ID": string; - /** @description Use this header to specify the natural language in which the authenticated user desires the response. */ - "Accept-Language"?: string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GetChangeRequestsResponse"]; - }; - }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - createChangeRequest: { - parameters: { - query?: never; - header: { - /** @description Use this header to identify the authenticated user's business context. This header is currently limited to EBAY_US, EBAY_AU, EBAY_CA, and EBAY_GB values. If not included with your request, the marketplace value defaults to EBAY_US. Note that it does not indicate a language preference or end-user location. */ - "X-EBAY-C-MARKETPLACE-ID": string; - /** @description Use this header to specify the natural language in which the authenticated user desires the response. */ - "Accept-Language"?: string; - }; - path?: never; - cookie?: never; - }; - /** @description Contains the full details of a specified catalog change request, including the type of request, the reason for a product update request, and the details of the new or updated product being suggested. */ - requestBody?: { - content: { - "application/json": components["schemas"]["CreateChangeRequestPayload"]; - }; - }; - responses: { - /** @description Accepted */ - 202: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; getProduct: { parameters: { query?: never; - header?: never; + header?: { + /** @description This method also uses the X-EBAY-C-MARKETPLACE-ID header to identify the seller's eBay marketplace. It is required for all supported marketplaces, except EBAY_US, which is the default. */ + "X-EBAY-C-MARKETPLACE-ID"?: string; + }; path: { - /** @description The ePID of the product being requested. This value can be discovered by issuing the search call and examining the value of the productSummaries.epid field for the desired returned product summary. */ + /** @description The eBay product identifier (ePID) of the product being requested. This value can be discovered by issuing the search method and examining the value of the productSummaries.epid field for the desired returned product summary. */ epid: string; }; cookie?: never; @@ -822,24 +283,27 @@ export interface operations { search: { parameters: { query?: { - /** @description An eBay category and one or more aspects of that category, with the values that can be used to narrow down the collection of products returned by this call. Aspects are product attributes that can represent different types of information for different products. Every product has aspects, but different products have different sets of aspects. You can determine appropriate values for the aspects by first submitting this call without this parameter. It will return either the productSummaries.aspects container, the refinement.aspectDistributions container, or both, depending on the value of the fieldgroups parameter in the request. The productSummaries.aspects container provides the category aspects and their values that are associated with each returned product. The refinement.aspectDistributions container provides information about the distribution of values of the set of category aspects associated with the specified categories. In both cases sellers can select from among the returned aspects to use with this parameter. Note: You can also use the Taxonomy API's getItemAspectsForCategory call to retrieve detailed information about aspects and their values that are appropriate for your selected category. The syntax for the aspect_filter parameter is as follows (on several lines for readability; categoryId is required): aspect_filter=categoryId:category_id, aspect1:{valueA|valueB|...}, aspect2:{valueC|valueD|...},... A matching product must be within the specified category, and it must have least one of the values identified for every specified aspect. Note: Aspect names and values are case sensitive. Here is an example of an aspect_filter parameter in which 9355 is the category ID, Color is an aspect of that category, and Black and White are possible values of that aspect (on several lines for readability): GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search? aspect_filter=categoryId:9355,Color:{White|Black} Here is the aspect_filter with required URL encoding and a second aspect (on several lines for readability): GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search? aspect_filter=categoryId:9355,Color:%7BWhite%7CBlack%7D, Storage%20Capacity:%128GB%7C256GB%7D Note: You cannot use the aspect_filter parameter in the same call with either the gtin parameter or the mpn parameter. For implementation help, refer to eBay API documentation at https://developer.ebay.com/devzone/rest/api-ref/catalog/types/AspectFilter.html */ + /** @description An eBay category and one or more aspects of that category, with the values that can be used to narrow down the collection of products returned by this call.

Aspects are product attributes that can represent different types of information for different products. Every product has aspects, but different products have different sets of aspects.

You can determine appropriate values for the aspects by first submitting this method without this parameter. It will return either the productSummaries.aspects container, the refinement.aspectDistributions container, or both, depending on the value of the fieldgroups parameter in the request. The productSummaries.aspects container provides the category aspects and their values that are associated with each returned product. The refinement.aspectDistributions container provides information about the distribution of values of the set of category aspects associated with the specified categories. In both cases sellers can select from among the returned aspects to use with this parameter.

Note: You can also use the Taxonomy API's getItemAspectsForCategory method to retrieve detailed information about aspects and their values that are appropriate for your selected category.

The syntax for the aspect_filter parameter is as follows (on several lines for readability; categoryId is required):

aspect_filter=categoryId:category_id,
aspect1:{valueA|valueB|...},
aspect2:{valueC|valueD|...},.


A matching product must be within the specified category, and it must have least one of the values identified for every specified aspect.

Note: Aspect names and values are case sensitive.

Here is an example of an aspect_filter parameter in which 9355 is the category ID, Color is an aspect of that category, and Black and White are possible values of that aspect (on several lines for readability):

GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search?
aspect_filter=categoryId:9355,Color:{White|Black}


Here is the aspect_filter with required URL encoding and a second aspect (on several lines for readability):

GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search?
aspect_filter=categoryId:9355,Color:%7BWhite%7CBlack%7D,
Storage%20Capacity:%128GB%7C256GB%7D


Note: You cannot use the aspect_filter parameter in the same method with either the gtin parameter or the mpn parameter. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/commerce/catalog/types/catal:AspectFilter */ aspect_filter?: string; - /** @description Important: Currently, only the first category_id value is accepted. One or more comma-separated category identifiers for narrowing down the collection of products returned by this call. Note: This parameter requires a valid category ID value. You can use the Taxonomy API's getCategorySuggestions call to retrieve appropriate category IDs for your product based on keywords. The syntax for this parameter is as follows: category_ids=category_id1,category_id2,... Here is an example of a call with the category_ids parameter: GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search? category_ids=178893 Note: Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. If you provide only the category_ids parameter, you cannot specify a top-level (L1) category. */ + /** @description Important: Currently, only the first category_id value is accepted.

One or more comma-separated category identifiers for narrowing down the collection of products returned by this call.

Note: This parameter requires a valid category ID value. You can use the Taxonomy API's getCategorySuggestions method to retrieve appropriate category IDs for your product based on keywords.

The syntax for this parameter is as follows:

category_ids=category_id1,category_id2,.

Here is an example of a method with the category_ids parameter:

GET https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search?
category_ids=178893


Note: Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value.

If you provide only the category_ids parameter, you cannot specify a top-level (L1) category.
*/ category_ids?: string; - /** @description The type of information to return in the response. Important: This parameter may not produce valid results if you also provide more than one value for the category_ids parameter. It is recommended that you avoid using this combination. Valid Values: ASPECT_REFINEMENTS — This returns the refinement container, which includes the category aspect and aspect value distributions that apply to the returned products. For example, if you searched for Ford Mustang, some of the category aspects might be Model Year, Exterior Color, Vehicle Mileage, and so on. Note: Aspects are category specific. FULL — This returns all the refinement containers and all the matching products. This value overrides the other values, which will be ignored. MATCHING_PRODUCTS — This returns summaries for all products that match the values you provide for the q and category_ids parameters. This does not affect your use of the ASPECT_REFINEMENTS value, which you can use in the same call. Code so that your app gracefully handles any future changes to this list. Default: MATCHING_PRODUCTS */ + /** @description The type of information to return in the response.

Important: This parameter may not produce valid results if you also provide more than one value for the category_ids parameter. It is recommended that you avoid using this combination.

Valid Values:
  • ASPECT_REFINEMENTS — This returns the refinement container, which includes the category aspect and aspect value distributions that apply to the returned products. For example, if you searched for Ford Mustang, some of the category aspects might be Model Year, Exterior Color, Vehicle Mileage, and so on.

    Note: Aspects are category specific.
  • FULL — This returns all the refinement containers and all the matching products. This value overrides the other values, which will be ignored.
  • MATCHING_PRODUCTS — This returns summaries for all products that match the values you provide for the q and category_ids parameters. This does not affect your use of the ASPECT_REFINEMENTS value, which you can use in the same call.
Code so that your app gracefully handles any future changes to this list.

Default: MATCHING_PRODUCTS */ fieldgroups?: string; - /** @description A string consisting of one or more comma-separated Global Trade Item Numbers (GTINs) that identify products to search for. Currently the GTIN values can include EAN, ISBN, and UPC identifier types. Note: Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. You cannot use the gtin parameter in the same call with either the q parameter or the aspect_filter parameter. */ + /** @description A string consisting of one or more comma-separated Global Trade Item Numbers (GTINs) that identify products to search for. Currently the GTIN values can include EAN, ISBN, and UPC identifier types.

Note: Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value.

You cannot use the gtin parameter in the same method with either the q parameter or the aspect_filter parameter.
*/ gtin?: string; - /** @description The number of product summaries to return. This is the result set, a subset of the full collection of products that match the search or filter criteria of this call. Maximum: 200 Default: 50 */ + /** @description The number of product summaries to return. This is the result set, a subset of the full collection of products that match the search or filter criteria of this call.

Maximum: 200
Default: 50 */ limit?: string; - /** @description A string consisting of one or more comma-separated Manufacturer Part Numbers (MPNs) that identify products to search for. This call will return all products that have one of the specified MPNs. MPNs are defined by manufacturers for their own products, and are therefore certain to be unique only within a given brand. However, many MPNs do turn out to be globally unique. Note: Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. You cannot use the mpn parameter in the same call with either the q parameter or the aspect_filter parameter. */ + /** @description A string consisting of one or more comma-separated Manufacturer Part Numbers (MPNs) that identify products to search for. This method will return all products that have one of the specified MPNs.

MPNs are defined by manufacturers for their own products, and are therefore certain to be unique only within a given brand. However, many MPNs do turn out to be globally unique.

Note: Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value.

You cannot use the mpn parameter in the same method with either the q parameter or the aspect_filter parameter.
*/ mpn?: string; /** @description This parameter is reserved for internal or future use. */ offset?: string; - /** @description A string consisting of one or more keywords to use to search for products in the eBay catalog. Note: This call searches the following product record fields: title, description, brand, and aspects.localizedName, which do not include product IDs. Wildcard characters (e.g. *) are not allowed. The keywords are handled as follows: If the keywords are separated by a comma (e.g. iPhone,256GB), the query returns products that have iPhone AND 256GB. If the keywords are separated by a space (e.g. "iPhone ipad" or "iPhone, ipad"), the query ignores any commas and returns products that have iPhone OR iPad. Note: Although all query parameters are optional, this call must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value. You cannot use the q parameter in the same call with either the gtin parameter or the mpn parameter. */ + /** @description A string consisting of one or more keywords to use to search for products in the eBay catalog.

Note: This method searches the following product record fields: title, description, brand, and aspects.localizedName, which do not include product IDs. Wildcard characters (e.g. *) are not allowed.

The keywords are handled as follows:
  • If the keywords are separated by a comma (e.g. iPhone,256GB), the query returns products that have iPhone AND 256GB.
  • If the keywords are separated by a space (e.g. "iPhone ipad" or "iPhone, ipad"), the query ignores any commas and returns products that have iPhone OR iPad.
Note: Although all query parameters are optional, this method must include at least the q parameter, or the category_ids, gtin, or mpn parameter with a valid value.

You cannot use the q parameter in the same method with either the gtin parameter or the mpn parameter.
*/ q?: string; }; - header?: never; + header?: { + /** @description This method also uses the X-EBAY-C-MARKETPLACE-ID header to identify the seller's eBay marketplace. It is required for all supported marketplaces, except EBAY_US, which is the default. */ + "X-EBAY-C-MARKETPLACE-ID"?: string; + }; path?: never; cookie?: never; }; @@ -884,108 +348,4 @@ export interface operations { }; }; }; - getProductMetadata: { - parameters: { - query: { - /** @description The unique eBay product identifier of the catalog product that you want to update. The supported and applied aspects, constraints, and values for this eBay catalog product are returned. */ - epid: string; - /** @description Use only if you are also including the primary_category_id parameter in the request. Provide one or more comma-separated category IDs in this parameter. Sellers can use other_applicable_category_ids to retrieve information about the specified categories' associated aspects, constraints, and values, along with the same information for the category specified in the primary_category_id parameter, for the seller to assess, select, and populate for submission with the createChangeRequest call. eBay category IDs are returned by the Taxonomy API's category_tree calls. */ - other_applicable_category_ids?: string; - /** @description Use only if the seller believes this product is associated with the wrong primary category. Use this parameter to submit the unique identifier of the primary category that the seller wants to use instead. This call retrieves information about the specified category's associated aspects, constraints, and values for the seller to assess, select, and populate for submission with the Catalog API's createChangeRequest call. If you exclude this parameter from your request, this call retrieves information about the aspects, constraints, and values of the specified product's current primary category and other applicable categories. If you include this parameter in your request, this call does not return any information about the specified product's current primary or other applicable categories, but only about the specified category. To retrieve information about any other categories, you must specify them with the other_applicable_category_ids parameter. eBay category IDs are returned by the Taxonomy API's category_tree calls. */ - primary_category_id?: string; - }; - header: { - /** @description This request header sets the natural language that will be provided in the field values of the response payload. Supported values for this header can be found in the Marketplace ID and language header values table. */ - "Accept-Language"?: string; - /** @description Use this header to specify the eBay marketplace identifier. Supported values for this header can be found in the MarketplaceIdEnum type definition. */ - "X-EBAY-C-MARKETPLACE-ID": string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProductMetadata"]; - }; - }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getProductMetadataForCategories: { - parameters: { - query: { - /** @description A string of comma-separated category IDs. if sellers want to specify more than the primary category under which to offer a product, they can use this parameter to retrieve the aspects associated with all of the additional specified categories. eBay category IDs are returned by the Taxonomy API's category_tree calls. */ - other_applicable_category_ids?: string; - /** @description The unique identifier of the primary eBay category for which you will retrieve product aspects. eBay category IDs are returned by the Taxonomy API's category_tree calls. */ - primary_category_id: string; - }; - header: { - /** @description This request header sets the natural language that will be provided in the field values of the response payload. Supported values for this header can be found in the Marketplace ID and language header values table. */ - "Accept-Language"?: string; - /** @description Use this header to specify the eBay marketplace identifier. Supported values for this header can be found under Supported marketplaces on the Catalog API Overview page. */ - "X-EBAY-C-MARKETPLACE-ID": string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProductMetadataForCategories"]; - }; - }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; } diff --git a/src/types/restful/specs/commerce_charity_v1_oas3.ts b/src/types/restful/specs/commerce_charity_v1_oas3.ts index 14c88ff1..9be3d254 100644 --- a/src/types/restful/specs/commerce_charity_v1_oas3.ts +++ b/src/types/restful/specs/commerce_charity_v1_oas3.ts @@ -11,7 +11,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This call is used to retrieve detailed information about supported charitable organizations. It allows users to retrieve the details for a specific charitable organization using its charity organization ID.

The call returns the full details for the charitable organization that matches the specified ID. */ + /** @description This call is used to retrieve detailed information about supported charitable organizations. It allows users to retrieve the details for a specific charitable organization using its charity organization ID. */ get: operations["getCharityOrg"]; put?: never; post?: never; @@ -38,23 +38,6 @@ export interface paths { patch?: never; trace?: never; }; - "/charity_org/get_charity_org_by_legacy_id": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This call allows users to retrieve the details for a specific charitable organization using its legacy charity ID, which has also been referred to as the charity number, external ID, and PayPal Giving Fund ID. The legacy charity IDĀ is separate from eBay’s generic charity ID. */ - get: operations["getCharityOrgByLegacyId"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; } export type webhooks = Record; export interface components { @@ -67,7 +50,7 @@ export interface components { stateOrProvince?: string; /** @description The postal code of the charitable organization. */ postalCode?: string; - /** @description The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation */ + /** @description The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation */ country?: string; }; /** @description The full location, ID, logo and other details of the charity organization. */ @@ -269,51 +252,4 @@ export interface operations { }; }; }; - getCharityOrgByLegacyId: { - parameters: { - query: { - /** @description The legacy ID of the charitable organization.

Note: The legacy charity ID is the identifier assigned to an organization upon registration with the PayPal Giving Fund (PPGF). It has also been referred to as the external ID/charity number. */ - legacy_charity_org_id: string; - }; - header: { - /** @description A header used to specify the eBay marketplace ID.

Valid Values: EBAY_GB and EBAY_US */ - "X-EBAY-C-MARKETPLACE-ID": string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CharityOrg"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; } diff --git a/src/types/restful/specs/commerce_identity_v1_oas3.ts b/src/types/restful/specs/commerce_identity_v1_oas3.ts index 5aa3c8ec..a58b728d 100644 --- a/src/types/restful/specs/commerce_identity_v1_oas3.ts +++ b/src/types/restful/specs/commerce_identity_v1_oas3.ts @@ -11,7 +11,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the account profile information for an authenticated user, which requires a User access token. What is returned is controlled by the scopes. For a business account you use the default scope commerce.identity.readonly, which returns all the fields in the businessAccount container. These are returned because this is all public information. For an individual account, the fields returned in the individualAccount container are based on the scope you use. Using the default scope, only public information, such as eBay user ID, are returned. For details about what each scope returns, see the Identity API Overview. */ + /** @description This method retrieves the account profile information for an authenticated user, which requires a User access token. What is returned is controlled by the scopes.

For a business account you use the default scope commerce.identity.readonly, which returns all the fields in the businessAccount container. These are returned because this is all public information.

For an individual account, the fields returned in the individualAccount container are based on the scope you use. Using the default scope, only public information, such as eBay user ID, are returned. For details about what each scope returns, see the Identity API Overview.

In the Sandbox, this API returns mock data. Note: You must use the correct scope or scopes for the data you want returned.

*/ get: operations["getUser"]; put?: never; post?: never; @@ -33,7 +33,7 @@ export interface components { addressLine2?: string; /** @description The city of the address. */ city?: string; - /** @description The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation */ + /** @description The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation */ country?: string; /** @description The county of the address. */ county?: string; @@ -46,7 +46,7 @@ export interface components { BusinessAccount: { /** @description The container that returns the address of the business account. */ address?: components["schemas"]["Address"]; - /** @description An additional name that is used for their business on eBay. The business name is returned in the name field. */ + /** @description An additional name that is used for their business on eBay. The business name is returned in the name field. */ doingBusinessAs?: string; /** @description The email address of the business account. */ email?: string; @@ -115,28 +115,28 @@ export interface components { }; /** @description The type that defines the fields for the details of a phone. */ Phone: { - /** @description The two-letter ISO 3166 standard of the country to which the phone number belongs. */ + /** @description The two-letter ISO 3166 standard of the country to which the phone number belongs. */ countryCode?: string; /** @description The numeric string representing the phone number. */ number?: string; - /** @description The type of phone service. Valid Values: MOBILE or LAND_LINE Code so that your app gracefully handles any future changes to this list. */ + /** @description The type of phone service.

Valid Values: MOBILE or LAND_LINE

Code so that your app gracefully handles any future changes to this list. */ phoneType?: string; }; - /** @description The type that defines the fields for the getUser method. */ + /** @description The type that defines the fields for the getUser method. */ UserResponse: { - /** @description Indicates the user account type. This is determined when the user registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in the following countries: EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL Valid Values: BUSINESS or INDIVIDUAL Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ + /** @description Indicates the user account type. This is determined when the user registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in the following countries:

EBAY_AT, EBAY_BE, EBAY_CH, EBAY_DE, EBAY_ES, EBAY_FR, EBAY_GB, EBAY_IE, EBAY_IT, EBAY_PL

Valid Values: BUSINESS or INDIVIDUAL

Code so that your app gracefully handles any future changes to this list. For implementation help, refer to eBay API documentation */ accountType?: string; /** @description The container that returns the business account information of the user. */ businessAccount?: components["schemas"]["BusinessAccount"]; /** @description The account information of the user. */ individualAccount?: components["schemas"]["IndividualAccount"]; - /** @description The eBay site on which the account is registered. For implementation help, refer to eBay API documentation */ + /** @description The eBay site on which the account is registered. For implementation help, refer to eBay API documentation */ registrationMarketplaceId?: string; - /** @description Indicates the user's account status. Possible values: CONFIRMED, UNCONFIRMED, ACCOUNTONHOLD and UNDETERMINED. For implementation help, refer to eBay API documentation */ + /** @description Indicates the user's account status. Possible values: CONFIRMED, UNCONFIRMED, ACCOUNTONHOLD and UNDETERMINED. For implementation help, refer to eBay API documentation */ status?: string; /** @description The eBay immutable user ID of the user's account and can always be used to identify the user. */ userId?: string; - /** @description The user name, which was specific by the user when they created the account. Note: This value can be changed by the user. */ + /** @description The user name, which was specific by the user when they created the account.

Note: This value can be changed by the user. */ username?: string; }; }; diff --git a/src/types/restful/specs/commerce_media_v1_beta_oas3.ts b/src/types/restful/specs/commerce_media_v1_beta_oas3.ts index d9f5413a..2c543750 100644 --- a/src/types/restful/specs/commerce_media_v1_beta_oas3.ts +++ b/src/types/restful/specs/commerce_media_v1_beta_oas3.ts @@ -4,6 +4,57 @@ */ export interface paths { + "/image/create_image_from_file": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description This method uploads a picture file to eBay Picture Services (EPS) using multipart/form-data.

All images must comply with eBay's picture requirements, such as dimension and file size restrictions. For more information, see Picture policy. The image formats supported are JPG, GIF, PNG, BMP, TIFF, AVIF, HEIC, and WEBP. For more information, see Image requirements.

Note: Animated GIF, and multi-page PNG/TIFF files, are not supported. Any animation effect of supported formats will be lost upon upload.

This call does not have a JSON Request payload but uploads the file as form-data. For example:

 image: "sample_picture.jpg" 
See Samples for information.

Note: You must use a Content-Type header with its value set to 'multipart/form-data'.

When an EPS image is successfully created, the method returns the HTTP Status Code 201 Created. The method also returns the getImage URI in the Location response header.

Important! Make sure to capture the image ID URI returned in the response location header provided in the following format:

https://apim.ebay.com/commerce/media/v1_beta/image/{image_id}

You can capture the entire URI, or just save the {image_id} only. Pass the {image_id} as a path parameter in the getImage method to return the value needed to associate an image to a listing using the Trading and Inventory APIs.

See Managing images for additional details.


Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

*/ + post: operations["createImageFromFile"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/image/create_image_from_url": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description This method uploads a picture to eBay Picture Services (EPS) from the specified URL. Specify the location of the picture on an external web server through the imageUrl field.

All images must comply with eBay’s picture requirements, such as dimension and file size restrictions. For more information, see Picture policy. The image formats supported are JPG, GIF, PNG, BMP, TIFF, AVIF, HEIC, and WEBP. In addition, the provided URL must be secured using HTTPS (HTTP is not permitted). For more information, see Image requirements.

Note: Animated GIF, and multi-page PNG/TIFF files, are not supported. Any animation effect of supported formats will be lost upon upload.

When an EPS image is successfully created, the method returns the HTTP Status Code 201 Created. The method also returns the getImage URI in the Location response header.

Important! Make sure to capture the image ID URI returned in the response location header provided in the following format:

https://apim.ebay.com/commerce/media/v1_beta/image/{image_id}

You can capture the entire URI, or just save the {image_id} only. Pass the {image_id} as a path parameter in the getImage method to return the value needed to associate an image to a listing using the Trading and Inventory APIs.

See Managing images for additional details.


Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

*/ + post: operations["createImageFromUrl"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/image/{image_id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves an EPS image URL and its expiration details for the unique identifier specified in the path parameter image_id. Use the retrieved EPS image URL to add the image to a listing through the Inventory API or the Trading API. See Managing images for additional details.

Note: If a user inputs a valid image_id as a path parameter but the EPS image associated with that ID has expired, the call will fail and a 404 Not Found status code will be returned. */ + get: operations["getImage"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/video": { parameters: { query?: never; @@ -13,7 +64,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method creates a video. When using this method, specify the title, size, and classification of the video to be created. Description is an optional field for this method.

Tip: See Adding a video to your listing in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.

When a video is successfully created, the method returns the HTTP Status Code 201 Created.The method also returns the location response header containing the video ID, which you can use to retrieve the video.

Note: There is no ability to edit metadata on videos at this time. There is also no method to delete videos.

To upload a created video, use the uploadVideo method. */ + /** @description This method creates a video resource. When using this method, specify the title, size, and classification of the video resource to be created. Description is an optional field for this method.

Tip: See Adding a video to your listing in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.

When a video resource is successfully created, the method returns the HTTP Status Code 201 Created.The method also returns the location response header containing the video ID, which you can use to retrieve the video.

Note: There is no ability to edit metadata on videos at this time. There is also no method to delete videos.
To upload a created video to a created video resource, use the uploadVideo method.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

*/ post: operations["createVideo"]; delete?: never; options?: never; @@ -28,7 +79,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves a video's metadata and content given a specified video ID. The method returns the title, size, classification, description, video ID, playList, status, status message (if any), expiration date, and thumbnail image of the retrieved video.

The video’s title, size, classification, and description are set using the createVideo method.

The video's playList contains two URLs that link to instances of the streaming video based on the supported protocol.

The status field contains the current status of the video. After a video upload is successfully completed, the video's status will show as PROCESSING until the video reaches one of the terminal states of LIVE, BLOCKED or PROCESSING_FAILED.

If a video's processing fails, it could be because the file is corrupted, is too large, or its size doesn’t match what was provided in the metadata. Refer to the error messages to determine the cause of the video’s failure to upload.

The status message will indicate why a video was blocked from uploading.

The video’s expiration date is automatically set to 365 days (one year) after the video’s initial creation.

The video's thumbnail image is automatically generated when the video is created. */ + /** @description This method retrieves a video's metadata and content given a specified video ID. The method returns the title, size, classification, description, video ID, playList, status, status message (if any), expiration date, and thumbnail image of the retrieved video.

The video's title, size, classification, and description are set using the createVideo method.

The video's playList contains two URLs that link to instances of the streaming video based on the supported protocol.

The status field contains the current status of the video. After a video upload is successfully completed, the video's status will show as PROCESSING until the video reaches one of the terminal states of LIVE, BLOCKED or PROCESSING_FAILED.

If a video's processing fails, it could be because the file is corrupted, is too large, or its size doesn't match what was provided in the metadata. Refer to the error messages to determine the cause of the video's failure to upload.

The status message will indicate why a video was blocked from uploading.

If a video is not being used on an active listing, its expiration date is automatically set to 30 days after the video's initial upload.

The video's thumbnail image is automatically generated when the video is created. */ get: operations["getVideo"]; put?: never; post?: never; @@ -47,7 +98,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method associates the specified file with the specified video ID and uploads the input file. After the file has been uploaded the processing of the file begins.

Note: The size of the video to be uploaded must exactly match the size of the video's input stream that was set in the createVideo method. If the sizes do not match, the video will not upload successfully.

When a video is successfully uploaded, it returns the HTTP Status Code 200 OK.

The status flow is PENDING_UPLOAD > PROCESSING > LIVE, PROCESSING_FAILED, or BLOCKED. After a video upload is successfully completed, the status will show as PROCESSING until the video reaches one of the terminal states of LIVE, BLOCKED, or PROCESSING_FAILED. If the size information (in bytes) provided is incorrect, the API will throw an error.

Tip: See Adding a video to your listing in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.

To retrieve an uploaded video, use the getVideo method. */ + /** @description This method associates the specified file with the specified video ID and uploads the input file. After the file has been uploaded the processing of the file begins.

Note: The size of the video to be uploaded must exactly match the size of the video's input stream that was set in the createVideo method. If the sizes do not match, the video will not upload successfully.

When a video is successfully uploaded, it returns the HTTP Status Code 200 OK.

The status flow is PENDING_UPLOAD > PROCESSING > LIVE, PROCESSING_FAILED, or BLOCKED. After a video upload is successfully completed, the status will show as PROCESSING until the video reaches one of the terminal states of LIVE, BLOCKED, or PROCESSING_FAILED. If the size information (in bytes) provided is incorrect, the API will throw an error.

Tip: See Adding a video to your listing in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.

To retrieve an uploaded video, use the getVideo method.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

*/ post: operations["uploadVideo"]; delete?: never; options?: never; @@ -55,10 +106,145 @@ export interface paths { patch?: never; trace?: never; }; + "/document": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description This method stages a document to be uploaded, and requires the type of document to be uploaded, and the language(s) that the document contains. A successful call returns a documentId value that is then used as a path parameter in an uploadDocument call.

When a document is successfully created, the method returns the HTTP Status Code 201 Created. The method returns documentId in the response payload, which you can use to retrieve the document resource. This ID is also returned in the location header, for convenience.

Important! Make sure to capture the document ID value returned in the response payload. This value is required to use the other methods in the document resource, and also needed to associate a document to a listing using the Trading and Inventory APIs.


To upload a created document, use the document ID returned from this method's response with the uploadDocument method. See Managing documents for information on creating, uploading, and adding documents to listings.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

*/ + post: operations["createDocument"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/document/create_document_from_url": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description This method downloads a document from the provided URL and adds that document to the user's account. This method requires the URL of the document, the type of document to be uploaded, and the language(s) that the document contains.

When a document is successfully created, the method returns the HTTP Status Code 201 Created. The method returns documentId in the response payload, which you can use to retrieve the document resource. This ID is also returned in the location header, for convenience.

Important! Make sure to capture the document ID value returned in the response payload. This value is required to use the other methods in the document resource, and also needed to associate a document to a listing using the Trading and Inventory APIs.


After creating a document using this method, a getDocument call should be made to check for a documentStatus of ACCEPTED. Only documents with this status can be added to a listing. See Managing documents for more information on creating, uploading, and adding documents to listings.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

*/ + post: operations["createDocumentFromUrl"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/document/{document_id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves the current status and metadata of the specified document.

Important! The document ID value returned in the response payload of the createDocument method is a required input path parameter for this method.

See Managing documents for additional information.

*/ + get: operations["getDocument"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/document/{document_id}/upload": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description This method associates the specified file with the specified document ID and uploads the input file. After the file has been uploaded, the processing of the file begins. Supported file types include .PDF, .JPEG/.JPG, and .PNG, with a maximum file size of 10 MB (10485760 bytes).

Note: Animated and multi-page PNG files are not currently supported.
Note: The document ID value returned in the response of the createDocument method is a required input path parameter for this method. This value is also returned in the location header of the createDocument response payload.
A successful upload returns the HTTP Status Code 200 OK.

See Managing documents for additional information.

Note: You must use a Content-Type header with its value set to multipart/form-data.

This call does not have a JSON Request payload but uploads the file as form-data. For example:
file: @"/C:/Users/.../drone_user_warranty.pdf"
See Samples for information.

Important!All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.

*/ + post: operations["uploadDocument"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/post_order/document/{document_id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method downloads the file associated with the specified document ID. Access depends on the document’s state:
  • SUBMITTED: Only the document owner can download it
  • PUBLISHED: The document is no longer restricted to the owner and can be downloaded by authorized parties involved in the specific post‑order flow based on the documentUsageType

Note: After a document is uploaded (but not yet published), its status is SUBMITTED. Once its identifier is linked to a post‑order entity through an eBay GraphQL mutation, the status changes to PUBLISHED. A post-order entity is part of eBay's order management for activities after purchase (such as returns).

Important! The document must be in the SUBMITTED or PUBLISHED state to be downloadable. All documents (published or submitted) expire and become inaccessible after their expiration date.

*/ + get: operations["downloadPostOrderDocument"]; + put?: never; + post?: never; + /** @description This method deletes a previously uploaded document by its document ID. Only documents in SUBMITTED state can be removed; documents in the PUBLISHED state cannot be deleted.

Note: After a document is uploaded (but not yet published), its status is SUBMITTED. When its identifier is associated with a post‑order entity through an eBay GraphQL mutation, the status changes to PUBLISHED. A post-order entity is part of eBay's order management for activities after purchase (such as returns).

Important! All documents, whether submitted or published, expire and become inaccessible after their expiration date.

*/ + delete: operations["removePostOrderDocument"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/post_order/document": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description This method uploads a document for post‑order processes (for example, a seller providing a return shipping label).

Supported file types include .PDF, .JPEG/.JPG, .BMP, .GIF and .PNG, with a maximum file size of 5 MB (5,242,880 bytes).

Note: Animated and multi-page PNG files are not currently supported. For multi-page content, use PDF. The maximum number of pages allowed varies by the documentUsageType.

Send a multipart/form‑data request with:

  • file: the document file (key: file)
  • documentUsageType: for example, RETURN_SHIPPING_LABEL
  • entityType: for example, RETURNS
  • entityId: the unique identifier for the post-order entity

A successful call returns the HTTP Status Code 201 Created with the document ID in the Location header (no response body is returned). The document’s initial state is SUBMITTED. When its identifier is associated with a post-order entity through an eBay GraphQL mutation, the state changes to PUBLISHED.

Note: A post-order entity is part of eBay's order management for activities after purchase (such as returns).

Important!

  • Capture and retain the documentId in the response’s Location header. It is required to use the other post_order methods and to associate the document with a post-order entity.
  • All documents (published or submitted) expire and become inaccessible after their expiration date.
  • All POST methods in the Media API, including this method, are subject to short-duration, user-level rate limits: 50 requests per 5 seconds.

*/ + post: operations["uploadPostOrderDocument"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; } export type webhooks = Record; export interface components { schemas: { + /** @description This type contains the metadata used to create the document ID when creating a document using a URL. */ + CreateDocumentFromUrlRequest: { + /** @description The type of the document being created. For example, a USER_GUIDE_OR_MANUAL or a SAFETY_DATA_SHEET. For implementation help, refer to eBay API documentation */ + documentType?: string; + /** @description The URL of the document being created.

The document referenced by the URL must be a .pdf, .png, .jpg, or .jpeg file, and must be no larger than 10 MB. */ + documentUrl?: string; + /** @description This array shows the language(s) used in the document. */ + languages?: string[]; + }; + /** @description This type contains the metadata used to create the document ID. */ + CreateDocumentRequest: { + /** @description The type of the document being uploaded. For example, a USER_GUIDE_OR_MANUAL or a SAFETY_DATA_SHEET. For implementation help, refer to eBay API documentation */ + documentType?: string; + /** @description This array shows the language(s) used in the document. */ + languages?: string[]; + }; + /** @description This type provides information about the created document ID. */ + CreateDocumentResponse: { + /** @description The unique identifier of the document to be uploaded.

This value is returned in the response and location header of the createDocument and createDocumentFromUrl methods. This ID can be used with the getDocument and uploadDocument methods, and to add an uploaded document to a listing. See Adding documents to listings for more information. */ + documentId?: string; + /** @description The status of the document resource.

For example, the value PENDING_UPLOAD is the initial state when the reference to the document has been created using the createDocument method. When creating a document using the createDocumentFromUrl method, the initial state will be SUBMITTED. For implementation help, refer to eBay API documentation */ + documentStatus?: string; + /** @description The type of the document uploaded. For example, USER_GUIDE_OR_MANUAL. For implementation help, refer to eBay API documentation */ + documentType?: string; + /** @description This array shows the language(s) used in the document. */ + languages?: string[]; + }; + /** @description A type that provides the location of the image. */ + CreateImageFromUrlRequest: { + /** @description The image URL of the self-hosted picture to upload to eBay Picture Services (EPS). In addition to the picture requirements in Picture policy, the provided URL must be secured using HTTPS (HTTP is not permitted). For more information, see Image requirements. */ + imageUrl?: string; + }; /** @description The request to create a video, which must contain the video's title, size, and classification. Description is an optional field when creating videos. */ CreateVideoRequest: { /** @description The intended use for this video content. Currently, videos can only be added and associated with eBay listings, so the only supported value is ITEM. */ @@ -73,6 +259,28 @@ export interface components { /** @description The title of the video. */ title?: string; }; + /** @description This type provides information about the documentId. */ + DocumentMetadata: { + /** @description The name of the file including its extension (for example, drone_user_warranty.pdf). */ + fileName?: string; + /** @description The size, in bytes, of the document content. */ + fileSize?: string; + /** @description The type of the file uploaded. Supported file types include the following: pdf, jpeg, jpg, and png. */ + fileType?: string; + }; + /** @description This type provides information returned about a created document ID, which may or may not have been uploaded. */ + DocumentResponse: { + /** @description The unique ID of the document. */ + documentId?: string; + /** @description This container provides the name, size, and type of the specified file. */ + documentMetadata?: components["schemas"]["DocumentMetadata"]; + /** @description The status of the document resource.

Once a document has been uploaded using the uploadDocument method, the documentStatus will be SUBMITTED. The document will then either be accepted or rejected. Only documents with the status of ACCEPTED are available to be added to a listing. For implementation help, refer to eBay API documentation */ + documentStatus?: string; + /** @description The type of the document uploaded. For example, USER_GUIDE_OR_MANUAL. For implementation help, refer to eBay API documentation */ + documentType?: string; + /** @description This array shows the language(s) used in the document. */ + languages?: string[]; + }; /** @description This type defines the fields that can be returned in an error. */ Error: { /** @description Identifies the type of erro. */ @@ -103,13 +311,20 @@ export interface components { /** @description The value of the object. */ value?: string; }; - /** @description The automatically generated thumbnail image of the video. */ + /** @description A type that provides the location of the image. */ Image: { - /** @description The URL to access this image. */ + /** @description The URL of the image's location. */ imageUrl?: string; }; - /** @description The streaming input of the video source. The input source must be an .mp4 file of the type MPEG-4 Part 10 or Advanced Video Coding (MPEG-4 AVC). */ - InputStream: Record; + /** @description A type that provides an image's details including its URL and expiration. */ + ImageResponse: { + /** @description The date and time when an unused EPS image will expire and be removed from the EPS server, in Coordinated Universal Time (UTC). As long as an EPS image is being used in an active listing, that image will remain on the EPS server and be accessible. */ + expirationDate?: string; + /** @description The EPS URL to access the uploaded image. This URL will be used in listing calls to add the image to a listing. */ + imageUrl?: string; + /** @description The EPS URL to access the maximum dimension version of the uploaded image. */ + maxDimensionImageUrl?: string; + }; /** @description A container that provides video moderation information when calling the getVideo method.

This container is returned if the specified video has been blocked by moderators.

Tip: See Video moderation and restrictions in the eBay Seller Center for details about video moderation. */ Moderation: { /** @description The reason(s) why the specified video was blocked by moderators. */ @@ -128,7 +343,7 @@ export interface components { classification?: string[]; /** @description The description of the video. The video description is an optional field that can be set using the createVideo method. */ description?: string; - /** @description The expiration date of the video in Coordinated Universal Time (UTC). The video’s expiration date is automatically set to 365 days (one year) after the video’s initial upload. */ + /** @description The date and time when an unused video will expire and be removed from the eBay Video Services server, in Coordinated Universal Time (UTC).

As long as a video is being used in an active listing, that video will remain on the server and be accessible. If a video is not being used on an active listing, its expiration date is automatically set to 30 days after the video's initial upload. */ expirationDate?: string; /** @description The video moderation information that is returned if a video is blocked by moderators.

Tip: See Video moderation and restrictions in the eBay Seller Center for details about video moderation.

If the video status is BLOCKED, ensure that the video complies with eBay's video formatting and content guidelines. Afterwards, begin the video creation and upload procedure anew using the createVideo and uploadVideo methods. */ moderation?: components["schemas"]["Moderation"]; @@ -159,7 +374,52 @@ export interface components { } export type $defs = Record; export interface operations { - createVideo: { + createImageFromFile: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to multipart/form-data.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Created */ + 201: { + headers: { + Location?: string; + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ImageResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + createImageFromUrl: { parameters: { query?: never; header: { @@ -169,9 +429,9 @@ export interface operations { path?: never; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["CreateVideoRequest"]; + "application/json": components["schemas"]["CreateImageFromUrlRequest"]; }; }; responses: { @@ -181,7 +441,9 @@ export interface operations { Location?: string; [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["ImageResponse"]; + }; }; /** @description Bad Request */ 400: { @@ -206,13 +468,13 @@ export interface operations { }; }; }; - getVideo: { + getImage: { parameters: { query?: never; header?: never; path: { - /** @description The unique identifier of the video to be retrieved. */ - video_id: string; + /** @description This path parameter is the unique identifier of a created image. Use the value returned in the location header of the method used to create the image (createImageFromFile or createImageFromUrl, as applicable). */ + image_id: string; }; cookie?: never; }; @@ -224,7 +486,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Video"]; + "application/json": components["schemas"]["ImageResponse"]; }; }; /** @description Bad Request */ @@ -257,33 +519,26 @@ export interface operations { }; }; }; - uploadVideo: { + createVideo: { parameters: { query?: never; header: { - /** @description Use this header to specify the content length for the upload. Use Content-Range: bytes {1}-{2}/{3} and Content-Length:{4} headers.

Note: This header is optional and is only required for resumable uploads (when an upload is interrupted and must be resumed from a certain point). */ - "Content-Length"?: string; - /** @description Use this header to specify the content range for the upload. The Content-Range should be of the following bytes ((?:[0-9]+-[0-9]+)|\\\\*)/([0-9]+|\\\\*) pattern.

Note: This header is optional and is only required for resumable uploads (when an upload is interrupted and must be resumed from a certain point). */ - "Content-Range"?: string; - /** @description Use this header to specify the content type for the upload. The Content-Type should be set to application/octet-stream. */ + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ "Content-Type": string; }; - path: { - /** @description The unique identifier of the video to be uploaded. */ - video_id: string; - }; + path?: never; cookie?: never; }; - /** @description The request payload for this method is the input stream for the video source. The input source must be an .mp4 file of the type MPEG-4 Part 10 or Advanced Video Coding (MPEG-4 AVC). */ requestBody?: { content: { - "application/json": components["schemas"]["InputStream"]; + "application/json": components["schemas"]["CreateVideoRequest"]; }; }; responses: { - /** @description OK */ - 200: { + /** @description Created */ + 201: { headers: { + Location?: string; [name: string]: unknown; }; content?: never; @@ -295,29 +550,463 @@ export interface operations { }; content?: never; }; - /** @description Not Found */ - 404: { + /** @description Forbidden */ + 403: { headers: { [name: string]: unknown; }; content?: never; }; - /** @description Conflict */ - 409: { + /** @description Internal Server Error */ + 500: { headers: { [name: string]: unknown; }; content?: never; }; - /** @description Content Length Required */ - 411: { + }; + }; + getVideo: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The unique identifier of the video to be retrieved. */ + video_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Video"]; + }; + }; + /** @description Bad Request */ + 400: { headers: { [name: string]: unknown; }; content?: never; }; - /** @description Range Not Satisfiable */ - 416: { + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + uploadVideo: { + parameters: { + query?: never; + header: { + /** @description Use this header to specify the content length for the upload. Use Content-Range: bytes {1}-{2}/{3} and Content-Length:{4} headers.

Note: This header is optional and is only required for resumable uploads (when an upload is interrupted and must be resumed from a certain point). */ + "Content-Length"?: string; + /** @description Use this header to specify the content range for the upload. The Content-Range should be of the following bytes ((?:[0-9]+-[0-9]+)|\\\\*)/([0-9]+|\\\\*) pattern.

Note: This header is optional and is only required for resumable uploads (when an upload is interrupted and must be resumed from a certain point). */ + "Content-Range"?: string; + /** @description Use this header to specify the content type for the upload. The Content-Type should be set to application/octet-stream. */ + "Content-Type": string; + }; + path: { + /** @description The unique identifier of the video to be uploaded. */ + video_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Content Length Required */ + 411: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Range Not Satisfiable */ + 416: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + createDocument: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["CreateDocumentRequest"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + Location?: string; + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CreateDocumentResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + createDocumentFromUrl: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["CreateDocumentFromUrlRequest"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + Location?: string; + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CreateDocumentResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getDocument: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The unique identifier of the document for which status and metadata is being retrieved.

This value is returned in the response of the createDocument method. */ + document_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Uploaded */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["DocumentResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Document Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + uploadDocument: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to multipart/form-data.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path: { + /** @description The unique identifier of the document to be uploaded.

This value is returned in the response of the createDocument method. */ + document_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Uploaded */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["DocumentResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Document Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + downloadPostOrderDocument: { + parameters: { + query?: never; + header?: never; + path: { + /** @description This path parameter is the unique identifier of the document associated with the file to be downloaded. This ID was returned in the Location response header when calling the uploadPostOrderDocument method to upload the document. */ + document_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/pdf": string[]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + removePostOrderDocument: { + parameters: { + query?: never; + header?: never; + path: { + /** @description This path parameter is the unique identifier of the document associated with the file to be deleted. This ID was returned in the Location response header when calling the uploadPostOrderDocument method to upload the document. */ + document_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + uploadPostOrderDocument: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to multipart/form-data.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Created */ + 201: { + headers: { + Location?: string; + [name: string]: unknown; + }; + content: { + "application/json": Record; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { headers: { [name: string]: unknown; }; diff --git a/src/types/restful/specs/commerce_notification_v1_oas3.ts b/src/types/restful/specs/commerce_notification_v1_oas3.ts index 245ebe2d..a84ee891 100644 --- a/src/types/restful/specs/commerce_notification_v1_oas3.ts +++ b/src/types/restful/specs/commerce_notification_v1_oas3.ts @@ -4,16 +4,17 @@ */ export interface paths { - "/public_key/{public_key_id}": { + "/config": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method allows users to retrieve a public key using a specified key ID. The public key that is returned in the response payload is used to process and validate eBay notifications.

The public key ID, which is a required request parameter for this method, is retrieved from the Base64-encoded X-EBAY-SIGNATURE header that is included in the eBay notification.

Note: For more details about how to process eBay push notifications and validate notification message payloads, see the Notification API overview. */ - get: operations["getPublicKey"]; - put?: never; + /** @description This method allows applications to retrieve a previously created configuration. */ + get: operations["getConfig"]; + /** @description This method allows applications to create a new configuration or update an existing configuration. This app-level configuration allows developers to set up alerts. */ + put: operations["updateConfig"]; post?: never; delete?: never; options?: never; @@ -21,32 +22,52 @@ export interface paths { patch?: never; trace?: never; }; - "/topic/{topic_id}": { + "/destination": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method allows applications to retrieve details for the specified topic. This information includes supported schema versions, formats, and other metadata for the topic.

Applications can subscribe to any of the topics for a supported schema version and format, limited by the authorization scopes required to subscribe to the topic.

A topic specifies the type of information to be received and the data types associated with an event. An event occurs in the eBay system, such as when a user requests deletion or revokes access for an application. An event is an instance of an event type (topic).

Specify the topic to retrieve using the topic_id URI parameter.

Note: Use the getTopics method to find a topic if you do not know the topic ID. */ - get: operations["getTopic"]; + /** @description This method allows applications to retrieve a paginated collection of destination resources and related details. The details include the destination names, statuses, and configurations, including the endpoints and verification tokens. */ + get: operations["getDestinations"]; put?: never; - post?: never; + /** @description This method allows applications to create a destination. A destination is an endpoint that receives HTTP push notifications.

A single destination for all topics is valid, as is individual destinations for each topic.

To update a destination, use the updateDestination call.

The destination created will need to be referenced while creating or updating a subscription to a topic.

Note: The destination should be created and ready to respond with the expected challengeResponse for the endpoint to be registered successfully. Refer to the Notification API overview for more information. */ + post: operations["createDestination"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/topic": { + "/destination/{destination_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method returns a paginated collection of all supported topics, along with the details for the topics. This information includes supported schema versions, formats, and other metadata for the topics.

Applications can subscribe to any of the topics for a supported schema version and format, limited by the authorization scopes required to subscribe to the topic.

A topic specifies the type of information to be received and the data types associated with an event. An event occurs in the eBay system, such as when a user requests deletion or revokes access for an application. An event is an instance of an event type (topic). */ - get: operations["getTopics"]; + /** @description This method allows applications to fetch the details for a destination. The details include the destination name, status, and configuration, including the endpoint and verification token. */ + get: operations["getDestination"]; + /** @description This method allows applications to update a destination.

Note: The destination should be created and ready to respond with the expected challengeResponse for the endpoint to be registered successfully. Refer to the Notification API overview for more information. */ + put: operations["updateDestination"]; + post?: never; + /** @description This method provides applications a way to delete a destination.

The same destination ID can be used by many destinations.

Trying to delete an active destination results in an error. You can disable a subscription, and when the destination is no longer in use, you can delete it. */ + delete: operations["deleteDestination"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/public_key/{public_key_id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method allows users to retrieve a public key using a specified key ID. The public key that is returned in the response payload is used to process and validate eBay notifications.

The public key ID, which is a required request parameter for this method, is retrieved from the Base64-encoded X-EBAY-SIGNATURE header that is included in the eBay notification.

Important! The retrieved public key value should be cached for a temporary — but reasonable — amount of time (e.g., one-hour is recommended.) This key should not be requested for every notification since doing so can result in exceeding API call limits if a large number of notification requests is received.


Note: For more details about how to process eBay push notifications and validate notification message payloads, see the Notification API overview. */ + get: operations["getPublicKey"]; put?: never; post?: never; delete?: never; @@ -62,10 +83,10 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method allows applications to retrieve a list of all subscriptions. The list returned is a paginated collection of subscription resources.

Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business. */ + /** @description This method allows applications to retrieve a list of all subscriptions. The list returned is a paginated collection of subscription resources.

Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business. */ get: operations["getSubscriptions"]; put?: never; - /** @description This method allows applications to create a subscription for a topic and supported schema version. Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.

Each application and topic-schema pairing to a subscription should have a 1:1 cardinality.

You can create the subscription in disabled mode, test it (see the test method), and when everything is ready, you can enable the subscription (see the enableSubscription method).

Note: If an application is not authorized to subscribe to a topic, for example, if your authorization does not include the list of scopes required for the topic, an error code of 195011 is returned. */ + /** @description This method allows applications to create a subscription for a topic and supported schema version. Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.

Each application and topic-schema pairing to a subscription should have a 1:1 cardinality.

You can create the subscription in disabled mode, test it (see the test method), and when everything is ready, you can enable the subscription (see the enableSubscription method).

Note: If an application is not authorized to subscribe to a topic, for example, if your authorization does not include the list of scopes required for the topic, an error code of 195011 is returned. */ post: operations["createSubscription"]; delete?: never; options?: never; @@ -73,6 +94,23 @@ export interface paths { patch?: never; trace?: never; }; + "/subscription/{subscription_id}/filter": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description This method allows applications to create a filter for a subscription. Filters allow applications to only be sent notifications that match a provided criteria. Notifications that do not match this criteria will not be sent to the destination.

The filterSchema value must be a valid JSON Schema Core document (version 2020-12 or later). The filterSchema provided must describe the subscription's notification payload such that it supplies valid criteria to filter the subscription's notifications. The user does not need to provide $schema and $id definitions.

When a filter is first created, it is not immediately active on the subscription. If the request has a valid JSON body, the successful call returns the HTTP status code 201 Created. Newly created filters are in PENDING status until they are reviewed. If a filter is valid, it will move from PENDING status to ENABLED status. You can find the status of a filter using the getSubscriptionFilter method. See Creating a subscription filter for a topic for additional information.

Note: Only one filter can be in ENABLED (which means active) status on a subscription at a time. If an ENABLED filter is overwritten by a new call to CREATE a filter for the subscription, it stays in ENABLED status until the new PENDING filter becomes the ENABLED filter, and the existing filter then becomes DISABLED. */ + post: operations["createSubscriptionFilter"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/subscription/{subscription_id}": { parameters: { query?: never; @@ -80,9 +118,9 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method allows applications to retrieve subscription details for the specified subscription.

Specify the subscription to retrieve using the subscription_id. Use the getSubscriptions method to browse all subscriptions if you do not know the subscription_id.

Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business. */ + /** @description This method allows applications to retrieve subscription details for the specified subscription.

Specify the subscription to retrieve using the subscription_id. Use the getSubscriptions method to browse all subscriptions if you do not know the subscription_id.

Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business. */ get: operations["getSubscription"]; - /** @description This method allows applications to update a subscription. Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.

Note: This call returns an error if an application is not authorized to subscribe to a topic.

You can pause and restart a subscription. See the disableSubscription and enableSubscription methods. */ + /** @description This method allows applications to update a subscription. Subscriptions allow applications to express interest in notifications and keep receiving the information relevant to their business.

Note: This call returns an error if an application is not authorized to subscribe to a topic.

You can pause and restart a subscription. See the disableSubscription and enableSubscription methods. */ put: operations["updateSubscription"]; post?: never; /** @description This method allows applications to delete a subscription. Subscriptions can be deleted regardless of status. */ @@ -92,18 +130,19 @@ export interface paths { patch?: never; trace?: never; }; - "/subscription/{subscription_id}/enable": { + "/subscription/{subscription_id}/filter/{filter_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + /** @description This method allows applications to retrieve the filter details for the specified subscription filter.

Specify the subscription filter to retrieve by using the subscription_id and the filter_id associated with the subscription filter. The filter_id can be found in the response body for the getSubscription method, if there is a filter applied on the subscription.

Filters allow applications to only be sent notifications that match a provided criteria. Notifications that do not match this criteria will not be sent to the destination. */ + get: operations["getSubscriptionFilter"]; put?: never; - /** @description This method allows applications to enable a disabled subscription. To pause (or disable) an enabled subscription, call disableSubscription. */ - post: operations["enableSubscription"]; - delete?: never; + post?: never; + /** @description This method allows applications to disable the active filter on a subscription, so that a new subscription filter may be added.

Note: Subscription filters in PENDING status can not be disabled. However, a new filter can be created instead with the createSubscriptionFilter method and this new filter will override the PENDING filter. */ + delete: operations["deleteSubscriptionFilter"]; options?: never; head?: never; patch?: never; @@ -126,7 +165,7 @@ export interface paths { patch?: never; trace?: never; }; - "/subscription/{subscription_id}/test": { + "/subscription/{subscription_id}/enable": { parameters: { query?: never; header?: never; @@ -135,62 +174,58 @@ export interface paths { }; get?: never; put?: never; - /** @description This method triggers a mocked test payload that includes a notification ID, publish date, and so on. Use this method to test your subscription end-to-end.

You can create the subscription in disabled mode, test it using this method, and when everything is ready, you can enable the subscription (see the enableSubscription method).

Note: Use the notificationId to tell the difference between a test payload and a real payload. */ - post: operations["test"]; + /** @description This method allows applications to enable a disabled subscription. To pause (or disable) an enabled subscription, call disableSubscription. */ + post: operations["enableSubscription"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/destination": { + "/subscription/{subscription_id}/test": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method allows applications to retrieve a paginated collection of destination resources and related details. The details include the destination names, statuses, and configurations, including the endpoints and verification tokens. */ - get: operations["getDestinations"]; + get?: never; put?: never; - /** @description This method allows applications to create a destination. A destination is an endpoint that receives HTTP push notifications.

A single destination for all topics is valid, as is individual destinations for each topic.

To update a destination, use the updateDestination call.

The destination created will need to be referenced while creating or updating a subscription to a topic.

Note: The destination should be created and ready to respond with the expected challengeResponse for the endpoint to be registered successfully. Refer to the Notification API overview for more information. */ - post: operations["createDestination"]; + /** @description This method triggers a mocked test payload that includes a notification ID, publish date, and so on. Use this method to test your subscription end-to-end.

You can create the subscription in disabled mode, test it using this method, and when everything is ready, you can enable the subscription (see the enableSubscription method).

Note: Use the notificationId to tell the difference between a test payload and a real payload. */ + post: operations["testSubscription"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/destination/{destination_id}": { + "/topic/{topic_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method allows applications to fetch the details for a destination. The details include the destination name, status, and configuration, including the endpoint and verification token. */ - get: operations["getDestination"]; - /** @description This method allows applications to update a destination.

Note: The destination should be created and ready to respond with the expected challengeResponse for the endpoint to be registered successfully. Refer to the Notification API overview for more information. */ - put: operations["updateDestination"]; + /** @description This method allows applications to retrieve details for the specified topic. This information includes supported schema versions, formats, and other metadata for the topic.

Applications can subscribe to any of the topics for a supported schema version and format, limited by the authorization scopes required to subscribe to the topic.

A topic specifies the type of information to be received and the data types associated with an event. An event occurs in the eBay system, such as when a user requests deletion or revokes access for an application. An event is an instance of an event type (topic).

Specify the topic to retrieve using the topic_id URI parameter.

Note: Use the getTopics method to find a topic if you do not know the topic ID. */ + get: operations["getTopic"]; + put?: never; post?: never; - /** @description This method provides applications a way to delete a destination.

The same destination ID can be used by many destinations.

Trying to delete an active destination results in an error. You can disable a subscription, and when the destination is no longer in use, you can delete it. */ - delete: operations["deleteDestination"]; + delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/config": { + "/topic": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method allows applications to retrieve a previously created configuration. */ - get: operations["getConfig"]; - /** @description This method allows applications to create a new configuration or update an existing configuration. This app-level configuration allows developers to set up alerts. */ - put: operations["updateConfig"]; + /** @description This method returns a paginated collection of all supported topics, along with the details for the topics. This information includes supported schema versions, formats, and other metadata for the topics.

Applications can subscribe to any of the topics for a supported schema version and format, limited by the authorization scopes required to subscribe to the topic.

A topic specifies the type of information to be received and the data types associated with an event. An event occurs in the eBay system, such as when a user requests deletion or revokes access for an application. An event is an instance of an event type (topic). */ + get: operations["getTopics"]; + put?: never; post?: never; delete?: never; options?: never; @@ -204,65 +239,71 @@ export interface components { schemas: { /** @description The type that defines the fields for the alertEmail field. */ Config: { - /** @description The alert email address for this application. */ + /** @description This field is used to add or modify an email address that will be used for Notification API alerts associated with the application. getConfig can be used to get the email address currently being used for alerts. */ alertEmail?: string; }; + CreateSubscriptionFilterRequest: { + /** @description The content of a subscription filter as a valid JSON Schema Core document (version 2020-12 or later). The filterSchema provided must describe the subscription's notification payload such that it supplies valid criteria to filter the subscription's notifications.

Note: Not all topics can have filters applied to them. Use getTopic and getTopics requests to determine if a specific topic is filterable. Filterable topics have the boolean filterable returned as true in the response.
Note: If the JSON supplied as a subscription filter specifies a field that does not exist in the notifications for a topic, or if the topic is not filterable, the filter will be rejected and become DISABLED. If it is valid, however, the filter will move from PENDING status to ENABLED status.
Initially, when the createSubscriptionFilter request has been made, if the request has a valid JSON body a 201 Created is returned. After that, the validation of the filterSchema happens. See Creating a subscription filter for a topic for additional information. */ + filterSchema?: { + [key: string]: Record; + }; + }; /** @description This type contains information about a subscription request. */ CreateSubscriptionRequest: { - /** @description The unique identifier for the topic associated with this subscription. */ - topicId?: string; - /** @description The status of this subscription. For implementation help, refer to eBay API documentation */ - status?: string; - /** @description The payload associated with this subscription. */ - payload?: components["schemas"]["SubscriptionPayloadDetail"]; - /** @description The unique identifier for the destination associated with this subscription. */ + /** @description The unique identifier of the destination endpoint that will receive notifications associated with this subscription. Use the getDestinations method to retrieve destination IDs. */ destinationId?: string; + /** @description The payload associated with the notification topic. Use getTopics or getTopic to get the supported payload for the topic. */ + payload?: components["schemas"]["SubscriptionPayloadDetail"]; + /** @description Set the status of the subscription to ENABLED or DISABLED. For implementation help, refer to eBay API documentation */ + status?: string; + /** @description The unique identifier of the notification topic to subscribe to. Use getTopics to get topic IDs. */ + topicId?: string; }; /** @description A type that contains information about the delivery configuration. */ DeliveryConfig: { - /** @description The endpoint for this destination. */ + /** @description The endpoint for this destination.

Note: The provided endpoint URL should use the HTTPS protocol, and it should not contain an internal IP address or localhost in its path. */ endpoint?: string; - /** @description The verification token associated with this endpoint. */ + /** @description The verification token associated with this endpoint.

Note: The provided verification token must be between 32 and 80 characters. Allowed characters include alphanumeric characters, underscores (_), and hyphens (-); no other characters are allowed. */ verificationToken?: string; }; /** @description A type that contains information about the destination. */ Destination: { + /** @description The configuration associated with this destination. */ + deliveryConfig?: components["schemas"]["DeliveryConfig"]; /** @description The unique identifier for the destination. */ destinationId?: string; /** @description The name associated with this destination. */ name?: string; - /** @description The status for this destination.

Note: The MARKED_DOWN value is set by eBay systems and cannot be used in a create or update call by applications.

Valid values:
  • ENABLED
  • DISABLED
  • MARKED_DOWN
For implementation help, refer to eBay API documentation */ + /** @description The status for this destination.

Note: The MARKED_DOWN value is set by eBay systems and cannot be used in a create or update call by applications.

Valid values:
  • ENABLED
  • DISABLED
  • MARKED_DOWN
For implementation help, refer to eBay API documentation */ status?: string; - /** @description The configuration associated with this destination. For implementation help, refer to eBay API documentation */ - deliveryConfig?: string; }; /** @description A type that contains information about the destination request. */ DestinationRequest: { - /** @description The name associated with this destination. */ + /** @description This container is used to specify the destination endpoint and verification token associated with this endpoint. */ + deliveryConfig?: components["schemas"]["DeliveryConfig"]; + /** @description The seller-specified name for the destination endpoint. */ name?: string; - /** @description The status for this destination.

Note: The MARKED_DOWN value is set by eBay systems and cannot be used in a create or update call by applications.

Valid values:
  • ENABLED
  • DISABLED
  • MARKED_DOWN
For implementation help, refer to eBay API documentation */ + /** @description This field sets the status for the destination endpoint as ENABLED or DISABLED.

Note: The MARKED_DOWN value is set by eBay systems and cannot be used in a create or update call by applications. For implementation help, refer to eBay API documentation */ status?: string; - /** @description The configuration associated with this destination. */ - deliveryConfig?: components["schemas"]["DeliveryConfig"]; }; /** @description A type that contains information about the destination search response. */ DestinationSearchResponse: { + /** @description An array that contains the destination details. */ + destinations?: components["schemas"]["Destination"][]; + /** @description The path to the call URI that produced the current page of results. */ + href?: string; /** * Format: int32 - * @description The total number of matches for the search criteria. + * @description The number of records to show in the current response.

Default: 20 */ - total?: number; - /** @description The path to the call URI that produced the current page of results. */ - href?: string; + limit?: number; /** @description The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned. */ next?: string; /** * Format: int32 - * @description The number of records to show in the current response.

Default: 20 + * @description The total number of matches for the search criteria. */ - limit?: number; - /** @description An array that contains the destination details. */ - destinations?: components["schemas"]["Destination"][]; + total?: number; }; /** @description This type defines the fields that can be returned in an error. */ Error: { @@ -296,14 +337,14 @@ export interface components { }; /** @description A type that describes the details about a topic's payload. */ PayloadDetail: { - /** @description The supported schema version. */ - schemaVersion?: string; - /** @description The supported format. Presently, JSON is the only supported format. */ - format?: string[]; /** @description The supported delivery protocols. For implementation help, refer to eBay API documentation */ deliveryProtocol?: string; /** @description A deprecation indicator. */ deprecated?: boolean; + /** @description The supported format. Presently, JSON is the only supported format. */ + format?: string[]; + /** @description The supported schema version. */ + schemaVersion?: string; }; /** @description A type that defines the public key for a unique key ID. */ PublicKey: { @@ -311,96 +352,114 @@ export interface components { algorithm?: string; /** @description The digest associated with the public key that is returned, such as Secure Hash Algorithm 1 (SHA1). */ digest?: string; - /** @description The public key that is returned for the specified key ID.

This value is used to validate the eBay push notification message payload. */ + /** @description The public key that is returned for the specified key ID.

This value is used to validate the eBay push notification message payload. */ key?: string; }; /** @description A type that describes the subscription. */ Subscription: { + /** @description The creation date for this subscription. */ + creationDate?: string; + /** @description The unique identifier for the destination associated with this subscription. */ + destinationId?: string; + /** @description The unique identifier for the filter associated with this subscription. */ + filterId?: string; + /** @description The payload associated with this subscription. */ + payload?: components["schemas"]["SubscriptionPayloadDetail"]; + /** @description The status of this subscription. For implementation help, refer to eBay API documentation */ + status?: string; /** @description The unique identifier for the subscription. */ subscriptionId?: string; /** @description The unique identifier for the topic associated with this subscription. */ topicId?: string; - /** @description The status of this subscription. For implementation help, refer to eBay API documentation */ - status?: string; - /** @description The creation date for this subscription. */ + }; + SubscriptionFilter: { + /** @description The creation date for this subscription filter. */ creationDate?: string; - /** @description The payload associated with this subscription. */ - payload?: components["schemas"]["SubscriptionPayloadDetail"]; - /** @description The unique identifier for the destination associated with this subscription. */ - destinationId?: string; + /** @description The unique identifier for this subscription filter. */ + filterId?: string; + /** @description The content of this subscription filter as a valid JSON Schema Core document (version 2020-12 or later). The filterSchema provided must describe the subscription's notification payload such that it supplies valid criteria to filter the subscription's notifications. */ + filterSchema?: { + [key: string]: Record; + }; + /** @description The status of this subscription filter. For implementation help, refer to eBay API documentation */ + filterStatus?: string; + /** @description The unique identifier for the subscription. */ + subscriptionId?: string; }; /** @description A type that describes the details of the subscription payload. */ SubscriptionPayloadDetail: { - /** @description The supported format. For implementation help, refer to eBay API documentation */ + /** @description The supported delivery protocol of the notification topic.

Note: HTTPS is currently the only supported delivery protocol of all notification topics. For implementation help, refer to eBay API documentation */ + deliveryProtocol?: string; + /** @description The supported data format of the payload.

Note: JSON is currently the only supported format for all notification topics. For implementation help, refer to eBay API documentation */ format?: string; - /** @description The supported schema version. */ + /** @description The supported schema version for the notification topic. See the supportedPayloads.schemaVersion field for the topic in getTopics or getTopic response. */ schemaVersion?: string; - /** @description The supported protocol. For exmaple: HTTPS For implementation help, refer to eBay API documentation */ - deliveryProtocol?: string; }; /** @description A type that describes the details of the subscription search response. */ SubscriptionSearchResponse: { - /** - * Format: int32 - * @description The total number of matches for the search criteria. - */ - total?: number; /** @description The path to the call URI that produced the current page of results. */ href?: string; - /** @description The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned. */ - next?: string; /** * Format: int32 - * @description The value of the limit parameter submitted in the request, which is the maximum number of items to return per page, from the result set. A result set is the complete set of results returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 20 if omitted.

Default: 20 + * @description The value of the limit parameter submitted in the request, which is the maximum number of items to return per page, from the result set. A result set is the complete set of results returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 20 if omitted.

Default: 20 */ limit?: number; + /** @description The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned. */ + next?: string; /** @description The subscriptions that match the search criteria. */ subscriptions?: components["schemas"]["Subscription"][]; + /** + * Format: int32 + * @description The total number of matches for the search criteria. + */ + total?: number; }; /** @description A type that describes the details of the topic. */ Topic: { - /** @description The unique identifier for the topic. */ - topicId?: string; - /** @description The description of the topic. */ - description?: string; /** @description The authorization scopes required to subscribe to this topic. */ authorizationScopes?: string[]; - /** @description The status of this topic. For implementation help, refer to eBay API documentation */ - status?: string; /** @description The business context associated with this topic. For implementation help, refer to eBay API documentation */ context?: string; + /** @description The description of the topic. */ + description?: string; + /** @description The indicator of whether this topic is filterable or not. */ + filterable?: boolean; /** @description The scope of this topic. For implementation help, refer to eBay API documentation */ scope?: string; + /** @description The status of this topic. For implementation help, refer to eBay API documentation */ + status?: string; /** @description The supported payloads for this topic. */ supportedPayloads?: components["schemas"]["PayloadDetail"][]; + /** @description The unique identifier for the topic. */ + topicId?: string; }; /** @description A type that describes the details of the topic search response. */ TopicSearchResponse: { - /** - * Format: int32 - * @description The total number of matches for the search criteria. - */ - total?: number; /** @description The path to the call URI that produced the current page of results. */ href?: string; - /** @description The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned. */ - next?: string; /** * Format: int32 - * @description The value of the limit parameter submitted in the request, which is the maximum number of items to return per page, from the result set. A result set is the complete set of results returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 20 if omitted. + * @description The value of the limit parameter submitted in the request, which is the maximum number of items to return per page, from the result set. A result set is the complete set of results returned by the method.

Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 20 if omitted. */ limit?: number; + /** @description The URL to access the next set of results. This field includes a continuation_token. No prev field is returned, but this value is persistent during the session so that you can use it to return to the next page.

This field is not returned if fewer records than specified by the limit field are returned. */ + next?: string; /** @description An array of topics that match the specified criteria. */ topics?: components["schemas"]["Topic"][]; + /** + * Format: int32 + * @description The total number of matches for the search criteria. + */ + total?: number; }; /** @description A type that describes the details of the update subscription request. */ UpdateSubscriptionRequest: { - /** @description The status of this subscription. For implementation help, refer to eBay API documentation */ - status?: string; + /** @description The unique identifier of the destination endpoint that will receive notifications associated with this subscription. Use getDestinations to retrieve destination IDs. */ + destinationId?: string; /** @description The payload associated with this subscription. */ payload?: components["schemas"]["SubscriptionPayloadDetail"]; - /** @description The unique identifier for the destination associated with this subscription. */ - destinationId?: string; + /** @description Set the status of the subscription being updated to ENABLED or DISABLED. For implementation help, refer to eBay API documentation */ + status?: string; }; }; responses: never; @@ -411,14 +470,90 @@ export interface components { } export type $defs = Record; export interface operations { - getPublicKey: { + getConfig: { parameters: { query?: never; header?: never; - path: { - /** @description The unique key ID that is used to retrieve the public key.

Note: This is retrieved from the X-EBAY-SIGNATURE header that is included with the push notification. */ - public_key_id: string; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Config"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + updateConfig: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + /** @description The configurations for this application. */ + requestBody?: { + content: { + "application/json": components["schemas"]["Config"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getDestinations: { + parameters: { + query?: { + /** @description This string value can be used to return the next page in the result set. The string to use here is returned in the next field of the current page of results. */ + continuation_token?: string; + /** @description The maximum number of destinations to return per page from the result set.

Min: 10

Max: 100

Default: 20 */ + limit?: string; }; + header?: never; + path?: never; cookie?: never; }; requestBody?: never; @@ -429,7 +564,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["PublicKey"]; + "application/json": components["schemas"]["DestinationSearchResponse"]; }; }; /** @description Bad Request */ @@ -439,8 +574,51 @@ export interface operations { }; content?: never; }; - /** @description Not Found */ - 404: { + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + createDestination: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + /** @description The create destination request. */ + requestBody?: { + content: { + "application/json": components["schemas"]["DestinationRequest"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + Location?: string; + [name: string]: unknown; + }; + content: { + "application/json": Record; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Conflict */ + 409: { headers: { [name: string]: unknown; }; @@ -455,13 +633,13 @@ export interface operations { }; }; }; - getTopic: { + getDestination: { parameters: { query?: never; header?: never; path: { - /** @description The ID of the topic for which to retrieve the details. */ - topic_id: string; + /** @description The unique identifier of the destination to retrieve. Use getDestinations to retrieve destination IDs. */ + destination_id: string; }; cookie?: never; }; @@ -473,7 +651,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Topic"]; + "application/json": components["schemas"]["Destination"]; }; }; /** @description Bad Request */ @@ -499,16 +677,120 @@ export interface operations { }; }; }; - getTopics: { + updateDestination: { parameters: { - query?: { - /** @description The maximum number of items to return per page from the result set. A result set is the complete set of results returned by the method. Range is from 10-100.

If this parameter is omitted, the default value is used.

Default: 20

Maximum: 100 items per page */ - limit?: string; - /** @description The token used to access the next set of results. */ - continuation_token?: string; + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path: { + /** @description The unique identifier for the destination. */ + destination_id: string; + }; + cookie?: never; + }; + /** @description The create subscription request. */ + requestBody?: { + content: { + "application/json": components["schemas"]["DestinationRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + deleteDestination: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The unique identifier of the destination to delete. Only disabled or marked down destinations can be deleted, and enabled destinations cannot be deleted. Use getDestination or getDestinations to see the current status of a destination. */ + destination_id: string; }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getPublicKey: { + parameters: { + query?: never; header?: never; - path?: never; + path: { + /** @description The unique key ID that is used to retrieve the public key.

Note: This is retrieved from the X-EBAY-SIGNATURE header that is included with the push notification. */ + public_key_id: string; + }; cookie?: never; }; requestBody?: never; @@ -519,7 +801,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["TopicSearchResponse"]; + "application/json": components["schemas"]["PublicKey"]; }; }; /** @description Bad Request */ @@ -529,6 +811,13 @@ export interface operations { }; content?: never; }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Internal Server Error */ 500: { headers: { @@ -541,10 +830,10 @@ export interface operations { getSubscriptions: { parameters: { query?: { - /** @description The number of items, from the result set, returned in a single page. Range is from 10-100. If this parameter is omitted, the default value is used.

Default: 20

Maximum: 100 items per page */ - limit?: string; - /** @description The continuation token for the next set of results. */ + /** @description This string value can be used to return the next page in the result set. The string to use here is returned in the next field of the current page of results. */ continuation_token?: string; + /** @description The maximum number of subscriptions to return per page from the result set.

Min: 10

Max: 100

Default: 20 */ + limit?: string; }; header?: never; path?: never; @@ -580,7 +869,10 @@ export interface operations { createSubscription: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path?: never; cookie?: never; }; @@ -631,73 +923,35 @@ export interface operations { }; }; }; - getSubscription: { + createSubscriptionFilter: { parameters: { query?: never; - header?: never; - path: { - /** @description The unique identifier for the subscription. */ - subscription_id: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Subscription"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; - }; - }; - updateSubscription: { - parameters: { - query?: never; - header?: never; path: { - /** @description The unique identifier for the subscription. */ + /** @description The unique identifier of the subscription for which a filter will be created. */ subscription_id: string; }; cookie?: never; }; - /** @description The create subscription request. */ + /** @description The create subscription filter request. */ requestBody?: { content: { - "application/json": components["schemas"]["UpdateSubscriptionRequest"]; + "application/json": components["schemas"]["CreateSubscriptionFilterRequest"]; }; }; responses: { - /** @description No Content */ - 204: { + /** @description Created */ + 201: { headers: { + Location?: string; [name: string]: unknown; }; - content?: never; + content: { + "application/json": Record; + }; }; /** @description Bad Request */ 400: { @@ -706,15 +960,15 @@ export interface operations { }; content?: never; }; - /** @description Not Found */ - 404: { + /** @description Forbidden */ + 403: { headers: { [name: string]: unknown; }; content?: never; }; - /** @description Conflict */ - 409: { + /** @description Not Found */ + 404: { headers: { [name: string]: unknown; }; @@ -729,24 +983,26 @@ export interface operations { }; }; }; - deleteSubscription: { + getSubscription: { parameters: { query?: never; header?: never; path: { - /** @description The unique identifier for the subscription. */ + /** @description The unique identifier of the subscription to retrieve. Use getSubscriptions to retrieve subscription IDs. */ subscription_id: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description No Content */ - 204: { + /** @description OK */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Subscription"]; + }; }; /** @description Bad Request */ 400: { @@ -771,17 +1027,25 @@ export interface operations { }; }; }; - enableSubscription: { + updateSubscription: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path: { - /** @description The unique identifier for the subscription. */ + /** @description The unique identifier for the subscription to update. Use getSubscriptions to retrieve subscription IDs. */ subscription_id: string; }; cookie?: never; }; - requestBody?: never; + /** @description The create subscription request. */ + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateSubscriptionRequest"]; + }; + }; responses: { /** @description No Content */ 204: { @@ -820,12 +1084,12 @@ export interface operations { }; }; }; - disableSubscription: { + deleteSubscription: { parameters: { query?: never; header?: never; path: { - /** @description The unique identifier for the subscription. */ + /** @description The unique identifier of the subscription to delete. Use getSubscriptions to retrieve subscription IDs. */ subscription_id: string; }; cookie?: never; @@ -862,24 +1126,28 @@ export interface operations { }; }; }; - test: { + getSubscriptionFilter: { parameters: { query?: never; header?: never; path: { - /** @description The unique identifier for the subscription. */ + /** @description The unique identifier of the subscription filter. Filter ID values, if configured for a subscription, will be shown in the subscriptions.filterId field in getSubscription and getSubscription responses. The filter ID value is also returned in the Location response header when a filter is created with createSubscriptionFilter. */ + filter_id: string; + /** @description The unique identifier of the subscription associated with the filter. Use getSubscriptions to retrieve subscription IDs. */ subscription_id: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Accepted */ - 202: { + /** @description OK */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["SubscriptionFilter"]; + }; }; /** @description Bad Request */ 400: { @@ -888,6 +1156,13 @@ export interface operations { }; content?: never; }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Not Found */ 404: { headers: { @@ -904,28 +1179,26 @@ export interface operations { }; }; }; - getDestinations: { + deleteSubscriptionFilter: { parameters: { - query?: { - /** @description The number of items, from the result set, returned in a single page. Range is from 10-100. If this parameter is omitted, the default value is used.

Default: 20

Maximum: 100 items per page */ - limit?: string; - /** @description The continuation token for the next set of results. */ - continuation_token?: string; - }; + query?: never; header?: never; - path?: never; + path: { + /** @description The unique identifier of the subscription filter to delete. Filter ID values, if configured for a subscription, will be shown in the subscriptions.filterId field in getSubscription and getSubscription responses. The filter ID value is also returned in the Location response header when a filter is created with createSubscriptionFilter. */ + filter_id: string; + /** @description The unique identifier of the subscription associated with the filter to delete. Use getSubscriptions to retrieve subscription IDs. */ + subscription_id: string; + }; cookie?: never; }; requestBody?: never; responses: { - /** @description OK */ - 200: { + /** @description No Content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["DestinationSearchResponse"]; - }; + content?: never; }; /** @description Bad Request */ 400: { @@ -934,48 +1207,15 @@ export interface operations { }; content?: never; }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - createDestination: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description The create destination request. */ - requestBody?: { - content: { - "application/json": components["schemas"]["DestinationRequest"]; - }; - }; - responses: { - /** @description Created */ - 201: { - headers: { - Location?: string; - [name: string]: unknown; - }; - content: { - "application/json": Record; - }; - }; - /** @description Bad Request */ - 400: { + /** @description Forbidden */ + 403: { headers: { [name: string]: unknown; }; content?: never; }; - /** @description Conflict */ - 409: { + /** @description Not Found */ + 404: { headers: { [name: string]: unknown; }; @@ -990,26 +1230,24 @@ export interface operations { }; }; }; - getDestination: { + disableSubscription: { parameters: { query?: never; header?: never; path: { - /** @description The unique identifier for the destination. */ - destination_id: string; + /** @description The unique identifier of an enabled subscription that will be disabled. Use getSubscriptions to retrieve subscription IDs. */ + subscription_id: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description OK */ - 200: { + /** @description No Content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["Destination"]; - }; + content?: never; }; /** @description Bad Request */ 400: { @@ -1034,22 +1272,17 @@ export interface operations { }; }; }; - updateDestination: { + enableSubscription: { parameters: { query?: never; header?: never; path: { - /** @description The unique identifier for the destination. */ - destination_id: string; + /** @description The unique identifier of a disabled subscription that will be enabled. Use getSubscriptions to retrieve subscription IDs. */ + subscription_id: string; }; cookie?: never; }; - /** @description The create subscription request. */ - requestBody?: { - content: { - "application/json": components["schemas"]["DestinationRequest"]; - }; - }; + requestBody?: never; responses: { /** @description No Content */ 204: { @@ -1088,20 +1321,20 @@ export interface operations { }; }; }; - deleteDestination: { + testSubscription: { parameters: { query?: never; header?: never; path: { - /** @description The unique identifier for the destination. */ - destination_id: string; + /** @description The unique identifier of the subscription to test. Use getSubscriptions to retrieve subscription IDs. */ + subscription_id: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description No Content */ - 204: { + /** @description Accepted */ + 202: { headers: { [name: string]: unknown; }; @@ -1121,13 +1354,6 @@ export interface operations { }; content?: never; }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; /** @description Internal Server Error */ 500: { headers: { @@ -1137,11 +1363,14 @@ export interface operations { }; }; }; - getConfig: { + getTopic: { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The unique identifier of the notification topic for which the details are retrieved. Use getTopics to retrieve the topic ID. */ + topic_id: string; + }; cookie?: never; }; requestBody?: never; @@ -1152,8 +1381,15 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Config"]; + "application/json": components["schemas"]["Topic"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; }; + content?: never; }; /** @description Not Found */ 404: { @@ -1171,26 +1407,28 @@ export interface operations { }; }; }; - updateConfig: { + getTopics: { parameters: { - query?: never; + query?: { + /** @description This string value can be used to return the next page in the result set. The string to use here is returned in the next field of the current page of results. */ + continuation_token?: string; + /** @description The maximum number of notification topics to return per page from the result set.

Min: 10

Max: 100

Default: 20 */ + limit?: string; + }; header?: never; path?: never; cookie?: never; }; - /** @description The configurations for this application. */ - requestBody?: { - content: { - "application/json": components["schemas"]["Config"]; - }; - }; + requestBody?: never; responses: { - /** @description No Content */ - 204: { + /** @description OK */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["TopicSearchResponse"]; + }; }; /** @description Bad Request */ 400: { diff --git a/src/types/restful/specs/commerce_taxonomy_v1_oas3.ts b/src/types/restful/specs/commerce_taxonomy_v1_oas3.ts index 10afb772..497eab71 100644 --- a/src/types/restful/specs/commerce_taxonomy_v1_oas3.ts +++ b/src/types/restful/specs/commerce_taxonomy_v1_oas3.ts @@ -13,7 +13,7 @@ export interface paths { }; /** * Get Aspects for All Leaf Categories in a Marketplace - * @description This call returns a complete list of aspects for all of the leaf categories that belong to an eBay marketplace. The eBay marketplace is specified through the category_tree_id URI parameter. Note: This call can return a large payload, so the call returns the response as a gzipped JSON file. The open source Taxonomy SDK can be used to compare the aspect metadata that is returned in this response. The bulk download capability that this method provides, when combined with the Taxonomy SDK, brings transparency to the evolution of the metadata. + * @description This method returns a complete list of aspects for all of the leaf categories that belong to an eBay marketplace. The eBay marketplace is specified through the category_tree_id URI parameter.

Note: A successful call returns a payload as a gzipped JSON file sent as a binary file using the content-type:application/octet-stream in the response. This file may be large (over 100 MB, compressed). Extract the JSON file from the compressed file with a utility that handles .gz or .gzip. The open source Taxonomy SDK can be used to compare the aspect metadata that is returned in this response. The Taxonomy SDK uses this call to surface changes (new, modified, and removed entities) between an updated version of a bulk downloaded file relative to a previous version. */ get: operations["fetchItemAspects"]; put?: never; @@ -53,7 +53,7 @@ export interface paths { }; /** * Get a Category Tree - * @description This call retrieves the complete category tree that is identified by the category_tree_id parameter. The value of category_tree_id was returned by the getDefaultCategoryTreeId call in the categoryTreeId field. The response contains details of all nodes of the specified eBay category tree, as well as the eBay marketplaces that use this category tree. Note: This call can return a very large payload, so you are strongly advised to submit the request with the following HTTP header:   Accept-Encoding: application/gzip With this header (in addition to the required headers described under HTTP Request Headers), the call returns the response with gzip compression. + * @description This method retrieves the complete category tree that is identified by the category_tree_id parameter. The value of category_tree_id was returned by the getDefaultCategoryTreeId method in the categoryTreeId field. The response contains details of all nodes of the specified eBay category tree, as well as the eBay marketplaces that use this category tree.

Note: This method can return a very large payload, so gzip compression is supported. To enable gzip compression, include the Accept-Encoding header and set its value to gzip as shown below:

  Accept-Encoding: gzip
*/ get: operations["getCategoryTree"]; put?: never; @@ -73,7 +73,7 @@ export interface paths { }; /** * Get a Category Subtree - * @description This call retrieves the details of all nodes of the category tree hierarchy (the subtree) below a specified category of a category tree. You identify the tree using the category_tree_id parameter, which was returned by the getDefaultCategoryTreeId call in the categoryTreeId field. Note: This call can return a very large payload, so you are strongly advised to submit the request with the following HTTP header:   Accept-Encoding: application/gzip With this header (in addition to the required headers described under HTTP Request Headers), the call returns the response with gzip compression. + * @description This call retrieves the details of all nodes of the category tree hierarchy (the subtree) below a specified category of a category tree. You identify the tree using the category_tree_id parameter, which was returned by the getDefaultCategoryTreeId call in the categoryTreeId field.

Note: This method can return a very large payload, so gzip compression is supported. To enable gzip compression, include the Accept-Encoding header and set its value to gzip as shown below:

  Accept-Encoding: gzip
*/ get: operations["getCategorySubtree"]; put?: never; @@ -93,7 +93,7 @@ export interface paths { }; /** * Get Suggested Categories - * @description This call returns an array of category tree leaf nodes in the specified category tree that are considered by eBay to most closely correspond to the query string q. Returned with each suggested node is a localized name for that category (based on the Accept-Language header specified for the call), and details about each of the category's ancestor nodes, extending from its immediate parent up to the root of the category tree. Note: This call can return a large payload, so you are advised to submit the request with the following HTTP header:   Accept-Encoding: application/gzip With this header (in addition to the required headers described under HTTP Request Headers), the call returns the response with gzip compression. You identify the tree using the category_tree_id parameter, which was returned by the getDefaultCategoryTreeId call in the categoryTreeId field. Important: This call is not supported in the Sandbox environment. It will return a response payload in which the categoryName fields contain random or boilerplate text regardless of the query submitted. + * @description This call returns an array of category tree leaf nodes in the specified category tree that are considered by eBay to most closely correspond to the query string q. Returned with each suggested node is a localized name for that category (based on the Accept-Language header specified for the call), and details about each of the category's ancestor nodes, extending from its immediate parent up to the root of the category tree.

You identify the tree using the category_tree_id parameter, which was returned by the getDefaultCategoryTreeId call in the categoryTreeId field.

Important: This call is not supported in the Sandbox environment. It will return a response payload in which the categoryName fields contain random or boilerplate text regardless of the query submitted. */ get: operations["getCategorySuggestions"]; put?: never; @@ -111,7 +111,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This call returns a list of aspects that are appropriate or necessary for accurately describing items in the specified leaf category. Each aspect identifies an item attribute (for example, color) for which the seller will be required or encouraged to provide a value (or variation values) when offering an item in that category on eBay. For each aspect, getItemAspectsForCategory provides complete metadata, including: The aspect's data type, format, and entry mode Whether the aspect is required in listings Whether the aspect can be used for item variations Whether the aspect accepts multiple values for an item Allowed values for the aspect Use this information to construct an interface through which sellers can enter or select the appropriate values for their items or item variations. Once you collect those values, include them as product aspects when creating inventory items using the Inventory API. */ + /** @description This call returns a list of aspects that are appropriate or necessary for accurately describing items in the specified leaf category. Each aspect identifies an item attribute (for example, color,) for which the seller will be required or encouraged to provide a value (or variation values) when offering an item in that category on eBay.

For each aspect, getItemAspectsForCategory provides complete metadata, including:
  • The aspect's data type, format, and entry mode
  • Whether the aspect is required in listings
  • Whether the aspect can be used for item variations
  • Whether the aspect accepts multiple values for an item
  • Allowed values for the aspect
Use this information to construct an interface through which sellers can enter or select the appropriate values for their items or item variations. Once you collect those values, include them as product aspects when creating inventory items using the Inventory API. */ get: operations["getItemAspectsForCategory"]; put?: never; post?: never; @@ -130,7 +130,7 @@ export interface paths { }; /** * Get Compatibility Properties - * @description This call retrieves the compatible vehicle aspects that are used to define a motor vehicle that is compatible with a motor vehicle part or accessory. The values that are retrieved here might include motor vehicle aspects such as 'Make', 'Model', 'Year', 'Engine', and 'Trim', and each of these aspects are localized for the eBay marketplace. The category_tree_id value is passed in as a path parameter, and this value identifies the eBay category tree. The category_id value is passed in as a query parameter, as this parameter is also required. The specified category must be a category that supports parts compatibility. At this time, this operation only supports parts and accessories listings for cars, trucks, and motorcycles (not boats, power sports, or any other vehicle types). Only the following eBay marketplaces support parts compatibility: eBay US (Motors and non-Motors categories) eBay Canada (Motors and non-Motors categories) eBay UK eBay Germany eBay Australia eBay France eBay Italy eBay Spain + * @description This call retrieves the compatible vehicle aspects that are used to define a motor vehicle that is compatible with a motor vehicle part or accessory. The values that are retrieved here might include motor vehicle aspects such as 'Make', 'Model', 'Year', 'Engine', and 'Trim', and each of these aspects are localized for the eBay marketplace.

The category_tree_id value is passed in as a path parameter, and this value identifies the eBay category tree. The category_id value is passed in as a query parameter, as this parameter is also required. The specified category must be a category that supports parts compatibility.

At this time, this operation only supports parts and accessories listings for cars, trucks, and motorcycles (not boats, power sports, or any other vehicle types). Only the following eBay marketplaces support parts compatibility:
  • eBay US (Motors and non-Motors categories)
  • eBay Canada (Motors and non-Motors categories)
  • eBay UK
  • eBay Germany
  • eBay Australia
  • eBay France
  • eBay Italy
  • eBay Spain
*/ get: operations["getCompatibilityProperties"]; put?: never; @@ -150,7 +150,7 @@ export interface paths { }; /** * Get Compatibility Property Values - * @description This call retrieves applicable compatible vehicle property values based on the specified eBay marketplace, specified eBay category, and filters used in the request. Compatible vehicle properties are returned in the compatibilityProperties.name field of a getCompatibilityProperties response. One compatible vehicle property applicable to the specified eBay marketplace and eBay category is specified through the required compatibility_property filter. Then, the user has the option of further restricting the compatible vehicle property values that are returned in the response by specifying one or more compatible vehicle property name/value pairs through the filter query parameter. See the documentation in URI parameters section for more information on using the compatibility_property and filter query parameters together to customize the data that is retrieved. + * @description This call retrieves applicable compatible vehicle property values based on the specified eBay marketplace, specified eBay category, and filters used in the request. Compatible vehicle properties are returned in the compatibilityProperties.name field of a getCompatibilityProperties response.

One compatible vehicle property applicable to the specified eBay marketplace and eBay category is specified through the required compatibility_property filter. Then, the user has the option of further restricting the compatible vehicle property values that are returned in the response by specifying one or more compatible vehicle property name/value pairs through the filter query parameter.

See the documentation in URI parameters section for more information on using the compatibility_property and filter query parameters together to customize the data that is retrieved. */ get: operations["getCompatibilityPropertyValues"]; put?: never; @@ -161,21 +161,38 @@ export interface paths { patch?: never; trace?: never; }; + "/category_tree/{category_tree_id}/get_expired_categories": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves the mappings of expired leaf categories in the specified category tree to their corresponding active leaf categories. Note that in some cases, several expired categories are mapped to a single active category.

Note: This method only returns information about categories that have been mapped (i.e., combined categories and split categories). It does not return information about expired categories that have no corresponding active categories. When a category expires in this manner, any completed items that were listed in the expired category can still be found, but new listings cannot be created in the category. */ + get: operations["getExpiredCategories"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; } export type webhooks = Record; export interface components { schemas: { /** @description This type contains information about one of the ancestors of a suggested category. An ordered list of these references describes the path from the suggested category to the root of the category tree it belongs to. */ AncestorReference: { - /** @description The unique identifier of the eBay ancestor category. Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development. */ + /** @description The unique identifier of the eBay ancestor category.

Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development. */ categoryId?: string; - /** @description The name of the ancestor category identified by categoryId. */ + /** @description The name of the ancestor category identified by categoryId. */ categoryName?: string; - /** @description The href portion of the getCategorySubtree call that retrieves the subtree below the ancestor category node. */ + /** @description The href portion of the getCategorySubtree call that retrieves the subtree below the ancestor category node. */ categorySubtreeNodeHref?: string; /** * Format: int32 - * @description The absolute level of the ancestor category node in the hierarchy of its category tree. Note: The root node of any full category tree is always at level 0. + * @description The absolute level of the ancestor category node in the hierarchy of its category tree.

Note: The root node of any full category tree is always at level 0. */ categoryTreeNodeLevel?: number; }; @@ -183,63 +200,65 @@ export interface components { Aspect: { /** @description Information about the formatting, occurrence, and support of this aspect. */ aspectConstraint?: components["schemas"]["AspectConstraint"]; - /** @description A list of valid values for this aspect (for example: Red, Green, and Blue), along with any constraints on those values. */ + /** @description A list of valid values for this aspect (for example: Red, Green, and Blue), along with any constraints on those values. */ aspectValues?: components["schemas"]["AspectValue"][]; - /** @description The localized name of this aspect (for example: Colour on the eBay UK site). Note: This name is always localized for the specified marketplace. */ + /** @description The localized name of this aspect (for example: Colour on the eBay UK site).

Note: This name is always localized for the specified marketplace. */ localizedAspectName?: string; - /** @description The relevance of this aspect. This field is returned if eBay has data on how many searches have been performed for listings in the category using this item aspect. Note: This container is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to 'Buyer Demand Data' in the Taxonomy API. */ + /** @description The relevance of this aspect. This field is returned if eBay has data on how many searches have been performed for listings in the category using this item aspect.

Note: This container is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to 'Buyer Demand Data' in the Taxonomy API. */ relevanceIndicator?: components["schemas"]["RelevanceIndicator"]; }; /** @description This type contains information about the formatting, occurrence, and support of an aspect. */ AspectConstraint: { - /** @description This value indicate if the aspect identified by the aspects.localizedAspectName field is a product aspect (relevant to catalog products in the category) or an item/instance aspect, which is an aspect whose value will vary based on a particular instance of the product. */ + /** @description This value indicate if the aspect identified by the aspects.localizedAspectName field is a product aspect (relevant to catalog products in the category) or an item/instance aspect, which is an aspect whose value will vary based on a particular instance of the product. */ aspectApplicableTo?: string[]; /** @description The data type of this aspect. For implementation help, refer to eBay API documentation */ aspectDataType?: string; - /** @description A value of true indicates that this aspect can be used to help identify item variations. */ + /** @description A value of true indicates that this aspect can be used to help identify item variations. */ aspectEnabledForVariations?: boolean; - /** @description Returned only if the value of aspectDataType identifies a data type that requires specific formatting. Currently, this field provides formatting hints as follows: DATE: YYYY, YYYYMM, YYYYMMDD NUMBER: int32, double */ + /** @description Returned only if the value of aspectDataType identifies a data type that requires specific formatting. Currently, this field provides formatting hints as follows:
  • DATE: YYYY, YYYYMM, YYYYMMDD
  • NUMBER: int32, double
*/ aspectFormat?: string; /** * Format: int32 * @description The maximum length of the item/instance aspect's value. The seller must make sure not to exceed this length when specifying the instance aspect's value for a product. This field is only returned for instance aspects. */ aspectMaxLength?: number; - /** @description The manner in which values of this aspect must be specified by the seller (as free text or by selecting from available options). For implementation help, refer to eBay API documentation */ + /** @description The manner in which values of this aspect must be specified by the seller (as free text or by selecting from available options). For implementation help, refer to eBay API documentation */ aspectMode?: string; - /** @description A value of true indicates that this aspect is required when offering items in the specified category. */ + /** @description A value of true indicates that this aspect is required when offering items in the specified category. */ aspectRequired?: boolean; - /** @description The enumeration value returned in this field will indicate if the corresponding aspect is recommended or optional. Note: This field is always returned, even for hard-mandated/required aspects (where aspectRequired: true). The value returned for required aspects will be RECOMMENDED, but they are actually required and a seller will be blocked from listing or revising an item without these aspects. For implementation help, refer to eBay API documentation */ + /** @description The enumeration value returned in this field will indicate if the corresponding aspect is recommended or optional.

Note: This field is always returned, even for hard-mandated/required aspects (where aspectRequired: true). The value returned for required aspects will be RECOMMENDED, but they are actually required and a seller will be blocked from listing or revising an item without these aspects. For implementation help, refer to eBay API documentation */ aspectUsage?: string; - /** @description The expected date after which the aspect will be required. Note: The value returned in this field specifies only an approximate date, which may not reflect the actual date after which the aspect is required. */ + /** @description The expected date after which the aspect will be required.

Note: The value returned in this field specifies only an approximate date, which may not reflect the actual date after which the aspect is required. */ expectedRequiredByDate?: string; - /** @description Indicates whether this aspect can accept single or multiple values for items in the specified category. For implementation help, refer to eBay API documentation */ + /** @description Indicates whether this aspect can accept single or multiple values for items in the specified category.

Note: Up to 30 values can be supplied for aspects that accept multiple values. For implementation help, refer to eBay API documentation */ itemToAspectCardinality?: string; + /** @description Indicates additional data type requirements for the aspect. For example, NUMERIC_RANGE indicates that the aspect value must be in numeric range format.

Note: Currently only NUMERIC_RANGE is supported. For implementation help, refer to eBay API documentation */ + aspectAdvancedDataType?: string; }; - /** @description This type is the container type for the response payload of the getItemAspectsForCategory call. */ + /** @description This type is the container type for the response payload of the getItemAspectsForCategory call. */ AspectMetadata: { /** @description A list of item aspects (for example, color) that are appropriate or necessary for accurately describing items in a particular leaf category. Each category has a different set of aspects and different requirements for aspect values. Sellers are required or encouraged to provide one or more acceptable values for each aspect when offering an item in that category on eBay. */ aspects?: components["schemas"]["Aspect"][]; }; /** @description This type contains a valid value for an aspect, along with any constraints on the occurrence of that value. */ AspectValue: { - /** @description The localized value of this aspect. Note: This value is always localized for the specified marketplace. */ + /** @description The localized value of this aspect.

Note: This value is always localized for the specified marketplace. */ localizedValue?: string; - /** @description Not returned if the value of the localizedValue field can always be selected for this aspect of the specified category. Contains a list of the dependencies that identify when the value of the localizedValue field is available for the current aspect. Each dependency specifies the values of another aspect of the same category (a control aspect), for which the current value of the current aspect can also be selected by the seller. Example: A shirt is available in three sizes and three colors, but only the Small and Medium sizes come in Green. Thus for the Color aspect, the value Green is constrained by its dependency on Size (the control aspect). Only when the Size aspect value is Small or Medium, can the Color aspect value of Green be selected by the seller. */ + /** @description Not returned if the value of the localizedValue field can always be selected for this aspect of the specified category.

Contains a list of the dependencies that identify when the value of the localizedValue field is available for the current aspect. Each dependency specifies the values of another aspect of the same category (a control aspect), for which the current value of the current aspect can also be selected by the seller.

Example: A shirt is available in three sizes and three colors, but only the Small and Medium sizes come in Green. Thus for the Color aspect, the value Green is constrained by its dependency on Size (the control aspect). Only when the Size aspect value is Small or Medium, can the Color aspect value of Green be selected by the seller. */ valueConstraints?: components["schemas"]["ValueConstraint"][]; }; /** @description This type contains identifying information for the category tree associated with a particular eBay marketplace. */ BaseCategoryTree: { /** @description The unique identifier of the eBay category tree for the specified marketplace. */ categoryTreeId?: string; - /** @description The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls. */ + /** @description The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls. */ categoryTreeVersion?: string; }; /** @description This type contains information about a particular eBay category. */ Category: { - /** @description The unique identifier of the eBay category within its category tree. Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development. */ + /** @description The unique identifier of the eBay category within its category tree.

Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development. */ categoryId?: string; - /** @description The name of the category identified by categoryId. */ + /** @description The name of the category identified by categoryId. */ categoryName?: string; }; CategoryAspect: { @@ -254,18 +273,18 @@ export interface components { categorySubtreeNode?: components["schemas"]["CategoryTreeNode"]; /** @description The unique identifier of the eBay category tree to which this subtree belongs. */ categoryTreeId?: string; - /** @description The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls. */ + /** @description The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls. */ categoryTreeVersion?: string; }; /** @description This type contains information about a suggested category tree leaf node that corresponds to keywords provided in the request. It includes details about each of the category's ancestor nodes extending up to the root of the category tree. */ CategorySuggestion: { /** @description Contains details about the suggested category. */ category?: components["schemas"]["Category"]; - /** @description An ordered list of category references that describes the location of the suggested category in the specified category tree. The list identifies the category's ancestry as a sequence of parent nodes, from the current node's immediate parent to the root node of the category tree. Note: The root node of a full default category tree includes categoryId and categoryName fields, but their values should not be relied upon. They provide no useful information for application development. */ + /** @description An ordered list of category references that describes the location of the suggested category in the specified category tree. The list identifies the category's ancestry as a sequence of parent nodes, from the current node's immediate parent to the root node of the category tree.

Note: The root node of a full default category tree includes categoryId and categoryName fields, but their values should not be relied upon. They provide no useful information for application development. */ categoryTreeNodeAncestors?: components["schemas"]["AncestorReference"][]; /** * Format: int32 - * @description The absolute level of the category tree node in the hierarchy of its category tree. Note: The root node of any full category tree is always at level 0. + * @description The absolute level of the category tree node in the hierarchy of its category tree.

Note: The root node of any full category tree is always at level 0. */ categoryTreeNodeLevel?: number; /** @description This field is reserved for internal or future use. */ @@ -273,11 +292,11 @@ export interface components { }; /** @description This type contains an array of suggested category tree nodes that are considered by eBay to most closely correspond to the keywords provided in a query string, from a specified category tree. */ CategorySuggestionResponse: { - /** @description Contains details about one or more suggested categories that correspond to the provided keywords. The array of suggested categories is sorted in order of eBay's confidence of the relevance of each category (the first category is the most relevant). Important: This call is not supported in the Sandbox environment. It will return a response payload in which the categoryName fields contain random or boilerplate text regardless of the query submitted. */ + /** @description Contains details about one or more suggested categories that correspond to the provided keywords. The array of suggested categories is sorted in order of eBay's confidence of the relevance of each category (the first category is the most relevant).

Important: This call is not supported in the Sandbox environment. It will return a response payload in which the categoryName fields contain random or boilerplate text regardless of the query submitted. */ categorySuggestions?: components["schemas"]["CategorySuggestion"][]; /** @description The unique identifier of the eBay category tree from which suggestions are returned. */ categoryTreeId?: string; - /** @description The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls. */ + /** @description The version of the category tree identified by categoryTreeId. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls. */ categoryTreeVersion?: string; }; /** @description This type contains information about all nodes of a specified eBay category tree. */ @@ -288,35 +307,35 @@ export interface components { categoryTreeId?: string; /** @description The version of this category tree. It's a good idea to cache this value for comparison so you can determine if this category tree has been modified in subsequent calls. */ categoryTreeVersion?: string; - /** @description Contains details of all nodes of the category tree hierarchy, starting with the root node and down to the leaf nodes. This is a recursive structure. Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development. */ + /** @description Contains details of all nodes of the category tree hierarchy, starting with the root node and down to the leaf nodes. This is a recursive structure.

Note: The root node of a full default category tree includes the categoryId field, but its value should not be relied upon. It provides no useful information for application development. */ rootCategoryNode?: components["schemas"]["CategoryTreeNode"]; }; - /** @description This type contains information about all nodes of a category tree or subtree hierarchy, including and below the specified Category, down to the leaf nodes. It is a recursive structure. */ + /** @description This type contains information about all nodes of a category tree or subtree hierarchy, including and below the specified Category, down to the leaf nodes. It is a recursive structure. */ CategoryTreeNode: { /** @description Contains details about the current category tree node. */ category?: components["schemas"]["Category"]; /** * Format: int32 - * @description The absolute level of the current category tree node in the hierarchy of its category tree. Note: The root node of any full category tree is always at level 0. + * @description The absolute level of the current category tree node in the hierarchy of its category tree.

Note: The root node of any full category tree is always at level 0. */ categoryTreeNodeLevel?: number; - /** @description An array of one or more category tree nodes that are the immediate children of the current category tree node, as well as their children, recursively down to the leaf nodes. Returned only if the current category tree node is not a leaf node (the value of leafCategoryTreeNode is false). */ + /** @description An array of one or more category tree nodes that are the immediate children of the current category tree node, as well as their children, recursively down to the leaf nodes.

Returned only if the current category tree node is not a leaf node (the value of leafCategoryTreeNode is false). */ childCategoryTreeNodes?: components["schemas"]["CategoryTreeNode"][]; - /** @description A value of true indicates that the current category tree node is a leaf node (it has no child nodes). A value of false indicates that the current node has one or more child nodes, which are identified by the childCategoryTreeNodes array. Returned only if the value of this field is true. */ + /** @description A value of true indicates that the current category tree node is a leaf node (it has no child nodes). A value of false indicates that the current node has one or more child nodes, which are identified by the childCategoryTreeNodes array.

Returned only if the value of this field is true. */ leafCategoryTreeNode?: boolean; - /** @description The href portion of the getCategorySubtree call that retrieves the subtree below the parent of this category tree node. Not returned if the current category tree node is the root node of its tree. */ + /** @description The href portion of the getCategorySubtree call that retrieves the subtree below the parent of this category tree node.

Not returned if the current category tree node is the root node of its tree. */ parentCategoryTreeNodeHref?: string; }; - /** @description This type is used by the compatibilityProperties array that is returned in the getCompatibilityProperties call. The compatibilityProperties container consists of an array of all compatible vehicle properties applicable to the specified eBay marketplace and eBay category ID. */ + /** @description This type is used by the compatibilityProperties array that is returned in the getCompatibilityProperties call. The compatibilityProperties container consists of an array of all compatible vehicle properties applicable to the specified eBay marketplace and eBay category ID. */ CompatibilityProperty: { - /** @description This is the actual name of the compatible vehicle property as it is known on the specified eBay marketplace and in the eBay category. This is the string value that should be used in the compatibility_property and filter query parameters of a getCompatibilityPropertyValues request URI. Typical vehicle properties are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category. */ + /** @description This is the actual name of the compatible vehicle property as it is known on the specified eBay marketplace and in the eBay category. This is the string value that should be used in the compatibility_property and filter query parameters of a getCompatibilityPropertyValues request URI.

Typical vehicle properties are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category. */ name?: string; - /** @description This is the localized name of the compatible vehicle property. The language that is used will depend on the user making the call, or based on the language specified if the Content-Language HTTP header is used. In some instances, the string value in this field may be the same as the string in the corresponding name field. */ + /** @description This is the localized name of the compatible vehicle property. The language that is used will depend on the user making the call, or based on the language specified if the Content-Language HTTP header is used.

In some instances, the string value in this field may be the same as the string in the corresponding name field. */ localizedName?: string; }; - /** @description This type is used by the compatibilityPropertyValues array that is returned in the getCompatibilityPropertyValues response. The compatibilityPropertyValues array contains all compatible vehicle property values that match the specified eBay marketplace, specified eBay category, and filters in the request. If the compatibility_property parameter value in the request is 'Trim', each value returned in each value field will be a different vehicle trim, applicable to any filters that are set in the filter query parameter of the request, and also based on the eBay marketplace and category specified in the call request. */ + /** @description This type is used by the compatibilityPropertyValues array that is returned in the getCompatibilityPropertyValues response. The compatibilityPropertyValues array contains all compatible vehicle property values that match the specified eBay marketplace, specified eBay category, and filters in the request. If the compatibility_property parameter value in the request is 'Trim', each value returned in each value field will be a different vehicle trim, applicable to any filters that are set in the filter query parameter of the request, and also based on the eBay marketplace and category specified in the call request. */ CompatibilityPropertyValue: { - /** @description Each value field shows one applicable compatible vehicle property value. The values that are returned will depend on the specified eBay marketplace, specified eBay category, and filters in the request. */ + /** @description Each value field shows one applicable compatible vehicle property value. The values that are returned will depend on the specified eBay marketplace, specified eBay category, and filters in the request. */ value?: string; }; /** @description This type defines the fields that can be returned in an error. */ @@ -349,25 +368,37 @@ export interface components { /** @description The value of the object. */ value?: string; }; + /** @description This type is used by the getExpiredCategories response to indicate any eBay leaf categories in the specified category tree that have expired and the currently active leaf categories that have replaced them. */ + ExpiredCategories: { + /** @description An array of expired category ID(s) for the requested category tree, and the currently active category ID(s) that have replaced them. */ + expiredCategories?: components["schemas"]["ExpiredCategory"][]; + }; + /** @description This type defines the expired category ID for the requested category tree, and the currently active category ID that has replaced it. */ + ExpiredCategory: { + /** @description The unique identifier of the expired eBay leaf category. */ + fromCategoryId?: string; + /** @description The unique identifier of the currently active eBay leaf category that has replaced the expired leaf category.

Note: More than one fromCategoryID value may map into the same toCategoryID value, as multiple eBay categories may be consolidated into one new, expanded category. */ + toCategoryId?: string; + }; GetCategoriesAspectResponse: { /** @description The unique identifier of the eBay category tree being requested. */ categoryTreeId?: string; - /** @description The version of the category tree that is returned in the categoryTreeId field. */ + /** @description The version of the category tree that is returned in the categoryTreeId field. */ categoryTreeVersion?: string; /** @description An array of aspects that are appropriate or necessary for accurately describing items in a particular leaf category. */ categoryAspects?: components["schemas"]["CategoryAspect"][]; }; - /** @description This type is used by the base response of the getCompatibilityProperties method. */ + /** @description This type is used by the base response of the getCompatibilityProperties method. */ GetCompatibilityMetadataResponse: { /** @description This container consists of an array of all compatible vehicle properties applicable to the specified eBay marketplace and eBay category ID. */ compatibilityProperties?: components["schemas"]["CompatibilityProperty"][]; }; - /** @description The base response type of the getCompatibilityPropertyValues method. */ + /** @description The base response type of the getCompatibilityPropertyValues method. */ GetCompatibilityPropertyValuesResponse: { - /** @description This array contains all compatible vehicle property values that match the specified eBay marketplace, specified eBay category, and filters in the request. If the compatibility_property parameter value in the request is 'Trim', each value returned in each value field will be a different vehicle trim, applicable to any filters that are set in the filter query parameter of the request, and also based on the eBay marketplace and category specified in the call request. */ + /** @description This array contains all compatible vehicle property values that match the specified eBay marketplace, specified eBay category, and filters in the request. If the compatibility_property parameter value in the request is 'Trim', each value returned in each value field will be a different vehicle trim, applicable to any filters that are set in the filter query parameter of the request, and also based on the eBay marketplace and category specified in the call request. */ compatibilityPropertyValues?: components["schemas"]["CompatibilityPropertyValue"][]; }; - /** @description The relevance of this aspect. This field is returned if eBay has data on how many searches have been performed for listings in the category using this item aspect. Note: This container is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to 'Buyer Demand Data' in the Taxonomy API. */ + /** @description The relevance of this aspect. This field is returned if eBay has data on how many searches have been performed for listings in the category using this item aspect.

Note: This container is restricted to applications that have been granted permission to access this feature. You must submit an App Check ticket to request this access. In the App Check form, add a note to the Application Title/Summary and/or Application Details fields that you want access to 'Buyer Demand Data' in the Taxonomy API. */ RelevanceIndicator: { /** * Format: int32 @@ -375,7 +406,7 @@ export interface components { */ searchCount?: number; }; - /** @description This type contains a list of the dependencies that identify when a particular value is available for a given aspect of a given category. Each dependency specifies the values of another aspect of the same category (the control aspect), for which the given value of the given aspect can also be selected by the seller. This container consists of constraint information for the corresponding product aspect value. */ + /** @description This type contains a list of the dependencies that identify when a particular value is available for a given aspect of a given category. Each dependency specifies the values of another aspect of the same category (the control aspect), for which the given value of the given aspect can also be selected by the seller. This container consists of constraint information for the corresponding product aspect value. */ ValueConstraint: { /** @description The name of the control aspect on which the current aspect value depends. */ applicableForLocalizedAspectName?: string; @@ -396,7 +427,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The unique identifier of the eBay category tree being requested. */ + /** @description The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method. */ category_tree_id: string; }; cookie?: never; @@ -438,13 +469,10 @@ export interface operations { getDefaultCategoryTreeId: { parameters: { query: { - /** @description The ID of the eBay marketplace for which the category tree ID is being requested. For a list of supported marketplace IDs, see Marketplaces with Default Category Trees. */ + /** @description The unique identifier of the eBay marketplace for which the category tree ID is requested. For a list of supported marketplace IDs, see Marketplaces with Default Category Trees. */ marketplace_id: string; }; - header?: { - /** @description A header used to indicate the natural language the seller prefers for the response. This specifies the language that the seller wants to use when the field values provided in the request body are displayed to consumers. Note: For details, see Accept-Language in HTTP request headers. Valid Values: For EBAY_CA in French: Accept-Language: fr-CA For EBAY_BE in French: Accept-Language: fr-BE */ - "Accept-Language"?: string; - }; + header?: never; path?: never; cookie?: never; }; @@ -485,9 +513,12 @@ export interface operations { getCategoryTree: { parameters: { query?: never; - header?: never; + header?: { + /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ + "Accept-Encoding"?: string; + }; path: { - /** @description The unique identifier of the eBay category tree being requested. */ + /** @description The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method. */ category_tree_id: string; }; cookie?: never; @@ -529,12 +560,15 @@ export interface operations { getCategorySubtree: { parameters: { query: { - /** @description The unique identifier of the category at the top of the subtree being requested. Note: If the category_id submitted identifies the root node of the tree, this call returns an error. To retrieve the complete tree, use this value with the getCategoryTree call. If the category_id submitted identifies a leaf node of the tree, the call response will contain information about only that leaf node, which is a valid subtree. */ + /** @description The unique identifier of the category at the top of the subtree being requested. Metadata on this category and all its descendant categories are retrieved.

Note: If the category_id submitted identifies a leaf node of the tree, the call response will contain information about only that leaf node, which is a valid subtree. */ category_id: string; }; - header?: never; + header?: { + /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ + "Accept-Encoding"?: string; + }; path: { - /** @description The unique identifier of the eBay category tree from which a category subtree is being requested. */ + /** @description The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method. */ category_tree_id: string; }; cookie?: never; @@ -581,7 +615,7 @@ export interface operations { }; header?: never; path: { - /** @description The unique identifier of the eBay category tree for which suggested nodes are being requested. */ + /** @description The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method. */ category_tree_id: string; }; cookie?: never; @@ -630,12 +664,12 @@ export interface operations { getItemAspectsForCategory: { parameters: { query: { - /** @description The unique identifier of the leaf category for which aspects are being requested. Note: If the category_id submitted does not identify a leaf node of the tree, this call returns an error. */ + /** @description The unique identifier of the leaf category for which aspects are being requested.

Note: If the category_id submitted does not identify a leaf node of the tree, this call returns an error. */ category_id: string; }; header?: never; path: { - /** @description The unique identifier of the eBay category tree from which the specified category's aspects are being requested. */ + /** @description The unique identifier of the eBay category tree. The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method. */ category_tree_id: string; }; cookie?: never; @@ -684,12 +718,12 @@ export interface operations { getCompatibilityProperties: { parameters: { query: { - /** @description The unique identifier of an eBay category. This eBay category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility for cars, trucks, or motorcyles. The getAutomotivePartsCompatibilityPolicies method of the Selling Metadata API can be used to retrieve all eBay categories for an eBay marketplace that supports parts compatibility cars, trucks, or motorcyles. The getAutomotivePartsCompatibilityPolicies method can also be used to see if one or more specific eBay categories support parts compatibility. */ + /** @description The unique identifier of an eBay category. This eBay category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility for cars, trucks, or motorcycles.

The getAutomotivePartsCompatibilityPolicies method of the Selling Metadata API can be used to retrieve all eBay categories for an eBay marketplace that support parts compatibility for vehicles. */ category_id: string; }; header?: never; path: { - /** @description This is the unique identifier of category tree. The following is the list of category_tree_id values and the eBay marketplaces that they represent. One of these ID values must be passed in as a path parameter, and the category_id value, that is passed in as query parameter, must be a valid eBay category on that eBay marketplace that supports parts compatibility for cars, trucks, or motorcyles. eBay US: 0 eBay Motors US: 100 eBay Canada: 2 eBay UK: 3 eBay Germany: 77 eBay Australia: 15 eBay France: 71 eBay Italy: 101 eBay Spain: 186 */ + /** @description This is the unique identifier of category tree. The following is the list of category_tree_id values and the eBay marketplaces that they represent. One of these ID values must be passed in as a path parameter, and the category_id value, that is passed in as query parameter, must be a valid eBay category on that eBay marketplace that supports parts compatibility for cars, trucks, or motorcycles.

  • eBay US: 0
  • eBay Motors US: 100
  • eBay Canada: 2
  • eBay UK: 3
  • eBay Germany: 77
  • eBay Australia: 15
  • eBay France: 71
  • eBay Italy: 101
  • eBay Spain: 186
*/ category_tree_id: string; }; cookie?: never; @@ -738,16 +772,16 @@ export interface operations { getCompatibilityPropertyValues: { parameters: { query: { - /** @description One compatible vehicle property applicable to the specified eBay marketplace and eBay category is specified in this required filter. Compatible vehicle properties are returned in the compatibilityProperties.name field of a getCompatibilityProperties response. For example, if you wanted to retrieve all vehicle trims for a 2018 Toyota Camry, you would set this filter as follows: compatibility_property=Trim; and then include the following three name/value filters through one filter parameter: filter=Year:2018,Make:Toyota,Model:Camry. So, putting this all together, your URI would look something like this: GET https://api.ebay.com/commerce/ taxonomy/v1/category_tree/100/ get_compatibility_property_values? category_id=6016&compatibility_property=Trim &filter=filter=Year:2018,Make:Toyota,Model:Camry */ + /** @description One compatible vehicle property applicable to the specified eBay marketplace and eBay category is specified in this required filter. Compatible vehicle properties are returned in the compatibilityProperties.name field of a getCompatibilityProperties response.

For example, if you wanted to retrieve all vehicle trims for a 2018 Toyota Camry, you would set this filter as follows: compatibility_property=Trim and then include the following three name/value filters through one filter parameter: filter=Year:2018,Make:Toyota,Model:Camry.

So, putting this all together, the URI would look something like this:

GET https://api.ebay.com/commerce/
taxonomy/v1/category_tree/100/
get_compatibility_property_values?
category_id=6016&compatibility_property=Trim
&filter=Year:2018,Make:Toyota,Model:Camry
*/ compatibility_property: string; - /** @description The unique identifier of an eBay category. This eBay category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility for cars, trucks, or motorcyles. The getAutomotivePartsCompatibilityPolicies method of the Selling Metadata API can be used to retrieve all eBay categories for an eBay marketplace that supports parts compatibility cars, trucks, or motorcyles. The getAutomotivePartsCompatibilityPolicies method can also be used to see if one or more specific eBay categories support parts compatibility. */ + /** @description The unique identifier of an eBay category. This eBay category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility for cars, trucks, or motorcycles.

The getAutomotivePartsCompatibilityPolicies method of the Selling Metadata API can be used to retrieve all eBay categories for an eBay marketplace that support parts compatibility for vehicles. */ category_id: string; - /** @description One or more compatible vehicle property name/value pairs are passed in through this query parameter. The compatible vehicle property name and corresponding value are delimited with a colon (:), such as filter=Year:2018, and multiple compatible vehicle property name/value pairs are delimited with a comma (,). For example, if you wanted to retrieve all vehicle trims for a 2018 Toyota Camry, you would set the compatibility_property filter as follows: compatibility_property=Trim; and then include the following three name/value filters through one filter parameter: filter=Year:2018,Make:Toyota,Model:Camry. So, putting this all together, your URI would look something like this: GET https://api.ebay.com/commerce/ taxonomy/v1/category_tree/100/ get_compatibility_property_values? category_id=6016&compatibility_property=Trim &filter=filter=Year:2018,Make:Toyota,Model:Camry For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/commerce/taxonomy/types/txn:ConstraintFilter */ + /** @description One or more compatible vehicle property name/value pairs are passed in through this query parameter. The compatible vehicle property name and corresponding value are delimited with a colon (:), such as filter=Year:2018, and multiple compatible vehicle property name/value pairs are delimited with a comma (,).

Note: Commas are used as delimiters between filter values. If a value includes a comma (e.g., BodyStyle:AWD B9 8W5,C8WD) you must include a backslash (\) immediately before the comma to prevent it from being evaluated as a delimiter.

As with all query parameter values, the filter parameters must be URL encoded. For more information about encoding request parameters, refer to URL encoding query parameter values.

For example, to retrieve all vehicle trims for a 2022 Audi A4:
  • Set the compatibility_property filter to compatibility_property=Trim
  • Include the following name/value filters using one filter parameter:
    • Year:2022
    • Make:Audi
    • Model:A4
    • BodyStyle:AWD B9 8W5\,8WD
The resulting comma-separated filter query parameter is:
filter=Year:2022,Make:Audi,Model:A4,BodyStyle:AWD B9 8W5\,8WD

The following sample shows the same filter but with URL encoding for the blank spaces.
GET https://api.ebay.com/commerce/
taxonomy/v1/category_tree/100/
get_compatibility_property_values?category_id=6016&compatibility_property=Trim&filter=Year:2022,Make:Audi,Model:A4,BodyStyle:AWD%20B9%208W5%5C%2C8WD

Note: While not required, it is strongly recommended that users limit the size of the result set by using the filter query parameter. Failure to do so may result in a timeout error if too much data is attempted to be returned. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/commerce/taxonomy/types/txn:ConstraintFilter */ filter?: string; }; header?: never; path: { - /** @description This is the unique identifier of the category tree. The following is the list of category_tree_id values and the eBay marketplaces that they represent. One of these ID values must be passed in as a path parameter, and the category_id value, that is passed in as query parameter, must be a valid eBay category on that eBay marketplace that supports parts compatibility for cars, trucks, or motorcyles. eBay US: 0 eBay Motors US: 100 eBay Canada: 2 eBay UK: 3 eBay Germany: 77 eBay Australia: 15 eBay France: 71 eBay Italy: 101 eBay Spain: 186 */ + /** @description This is the unique identifier of the category tree. The following is the list of category_tree_id values and the eBay marketplaces that they represent. One of these ID values must be passed in as a path parameter, and the category_id value, that is passed in as query parameter, must be a valid eBay category on that eBay marketplace that supports parts compatibility for cars, trucks, or motorcycles.

  • eBay US: 0
  • eBay Motors US: 100
  • eBay Canada: 2
  • eBay UK: 3
  • eBay Germany: 77
  • eBay Australia: 15
  • eBay France: 71
  • eBay Italy: 101
  • eBay Spain: 186
*/ category_tree_id: string; }; cookie?: never; @@ -793,4 +827,55 @@ export interface operations { }; }; }; + getExpiredCategories: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The unique identifier of the eBay category tree.

The category tree ID for an eBay marketplace can be retrieved using the getDefaultCategoryTreeId method. */ + category_tree_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ExpiredCategories"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; } diff --git a/src/types/restful/specs/commerce_translation_v1_beta_oas3.ts b/src/types/restful/specs/commerce_translation_v1_beta_oas3.ts index 846db9ec..6f9408f0 100644 --- a/src/types/restful/specs/commerce_translation_v1_beta_oas3.ts +++ b/src/types/restful/specs/commerce_translation_v1_beta_oas3.ts @@ -13,7 +13,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method translates listing title and listing description text from one language into another. For a full list of supported language translations, see the table in the API Overview page. */ + /** @description This method translates listing title and listing description text from one language into another. For a full list of supported language translations, see the table. */ post: operations["translate"]; delete?: never; options?: never; @@ -55,18 +55,18 @@ export interface components { /** @description The value of the object. */ value?: string; }; - /** @description This is the base type of the translate method request payload. */ + /** @description This is the base type of the translate method request payload. */ TranslateRequest: { - /** @description The language of the input text to be translated. Not all LanguageEnum values are supported in this field. For a full list of supported language translations, see the table in the API Overview page. For implementation help, refer to eBay API documentation */ + /** @description The language of the input text to be translated. Not all LanguageEnum values are supported in this field. For a full list of supported language pairings, see the Supported languages table. For implementation help, refer to eBay API documentation */ from?: string; - /** @description The input text to translate. For ITEM_DESCRIPTION translations, HTML/CSS markup and links can be included, but will count toward max character limit. Max Length: 1,000 characters for ITEM_TITLE 100,000 characters for ITEM_DESCRIPTION, including markup/tagsMax Occurrence: 1. Only one continuous text string currently supported. */ + /** @description The input text to translate. The maximum number of characters permitted is determined by the translationContext value:
  • ITEM_TITLE: 1000 characters maximum
  • ITEM_DESCRIPTION: 20,000 characters maximum.
    Note: When translating ITEM_DESCRIPTION text, HTML/CSS markup and links can be included and will not count toward this 20,000 character limit.
Note: Currently, only one input string can be translated per API call. Support for multiple continuous text strings is expected in the future. */ text?: string[]; - /** @description The target language for the translation of the input text. Not all LanguageEnum values are supported in this field. For a full list of supported language translations, see the table in the API Overview page. For implementation help, refer to eBay API documentation */ + /** @description The target language for the translation of the input text. Not all LanguageEnum values are supported in this field. For a full list of supported language pairings, see the Supported languages table. For implementation help, refer to eBay API documentation */ to?: string; - /** @description Input the listing entity to be translated. Valid Values: ITEM_TITLE and ITEM_DESCRIPTION For implementation help, refer to eBay API documentation */ + /** @description Input the listing entity to be translated.

Valid Values: ITEM_TITLE and ITEM_DESCRIPTION

For implementation help, refer to eBay API documentation */ translationContext?: string; }; - /** @description This is the base type of the translate method response payload. */ + /** @description This is the base type of the translate method response payload. */ TranslateResponse: { /** @description The enumeration value indicates the language of the input text. For implementation help, refer to eBay API documentation */ from?: string; @@ -75,11 +75,11 @@ export interface components { /** @description An array showing the input and translated text. Only one input string can be translated at this time. Support for multiple continuous text strings is expected in the future. */ translations?: components["schemas"]["Translation"][]; }; - /** @description This type is used by the translations array, which shows the original text supplied by the user in the request payload, and the text translated by eBay. Only one input string can be translated at this time. Support for multiple continuous text strings is expected in the future. */ + /** @description This type is used by the translations array, which shows the original text supplied by the user in the request payload, and the text translated by eBay.

Only one input string can be translated at this time. Support for multiple continuous text strings is expected in the future. */ Translation: { - /** @description The original text, in the language specified in the from field, that was input into the text field in the request. */ + /** @description The original text, in the language specified in the from field, that was input into the text field in the request. */ originalText?: string; - /** @description The translation of the original text into the language specified in the to field. */ + /** @description The translation of the original text into the language specified in the to field. */ translatedText?: string; }; }; @@ -94,7 +94,10 @@ export interface operations { translate: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path?: never; cookie?: never; }; diff --git a/src/types/restful/specs/developer_analytics_v1_beta_oas3.ts b/src/types/restful/specs/developer_analytics_v1_beta_oas3.ts index f0d092c1..131400c6 100644 --- a/src/types/restful/specs/developer_analytics_v1_beta_oas3.ts +++ b/src/types/restful/specs/developer_analytics_v1_beta_oas3.ts @@ -11,7 +11,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the call limit and utilization data for an application. The data is retrieved for all RESTful APIs and resources. The response from getRateLimits includes a list of the applicable resources and the "call limit", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, and the length of the "time window" to which the quota applies. By default, this method returns utilization data for all RESTful API resources. Use the api_name and api_context query parameters to filter the response to only the desired APIs. For more on call limits, see Compatible Application Check. */ + /** @description This method retrieves the call limit and utilization data for an application. The data is retrieved for all RESTful APIs and the legacy Trading API.

The response from getRateLimits includes a list of the applicable resources and the "call limit", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, the number of calls made to the specific resource, and the length of the "time window" to which the quota applies.

By default, this method returns utilization data for all RESTful API and the legacy Trading API resources. Use the api_name and api_context query parameters to filter the response to only the desired APIs.

For more on call limits, see Application Growth Check. */ get: operations["getRateLimits"]; put?: never; post?: never; @@ -28,7 +28,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the call limit and utilization data for an application user. The call-limit data is returned for all RESTful APIs and resources that limit calls on a per-user basis. The response from getUserRateLimits includes a list of the applicable resources and the "call limit", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, and the length of the "time window" to which the quota applies. By default, this method returns utilization data for all RESTful API resources that limit request access by user. Use the api_name and api_context query parameters to filter the response to only the desired APIs. For more on call limits, see Compatible Application Check. */ + /** @description This method retrieves the call limit and utilization data for an application user. The call-limit data is returned for all RESTful APIs and the legacy Trading API that limit calls on a per-user basis.

The response from getUserRateLimits includes a list of the applicable resources and the "call limit", or quota, that is set for each resource. In addition to quota information, the response also includes the number of remaining calls available before the limit is reached, the time remaining before the quota resets, the number of calls made to the specific resource, and the length of the "time window" to which the quota applies.

By default, this method returns utilization data for all RESTful APIs resources and the legacy Trading API calls that limit request access by user. Use the api_name and api_context query parameters to filter the response to only the desired APIs.

For more on call limits, see Application Growth Check. */ get: operations["getUserRateLimits"]; put?: never; post?: never; @@ -42,11 +42,46 @@ export interface paths { export type webhooks = Record; export interface components { schemas: { - /** @description This complex type defines a "rate" as the quota of calls that can be made to a resource per time window, the remaining number of calls before the threshold is met, the amount of time until the time window resets, and the length of the time window (in seconds). */ + /** @description This type defines the fields that can be returned in an error. */ + Error: { + /** @description Identifies the type of erro. */ + category?: string; + /** @description Name for the primary system where the error occurred. This is relevant for application errors. */ + domain?: string; + /** + * Format: int32 + * @description A unique number to identify the error. + */ + errorId?: number; + /** @description An array of request elements most closely associated to the error. */ + inputRefIds?: string[]; + /** @description A more detailed explanation of the error. */ + longMessage?: string; + /** @description Information on how to correct the problem, in the end user's terms and language where applicable. */ + message?: string; + /** @description An array of request elements most closely associated to the error. */ + outputRefIds?: string[]; + /** @description An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned. */ + parameters?: components["schemas"]["ErrorParameter"][]; + /** @description Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc. */ + subdomain?: string; + }; + ErrorParameter: { + /** @description The object of the error. */ + name?: string; + /** @description The value of the object. */ + value?: string; + }; + /** @description This complex type defines a "rate" as the quota of calls that can be made to a resource per time window, the remaining number of calls before the threshold is met, the amount of time until the time window resets, and the length of the time window (in seconds). */ Rate: { /** * Format: int32 - * @description The maximum number of requests that can be made to this resource during a set time period. The length of time to which the limit is applied is defined by the associated timeWindow value. This value is often referred to as the "call quota" for the resource. + * @description The number of calls a user has made to this resource within a set time period. This time period is defined by the associated timeWindow value. + */ + count?: number; + /** + * Format: int32 + * @description The maximum number of requests that can be made to this resource during a set time period. The length of time to which the limit is applied is defined by the associated timeWindow value.

This value is often referred to as the "call quota" for the resource. */ limit?: number; /** @@ -54,7 +89,7 @@ export interface components { * @description The remaining number of requests that can be made to this resource before the associated time window resets. */ remaining?: number; - /** @description The data and time the time window and accumulated calls for this resource reset. When the reset time is reached, the remaining value is reset to the value of limit, and this reset value is reset to the current time plus the number of seconds defined by the timeWindow value. The time stamp is formatted as an ISO 8601 string, which is based on the 24-hour Universal Coordinated Time (UTC) clock. Format: YYYY-MM-DDTHH:MM:SS.SSSZ Example: 2018-08-04T07:09:00.000Z */ + /** @description The data and time the time window and accumulated calls for this resource reset.

When the reset time is reached, the remaining value is reset to the value of limit, and this reset value is reset to the current time plus the number of seconds defined by the timeWindow value.

The time stamp is formatted as an ISO 8601 string, which is based on the 24-hour Universal Coordinated Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-04T07:09:00.000Z */ reset?: string; /** * Format: int32 @@ -62,15 +97,15 @@ export interface components { */ timeWindow?: number; }; - /** @description This complex types defines the resource (such as an API method) for which the rate-limit data is returned. A method is included in an API, and an API is part of an API context for the API version specified. */ + /** @description This complex types defines the resource (such as an API method) for which the rate-limit data is returned.

A method is included in an API, and an API is part of an API context for the API version specified. */ RateLimit: { - /** @description The context of the API for which rate-limit data is returned. For example buy, sell, commerce, or developer. */ + /** @description The context of the API for which rate-limit data is returned. For example buy, sell, commerce, developer or tradingapi. */ apiContext?: string; - /** @description The name of the API for which rate-limit data is returned. For example browse for the Buy API, inventory for the Sell API, or taxonomy for the Commerce API. */ + /** @description The name of the API for which rate-limit data is returned. For example browse for the Buy API, inventory for the Sell API, taxonomy for the Commerce API, or tradingapi for Trading API. */ apiName?: string; - /** @description The version of the API for which rate-limit data is returned. For example v1 or v2. */ + /** @description The version of the API for which rate-limit data is returned. For example v1 or v2. */ apiVersion?: string; - /** @description A list of the methods for which rate-limit data is returned. For example item for the Feed API, getOrder for the Fulfillment API, and getProduct for the Catalog API. */ + /** @description A list of the methods for which rate-limit data is returned. For example item for the Feed API, getOrder for the Fulfillment API, getProduct for the Catalog API, AddItems for the Trading API. */ resources?: components["schemas"]["Resource"][]; }; /** @description This complex type defines a list of rate-limit data as it pertains to a method within the specified version of an API. */ @@ -85,36 +120,6 @@ export interface components { /** @description A list of rate-limit data, where each list element represents the rate-limit data for a specific resource. */ rates?: components["schemas"]["Rate"][]; }; - /** @description This type defines the fields that can be returned in an error. */ - Error: { - /** @description Identifies the type of erro. */ - category?: string; - /** @description Name for the primary system where the error occurred. This is relevant for application errors. */ - domain?: string; - /** - * Format: int32 - * @description A unique number to identify the error. - */ - errorId?: number; - /** @description An array of request elements most closely associated to the error. */ - inputRefIds?: string[]; - /** @description A more detailed explanation of the error. */ - longMessage?: string; - /** @description Information on how to correct the problem, in the end user's terms and language where applicable. */ - message?: string; - /** @description An array of request elements most closely associated to the error. */ - outputRefIds?: string[]; - /** @description An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned. */ - parameters?: components["schemas"]["ErrorParameter"][]; - /** @description Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc. */ - subdomain?: string; - }; - ErrorParameter: { - /** @description The object of the error. */ - name?: string; - /** @description The value of the object. */ - value?: string; - }; }; responses: never; parameters: never; @@ -127,9 +132,9 @@ export interface operations { getRateLimits: { parameters: { query?: { - /** @description This optional query parameter filters the result to include only the specified API context. Acceptable values for the parameter are buy, sell, commerce, and developer. */ + /** @description This optional query parameter filters the result to include only the specified API context.

Valid values:
  • buy
  • sell
  • commerce
  • developer
  • tradingapi
*/ api_context?: string; - /** @description This optional query parameter filters the result to include only the APIs specified. Example values are browse for the Buy APIs context, inventory for the Sell APIs context, and taxonomy for the Commerce APIs context. */ + /** @description This optional query parameter filters the result to include only the APIs specified.

Example values: */ api_name?: string; }; header?: never; @@ -159,20 +164,16 @@ export interface operations { headers: { [name: string]: unknown; }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; - }; + content?: never; }; }; }; getUserRateLimits: { parameters: { query?: { - /** @description This optional query parameter filters the result to include only the specified API context. Acceptable values for the parameter are buy, sell, commerce, and developer. */ + /** @description This optional query parameter filters the result to include only the specified API context.

Valid values:
  • buy
  • sell
  • commerce
  • developer
  • tradingapi
*/ api_context?: string; - /** @description This optional query parameter filters the result to include only the APIs specified. Example values are browse for the Buy APIs context, inventory for the Sell APIs context, and taxonomy for the Commerce APIs context. */ + /** @description This optional query parameter filters the result to include only the APIs specified.

Example values: */ api_name?: string; }; header?: never; @@ -202,11 +203,7 @@ export interface operations { headers: { [name: string]: unknown; }; - content: { - "application/json": { - errors?: components["schemas"]["Error"][]; - }; - }; + content?: never; }; }; }; diff --git a/src/types/restful/specs/developer_key_management_v1_oas3.ts b/src/types/restful/specs/developer_key_management_v1_oas3.ts index e816fed8..07bf3008 100644 --- a/src/types/restful/specs/developer_key_management_v1_oas3.ts +++ b/src/types/restful/specs/developer_key_management_v1_oas3.ts @@ -166,7 +166,10 @@ export interface operations { createSigningKey: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path?: never; cookie?: never; }; diff --git a/src/types/restful/specs/inquiry_oas3.ts b/src/types/restful/specs/inquiry_oas3.ts index 2d4b37ff..bd343fac 100644 --- a/src/types/restful/specs/inquiry_oas3.ts +++ b/src/types/restful/specs/inquiry_oas3.ts @@ -4,74 +4,6 @@ */ export interface paths { - "/inquiry/check_eligibility": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Check if a buyer is eligible to open an inquiry on an order */ - post: operations["checkInquiryEligibility"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/inquiry/{inquiryId}/close": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Close an inquiry for the buyer */ - post: operations["closeInquiry"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/inquiry/{inquiryId}/confirm_refund": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Buyer confirms the refund from an inquiry was received */ - post: operations["confirmInquiryRefund"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/inquiry": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Buyer confirms the refund from an inquiry was received */ - post: operations["createInquiry"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/inquiry/{inquiryId}/escalate": { parameters: { query?: never; @@ -123,23 +55,6 @@ export interface paths { patch?: never; trace?: never; }; - "/inquiry/{inquiryId}/provide_refund_info": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Provide refund information about an inquiry to the buyer */ - post: operations["provideInquiryRefundInfo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/inquiry/{inquiryId}/provide_shipment_info": { parameters: { query?: never; @@ -203,84 +118,6 @@ export interface components { } export type $defs = Record; export interface operations { - checkInquiryEligibility: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - closeInquiry: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique ID of the inquiry to be closed. */ - inquiryId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - confirmInquiryRefund: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique ID of the inquiry to be closed. */ - inquiryId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - createInquiry: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; escalateInquiry: { parameters: { query?: never; @@ -344,27 +181,6 @@ export interface operations { }; }; }; - provideInquiryRefundInfo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique ID of the inquiry to be closed. */ - inquiryId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; provideInquiryShipmentInfo: { parameters: { query?: never; diff --git a/src/types/restful/specs/return_oas3.ts b/src/types/restful/specs/return_oas3.ts index 46661579..c7b846ee 100644 --- a/src/types/restful/specs/return_oas3.ts +++ b/src/types/restful/specs/return_oas3.ts @@ -21,74 +21,6 @@ export interface paths { patch?: never; trace?: never; }; - "/return/{returnId}/cancel": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Cancel a return request */ - post: operations["cancelReturnRequest"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/check_eligibility": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Check to see if an item is eligible for a return */ - post: operations["checkReturnEligibility"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/check_label_print_eligibility": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Validate the eligibility of an existing shipping label */ - get: operations["checkShippingLabelEligibility"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/draft": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Create a return draft */ - post: operations["createReturnDraft"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/return": { parameters: { query?: never; @@ -106,40 +38,6 @@ export interface paths { patch?: never; trace?: never; }; - "/return/{returnId}/initiate_shipping_label": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Create an eBay shipping label for the buyer */ - post: operations["createReturnShippingLabel"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/draft/{draftId}/file/{fileId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** @description Delete a file associated with a return draft */ - delete: operations["deleteReturnDraftFile"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/return/{returnId}/escalate": { parameters: { query?: never; @@ -174,761 +72,173 @@ export interface paths { patch?: never; trace?: never; }; - "/return/draft/{draftId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Retrieve a return draft */ - get: operations["getReturnDraft"]; - /** @description Update an existing return draft */ - put: operations["updateReturnDraft"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/draft/{draftId}/files": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Retrieve the files associated with a return draft */ - get: operations["getReturnDraftFiles"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/estimate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Buyer-facing call to retrieve the estimated refund amount and return shipping costs associated with returning an item. */ - post: operations["getReturnEstimate"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/files": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Retrieve the files associated with a return */ - get: operations["getReturnFiles"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/preference": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Retrieve seller's return preferences */ - get: operations["getReturnPreferences"]; - put?: never; - /** @description Set seller's return preferences */ - post: operations["setReturnPreferences"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/get_shipping_label": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Retrieve the data for an existing shipping label */ - get: operations["getReturnShippingLabel"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/tracking": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Retrieve shipment tracking activity for a return */ - get: operations["getShipmentTrackingInfo"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/issue_refund": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Issue a refund */ - post: operations["issueReturnRefund"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/mark_as_received": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Mark a returned item as received */ - post: operations["markReturnReceived"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/mark_refund_received": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Mark a refund as received */ - post: operations["markReturnRefundReceived"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/mark_refund_sent": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Notify the buyer that a refund has been issued */ - post: operations["markReturnRefundSent"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/mark_as_shipped": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Mark a return as shipped */ - post: operations["markReturnShipped"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/decide": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Perform an action on a return, such as APPROVE */ - post: operations["processReturnRequest"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/search": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Retrieve details on items being returned */ - get: operations["search"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/send_message": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Send a message to the buyer or seller regarding a return */ - post: operations["sendReturnMessage"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/send_shipping_label": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Send a shipping label to an email address */ - post: operations["sendReturnShippingLabel"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/file/submit": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Activate the files associated with a return */ - post: operations["submitReturnFile"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/update_tracking": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** @description Update shipment tracking information for an item being returned. */ - put: operations["updateShipmentTrackingInfo"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/draft/{draftId}/file/upload": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Upload the files relating to a return draft */ - post: operations["uploadReturnDraftFile"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/file/upload": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Upload the files relating to a return */ - post: operations["uploadReturnFile"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/return/{returnId}/void_shipping_label": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description Void a shipping label */ - post: operations["voidShippingLabel"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; -} -export type webhooks = Record; -export interface components { - schemas: never; - responses: never; - parameters: never; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export interface operations { - addShippingLabelInfo: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - cancelReturnRequest: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - checkReturnEligibility: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - checkShippingLabelEligibility: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - createReturnDraft: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - createReturnRequest: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - createReturnShippingLabel: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - deleteReturnDraftFile: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique eBay-assigned ID of the return draft. The draftId value is required to identify the return draft containing the file to be deleted. */ - draftId: string; - /** @description The unique eBay-assigned ID of the draft file. The fileId value is required to identify the the file to be deleted. */ - fileId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - escalateReturn: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getReturn: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getReturnDraft: { + "/return/{returnId}/files": { parameters: { query?: never; header?: never; - path: { - /** @description The unique eBay-assigned ID of the return draft. The draftId value is required to identify the return draft containing the file to be deleted. */ - draftId: string; - }; + path?: never; cookie?: never; }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; + /** @description Retrieve the files associated with a return */ + get: operations["getReturnFiles"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; }; - updateReturnDraft: { + "/return/preference": { parameters: { query?: never; header?: never; - path: { - /** @description The unique eBay-assigned ID of the return draft. The draftId value is required to identify the return draft containing the file to be deleted. */ - draftId: string; - }; + path?: never; cookie?: never; }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; + /** @description Retrieve seller's return preferences */ + get: operations["getReturnPreferences"]; + put?: never; + /** @description Set seller's return preferences */ + post: operations["setReturnPreferences"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; }; - getReturnDraftFiles: { + "/return/{returnId}/tracking": { parameters: { query?: never; header?: never; - path: { - /** @description The unique eBay-assigned ID of the return draft. The draftId value is required to identify the return draft containing the file to be deleted. */ - draftId: string; - }; + path?: never; cookie?: never; }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; + /** @description Retrieve shipment tracking activity for a return */ + get: operations["getShipmentTrackingInfo"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; }; - getReturnEstimate: { + "/return/{returnId}/issue_refund": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; + get?: never; + put?: never; + /** @description Issue a refund */ + post: operations["issueReturnRefund"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; }; - getReturnFiles: { + "/return/{returnId}/mark_as_received": { parameters: { query?: never; header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; + path?: never; cookie?: never; }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; + get?: never; + put?: never; + /** @description Mark a returned item as received */ + post: operations["markReturnReceived"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; }; - getReturnPreferences: { + "/return/{returnId}/decide": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; + get?: never; + put?: never; + /** @description Perform an action on a return, such as APPROVE */ + post: operations["processReturnRequest"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; }; - setReturnPreferences: { + "/return/search": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; + /** @description Retrieve details on items being returned */ + get: operations["search"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; }; - getReturnShippingLabel: { + "/return/{returnId}/send_message": { parameters: { query?: never; header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; + path?: never; cookie?: never; }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; + get?: never; + put?: never; + /** @description Send a message to the buyer or seller regarding a return */ + post: operations["sendReturnMessage"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; }; - getShipmentTrackingInfo: { + "/return/{returnId}/file/upload": { parameters: { query?: never; header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; + path?: never; cookie?: never; }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; + get?: never; + put?: never; + /** @description Upload the files relating to a return */ + post: operations["uploadReturnFile"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; }; - issueReturnRefund: { +} +export type webhooks = Record; +export interface components { + schemas: never; + responses: never; + parameters: never; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; +export interface operations { + addShippingLabelInfo: { parameters: { query?: never; header?: never; @@ -949,14 +259,11 @@ export interface operations { }; }; }; - markReturnReceived: { + createReturnRequest: { parameters: { query?: never; header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; + path?: never; cookie?: never; }; requestBody?: never; @@ -970,7 +277,7 @@ export interface operations { }; }; }; - markReturnRefundReceived: { + escalateReturn: { parameters: { query?: never; header?: never; @@ -991,7 +298,7 @@ export interface operations { }; }; }; - markReturnRefundSent: { + getReturn: { parameters: { query?: never; header?: never; @@ -1012,7 +319,7 @@ export interface operations { }; }; }; - markReturnShipped: { + getReturnFiles: { parameters: { query?: never; header?: never; @@ -1033,14 +340,11 @@ export interface operations { }; }; }; - processReturnRequest: { + getReturnPreferences: { parameters: { query?: never; header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; + path?: never; cookie?: never; }; requestBody?: never; @@ -1054,7 +358,7 @@ export interface operations { }; }; }; - search: { + setReturnPreferences: { parameters: { query?: never; header?: never; @@ -1072,7 +376,7 @@ export interface operations { }; }; }; - sendReturnMessage: { + getShipmentTrackingInfo: { parameters: { query?: never; header?: never; @@ -1093,7 +397,7 @@ export interface operations { }; }; }; - sendReturnShippingLabel: { + issueReturnRefund: { parameters: { query?: never; header?: never; @@ -1114,7 +418,7 @@ export interface operations { }; }; }; - submitReturnFile: { + markReturnReceived: { parameters: { query?: never; header?: never; @@ -1135,7 +439,7 @@ export interface operations { }; }; }; - updateShipmentTrackingInfo: { + processReturnRequest: { parameters: { query?: never; header?: never; @@ -1156,14 +460,11 @@ export interface operations { }; }; }; - uploadReturnDraftFile: { + search: { parameters: { query?: never; header?: never; - path: { - /** @description The unique eBay-assigned ID of the return. The returnId value is required to identify the return for which a return shipping label is being created. */ - returnId: string; - }; + path?: never; cookie?: never; }; requestBody?: never; @@ -1177,7 +478,7 @@ export interface operations { }; }; }; - uploadReturnFile: { + sendReturnMessage: { parameters: { query?: never; header?: never; @@ -1198,7 +499,7 @@ export interface operations { }; }; }; - voidShippingLabel: { + uploadReturnFile: { parameters: { query?: never; header?: never; diff --git a/src/types/restful/specs/sell_account_v1_oas3.ts b/src/types/restful/specs/sell_account_v1_oas3.ts index 26a2249d..17b562c4 100644 --- a/src/types/restful/specs/sell_account_v1_oas3.ts +++ b/src/types/restful/specs/sell_account_v1_oas3.ts @@ -11,10 +11,10 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the list of custom policies specified by the policy_types query parameter for the selected eBay marketplace.

Note: The following eBay marketplaces support Custom Policies:
  • Germany (EBAY_DE)
  • Canada (EBAY_CA)
  • Australia (EBAY_AU)
  • United States (EBAY_US)
  • France (EBAY_FR)


For details on header values, see HTTP request headers. */ + /** @description This method retrieves the list of custom policies defined for a seller's account. To limit the returned custom policies, specify the policy_types query parameter. */ get: operations["getCustomPolicies"]; put?: never; - /** @description This method creates a new custom policy in which a seller specifies their terms for complying with local governmental regulations.

Two Custom Policy types are supported:
  • Product Compliance (PRODUCT_COMPLIANCE)
  • Takeback (TAKE_BACK)
Each Custom Policy targets a policyType and eBay marketplace combination. Multiple policies may be created as follows:
  • Product Compliance: a maximum of 10 policies per eBay marketplace may be created
  • Takeback: a maximum of 3 policies per eBay marketplace may be created
A successful create policy call returns an HTTP status code of 201 Created with the system-generated policy ID included in the Location response header.

Product Compliance Policy

Product Compliance policies disclose product information as required for regulatory compliance.

Note: A maximum of 10 Product Compliance policies per eBay marketplace may be created.

Takeback Policy

Takeback policies describe the seller's legal obligation to take back a previously purchased item when the buyer purchases a new one.

Note: A maximum of 3 Takeback policies per eBay marketplace may be created. */ + /** @description This method creates a new custom policy that specifies the seller's terms for complying with local governmental regulations. Each Custom Policy targets a policyType. Multiple policies may be created as using the following custom policy types:
  • PRODUCT_COMPLIANCE: Product Compliance policies disclose product information as required for regulatory compliance.

    Note: A maximum of 60 Product Compliance policies per seller may be created.
  • TAKE_BACK: Takeback policies describe the seller's legal obligation to take back a previously purchased item when the buyer purchases a new one.

    Note: A maximum of 18 Takeback policies per seller may be created.
A successful create policy call returns an HTTP status code of 201 Created with the system-generated policy ID included in the Location response header. */ post: operations["createCustomPolicy"]; delete?: never; options?: never; @@ -29,9 +29,9 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the custom policy specified by the custom_policy_id path parameter for the selected eBay marketplace.

Note: The following eBay marketplaces support Custom Policies:
  • Germany (EBAY_DE)
  • Canada (EBAY_CA)
  • Australia (EBAY_AU)
  • United States (EBAY_US)
  • France (EBAY_FR)


For details on header values, see HTTP request headers. */ + /** @description This method retrieves the custom policy specified by the custom_policy_id path parameter. */ get: operations["getCustomPolicy"]; - /** @description This method updates an existing custom policy specified by the custom_policy_id path parameter for the selected marketplace. This method overwrites the policy's Name, Label, and Description fields. Therefore, the complete, current text of all three policy fields must be included in the request payload even when one or two of these fields will not actually be updated.

For example, the value for the Label field is to be updated, but the Name and Description values will remain unchanged. The existing Name and Description values, as they are defined in the current policy, must also be passed in.

A successful policy update call returns an HTTP status code of 204 No Content.

Note: The following eBay marketplaces support Custom Policies:
  • Germany (EBAY_DE)
  • Canada (EBAY_CA)
  • Australia (EBAY_AU)
  • United States (EBAY_US)
  • France (EBAY_FR)


For details on header values, see HTTP request headers. */ + /** @description This method updates an existing custom policy specified by the custom_policy_id path parameter. Since this method overwrites the policy's name, label, and description fields, always include the complete and current text of all three policy fields in the request payload, even if they are not being updated.

For example, the value for the label field is to be updated, but the name and description values will remain unchanged. The existing name and description values, as they are defined in the current policy, must also be passed in.

A successful policy update call returns an HTTP status code of 204 No Content. */ put: operations["updateCustomPolicy"]; post?: never; delete?: never; @@ -49,7 +49,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method creates a new fulfillment policy where the policy encapsulates seller's terms for fulfilling item purchases. Fulfillment policies include the shipment options that the seller offers to buyers.

Each policy targets a specific eBay marketplace and a category group type, and you can create multiple policies for each combination.

A successful request returns the getFulfillmentPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

Using the eBay standard envelope service (eSE)

The eBay standard envelope service (eSE) is a domestic envelope service with tracking through eBay. This service applies to specific Trading Cards categories (not all categories are supported), and to Coins & Paper Money, Postcards, and Stamps. See Using the eBay standard envelope (eSE) service.

*/ + /** @description This method creates a new fulfillment policy for an eBay marketplace where the policy encapsulates seller's terms for fulfilling item purchases. Fulfillment policies include the shipment options that the seller offers to buyers.

A successful request returns the getFulfillmentPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

*/ post: operations["createFulfillmentPolicy"]; delete?: never; options?: never; @@ -83,7 +83,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves all the fulfillment policies configured for the marketplace you specify using the marketplace_id query parameter.

Marketplaces and locales

Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + /** @description This method retrieves all the fulfillment policies configured for the marketplace you specify using the marketplace_id query parameter. */ get: operations["getFulfillmentPolicies"]; put?: never; post?: never; @@ -100,7 +100,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the details for a specific fulfillment policy. In the request, supply both the policy name and its associated marketplace_id as query parameters.

Marketplaces and locales

Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + /** @description This method retrieves the details for a specific fulfillment policy. In the request, supply both the policy name and its associated marketplace_id as query parameters. */ get: operations["getFulfillmentPolicyByName"]; put?: never; post?: never; @@ -117,10 +117,10 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves all the payment policies configured for the marketplace you specify using the marketplace_id query parameter.

Marketplaces and locales

Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + /** @description This method retrieves all the payment business policies configured for the marketplace you specify using the marketplace_id query parameter. */ get: operations["getPaymentPolicies"]; put?: never; - /** @description This method creates a new payment policy where the policy encapsulates seller's terms for order payments.

Each policy targets a specific eBay marketplace and category group, and you can create multiple policies for each combination.

A successful request returns the getPaymentPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

*/ + /** @description This method creates a new payment policy where the policy encapsulates seller's terms for order payments.

A successful request returns the getPaymentPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

*/ post: operations["createPaymentPolicy"]; delete?: never; options?: never; @@ -154,7 +154,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the details of a specific payment policy. Supply both the policy name and its associated marketplace_id in the request query parameters.

Marketplaces and locales

Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + /** @description This method retrieves the details of a specific payment policy. Supply both the policy name and its associated marketplace_id in the request query parameters. */ get: operations["getPaymentPolicyByName"]; put?: never; post?: never; @@ -171,7 +171,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description Note: This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.

This method returns whether or not the user is opted-in to the specified payments program. Sellers opt-in to payments programs by marketplace and you use the marketplace_id path parameter to specify the marketplace of the status flag you want returned. */ + /** @description Note: This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.
This method returns whether or not the user is opted-in to the specified payments program. Sellers opt-in to payments programs by marketplace and you use the marketplace_id path parameter to specify the marketplace of the status flag you want returned. */ get: operations["getPaymentsProgram"]; put?: never; post?: never; @@ -188,7 +188,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description Note: This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.

This method retrieves a seller's onboarding status for a payments program for a specified marketplace. The overall onboarding status of the seller and the status of each onboarding step is returned. */ + /** @description Note: This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.
This method retrieves a seller's onboarding status for a payments program for a specified marketplace. The overall onboarding status of the seller and the status of each onboarding step is returned. */ get: operations["getPaymentsProgramOnboarding"]; put?: never; post?: never; @@ -205,7 +205,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the seller's current set of privileges, including whether or not the seller's eBay registration has been completed, as well as the details of their site-wide sellingLimt (the amount and quantity they can sell on a given day). */ + /** @description This method retrieves the seller's current set of privileges, including whether or not the seller's eBay registration has been completed, as well as the details of their site-wide sellingLimit (the amount and quantity they can sell on a given day). */ get: operations["getPrivileges"]; put?: never; post?: never; @@ -241,7 +241,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method opts the seller in to an eBay seller program. Refer to the Account API overview for information about available eBay seller programs.

Note: It can take up to 24-hours for eBay to process your request to opt-in to a Seller Program. Use the getOptedInPrograms call to check the status of your request after the processing period has passed. */ + /** @description This method opts the seller in to an eBay seller program. Refer to the Account API overview for information about available eBay seller programs.

Note: It can take up to 24-hours for eBay to process your request to opt-in to a Seller Program. Use the getOptedInPrograms call to check the status of your request after the processing period has passed. */ post: operations["optInToProgram"]; delete?: never; options?: never; @@ -258,7 +258,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method opts the seller out of a seller program to which you have previously opted-in to. Get a list of the seller programs you have opted-in to using the getOptedInPrograms call. */ + /** @description This method opts the seller out of a seller program in which they are currently opted in to. A seller can retrieve a list of the seller programs they are opted-in to using the getOptedInPrograms method. */ post: operations["optOutOfProgram"]; delete?: never; options?: never; @@ -273,7 +273,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves a seller's shipping rate tables for the country specified in the country_code query parameter. If you call this method without specifying a country code, the call returns all of the seller's shipping rate tables.

The method's response includes a rateTableId for each table defined by the seller. This rateTableId value is used in add/revise item call or in create/update fulfillment business policy call to specify the shipping rate table to use for that policy's domestic or international shipping options.

This call currently supports getting rate tables related to the following marketplaces:
  • EBAY_AU
  • EBAY_CA
  • EBAY_DE
  • EBAY_ES
  • EBAY_FR
  • EBAY_GB
  • EBAY_IT
  • EBAY_US
Note: Rate tables created with the Trading API might not have been assigned a rateTableId at the time of their creation. This method can assign and return rateTableId values for rate tables with missing IDs if you make a request using the country_code where the seller has defined rate tables.

Sellers can define up to 40 shipping rate tables for their account, which lets them set up different rate tables for each of the marketplaces they sell into. Go to Shipping rate tables in My eBay to create and update rate tables. */ + /** @description This method retrieves a seller's shipping rate tables for the country specified in the country_code query parameter. If you call this method without specifying a country code, the call returns all of the seller's shipping rate tables.

The method's response includes a rateTableId for each table defined by the seller. This rateTableId value is used in add/revise item call or in create/update fulfillment business policy call to specify the shipping rate table to use for that policy's domestic or international shipping options.

This call currently supports getting rate tables related to the following marketplaces: United States, Canada, United Kingdom, Germany, Australia, France, Italy, and Spain. Note: Rate tables created with the Trading API might not have been assigned a rateTableId at the time of their creation. This method can assign and return rateTableId values for rate tables with missing IDs if you make a request using the country_code where the seller has defined rate tables.

Sellers can define up to 40 shipping rate tables for their account, which lets them set up different rate tables for each of the marketplaces they sell into. Go to Shipping rate tables in My eBay to create and update rate tables. */ get: operations["getRateTables"]; put?: never; post?: never; @@ -290,10 +290,10 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves all the return policies configured for the marketplace you specify using the marketplace_id query parameter.

Marketplaces and locales

Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + /** @description This method retrieves all the return policies configured for the marketplace you specify using the marketplace_id query parameter. */ get: operations["getReturnPolicies"]; put?: never; - /** @description This method creates a new return policy where the policy encapsulates seller's terms for returning items.

Each policy targets a specific marketplace, and you can create multiple policies for each marketplace. Return policies are not applicable to motor-vehicle listings.

A successful request returns the getReturnPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

*/ + /** @description This method creates a new return policy where the policy encapsulates seller's terms for returning items.

Each policy targets a specific marketplace, and you can create multiple policies for each marketplace. Return policies are not applicable to motor-vehicle listings.

A successful request returns the getReturnPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.

Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.

*/ post: operations["createReturnPolicy"]; delete?: never; options?: never; @@ -327,7 +327,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the details of a specific return policy. Supply both the policy name and its associated marketplace_id in the request query parameters.

Marketplaces and locales

Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + /** @description This method retrieves the details of a specific return policy. Supply both the policy name and its associated marketplace_id in the request query parameters. */ get: operations["getReturnPolicyByName"]; put?: never; post?: never; @@ -337,6 +337,23 @@ export interface paths { patch?: never; trace?: never; }; + "/bulk_create_or_replace_sales_tax": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description This method creates or updates multiple sales-tax table entries.

Sales-tax tables can be set up for countries that support different tax jurisdictions.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.
Each sales-tax table entry comprises the following parameters:
  • countryCode
  • jurisdictionId
  • salesTaxPercentage
  • shippingAndHandlingTaxed

Valid jurisdiction IDs are retrieved using getSalesTaxJurisdictions in the Metadata API.

For details about using this call, refer to Establishing sales-tax tables.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

  • American Samoa (AS)
  • Guam (GU)
  • Northern Mariana Islands (MP)
  • Palau (PW)
  • US Virgin Islands (VI)
For additional information, refer to Taxes and import charges.

*/ + post: operations["bulkCreateOrReplaceSalesTax"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/sales_tax/{countryCode}/{jurisdictionId}": { parameters: { query?: never; @@ -344,12 +361,12 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This call gets the current sales tax table entry for a specific tax jurisdiction. Specify the jurisdiction to retrieve using the countryCode and jurisdictionId path parameters. All four response fields will be returned if a sales tax entry exists for the tax jurisdiction. Otherwise, the response will be returned as empty.

Important! In most US states and territories, eBay now 'collects and remits' sales tax, so sellers can no longer configure sales tax rates for these states/territories. */ + /** @description This call retrieves the current sales-tax table entry for a specific tax jurisdiction. Specify the jurisdiction to retrieve using the countryCode and jurisdictionId path parameters. All four response fields will be returned if a sales-tax entry exists for the tax jurisdiction. Otherwise, the response will be returned as empty.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

  • American Samoa (AS)
  • Guam (GU)
  • Northern Mariana Islands (MP)
  • Palau (PW)
  • US Virgin Islands (VI)
For additional information, refer to Taxes and import charges.

*/ get: operations["getSalesTax"]; - /** @description This method creates or updates a sales tax table entry for a jurisdiction. Specify the tax table entry you want to configure using the two path parameters: countryCode and jurisdictionId.

A tax table entry for a jurisdiction is comprised of two fields: one for the jurisdiction's sales-tax rate and another that's a boolean value indicating whether or not shipping and handling are taxed in the jurisdiction.

You can set up tax tables for countries that support different tax jurisdictions. Currently, only Canada, India, and the US support separate tax jurisdictions. If you sell into any of these countries, you can set up tax tables for any of the country's jurisdictions. Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API.

For details on using this call, see Establishing sales-tax tables.

Important! In the US, eBay now 'collects and remits' sales tax for every US state except for Missouri (and a few US territories), so sellers can no longer configure sales tax rates for any states except Missouri. With eBay 'collect and remit', eBay calculates the sales tax, collects the sales tax from the buyer, and remits the sales tax to the tax authorities at the buyer's location. */ + /** @description This method creates or updates a sales-tax table entry for a jurisdiction. Specify the tax table entry you want to configure using the two path parameters: countryCode and jurisdictionId.

A tax table entry for a jurisdiction is comprised of two fields: one for the jurisdiction's sales-tax rate and another that's a boolean value indicating whether or not shipping and handling are taxed in the jurisdiction.

You can set up sales-tax tables for countries that support different tax jurisdictions.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.
Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API.

For details about using this call, refer to Establishing sales-tax tables.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

  • American Samoa (AS)
  • Guam (GU)
  • Northern Mariana Islands (MP)
  • Palau (PW)
  • US Virgin Islands (VI)
For additional information, refer to Taxes and import charges.

*/ put: operations["createOrReplaceSalesTax"]; post?: never; - /** @description This call deletes a sales tax table entry for a jurisdiction. Specify the jurisdiction to delete using the countryCode and jurisdictionId path parameters. */ + /** @description This call deletes a sales-tax table entry for a jurisdiction. Specify the jurisdiction to delete using the countryCode and jurisdictionId path parameters.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces. */ delete: operations["deleteSalesTax"]; options?: never; head?: never; @@ -363,7 +380,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description Use this call to retrieve all sales tax table entries that the seller has defined for a specific country. All four response fields will be returned for each tax jurisdiction that matches the search criteria.

Important! In most US states and territories, eBay now 'collects and remits' sales tax, so sellers can no longer configure sales tax rates for these states/territories. */ + /** @description Use this call to retrieve all sales tax table entries that the seller has defined for a specific country. All four response fields will be returned for each tax jurisdiction that matches the search criteria. If no sales tax rates are defined for the specified, a 204 No Content status code is returned with no response payload.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

  • American Samoa (AS)
  • Guam (GU)
  • Northern Mariana Islands (MP)
  • Palau (PW)
  • US Virgin Islands (VI)
For additional information, refer to Taxes and import charges.

*/ get: operations["getSalesTaxes"]; put?: never; post?: never; @@ -397,7 +414,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description Note:This method was originally created to see which onboarding requirements were still pending for sellers being onboarded for eBay managed payments, but now that all seller accounts are onboarded globally, this method should now just returne an empty payload with a 204 No Content HTTP status code. */ + /** @description Note: This method was originally created to see which onboarding requirements were still pending for sellers being onboarded for eBay managed payments, but now that all seller accounts are onboarded globally, this method should now just return an empty payload with a 204 No Content HTTP status code. */ get: operations["getKYC"]; put?: never; post?: never; @@ -424,186 +441,69 @@ export interface paths { patch?: never; trace?: never; }; - "/location/{merchantLocationKey}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This call retrieves all defined details of the inventory location that is specified by the merchantLocationKey path parameter.

The authorization HTTP header is the only required request header for this call.

A successful call will return an HTTP status value of 200 OK.

*/ - get: operations["getInventoryLocation"]; - put?: never; - /** @description

Use this call to create a new inventory location. In order to create and publish an offer (and create an eBay listing), a seller must have at least one inventory location, as every offer must be associated with a location.

Upon first creating an inventory location, only a seller-defined location identifier and a physical location is required, and once set, these values can not be changed. The unique identifier value (merchantLocationKey) is passed in at the end of the call URI. This merchantLocationKey value will be used in other Inventory Location calls to identify the inventory location to perform an action against.

At this time, location types are either warehouse or store. Warehouse locations are used for traditional shipping, and store locations are generally used by US merchants selling products through the In-Store Pickup program, or used by UK, Australian, and German merchants selling products through the Click and Collect program. A full address is required for store inventory locations. However, for warehouse inventory locations, a full street address is not needed, but the city, state/province, and country of the location must be provided.

Note that all inventory locations are "enabled" by default when they are created, and you must specifically disable them (by passing in a value of DISABLED in the merchantLocationStatus field) if you want them to be set to the disabled state. The seller's inventory cannot be loaded to inventory locations in the disabled state.

In addition to the authorization header, which is required for all eBay REST API calls, the following table includes another request header that is mandatory for the createInventoryLocation call, and two other request headers that are optional:


Header Description Required? Applicable Values
Accept Describes the response encoding, as required by the caller. Currently, the interfaces require payloads formatted in JSON, and JSON is the default. No application/json
Content-Language Use this header to control the language that is used for any returned errors or warnings in the call response. No en-US
Content-Type The MIME type of the body of the request. Must be JSON. Yes application/json


Unless one or more errors and/or warnings occur with the call, there is no response payload for this call. A successful call will return an HTTP status value of 204 No Content.

*/ - post: operations["createInventoryLocation"]; - /** @description

This call deletes the inventory location that is specified in the merchantLocationKey path parameter. Note that deleting a location will not affect any active eBay listings associated with the deleted location, but the seller will not be able modify the offers associated with the inventory location once it is deleted.

The authorization HTTP header is the only required request header for this call.

Unless one or more errors and/or warnings occur with the call, there is no response payload for this call. A successful call will return an HTTP status value of 200 OK.

*/ - delete: operations["deleteInventoryLocation"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/location/{merchantLocationKey}/disable": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description

This call disables the inventory location that is specified in the merchantLocationKey path parameter. Sellers can not load/modify inventory to disabled inventory locations. Note that disabling an inventory location will not affect any active eBay listings associated with the disabled location, but the seller will not be able modify the offers associated with a disabled inventory location.

The authorization HTTP header is the only required request header for this call.

A successful call will return an HTTP status value of 200 OK.

*/ - post: operations["disableInventoryLocation"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/location/{merchantLocationKey}/enable": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description

This call enables a disabled inventory location that is specified in the merchantLocationKey path parameter. Once a disabled inventory location is enabled, sellers can start loading/modifying inventory to that inventory location.

The authorization HTTP header is the only required request header for this call.

A successful call will return an HTTP status value of 200 OK.

*/ - post: operations["enableInventoryLocation"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/location": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This call retrieves all defined details for every inventory location associated with the seller's account. There are no required parameters for this call and no request payload. However, there are two optional query parameters, limit and offset. The limit query parameter sets the maximum number of inventory locations returned on one page of data, and the offset query parameter specifies the page of data to return. These query parameters are discussed more in the URI parameters table below.

The authorization HTTP header is the only required request header for this call.

A successful call will return an HTTP status value of 200 OK.

*/ - get: operations["getInventoryLocations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/location/{merchantLocationKey}/update_location_details": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description

Use this call to update non-physical location details for an existing inventory location. Specify the inventory location you want to update using the merchantLocationKey path parameter.

You can update the following text-based fields: name, phone, locationWebUrl, locationInstructions and locationAdditionalInformation. Whatever text is passed in for these fields in an updateInventoryLocation call will replace the current text strings defined for these fields. For store inventory locations, the operating hours and/or the special hours can also be updated.

The merchant location key, the physical location of the store, and its geo-location coordinates can not be updated with an updateInventoryLocation call

In addition to the authorization header, which is required for all eBay REST API calls, the following table includes another request header that is mandatory for the updateInventoryLocation call, and two other request headers that are optional:


Header Description Required? Applicable Values
Accept Describes the response encoding, as required by the caller. Currently, the interfaces require payloads formatted in JSON, and JSON is the default. No application/json
Content-Language Use this header to control the language that is used for any returned errors or warnings in the call response. No en-US
Content-Type The MIME type of the body of the request. Must be JSON. Yes application/json

Unless one or more errors and/or warnings occurs with the call, there is no response payload for this call. A successful call will return an HTTP status value of 204 No Content.

*/ - post: operations["updateInventoryLocation"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/country/{countryCode}/sales_tax_jurisdiction": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This method retrieves all the sales tax jurisdictions for the country that you specify in the countryCode path parameter. Countries with valid sales tax jurisdictions are Canada and the US.

The response from this call tells you the jurisdictions for which a seller can configure tax tables. Although setting up tax tables is optional, you can use the createOrReplaceSalesTax in the Account API call to configure the tax tables for the jurisdictions you sell to. */ - get: operations["getSalesTaxJurisdictions"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; } export type webhooks = Record; export interface components { schemas: { - /** @description This type is used to define the physical address of an inventory location. */ - Address: { - /** @description The first line of a street address. This field is required for store inventory locations that will be holding In-Store Pickup inventory. A street address is not required if the inventory location is not holding In-Store Pickup Inventory. This field will be returned if defined for an inventory location.

Max length: 128 */ - addressLine1?: string; - /** @description The second line of a street address. This field can be used for additional address information, such as a suite or apartment number. A street address is not required if the inventory location is not holding In-Store Pickup Inventory. This field will be returned if defined for an inventory location.

Max length: 128 */ - addressLine2?: string; - /** @description The city in which the inventory location resides. This field is required for store inventory locations that will be holding In-Store Pickup inventory. For warehouse locations, this field is technically optional, as a postalCode can be used instead of city/stateOrProvince pair, and then the city is just derived from this postal/zip code. This field is returned if defined for an inventory location.

Max length: 128 */ - city?: string; - /** @description The country in which the address resides, represented as two-letter ISO 3166 country code. For example, US represents the United States, and DE represents Germany.

Max length: 2 For implementation help, refer to eBay API documentation */ - country?: string; - /** @description The county in which the address resides. This field is returned if defined for an inventory location. */ - county?: string; - /** @description The postal/zip code of the address. eBay uses postal codes to surface In-Store Pickup items within the vicinity of a buyer's location, and it also user postal codes (origin and destination) to estimate shipping costs when the seller uses calculated shipping. A city/stateOrProvince pair can be used instead of a postalCode value, and then the postal code is just derived from the city and state/province. This field is returned if defined for an inventory location.

Max length: 16 */ - postalCode?: string; - /** @description The state/province in which the inventory location resides. This field is required for store inventory locations that will be holding In-Store Pickup inventory. For warehouse locations, this field is technically optional, as a postalCode can be used instead of city/stateOrProvince pair, and then the state or province is just derived from this postal/zip code.

Max length: 128 */ - stateOrProvince?: string; - }; /** @description A complex type that describes the value of a monetary amount as represented by a global currency. When passing in an amount in a request payload, both currency and value fields are required, and both fields are also always returned for an amount in a response field. */ Amount: { - /** @description The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.

Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation */ + /** @description The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.

Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation */ currency?: string; /** @description The monetary amount in the specified currency. */ value?: string; }; - /** @description The category type discerns whether the policy applies to motor vehicle listings, or to any other items except motor vehicle listings.

Each business policy can be associated with either or both categories ('MOTORS_VEHICLES' and 'ALL_EXCLUDING_MOTORS_VEHICLES'); however, return business policies are not applicable for motor vehicle listings. */ + BulkSalesTaxInput: { + /** @description The array of sales-tax table entries to be created or updated. */ + salesTaxInputList?: components["schemas"]["SalesTaxInput"][]; + }; + /** @description The category type discerns whether the policy applies to motor vehicle listings, or to any other items except motor vehicle listings.

Each business policy can be associated with either or both categories ('MOTORS_VEHICLES' and 'ALL_EXCLUDING_MOTORS_VEHICLES'); however, return business policies are not applicable for motor vehicle listings. */ CategoryType: { /** @description Note: This field has been deprecated and is no longer used.
  • Do not include this field in any create or update method.
  • This field may be returned within the payload of a get method, but it can be ignored.
*/ default?: boolean; - /** @description The category type to which the policy applies (motor vehicles or non-motor vehicles).

The MOTORS_VEHICLES category type is not valid for return policies. eBay flows do not support the return of motor vehicles. For implementation help, refer to eBay API documentation */ + /** @description The category type to which the policy applies (motor vehicles or non-motor vehicles).

Note: The MOTORS_VEHICLES category type is not valid for return policies. eBay flows do not support the return of motor vehicles. For implementation help, refer to eBay API documentation */ name?: string; }; /** @description The response payload for requests that return a list of custom policies. */ CompactCustomPolicyResponse: { - /** @description The unique custom policy identifier for the policy being returned.

Note: This value is automatically assigned by the system when the policy is created. */ + /** @description The unique custom policy identifier for the policy being returned.

Note: This value is automatically assigned by the system when the policy is created. */ customPolicyId?: string; - /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.

Max length: 65 */ + /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to the seller's policy information.

Max length: 65 */ label?: string; - /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.
Note: This field is visible only to the seller.

Max length: 65 */ + /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller and policy type.

Note: This field is visible only to the seller.
Max length: 65 */ name?: string; - /** @description Specifies the type of Custom Policy being returned.

Two Custom Policy types are supported:
  • Product Compliance (PRODUCT_COMPLIANCE)
  • Takeback (TAKE_BACK)
For implementation help, refer to eBay API documentation */ + /** @description Specifies the type of Custom Policy being returned. For implementation help, refer to eBay API documentation */ policyType?: string; }; /** @description This container defines a seller's custom policy identified by policy ID for the selected eBay marketplace. A successful call returns the requested policy information. */ CustomPolicy: { - /** @description The unique custom policy identifier for a policy.

Note: This value is automatically assigned by the system when the policy is created. */ + /** @description The unique custom policy identifier for a policy. */ customPolicyId?: string; - /** @description Details of the seller's specific policy and terms associated with the policy. Buyers access this information from the View Item page for items to which the policy has been applied.

Max length: 15,000 */ + /** @description Contains the seller's policy and policy terms. Buyers access this information from the View Item page for items to which the policy has been applied.

Max length: 15,000 */ description?: string; - /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.

Max length: 65 */ + /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to the seller's policy information.

Max length: 65 */ label?: string; - /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.
Note: This field is visible only to the seller.

Max length: 65 */ + /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller and policy type.

Note: This field is visible only to the seller.
Max length: 65 */ name?: string; - /** @description Specifies the type of Custom Policy.

Two Custom Policy types are supported:
  • Product Compliance (PRODUCT_COMPLIANCE)
  • Takeback (TAKE_BACK)
For implementation help, refer to eBay API documentation */ + /** @description Specifies the type of Custom Policy being returned. For implementation help, refer to eBay API documentation */ policyType?: string; }; /** @description This type is used by the request payload of the createCustomPolicy method to define a new custom policy for a specific marketplace. */ CustomPolicyCreateRequest: { - /** @description Details of the seller's specific policy and terms for this policy.

Max length: 15,000 */ + /** @description Contains the seller's policy and policy terms.

Max length: 15,000 */ description?: string; - /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.

Max length: 65 */ + /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to the seller's policy information.

Max length: 65 */ label?: string; - /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.
Note: This field is visible only to the seller.

Max length: 65 */ + /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller and policy type.

Note: This field is visible only to the seller.
Max length: 65 */ name?: string; - /** @description Specifies the type of custom policy being created.

Two Custom Policy types are supported:
  • Product Compliance (PRODUCT_COMPLIANCE)
  • Takeback (TAKE_BACK)
For implementation help, refer to eBay API documentation */ + /** @description Specifies the type of custom policy being created.

Two Custom Policy types are supported:
  • Product Compliance (PRODUCT_COMPLIANCE)
  • Takeback (TAKE_BACK)
For implementation help, refer to eBay API documentation */ policyType?: string; }; CustomPolicyRequest: { - /** @description Details of the seller's specific policy and terms for this policy.

Max length: 15,000 */ + /** @description Contains the seller specified policy and policy terms.

Note: Always supply this field. If this field is not specified, any previous value is removed. Call the getCustomPolicy method to return the present field value for this policy.
Max length: 15,000 */ description?: string; - /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.

Max length: 65 */ + /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to seller specified policy information.

Note: Always supply this field. If this field is not specified, any previous value is removed. Call the getCustomPolicy method to return the present field value for this policy.
Max length: 65 */ label?: string; - /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.
Note: This field is visible only to the seller.

Max length: 65 */ + /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller and policy type.

Note: This field is visible only to the seller.

Note: Always supply this field. If this field is not specified, any previous value is removed. Call the getCustomPolicy method to return the present field value for this policy.
Max length: 65 */ name?: string; }; CustomPolicyResponse: { @@ -633,9 +533,9 @@ export interface components { }; /** @description This type is used to specify/indicate that an initial deposit is required for a motor vehicle listing. */ Deposit: { - /** @description This value indicates the initial deposit amount required from the buyer in order to purchase a motor vehicle. This value can be as high as $2,000.00 if immediate payment is not required, and up to $500.00 if immediate payment is required.

Max: 2000.0 */ + /** @description This value indicates the initial deposit amount required from the buyer in order to purchase a motor vehicle. This value can be as high as $2,000.00 if immediate payment is not required, and up to $500.00 if immediate payment is required.

Max: 2000.0 */ amount?: components["schemas"]["Amount"]; - /** @description This value indicates the number of hours that the buyer has (after they commit to buy) to pay the initial deposit on a motor vehicle. Valid dueIn times are 24, 48, and 72 hours. HOUR is set as the unit value, and 24, 48 or 72 are set in the value field.

Note: The dueIn value is overridden if the seller has set the motor vehicle listing to require immediate payment. If the listing requires immediate payment, the buyer must pay the deposit immediately in order to be eligible to purchase the motor vehicle.

Min=24 (hours)Max=72 (hours), Default=48 (hours) */ + /** @description This value indicates the number of hours that the buyer has (after they commit to buy) to pay the initial deposit on a motor vehicle. Valid dueIn times are 24, 48, and 72 hours. HOUR is set as the unit value, and 24, 48 or 72 are set in the value field.

Note: The dueIn value is overridden if the seller has set the motor vehicle listing to require immediate payment. If the listing requires immediate payment, the buyer must pay the deposit immediately in order to be eligible to purchase the motor vehicle.

Min=24 (hours)Max=72 (hours), Default=48 (hours) */ dueIn?: components["schemas"]["TimeDuration"]; /** @description This array is no longer applicable and should not be used since eBay now manages the electronic payment options available to buyers to pay the deposit. */ paymentMethods?: components["schemas"]["PaymentMethod"][]; @@ -675,13 +575,13 @@ export interface components { FulfillmentPolicy: { /** @description This container indicates whether the fulfillment policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */ categoryTypes?: components["schemas"]["CategoryType"][]; - /** @description A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250 */ + /** @description A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250 */ description?: string; /** @description If returned as true, the seller offers freight shipping. Freight shipping can be used for large items over 150 lbs. */ freightShipping?: boolean; /** @description A unique eBay-assigned ID for the fulfillment policy. This ID is generated when the policy is created. */ fulfillmentPolicyId?: string; - /** @description If returned as true, eBay's Global Shipping Program will be used by the seller to ship items to international locations.

Note: On the US marketplace, the Global Shipping Program is scheduled to be replaced by a new intermediated international shipping program called eBay International Shipping. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023.

eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available.

A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.
*/ + /** @description Note: This field is only applicable for the eBay United Kingdom marketplace (EBAY_GB).
If returned as true, eBay's Global Shipping Program will be used by the seller to ship items to international locations.

eBay International Shipping is an account level setting; no field needs to be set in a Fulfillment business policy to enable eBay International Shipping. If a US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available. A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy. */ globalShipping?: boolean; /** @description Specifies the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.

If only local pickup or freight shipping is available for the item, this container may not get returned.

*/ handlingTime?: components["schemas"]["TimeDuration"]; @@ -689,11 +589,11 @@ export interface components { localPickup?: boolean; /** @description The ID of the eBay marketplace to which this fulfillment policy applies. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ + /** @description A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ name?: string; - /** @description If returned as true, the seller offers the "Click and Collect" option.

Currently, "Click and Collect" is available only to large retail merchants the eBay AU and UK marketplaces. */ + /** @description If returned as true, the seller offers the "Click and Collect" option.

Currently, "Click and Collect" is available only to large retail merchants the eBay AU, UK, DE, FR, and IT marketplaces. */ pickupDropOff?: boolean; - /** @description This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations).

The optionType field indicates whether the ShippingOption object applies to domestic or international shipping, and the costType field indicates whether flat-rate shipping or calculated shipping will be used.

A separate ShippingServices object is used to specify cost and other details for every available domestic and international shipping service option.

*/ + /** @description This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations).

The optionType field indicates whether the ShippingOption object applies to domestic or international shipping, and the costType field indicates whether flat-rate shipping or calculated shipping will be used.

A separate ShippingServices object is used to specify cost and other details for every available domestic and international shipping service option.

*/ shippingOptions?: components["schemas"]["ShippingOption"][]; /** @description This container consists of the regionIncluded and regionExcluded containers, which define the geographical regions/countries/states or provinces/domestic regions where the seller does and doesn't ship to with this fulfillment policy. */ shipToLocations?: components["schemas"]["RegionSet"]; @@ -702,28 +602,28 @@ export interface components { FulfillmentPolicyRequest: { /** @description This container is used to specify whether the fulfillment business policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */ categoryTypes?: components["schemas"]["CategoryType"][]; - /** @description A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ + /** @description A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ description?: string; - /** @description This field is included and set to true if freight shipping is available for the item. Freight shipping can be used for large items over 150 lbs.

Default: false */ + /** @description This field is included and set to true if freight shipping is available for the item. Freight shipping can be used for large items over 150 lbs.

Default: false */ freightShipping?: boolean; - /** @description This field is included and set to true if the seller wants to use the Global Shipping Program for international shipments. See the Global Shipping Program help topic for more details and requirements on the Global Shipping Program.

It is possible for a seller to use a combination of the Global Shipping Program and other international shipping services.

If this value is set to false or if the field is omitted, the seller is responsible for manually specifying individual international shipping services (if the seller ships internationally)., as described in Setting up worldwide shipping.

Sellers can opt in or out of the Global Shipping Program through the Shipping preferences in My eBay.

Note: On the US marketplace, the Global Shipping Program is scheduled to be replaced by a new intermediated international shipping program called eBay International Shipping. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023.

eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available.

A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.

Default: false

*/ + /** @description Note: This field is only applicable for the eBay United Kingdom marketplace (EBAY_GB).
This field is included and set to true if the seller wants to use the Global Shipping Program for international shipments. See the Global Shipping Program help topic for more details and requirements on the Global Shipping Program.

A seller can use a combination of the Global Shipping Program and other international shipping services.

If set to false or if the field is omitted, the seller has to manually specifying individual international shipping services (if the seller ships internationally), as described in Setting up worldwide shipping.

Sellers opt in or out of the Global Shipping Program through the Shipping preferences in My eBay.

eBay International Shipping is an account level setting; no field needs to be set in a Fulfillment business policy to enable eBay International Shipping. If a US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available. A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.

Default: false

*/ globalShipping?: boolean; - /** @description This container is used to specify the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.

Valid values can vary by site and by category. To obtain the supported values for a site, call GeteBayDetails in the Trading API with DetailName set to DispatchTimeMaxDetails, then inspect the DispatchTimeMaxDetails container in the response for the time values supported by the site (typical handling times are 0, 1, 2, 3, 4, 5, 10, 15, and 20, but these can vary by site and may change over time.)

This field is conditionally required when the seller is offering one or more domestic or international shipping options, but it is not applicable when the item is only available through local pickup ("localPickup": "true"), or if it will be shipped through a freight shipping service ("freightShipping": "true").

Note: Top-Rated sellers must offer same-day or one-day handling for a listing in order for that listing to receive a Top Rated Plus seal on the View Item or Search Results pages. To offer zero-day or one-day handling, set field to '0' or '1', respectively. */ + /** @description This container is used to specify the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.

Valid values can vary by site and by category. To obtain the supported values for a site, call GeteBayDetails in the Trading API with DetailName set to DispatchTimeMaxDetails, then inspect the DispatchTimeMaxDetails container in the response for the time values supported by the site (typical handling times are 0, 1, 2, 3, 4, 5, 10, 15, and 20, but these can vary by site and may change over time.)

This field is conditionally required when the seller is offering one or more domestic or international shipping options, but it is not applicable when the item is only available through local pickup ("localPickup": "true"), or if it will be shipped through a freight shipping service ("freightShipping": "true").

Note: Top-Rated sellers must offer same-day or one-day handling for a listing in order for that listing to receive a Top Rated Plus seal on the View Item or Search Results pages. To offer zero-day or one-day handling, set field to '0' or '1', respectively. */ handlingTime?: components["schemas"]["TimeDuration"]; - /** @description This field should be included and set to true if local pickup is one of the fulfillment options available to the buyer. It is possible for the seller to make local pickup and some shipping service options available to the buyer.

With local pickup, the buyer and seller make arrangements for pickup time and location.

Default: false */ + /** @description This field should be included and set to true if local pickup is one of the fulfillment options available to the buyer. It is possible for the seller to make local pickup and some shipping service options available to the buyer.

With local pickup, the buyer and seller make arrangements for pickup time and location.

Default: false */ localPickup?: boolean; /** @description The ID of the eBay marketplace to which this fulfillment policy applies. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ + /** @description A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ name?: string; - /** @description This field should be included and set to true if the seller offers the "Click and Collect" feature for an item.

To enable "Click and Collect" on a listing, a seller must be eligible for Click and Collect. Currently, Click and Collect is available to only large retail merchants selling in the eBay AU and UK marketplaces.

In addition to setting this field to true, the merchant must also do the following to enable the "Click and Collect" option on a listing:

  • Have inventory for the product at one or more physical stores tied to the merchant's account.

    Sellers can use the createInventoryLocaion method in the Inventory API to associate physical stores to their account and they can then can add inventory to specific store locations.

  • Set an immediate payment requirement on the item. The immediate payment feature requires the seller to:
    • Set the immediatePay flag in the payment policy to 'true'.
    • Have a valid store location with a complete street address.

When a merchant successfully lists an item with Click and Collect, prospective buyers within a reasonable distance from one of the merchant's stores (that has stock available) will see the "Available for Click and Collect" option on the listing, along with information on the closest store that has the item.

Default: false */ + /** @description This field should be included and set to true if the seller offers the "Click and Collect" feature for an item.

To enable "Click and Collect" on a listing, a seller must be eligible for Click and Collect. Currently, Click and Collect is available to only large retail merchants selling in the eBay AU, UK, DE, FR, and IT marketplaces.

In addition to setting this field to true, the merchant must also do the following to enable the "Click and Collect" option on a listing:

  • Have inventory for the product at one or more physical stores tied to the merchant's account.

    Sellers can use the createInventoryLocation method in the Inventory API to associate physical stores to their account and they can then add inventory to specific store locations.

  • Set an immediate payment requirement on the item. The immediate payment feature requires the seller to:
    • Set the immediatePay flag in the payment policy to 'true'.
    • Have a valid store location with a complete street address.

When a merchant successfully lists an item with Click and Collect, prospective buyers within a reasonable distance from one of the merchant's stores (that has stock available) will see the "Available for Click and Collect" option on the listing, along with information on the closest store that has the item.

Default: false */ pickupDropOff?: boolean; - /** @description This array is used to provide detailed information on the domestic and international shipping options available for the policy.

A separate ShippingOption object is required for domestic shipping service options and for international shipping service options (if the seller ships to international locations).
  • The optionType field is used to indicate whether the ShippingOption object applies to domestic or international shipping, and the costType field is used to indicate whether flat-rate shipping or calculated shipping will be used.
  • The rateTableId field can be used to associate a defined shipping rate table to the policy, and the packageHandlingCost container can be used to set a handling charge for the policy.

A separate ShippingServices object will be used to specify cost and other details for every available domestic and international shipping service option.

*/ + /** @description This array is used to provide detailed information on the domestic and international shipping options available for the policy.

A separate ShippingOption object is required for domestic shipping service options and for international shipping service options (if the seller ships to international locations).
  • The optionType field is used to indicate whether the ShippingOption object applies to domestic or international shipping, and the costType field is used to indicate whether flat-rate shipping or calculated shipping will be used.
  • The rateTableId field can be used to associate a defined shipping rate table to the policy, and the packageHandlingCost container can be used to set a handling charge for the policy.

A separate ShippingServices object will be used to specify cost and other details for every available domestic and international shipping service option.

*/ shippingOptions?: components["schemas"]["ShippingOption"][]; - /** @description This container consists of the regionIncluded and regionExcluded arrays, which are used to define the geographical regions/countries/states or provinces/domestic regions that a seller does and does not ship to for the associated fulfillment policy. Note that this container can be considered the master list of where the seller ships and does not ship, but there is also a shipToLocations container that can be set at the shipping service option level.

To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call GeteBayDetails with DetailName value set to ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in both the regionIncluded.regionName and in the regionExcluded.regionName fields.

For valid geographical region names, look for the ExcludeShippingLocationDetails containers in the GeteBayDetails response where the Region value is Worldwide, and the valid values will be shown in the corresponding Location fields.

For valid two-digit country codes, look for ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is one of the defined geographical regions, and the valid values will be shown in the corresponding Location fields. Alternatively, you can find the two-digit country code values in the CountryCodeEnum type definition. For valid domestic region values, look for ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is either Domestic Location or Additional Locations, and the valid values will be shown in the corresponding Location fields.

The STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post. */ + /** @description This container consists of the regionIncluded and regionExcluded arrays, which are used to define the geographical regions/countries/states or provinces/domestic regions that a seller does and does not ship to for the associated fulfillment policy. Note that this container can be considered the master list of where the seller ships and does not ship, but there is also a shipToLocations container that can be set at the shipping service option level.

Note: Any shipping exclusions specified through this container can be overridden by the eBay International Shipping exclusions toggle located under Shipping Preferences in My eBay. For more information on eBay International Shipping, see eBay International Shipping program.
To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call GeteBayDetails with DetailName value set to ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in both the regionIncluded.regionName and in the regionExcluded.regionName fields.

For valid geographical region names, look for the ExcludeShippingLocationDetails containers in the GeteBayDetails response where the Region value is Worldwide, and the valid values will be shown in the corresponding Location fields.

For valid two-digit country codes, look for ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is one of the defined geographical regions, and the valid values will be shown in the corresponding Location fields. Alternatively, you can find the two-digit country code values in the CountryCodeEnum type definition. For valid domestic region values, look for ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is either Domestic Location or Additional Locations, and the valid values will be shown in the corresponding Location fields.

The STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post. */ shipToLocations?: components["schemas"]["RegionSet"]; }; - /** @description The response payload for the getFulfillmentPolicies method.

Note: Pagination has not yet been enabled for getFulfillmentPolicies, so all of the pagination-related fields are for future use. */ + /** @description The response payload for the getFulfillmentPolicies method.

Note: Pagination has not yet been enabled for getFulfillmentPolicies, so all of the pagination-related fields are for future use. */ FulfillmentPolicyResponse: { /** @description A list of all of the seller's fulfillment policies defined for the specified marketplace. This array will be returned as empty if no fulfillment policies are defined for the specified marketplace. */ fulfillmentPolicies?: components["schemas"]["FulfillmentPolicy"][]; @@ -745,100 +645,21 @@ export interface components { prev?: string; /** * Format: int32 - * @description The total number of fulfillment policies retrieved in the result set.

If no fulfillment policies are defined for the specified marketplace, this field is returned with a value of 0. + * @description The total number of fulfillment policies retrieved in the result set.

If no fulfillment policies are defined for the specified marketplace, this field is returned with a value of 0. */ total?: number; }; - /** @description This type is used to express the Global Positioning System (GPS) latitude and longitude coordinates of an inventory location. */ - GeoCoordinates: { - /** @description The latitude (North-South) component of the geographic coordinate. This field is required if a geoCoordinates container is used.

This field is returned if geographical coordinates are set for the inventory location. */ - latitude?: number; - /** @description The longitude (East-West) component of the geographic coordinate. This field is required if a geoCoordinates container is used.

This field is returned if geographical coordinates are set for the inventory location. */ - longitude?: number; - }; /** @description This type defines the fields for a seller's international return policy. Sellers have the ability to set separate domestic and international return policies, but if an international return policy is not set, the same return policy settings specified for the domestic return policy are also used for returns for international buyers. */ InternationalReturnOverrideType: { /** @description This field sets/indicates if the seller offers replacement items to the buyer in the case of an international return. The buyer must be willing to accept a replacement item; otherwise, the seller will need to issue a refund for a return. For implementation help, refer to eBay API documentation */ returnMethod?: string; - /** @description This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location.

You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods. For a definitive list of return periods for one or more categories, call getReturnPolicies method of the Metadata API.

The TimeDuration type is used to set/indicate the return period, and you set the unit value to DAY and the value field to either 30 or 60 (or other value, as appropriate).

Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours.

This field is conditionally required if the internationalOverride.returnsAccepted field is set to true. */ + /** @description This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location.

You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods. For a definitive list of return periods for one or more categories, call getReturnPolicies method of the Metadata API.

The TimeDuration type is used to set/indicate the return period, and you set the unit value to DAY and the value field to either 30 or 60 (or other value, as appropriate).

Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours.

This field is conditionally required if the internationalOverride.returnsAccepted field is set to true. */ returnPeriod?: components["schemas"]["TimeDuration"]; - /** @description If set to true, the seller accepts international returns. If set to false, the seller does not accept international returns.

This field is conditionally required if the seller chooses to have a separate international return policy. */ + /** @description If set to true, the seller accepts international returns. If set to false, the seller does not accept international returns.

This field is conditionally required if the seller chooses to have a separate international return policy. */ returnsAccepted?: boolean; - /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for 'significantly not as described' (SNAD) issues.

This field is conditionally required if the internationalOverride.returnsAccepted field is set to true. For implementation help, refer to eBay API documentation */ + /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for 'significantly not as described' (SNAD) issues.

This field is conditionally required if the internationalOverride.returnsAccepted field is set to true. For implementation help, refer to eBay API documentation */ returnShippingCostPayer?: string; }; - /** @description This type is used by the intervals container to define the opening and closing times of a store's working day. Local time (in Military format) is used, with the following format: hh:mm:ss. */ - Interval: { - /** @description The close value is actually the time that the store closes. Local time (in Military format) is used. So, if a store closed at 8 PM local time, the close time would look like the following: 20:00:00. This field is conditionally required if the intervals container is used to specify working hours or special hours for a store.

This field is returned if set for the store location. */ - close?: string; - /** @description The open value is actually the time that the store opens. Local time (in Military format) is used. So, if a store opens at 9 AM local time, the close time would look like the following: 09:00:00. This field is conditionally required if the intervals container is used to specify working hours or special hours for a store.

This field is returned if set for the store location. */ - open?: string; - }; - /** @description This type is used by the updateInventoryLocation call to update operating hours, special hours, phone number, and other minor details of an inventory location. */ - InventoryLocation: { - /** @description This text field is used by the merchant to provide/update additional information about an inventory location. Whatever text is passed in this field will replace the current text string defined for this field. If the text will not change, the same text should be passed in once again.

Max length: 256 */ - locationAdditionalInformation?: string; - /** @description This text field is generally used by the merchant to provide/update special pickup instructions for a store inventory location. Although this field is optional, it is recommended that merchants provide this field to create a pleasant and easy pickup experience for In-Store Pickup and Click and Collect orders. If this field is not included in the call request payload, eBay will use the default pickup instructions contained in the merchant's profile (if available). Whatever text is passed in this field will replace the current text string defined for this field. If the text will not change, the same text should be passed in once again.

Max length: 1000 */ - locationInstructions?: string; - /** @description This text field is used by the merchant to provide/update the Website address (URL) associated with the inventory location. The URL that is passed in this field will replace any other URL that may be defined for this field.

Max length: 512 */ - locationWebUrl?: string; - /** @description This text field is used by the merchant to update the name of the inventory location. This name should be a human-friendly name as it will be in In-Store Pickup and Click and Collect listings. A name is not required for warehouse inventory locations. For store inventory locations, this field is not immediately required, but will be required before an offer enabled with the In-Store Pickup or Click and Collect capability can be published. So, if the seller omitted this field in the createInventoryLocation call, it is required for an updateInventoryLocation call. The name that is passed in this field will replace any other name that may be defined for this field. */ - name?: string; - /** @description This container is used to provide/update the regular operating hours for a store location during the days of the week. A dayOfWeekEnum field and an intervals container will be needed for each day of the week that the store location is open. Note that if operating hours are already set for an inventory location for a specific day of the week, whatever is set through an updateInventoryLocation call will override those existing hours. */ - operatingHours?: components["schemas"]["OperatingHours"][]; - /** @description This text field is used by the merchant to provide/update the phone number for the inventory location. The phone number that is passed in this field will replace any other phone number that may be defined for this field.

Max length: 36 */ - phone?: string; - /** @description This container is used to provide/update the special operating hours for a store location on a specific date, such as a holiday. The special hours specified for the specific date will override the normal operating hours for that particular day of the week. If special hours have already been set up for an inventory location, specifying special hours through an updateInventoryLocation call will only add to the list, unless the date(s) used are the same special date(s) already set up, in which case, the special hours set up through the updateInventoryLocation call will override the existing special hours. */ - specialHours?: components["schemas"]["SpecialHours"][]; - }; - /** @description This type is used by the createInventoryLocation call to provide details on the inventory location, including the location's name, physical address, operating hours, special hours, phone number and other details of an inventory location. */ - InventoryLocationFull: { - /** @description This required container is used to set the physical address and geographical coordinates (optional) of a warehouse or store inventory location. A warehouse inventory location only requires the city, province/state, and country, and does not require a full street address. However, the seller may still supply a full street address for a warehouse location. The physical location/address for an inventory location cannot be modified once set with a createInventoryLocation call. All other details of an inventory location (e.g. phone or operating hours) can be changed with an updateInventoryLocation call. */ - location?: components["schemas"]["LocationDetails"]; - /** @description This text field is used by the merchant to provide additional information about an inventory location.

Max length: 256 */ - locationAdditionalInformation?: string; - /** @description This text field is generally used by the merchant to provide special pickup instructions for a store inventory location. Although this field is optional, it is recommended that merchants provide this field to create a pleasant and easy pickup experience for In-Store Pickup and Click and Collect orders. If this field is not included in the call request payload, eBay will use the default pickup instructions contained in the merchant's profile (if available).

*/ - locationInstructions?: string; - /** @description This container is used to define the function of the inventory location. Typically, an inventory location will serve as a store or a warehouse, but in some cases, an inventory location may be both.

If this container is omitted, the location type of the inventory location will default to WAREHOUSE. See StoreTypeEnum for the supported values.

Default: WAREHOUSE */ - locationTypes?: string[]; - /** @description This text field is used by the merchant to provide the Website address (URL) associated with the inventory location.

Max length: 512 */ - locationWebUrl?: string; - /** @description This field is used to indicate whether the inventory location will be enabled (inventory can be loaded to location) or disabled (inventory can not be loaded to location). If this field is omitted, a successful createInventoryLocation call will automatically enable the inventory location. A merchant may want to create a new inventory location but leave it as disabled if the inventory location is not yet ready for active inventory. Once the inventory location is ready, the merchant can use the enableInventoryLocation call to enable an inventory location that is in a disabled state. See StatusEnum for the supported values.

Default: ENABLED For implementation help, refer to eBay API documentation */ - merchantLocationStatus?: string; - /** @description The name of the inventory location. This name should be a human-friendly name as it will be displayed in In-Store Pickup and Click and Collect listings. A name is not required for warehouse inventory locations. For store inventory locations, this field is not immediately required, but will be required before an offer enabled with the In-Store Pickup or Click and Collect capability can be published. So, if the seller omits this field in a createInventoryLocation call, it becomes required for an updateInventoryLocation call.

Max length: 1000 */ - name?: string; - /** @description Although not technically required, this container is highly recommended to be used to specify operating hours for a store inventory location. This container is used to express the regular operating hours for a store location during each day of the week. A dayOfWeekEnum field and an intervals container will be needed for each day of the week that the store location is open. */ - operatingHours?: components["schemas"]["OperatingHours"][]; - /** @description Although not technically required, this field is highly recommended to be used to specify the phone number for a store inventory location.

Max length: 36 */ - phone?: string; - /** @description This container is used to express the special operating hours for a store inventory location on a specific date, such as a holiday. The special hours specified for the specific date will override the normal operating hours for that particular day of the week. */ - specialHours?: components["schemas"]["SpecialHours"][]; - }; - /** @description This type is used by the base response of the getInventoryLocation and getInventoryLocations calls. These responses provide details about inventory location(s) defined for the merchant's account. */ - InventoryLocationResponse: { - /** @description This container provides location details of an inventory location. The address container will always be returned, but it will not always have a complete street address. Except in the case of an inventory location that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory location. The geoCoordinates container will only be returned if the merchant provided geographical coordinates. The locationId field is always returned, but this value is only used internally by eBay. */ - location?: components["schemas"]["Location"]; - /** @description This text field provides additional information about an inventory location. This field is returned if it is set for the inventory location.

Max length: 256 */ - locationAdditionalInformation?: string; - /** @description This text field is used by the merchant to provide special pickup instructions for the store location. This field can help create a pleasant and easy pickup experience for In-Store Pickup and Click and Collect orders. If this field was not set up through a createInventoryLocation or a updateInventoryLocation call, eBay will use the default pickup instructions contained in the merchant's profile.

Max length: 1000 */ - locationInstructions?: string; - /** @description This container defines the function of the inventory location. Typically, an inventory location will serve as a store or a warehouse, but in some cases, an inventory location may be both.

The location type of an inventory location defaults to WAREHOUSE if a location type is not specified when a merchant creates an inventory location. */ - locationTypes?: string[]; - /** @description This text field shows the Website address (URL) associated with the inventory location. This field is returned if defined for the inventory location.

Max length: 512 */ - locationWebUrl?: string; - /** @description The unique identifier of the inventory location. This identifier is set up by the merchant when the inventory location is first created with the createInventoryLocation call. Once this value is set for an inventory location, it cannot be modified.

Max length: 36 */ - merchantLocationKey?: string; - /** @description This field indicates whether the inventory location is enabled (inventory can be loaded to location) or disabled (inventory can not be loaded to location). The merchant can use the enableInventoryLocation call to enable an inventory location in disabled status, or the disableInventoryLocation call to disable an inventory location in enabled status. For implementation help, refer to eBay API documentation */ - merchantLocationStatus?: string; - /** @description The name of the inventory location. This name should be a human-friendly name as it will be displayed in In-Store Pickup and Click and Collect listings. For store inventory locations, this field is not required for the createInventoryLocation call, but a store inventory location must have a defined name value before an In-Store Pickup and Click and Collect enabled offer is published. So, if the seller omits this field in the createInventoryLocation call, it will have to be added later through a updateInventoryLocation call.

Max length: 1000 */ - name?: string; - /** @description This container shows the regular operating hours for a store location during the days of the week. A dayOfWeekEnum field and an intervals container is shown for each day of the week that the store location is open. */ - operatingHours?: components["schemas"]["OperatingHours"][]; - /** @description The phone number for an inventory location. This field will typically only be set and returned for store locations.

Max length: 36 */ - phone?: string; - /** @description This container shows the special operating hours for a store location on a specific date or dates. */ - specialHours?: components["schemas"]["SpecialHours"][]; - }; /** @description This type is used to provide details about any KYC check that is applicable to the managed payments seller. */ KycCheck: { /** @description The enumeration value returned in this field categorizes the type of details needed for the KYC check. More information about the check is shown in the detailMessage and other applicable, corresponding fields. For implementation help, refer to eBay API documentation */ @@ -857,81 +678,32 @@ export interface components { /** @description This array contains one or more KYC checks required from a managed payments seller. The seller may need to provide more documentation and/or information about themselves, their company, or the bank account they are using for seller payouts.

If no KYC checks are currently required from the seller, this array is not returned, and the seller only receives a 204 No Content HTTP status code. */ kycChecks?: components["schemas"]["KycCheck"][]; }; - /** @description A complex type that is used to provide the physical address of a location, and it geo-coordinates. */ - Location: { - /** @description The address container is always returned in getInventoryLocation/getInventoryLocations calls. Except in the case of an inventory location that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory location. */ - address?: components["schemas"]["Address"]; - /** @description This container displays the Global Positioning System (GPS) latitude and longitude coordinates for the inventory location. This container is only returned if the geo-coordinates are set for an inventory location. */ - geoCoordinates?: components["schemas"]["GeoCoordinates"]; - /** @description A unique eBay-assigned ID for the location.

Note: This field should not be confused with the seller-defined merchantLocationKey value. It is the merchantLocationKey value which is used to identify an inventory location when working with inventory location API calls. The locationId value is only used internally by eBay. */ - locationId?: string; - }; - /** @description This type is used by the createInventoryLocation call to provide an full or partial address of an inventory location. */ - LocationDetails: { - /** @description The address container is required for a createInventoryLocation call. Except in the case of an inventory location that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory location. */ - address?: components["schemas"]["Address"]; - /** @description This container is used to set the Global Positioning System (GPS) latitude and longitude coordinates for the inventory location. */ - geoCoordinates?: components["schemas"]["GeoCoordinates"]; - }; - /** @description This type is used by the base response payload for the getInventoryLocations call. */ - LocationResponse: { - /** @description The URI of the current page of results from the result set. */ - href?: string; - /** - * Format: int32 - * @description The number of items returned on a single page from the result set. - */ - limit?: number; - /** @description The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set.

Max length: 2048 */ - next?: string; - /** - * Format: int32 - * @description The number of results skipped in the result set before listing the first returned result. This value is set in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.

- */ - offset?: number; - /** @description The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set.

Max length: 2048 */ - prev?: string; - /** - * Format: int32 - * @description The total number of items retrieved in the result set.

If no items are found, this field is returned with a value of 0. - */ - total?: number; - /** @description An array of one or more of the merchant's inventory locations. */ - locations?: components["schemas"]["InventoryLocationResponse"][]; - }; - /** @description This type is used to express the regular operating hours of a merchant's store during the days of the week. */ - OperatingHours: { - /** @description A dayOfWeekEnum value is required for each day of the week that the store location has regular operating hours.

This field is returned if operating hours are defined for the store location. For implementation help, refer to eBay API documentation */ - dayOfWeekEnum?: string; - /** @description This container is used to define the opening and closing times of a store's working day (defined in the dayOfWeekEnum field). An intervals container is needed for each day of the week that the store location is open. If a store location closes for lunch (or any other period during the day) and then reopens, multiple open and close pairs are needed

This container is returned if operating hours are defined for the store location. */ - intervals?: components["schemas"]["Interval"][]; - }; - /** @description This type is used by the paymentMethods container, which is used by the seller to specify one or more offline payment methods.

Note: eBay now controls all electronic payment methods available for a marketplace, so a seller will no longer use this type to specify any electronic payment methods. */ + /** @description This type is used by the paymentMethods container, which is used by the seller to specify one or more offline payment methods.

Note: eBay now controls all electronic payment methods available for a marketplace, so a seller will no longer use this type to specify any electronic payment methods. */ PaymentMethod: { /** @description Note: This array is no longer applicable and should not be used. eBay now controls all electronic payment methods available for a marketplace, and a seller never has to specify any electronic payment methods, including any credit card brands accepted. */ brands?: string[]; - /** @description eBay now controls all electronic payment methods available for a marketplace, so only offline payment method enum values may be used in this field, and offline payment methods will only be applicable to listings that require or support offline payments. See the PaymentMethodTypeEnum type for supported offline payment method enum values.

For implementation help, refer to eBay API documentation */ + /** @description This array is only applicable for listings supporting offline payment methods. See the PaymentMethodTypeEnum type for supported offline payment method enum values. If offline payments are enabled for the policy, provide at least one offline payment method.

For implementation help, refer to eBay API documentation */ paymentMethodType?: string; /** @description Note: This container is no longer applicable and should not be used. eBay now controls all electronic payment methods available for a marketplace, and a seller never has to specify any electronic payment methods, including PayPal. */ recipientAccountReference?: components["schemas"]["RecipientAccountReference"]; }; /** @description This type is used by the paymentPolicy response container, a container which defines a seller's payment business policy for a specific marketplace. */ PaymentPolicy: { - /** @description This container indicates whether the fulfillment policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */ + /** @description This container indicates whether the payment policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */ categoryTypes?: components["schemas"]["CategoryType"][]; - /** @description This container is applicable only if the categoryTypes.name field is set to MOTORS_VEHICLES, and is only returned if the seller requires an initial deposit on motor vehicles.

The container shows the amount due for the deposit and when it is due (within 1-3 days after commitment to purchase, unless the listing requires immediate payment).

Note: The due date that is specified in the deposit container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchasing the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing.

*/ + /** @description This container is applicable only if the categoryTypes.name field is set to MOTORS_VEHICLES, and is only returned if the seller requires an initial deposit on motor vehicles.

The container shows the amount due for the deposit and when it is due (within 1-3 days after commitment to purchase, unless the listing requires immediate payment).

Note: The due date that is specified in the deposit container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchasing the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing.

*/ deposit?: components["schemas"]["Deposit"]; - /** @description A seller-defined description of the payment policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ + /** @description A seller-defined description of the payment policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ description?: string; - /** @description This container applies to motor vehicles listings only and indicates when a final payment for the vehicle is due. This value is always returned if categoryTypes is set to MOTORS_VEHICLES.

This container indicates the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. The period starts when the buyer commits to buy. The valid values, as specified with TimeDuration, are:
  • 3 DAYS
  • 7 DAYS (the default)
  • 10 DAYS
  • 14 DAYS
A MOTORS_VEHICLES) payment business policy must specify at least one of the following paymentMethods values for the final payment:
  • CASH_ON_PICKUP

    Note: This payment method is only available to sellers outside the US.
  • CASHIER_CHECK
  • MONEY_ORDER
  • PERSONAL_CHECK
*/ + /** @description This container applies to motor vehicles listings only and indicates when a final payment for the vehicle is due. This value is always returned if categoryTypes is set to MOTORS_VEHICLES.

This container indicates the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. The period starts when the buyer commits to buy. The valid values, as specified with TimeDuration, are:
  • 3 DAYS
  • 7 DAYS (the default)
  • 10 DAYS
  • 14 DAYS
A MOTORS_VEHICLES) payment business policy must specify at least one of the following paymentMethods values for the final payment:
  • CASH_ON_PICKUP

    Note: This payment method is only available to sellers outside the US.
  • CASHIER_CHECK
  • MONEY_ORDER
  • PERSONAL_CHECK
*/ fullPaymentDueIn?: components["schemas"]["TimeDuration"]; - /** @description If this field is returned as true, immediate payment is required from the buyer for:
  • A fixed-price item
  • An auction item where the buyer uses the 'Buy it Now' option
  • A deposit for a motor vehicle listing

It is possible for the seller to set this field as true in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller. */ + /** @description If this field is returned as true, immediate payment is required from the buyer for:
  • A fixed-price item
  • An auction item where the buyer uses the 'Buy it Now' option
  • A deposit for a motor vehicle listing

It is possible for the seller to set this field as true in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller. */ immediatePay?: boolean; /** @description The ID of the eBay marketplace to which the payment business policy applies. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ + /** @description A seller-defined name for this payment policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ name?: string; - /** @description Although this field may be returned for some older payment business policies, payment instructions are no longer supported by payment business policies. If this field is returned, it can be ignored and these payment instructions will not appear in any listings that use the corresponding business policy.

Max length: 1000 */ + /** @description Although this field may be returned for some older payment business policies, payment instructions are no longer supported by payment business policies. If this field is returned, it can be ignored and these payment instructions will not appear in any listings that use the corresponding business policy.

Max length: 1000 */ paymentInstructions?: string; /** @description This container is returned to show the payment methods that are accepted for the payment business policy.

Sellers do not have to specify any electronic payment methods for listings, so this array will often be returned empty unless the payment business policy is intended for motor vehicle listings or other items in categories where offline payments are required or supported. */ paymentMethods?: components["schemas"]["PaymentMethod"][]; @@ -942,24 +714,24 @@ export interface components { PaymentPolicyRequest: { /** @description This container is used to specify whether the payment business policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */ categoryTypes?: components["schemas"]["CategoryType"][]; - /** @description This container is used if the seller wants to require an initial deposit on a motor vehicle listing. In this container, the seller sets the deposit amount and the due date for the deposit.

Because eBay controls all electronic payment methods, sellers do not need to specify a payment method and the deposit.paymentMethods array is not needed.

Note: The 'due date' specified in the deposit container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchase the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing.

*/ + /** @description This container is used if the seller wants to require an initial deposit on a motor vehicle listing. In this container, the seller sets the deposit amount and the due date for the deposit.

Because eBay controls all electronic payment methods, sellers do not need to specify a payment method and the deposit.paymentMethods array is not needed.

Note: The 'due date' specified in the deposit container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchase the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing. See immediatePay.

*/ deposit?: components["schemas"]["Deposit"]; - /** @description A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ + /** @description A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ description?: string; - /** @description This container is used to specify the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. This container must be specified for motor vehicles listings.

The period starts when the buyer commits to buy. The valid values, as specified with TimeDuration, are:
  • 3 DAYS
  • 7 DAYS (the default)
  • 10 DAYS
  • 14 DAYS
In order for a buyer to make a full payment on a motor vehicle, at least one of the following paymentMethods values must be specified for the corresponding payment business policy:
  • CASH_ON_PICKUP
  • CASHIER_CHECK
  • MONEY_ORDER
  • PERSONAL_CHECK
Default: 7 DAYS */ + /** @description This container is used to specify the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. This container must be specified for motor vehicles listings.

The period starts when the buyer commits to buy. The valid values, as specified with TimeDuration, are:
  • 3 DAYS
  • 7 DAYS (the default)
  • 10 DAYS
  • 14 DAYS
In order for a buyer to make a full payment on a motor vehicle, at least one of the following paymentMethods values must be specified for the corresponding payment business policy:
  • CASH_ON_PICKUP
  • CASHIER_CHECK
  • MONEY_ORDER
  • PERSONAL_CHECK
Default: 7 DAYS */ fullPaymentDueIn?: components["schemas"]["TimeDuration"]; - /** @description This field should be included and set to true if the seller wants to require immediate payment from the buyer for:
  • A fixed-price item
  • An auction item where the buyer is using the 'Buy it Now' option
  • A deposit for a motor vehicle listing

Default: False */ + /** @description This field should be included and set to true if the seller wants to require immediate payment from the buyer for:
  • A fixed-price item
  • An auction item where the buyer is using the 'Buy it Now' option
  • A deposit for a motor vehicle listing

Default: False */ immediatePay?: boolean; /** @description The ID of the eBay marketplace to which this payment business policy applies. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ + /** @description A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ name?: string; /** @description

Note: DO NOT USE THIS FIELD. Payment instructions are no longer supported by payment business policies.

A free-form string field that allows sellers to add detailed payment instructions to their listings. */ paymentInstructions?: string; /** @description

Note: This field applies only when the seller needs to specify one or more offline payment methods. eBay now manages the electronic payment options available to buyers to pay for the item.

This array is used to specify one or more offline payment methods that will be accepted for payment that occurs off of eBay's platform. */ paymentMethods?: components["schemas"]["PaymentMethod"][]; }; - /** @description The response payload for the getPaymentPolicies method.

Note: Pagination has not yet been enabled for getPaymentPolicies, so all of the pagination-related fields are for future use. */ + /** @description The response payload for the getPaymentPolicies method.

Note: Pagination has not yet been enabled for getPaymentPolicies, so all of the pagination-related fields are for future use. */ PaymentPolicyResponse: { /** @description This field is for future use. */ href?: string; @@ -981,7 +753,7 @@ export interface components { prev?: string; /** * Format: int32 - * @description The total number of payment business policies retrieved in the result set.

If no payment business policies are defined for the specified marketplace, this field is returned with a value of 0. + * @description The total number of payment business policies retrieved in the result set.

If no payment business policies are defined for the specified marketplace, this field is returned with a value of 0. */ total?: number; }; @@ -1012,14 +784,14 @@ export interface components { /** @description If returned as true, the seller was at one point opted-in to the associated payment program, but they later opted out of the program. A value of false indicates the seller never opted-in to the program or if they did opt-in to the program, they never opted-out of it.

It's important to note that the setting of this field does not indicate the seller's current status regarding the payment program. It is possible for this field to return true while the status field returns OPTED_IN. */ wasPreviouslyOptedIn?: boolean; }; - /** @description A seller program in to which a seller can opt-in. */ + /** @description The seller program to opt in to when part of an optInToProgram request, or out of when part of an optOutOfProgram request. */ Program: { - /** @description A seller program in to which a seller can opt-in. For implementation help, refer to eBay API documentation */ + /** @description The seller program to opt in to when part of an optInToProgram request, or out of when part of an optOutOfProgram request. When returned in an getOptedInPrograms response, a separate programType field is returned for each seller program that the seller is opted in to. For implementation help, refer to eBay API documentation */ programType?: string; }; /** @description The base response type of the getOptedInPrograms method. */ Programs: { - /** @description An array of seller programs that the seller's account is opted in to. */ + /** @description An array of seller programs that the seller's account is opted in to. An empty array is returned if the seller is not opted in to any of the seller programs. */ programs?: components["schemas"]["Program"][]; }; /** @description This type is used to provide details about each shipping rate table that is returned in the getRateTables response. */ @@ -1047,54 +819,54 @@ export interface components { }; /** @description This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box'). */ Region: { - /** @description A string that indicates the name of a region, as defined by eBay. A "region" can be either a 'world region' (e.g., the "Middle East" or "Southeast Asia"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.

The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails. */ + /** @description A string that indicates the name of a region, as defined by eBay. A "region" can be either a 'world region' (e.g., the "Middle East" or "Southeast Asia"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.

The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails. */ regionName?: string; /** @description Reserved for future use. For implementation help, refer to eBay API documentation */ regionType?: string; }; /** @description This type consists of the regionIncluded and regionExcluded arrays, which indicate the areas to where the seller does and doesn't ship. */ RegionSet: { - /** @description An array of one or more regionName values that specify the areas to where a seller does not ship. A regionExcluded list should only be set in the top-level shipToLocations container and not within the shippingServices.shipToLocations container used to specify which shipping regions are serviced by each available shipping service option.

Many sellers are willing to ship to many international locations, but they may want to exclude some world regions or some countries as places they are willing to ship to.

This array will be returned as empty if no shipping regions are excluded with the fulfillment business policy.

Note: The regionExcluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored. */ + /** @description An array of one or more regionName values that specify the areas to where a seller does not ship. A regionExcluded list should only be set in the top-level shipToLocations container and not within the shippingServices.shipToLocations container used to specify which shipping regions are serviced by each available shipping service option.

Many sellers are willing to ship to many international locations, but they may want to exclude some world regions or some countries as places they are willing to ship to.

This array will be returned as empty if no shipping regions are excluded with the fulfillment business policy.

Note: The regionExcluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored. */ regionExcluded?: components["schemas"]["Region"][]; - /** @description An array of one or more regionName fields that specify the areas to where a seller ships.
Each eBay marketplace supports its own set of allowable shipping locations.

Note: The regionIncluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored. */ + /** @description An array of one or more regionName fields that specify the areas to where a seller ships.
Each eBay marketplace supports its own set of allowable shipping locations.

Note: The regionIncluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored. */ regionIncluded?: components["schemas"]["Region"][]; }; /** @description This type is used by the returnPolicy response container, a container which defines a seller's return business policy for a specific marketplace. */ ReturnPolicy: { - /** @description This container indicates which category group that the return policy applies to.

Note: Return business policies are not applicable to motor vehicle listings, so the categoryTypes.name value will always be ALL_EXCLUDING_MOTORS_VEHICLES for return business policies. */ + /** @description This container indicates which category group that the return policy applies to.

Note: Return business policies are not applicable to motor vehicle listings, so the categoryTypes.name value will always be ALL_EXCLUDING_MOTORS_VEHICLES for return business policies. */ categoryTypes?: components["schemas"]["CategoryType"][]; - /** @description A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ + /** @description A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ description?: string; /** @description

Important! This field is deprecated, since eBay no longer supports extended holiday returns. Any value supplied in this field is neither read nor returned.

*/ extendedHolidayReturnsOffered?: boolean; - /** @description This container shows the seller's international return policy settings. This container is only returned if the seller has set a separate international return policy for the business policies. Interational return policies are optional, even if the seller ships to international locations. If a separate international return policy is not set, all of the domestic return policy settings also apply to international orders. */ + /** @description This container shows the seller's international return policy settings. This container is only returned if the seller has set a separate international return policy for the business policy. International return policies are optional, even if the seller ships to international locations. If a separate international return policy is not set, all of the domestic return policy settings also apply to international orders. */ internationalOverride?: components["schemas"]["InternationalReturnOverrideType"]; /** @description The ID of the eBay marketplace to which this return business policy applies. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ + /** @description A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ name?: string; - /** @description If a seller indicates that they will accept buyer returns, this value will be set to MONEY_BACK. For implementation help, refer to eBay API documentation */ + /** @description This field indicates the refund method offered by the seller. Its value will be MONEY_BACK unless the seller is enabled for Buy online, Pickup in Store or Click and Collect, and then it might be MERCHANDISE_CREDIT. Getting their money back for returned items is always an option for buyers, regardless of what the seller sets in this field. For implementation help, refer to eBay API documentation */ refundMethod?: string; /** @description

Important! This field is deprecated, since eBay no longer allows sellers to charge a restocking fee for buyer remorse returns. If this field is included, it is ignored and it is no longer returned.

*/ restockingFeePercentage?: string; - /** @description This text-based field provides more details on seller-specified return instructions. This field is only returned if set for the return business policy.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE) */ + /** @description This text-based field provides more details on seller-specified return instructions. This field is only returned if set for the return business policy.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE) */ returnInstructions?: string; /** @description This field is only returned if the seller is willing to offer a replacement item as an alternative to 'Money Back'. For implementation help, refer to eBay API documentation */ returnMethod?: string; - /** @description This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location.

Most categories support 30-day and 60-day return periods.

Note: Unless the seller has set a separate international return policy through the internationalOverride container, this return period will be valid for domestic and international returns (if the seller ships internationally). */ + /** @description This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location.

Most categories support 30-day and 60-day return periods.

Note: Unless the seller has set a separate international return policy through the internationalOverride container, this return period will be valid for domestic and international returns (if the seller ships internationally). */ returnPeriod?: components["schemas"]["TimeDuration"]; /** @description A unique eBay-assigned ID for a return business policy. This ID is generated when the policy is created. */ returnPolicyId?: string; - /** @description If this field is returned as true, the seller accepts returns.

Note:Top-Rated sellers must accept item returns and the handlingTime should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits. */ + /** @description If this field is returned as true, the seller accepts returns. If set to false, the seller does not accept returns.

Note: Top-Rated sellers must accept item returns and the handlingTime should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits. */ returnsAccepted?: boolean; - /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues. For implementation help, refer to eBay API documentation */ + /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues. For implementation help, refer to eBay API documentation */ returnShippingCostPayer?: string; }; /** @description This root container defines a seller's return business policy for a specific marketplace and category group. This type is used when creating or updating a return business policy. */ ReturnPolicyRequest: { - /** @description This container indicates which category group that the return policy applies to.

Note: Return business policies are not applicable to motor vehicle listings, so the categoryTypes.name value must be set to ALL_EXCLUDING_MOTORS_VEHICLES for return business policies. */ + /** @description This container indicates which category group that the return policy applies to.

Note: Return business policies are not applicable to motor vehicle listings, so the categoryTypes.name value must be set to ALL_EXCLUDING_MOTORS_VEHICLES for return business policies. */ categoryTypes?: components["schemas"]["CategoryType"][]; - /** @description A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ + /** @description A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages.

Max length: 250 */ description?: string; /** @description

Important! This field is deprecated, since eBay no longer supports extended holiday returns. Any value supplied in this field is neither read nor returned.

*/ extendedHolidayReturnsOffered?: boolean; @@ -1102,24 +874,24 @@ export interface components { internationalOverride?: components["schemas"]["InternationalReturnOverrideType"]; /** @description The ID of the eBay marketplace to which this return business policy applies. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ + /** @description A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ name?: string; - /** @description This value indicates the refund method that will be used by the seller for buyer returns.

Important! If this field is not included in a return business policy, it will default to MONEY_BACK.

For implementation help, refer to eBay API documentation */ + /** @description This field sets the refund method to use for returned items. Its value defaults to MONEY_BACK if omitted, so this field is only needed for Buy online, Pickup in Store or Click and Collect items where the seller is willing to offer merchandise credit as an additional refund method to buyers. Getting their money back for returned items is always an option for buyers, regardless of what the seller sets in this field.

Important! If this field is not included in a return business policy, it will default to MONEY_BACK.

For implementation help, refer to eBay API documentation */ refundMethod?: string; /** @description

Important! This field is deprecated, since eBay no longer allows sellers to charge a restocking fee for buyer remorse returns. If this field is included, it is ignored.

*/ restockingFeePercentage?: string; - /** @description This text-based field provides more details on seller-specified return instructions.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE) */ + /** @description This text-based field provides more details on seller-specified return instructions.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE) */ returnInstructions?: string; /** @description This field can be used if the seller is willing and able to offer a replacement item as an alternative to 'Money Back'. For implementation help, refer to eBay API documentation */ returnMethod?: string; - /** @description This container is used to specify the number of days that the buyer has to return an item. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location.

You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods.

For a definitive list of return periods for one or more categories, call getReturnPolicies method of the Metadata API.

The return period is set using the TimeDuration type, where you set unit to DAY and value to either 30 or 60 (or other value, as appropriate).

Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours.

Required if returnsAccepted is set to true. */ + /** @description This container is used to specify the number of days that the buyer has to return an item. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location.

You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods.

Note: Eligible Parts & Accessories (P&A) listings require sellers to offer buyers free returns with a minimum return period of 30 days. See Support for easy returns in Parts and Accessories for details.


For a definitive list of return periods for one or more categories, call getReturnPolicies method of the Metadata API.

The return period is set using the TimeDuration type, where you set unit to DAY and value to either 30 or 60 (or other value, as appropriate).

Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours.

Required if returnsAccepted is set to true. */ returnPeriod?: components["schemas"]["TimeDuration"]; - /** @description If set to true, the seller accepts returns.

Note:Top-Rated sellers must accept item returns and the handlingTime should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits.

*/ + /** @description If set to true, the seller accepts returns. If set to false, the seller does not accept returns.

Note:Top-Rated sellers must accept item returns and the handlingTime should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits.

*/ returnsAccepted?: boolean; - /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues.

This field is conditionally required if returnsAccepted is set to true. For implementation help, refer to eBay API documentation */ + /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Note: Eligible Parts & Accessories (P&A) listings require sellers to offer buyers free returns with a minimum return period of 30 days. See Support for easy returns in Parts and Accessories for details.


Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues.

This field is conditionally required if returnsAccepted is set to true. For implementation help, refer to eBay API documentation */ returnShippingCostPayer?: string; }; - /** @description The response payload for the getReturnPolicies method.

Note: Pagination has not yet been enabled for getReturnPolicies, so all of the pagination-related fields are for future use. */ + /** @description The response payload for the getReturnPolicies method.

Note: Pagination has not yet been enabled for getReturnPolicies, so all of the pagination-related fields are for future use. */ ReturnPolicyResponse: { /** @description This field is for future use. */ href?: string; @@ -1141,15 +913,15 @@ export interface components { returnPolicies?: components["schemas"]["ReturnPolicy"][]; /** * Format: int32 - * @description The total number of return business policies retrieved in the result set.

If no return business policies are defined for the specified marketplace, this field is returned with a value of 0. + * @description The total number of return business policies retrieved in the result set.

If no return business policies are defined for the specified marketplace, this field is returned with a value of 0. */ total?: number; }; /** @description This type is used to provide sales tax settings for a specific tax jurisdiction. */ SalesTax: { - /** @description The country code enumeration value identifies the country to which this sales tax rate applies. For implementation help, refer to eBay API documentation */ + /** @description The country code enumeration value identifies the country to which this sales tax rate applies.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
For implementation help, refer to eBay API documentation */ countryCode?: string; - /** @description A unique ID that identifies the sales tax jurisdiction to which the salest tax rate applies (for example, a state within the United States). */ + /** @description A unique ID that identifies the sales tax jurisdiction to which the sales tax rate applies.

Note: When the returned countryCode is US, the only supported return values for salesTaxJurisdictionId are:
  • AS (American Samoa)
  • GU (Guam
  • MP Northern Mariana Islands
  • PW (Palau)
  • VI (US Virgin Islands)
*/ salesTaxJurisdictionId?: string; /** @description The sales tax rate that will be applied to sales price. The shippingAndHandlingTaxed value will indicate whether or not sales tax is also applied to shipping and handling charges

Although it is a string, a percentage value is returned here, such as 7.75 */ salesTaxPercentage?: string; @@ -1163,24 +935,24 @@ export interface components { /** @description This field is set to true if the seller wishes to apply sales tax to shipping and handling charges, and not just the total sales price of the order. Otherwise, this field's value should be set to false. */ shippingAndHandlingTaxed?: boolean; }; - /** @description A unique ID for a sales tax jurisdiction. */ - SalesTaxJurisdiction: { - /** @description The unique ID for a sales tax jurisdiction. */ + SalesTaxInput: { + /** @description This parameter specifies the two-letter ISO 3166 code of the country for which a sales-tax table entry is to be created or updated.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
*/ + countryCode?: string; + /** @description This parameter specifies the ID of the tax jurisdiction for which a sales-tax table entry is to be created or updated.

Valid jurisdiction IDs can be retrieved using the getSalesTaxJurisdiction method of the Metadata API.

Note: When countryCode is set to US, the only supported values for jurisdictionId are:
  • AS (American Samoa)
  • GU (Guam)
  • MP (Northern Mariana Islands)
  • PW (Palau)
  • VI (US Virgin Islands)
*/ salesTaxJurisdictionId?: string; - }; - /** @description This complex type contains a list of sales tax jurisdictions. */ - SalesTaxJurisdictions: { - /** @description A list of sales tax jurisdictions. */ - salesTaxJurisdictions?: components["schemas"]["SalesTaxJurisdiction"][]; + /** @description This parameter specifies the sales tax rate for the specified salesTaxJurisdictionId. When applicable to an order, this sales tax rate will be applied to the sales price. The shippingAndHandlingTaxed value indicates whether or not sales tax is also applied to shipping and handling charges

Although it is a string, a percentage value is set here, such as 7.75. */ + salesTaxPercentage?: string; + /** @description This parameter is set to true if the seller wishes to apply sales tax to shipping and handling charges and not just the total sales price of an order. Otherwise, this parameter's value should be set to false. */ + shippingAndHandlingTaxed?: boolean; }; /** @description This type is used by the root response of the getSalesTaxes method. */ SalesTaxes: { - /** @description An array of one or more sales tax rate entries for a specific marketplace (or all applicable marketplaces if the country_code query parameter is not used.

If no sales tax rate entries are set up, no response payload is returned, but only an HTTP status code of 204 No Content. */ + /** @description An array of one or more sales-tax rate entries for a specified country.

If no sales-tax rate entries are set up, no response payload is returned, but an HTTP status code of 204 No Content is returned. */ salesTaxes?: components["schemas"]["SalesTax"][]; }; /** @description The base response of the getAdvertisingEligibility method that contains the seller eligibility information for one or more advertising programs. */ SellerEligibilityMultiProgramResponse: { - /** @description An array of response fields that define the seller eligibility for eBay adverstising programs. */ + /** @description An array of response fields that define the seller eligibility for eBay advertising programs. */ advertisingEligibility?: components["schemas"]["SellerEligibilityResponse"][]; }; /** @description A type that is used to provide the seller's eligibility status for an eBay advertising program. */ @@ -1189,7 +961,7 @@ export interface components { programType?: string; /** @description The reason why a seller is ineligible for the specified eBay advertising program.

This field is only returned if the seller is ineligible for the eBay advertising program. For implementation help, refer to eBay API documentation */ reason?: string; - /** @description The seller elibibilty status for the specified eBay advertising program. For implementation help, refer to eBay API documentation */ + /** @description The seller eligibility status for the specified eBay advertising program. For implementation help, refer to eBay API documentation */ status?: string; }; /** @description Type used by the sellingLimit container, a container that lists the monthly cap for the quantity of items sold and total sales amount allowed for the seller's account. */ @@ -1198,7 +970,7 @@ export interface components { amount?: components["schemas"]["Amount"]; /** * Format: int32 - * @description This field shows the monthly cap for total quantity sold allowed for the seller's account. This container may not be returned if a seller does not have a monthly cap for total quantity sold. + * @description This field shows the monthly cap for total quantity sold allowed for the seller's account. This field may not be returned if a seller does not have a monthly cap for total quantity sold. */ quantity?: number; }; @@ -1206,32 +978,32 @@ export interface components { SellingPrivileges: { /** @description If this field is returned as true, the seller's registration is completed. If this field is returned as false, the registration process is not complete. */ sellerRegistrationCompleted?: boolean; - /** @description This container lists the monthly cap for the quantity of items sold and total sales amount allowed for the seller's account. This container may not be returned if a seller does not have a monthly cap for total quantity sold and total sales amount. */ + /** @description This container lists the monthly cap for the quantity of items sold and total sales amount allowed for the seller's account. This container may not be returned if a seller does not have a monthly cap for total quantity sold and total sales amount.

Note: The selling limit value returned in getPrivileges may vary slightly from the value displayed in Seller Hub. The value in Seller Hub is an abbreviated figure, where rounding is applied.

*/ sellingLimit?: components["schemas"]["SellingLimit"]; }; /** @description Complex type that that gets populated with a response containing a fulfillment policy. */ SetFulfillmentPolicyResponse: { /** @description This container indicates whether the fulfillment business policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */ categoryTypes?: components["schemas"]["CategoryType"][]; - /** @description A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250 */ + /** @description A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250 */ description?: string; /** @description If returned as true, the seller offers freight shipping. Freight shipping can be used for large items over 150 lbs. */ freightShipping?: boolean; /** @description A unique eBay-assigned ID for a fulfillment business policy. This ID is generated when the policy is created. */ fulfillmentPolicyId?: string; - /** @description If returned as true, the eBay Global Shipping Program will be used by the seller to ship items to international locations.

Note: On the US marketplace, the Global Shipping Program is scheduled to be replaced by a new intermediated international shipping program called eBay International Shipping. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023.

eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available.

A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.
*/ + /** @description Note: This field is only applicable for the eBay United Kingdom marketplace (EBAY_GB).
This field is included and set to true if the seller wants to use the Global Shipping Program for international shipments. See the Global Shipping Program help topic for more details and requirements on the Global Shipping Program.

A seller can use a combination of the Global Shipping Program and other international shipping services.

If set to false or if the field is omitted, the seller has to manually specifying individual international shipping services (if the seller ships internationally), as described in Setting up worldwide shipping.

Sellers opt in or out of the Global Shipping Program through the Shipping preferences in My eBay.

eBay International Shipping is an account level setting; no field needs to be set in a Fulfillment business policy to enable eBay International Shipping. If a US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available. A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.
*/ globalShipping?: boolean; /** @description Specifies the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.

If only local pickup or freight shipping is available for the item, this container may not get returned.

*/ handlingTime?: components["schemas"]["TimeDuration"]; - /** @description If returned as true, local pickup is available for this policy. */ + /** @description If returned as true, local pickup is available for items using this policy. */ localPickup?: boolean; /** @description The ID of the eBay marketplace to which this fulfillment business policy applies. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description A seller-defined name for this fulfillment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ + /** @description A seller-defined name for this fulfillment business policy.

Max length: 64 */ name?: string; - /** @description If returned as true, the seller offers the "Click and Collect" option.

Currently, "Click and Collect" is available only to large retail merchants the eBay AU and UK marketplaces. */ + /** @description If returned as true, the seller offers the "Click and Collect" option.

Currently, "Click and Collect" is available only to large retail merchants the eBay AU, UK, DE, FR, and IT marketplaces. */ pickupDropOff?: boolean; - /** @description This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations).

The optionType field indicates whether the ShippingOption object applies to domestic or international shipping, and the costType field indicates whether flat-rate shipping or calculated shipping will be used.

A separate ShippingServices object is used to specify cost and other details for every available domestic and international shipping service option.

*/ + /** @description This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations).

The optionType field indicates whether the ShippingOption object applies to domestic or international shipping, and the costType field indicates whether flat-rate shipping or calculated shipping will be used.

A separate ShippingServices object is used to specify cost and other details for every available domestic and international shipping service option.

*/ shippingOptions?: components["schemas"]["ShippingOption"][]; /** @description This container consists of the regionIncluded and regionExcluded containers, which define the geographical regions/countries/states or provinces/domestic regions where the seller does and doesn't ship to with this fulfillment policy. */ shipToLocations?: components["schemas"]["RegionSet"]; @@ -1244,30 +1016,30 @@ export interface components { categoryTypes?: components["schemas"]["CategoryType"][]; /** @description This container is only returned if the seller just created or updated a motor vehicles payment business policy and requires buyers to pay an initial deposit after they commit to buying a motor vehicle. */ deposit?: components["schemas"]["Deposit"]; - /** @description A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250 */ + /** @description A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250 */ description?: string; /** @description The number of days (after the buyer commits to buy) that a buyer has to pay the remaining balance of a motor vehicle transaction. Sellers can set this value to 3, 7, 10, or 14 days.

Note: This value is always returned if categoryTypes is set to MOTORS_VEHICLES.

*/ fullPaymentDueIn?: components["schemas"]["TimeDuration"]; - /** @description The value returned in this field will reflect the value set by the seller in the immediatePay request field. A value of true indicates that immediate payment is required from the buyer for:
It is possible for the seller to set this field as true in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller. */ + /** @description The value returned in this field will reflect the value set by the seller in the immediatePay request field. A value of true indicates that immediate payment is required from the buyer for:
It is possible for the seller to set this field as true in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller. */ immediatePay?: boolean; /** @description The ID of the eBay marketplace to which this payment business policy applies. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ + /** @description A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ name?: string; /** @description

Note: NO LONGER SUPPORTED. Although this field may be returned for some older payment business policies, payment instructions are no longer supported by payment business policies. If this field is returned, it can be ignored and these payment instructions will not appear in any listings that use the corresponding business policy.

A free-form string field that allows sellers to add detailed payment instructions to their listings. */ paymentInstructions?: string; - /** @description This array shows the available payment methods that the seller has set for the payment business policy.

Sellers do not have to specify any electronic payment methods for listings, so this array will often be returned empty unless the payment business policy is intended for motor vehicle listings or other items in categories where offline payments are required or supported. */ + /** @description This array shows the available payment methods that the seller has set for the payment business policy.

Sellers do not have to specify any electronic payment methods for listings, so this array will often be returned empty unless the payment business policy is intended for motor vehicle listings or other items in categories where offline payments are required or supported. */ paymentMethods?: components["schemas"]["PaymentMethod"][]; /** @description A unique eBay-assigned ID for a payment business policy. This ID is generated when the policy is created. */ paymentPolicyId?: string; /** @description An array of one or more errors or warnings that were generated during the processing of the request. If there were no issues with the request, this array will return empty. */ warnings?: components["schemas"]["Error"][]; }; - /** @description Complex type that that gets populated with a response containing a return policy. */ + /** @description A complex type that is populated with a response containing a return policies. */ SetReturnPolicyResponse: { /** @description This field always returns ALL_EXCLUDING_MOTORS_VEHICLES for return business policies, since return business policies are not applicable to motor vehicle listings. */ categoryTypes?: components["schemas"]["CategoryType"][]; - /** @description A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250 */ + /** @description A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.

Max length: 250 */ description?: string; /** @description

Important! This field is deprecated, since eBay no longer supports extended holiday returns. This field should no longer be returned.

*/ extendedHolidayReturnsOffered?: boolean; @@ -1275,79 +1047,74 @@ export interface components { internationalOverride?: components["schemas"]["InternationalReturnOverrideType"]; /** @description The ID of the eBay marketplace to which this return business policy applies. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ + /** @description A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.

Max length: 64 */ name?: string; /** @description If a seller indicates that they will accept buyer returns, this value will be MONEY_BACK. For implementation help, refer to eBay API documentation */ refundMethod?: string; /** @description

Important! This field is deprecated, since eBay no longer allows sellers to charge a restocking fee for buyer remorse returns.

*/ restockingFeePercentage?: string; - /** @description This text-based field provides more details on seller-specified return instructions.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE) */ + /** @description This text-based field provides more details on seller-specified return instructions.

Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.


Max length: 5000 (8000 for DE) */ returnInstructions?: string; /** @description This field will be returned if the seller is willing and able to offer a replacement item as an alternative to 'Money Back'. For implementation help, refer to eBay API documentation */ returnMethod?: string; - /** @description This container specifies the amount of days that the buyer has to return the item after receiving it. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location. This container will be returned unless the business policy states that the seller does not accept returns. */ + /** @description This container specifies the amount of days that the buyer has to return the item after receiving it. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location. This container will be returned unless the business policy states that the seller does not accept returns.

Note: Eligible Parts & Accessories (P&A) listings require sellers to offer buyers free returns with a minimum return period of 30 days. See Support for easy returns in Parts and Accessories for details.

*/ returnPeriod?: components["schemas"]["TimeDuration"]; /** @description A unique eBay-assigned ID for a return business policy. This ID is generated when the policy is created. */ returnPolicyId?: string; /** @description If set to true, the seller accepts returns. If set to false, this field indicates that the seller does not accept returns. */ returnsAccepted?: boolean; - /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Note that the seller is always responsible for return shipping costs for SNAD-related issues.

This container will be returned unless the business policy states that the seller does not accept returns. For implementation help, refer to eBay API documentation */ + /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either BUYER or SELLER.

Note: Eligible Parts & Accessories (P&A) listings require sellers to offer buyers free returns with a minimum return period of 30 days. See Support for easy returns in Parts and Accessories for details.


Note that the seller is always responsible for return shipping costs for SNAD-related issues.

This container will be returned unless the business policy states that the seller does not accept returns. For implementation help, refer to eBay API documentation */ returnShippingCostPayer?: string; /** @description An array of one or more errors or warnings that were generated during the processing of the request. If there were no issues with the request, this array will return empty. */ warnings?: components["schemas"]["Error"][]; }; /** @description This type is used by the shippingOptions array, which is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations). */ ShippingOption: { - /** @description This field defines whether the shipping cost model is FLAT_RATE (the same rate for all buyers, or buyers within a region if shipping rate tables are used) or CALCULATED (the shipping rate varies by the ship-to location and size and weight of the package).

This field is conditionally required if any shipping service options are specified (domestic and/or international). For implementation help, refer to eBay API documentation */ + /** @description This field defines whether the shipping cost model is FLAT_RATE (the same rate for all buyers, or buyers within a region if shipping rate tables are used) or CALCULATED (the shipping rate varies by the ship-to location and size and weight of the package).

This field is conditionally required if any shipping service options are specified (domestic and/or international). For implementation help, refer to eBay API documentation */ costType?: string; - /** @description This field has been deprecated.

Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies. */ + /** @description This field has been deprecated.

Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies. */ insuranceFee?: components["schemas"]["Amount"]; - /** @description This field has been deprecated.

Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies. */ + /** @description This field has been deprecated.

Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies. */ insuranceOffered?: boolean; /** @description This field is used to indicate if the corresponding shipping service options (under shippingServices array) are domestic or international shipping service options. This field is conditionally required if any shipping service options are specified (domestic and/or international). For implementation help, refer to eBay API documentation */ optionType?: string; - /** @description This container is used if the seller adds handling charges to domestic and/or international shipments.

Sellers can not specify any domestic handling charges if they offered 'free shipping' in the policy.

This container will only be returned if set for the policy. */ + /** @description This container is used if the seller adds handling charges to domestic and/or international shipments.

Sellers can not specify any domestic handling charges if they offered 'free shipping' in the policy.

This container will only be returned if set for the policy. */ packageHandlingCost?: components["schemas"]["Amount"]; - /** @description This field is used if the seller wants to associate a domestic or international shipping rate table to the fulfillment business policy. The getRateTables method can be used to retrieve shipping rate table IDs.

With domestic and international shipping rate tables, the seller can set different shipping costs based on shipping regions and shipping speed/level of service (one-day, expedited, standard, economy). There are also options to additional per-weight and handling charges.

Sellers need to be careful that shipping rate tables match the corresponding shipping service options. In other words, a domestic shipping rate table must not be specified in the same container where international shipping service options are being specified, and vice versa, and the shipping speed/level of service of the provided shipping service options should match the shipping speed/level of service options that are defined in the shipping rate tables.

For example, if the corresponding shipping rate table defines costs for one-day shipping services, there should be at least one one-day shipping service option specified under the shippingServices array.

This field is returned if set. */ + /** @description This field is used if the seller wants to associate a domestic or international shipping rate table to the fulfillment business policy. The getRateTables method can be used to retrieve shipping rate table IDs.

With domestic and international shipping rate tables, the seller can set different shipping costs based on shipping regions and shipping speed/level of service (one-day, expedited, standard, economy). There are also options to add additional per-weight and handling charges.

Sellers need to be careful that shipping rate tables match the corresponding shipping service options. In other words, a domestic shipping rate table must not be specified in the same container where international shipping service options are being specified, and vice versa, and the shipping speed/level of service of the provided shipping service options should match the shipping speed/level of service options that are defined in the shipping rate tables.

For example, if the corresponding shipping rate table defines costs for one-day shipping services, there should be at least one one-day shipping service option specified under the shippingServices array.

This field is returned if set. */ rateTableId?: string; - /** @description This array consists of the domestic or international shipping services options that are defined for the policy. The shipping service options defined under this array should match what is set in the corresponding shippingOptions.optionType field (which controls whether domestic or international shipping service options are being defined). If a shipping rate table is being used, the specified shipping service options should also match the shipping rate table settings (domestic or international, shipping speed/level of service, etc.)

Sellers can specify up to four domestic shipping services and up to five international shipping service options by using separate shippingService containers for each. If the seller is using the Global Shipping Program as an international option, only a total of four international shipping service options (including GSP) can be offered.

See How to set up shipping carrier and shipping service values.

To use the eBay standard envelope service (eSE), see Using eBay standard envelope (eSE) service.

This array is conditionally required if the seller is offering one or more domestic and/or international shipping service options. */ + /** @description This field is the unique identifier of a seller's domestic or international shipping discount profile. If a buyer satisfies the requirements of the discount rule, this buyer will receive a shipping discount for the order.

The seller can create and manage shipping discount profiles using (Get/Set) ShippingDiscountProfiles calls in the Trading API or through the Shipping Preferences in My eBay. */ + shippingDiscountProfileId?: string; + /** @description This boolean indicates whether or not the seller has set up a promotional shipping discount that will be available to buyers who satisfy the requirements of the shipping discount rule.

The seller can create and manage shipping promotional discounts using (Get/Set) ShippingDiscountProfiles calls in the Trading API or through the Shipping Preferences in My eBay. */ + shippingPromotionOffered?: boolean; + /** @description This array consists of the domestic or international shipping services options that are defined for the policy. The shipping service options defined under this array should match what is set in the corresponding shippingOptions.optionType field (which controls whether domestic or international shipping service options are being defined). If a shipping rate table is being used, the specified shipping service options should also match the shipping rate table settings (domestic or international, shipping speed/level of service, etc.)

Sellers can specify up to four domestic shipping services and up to five international shipping service options by using separate shippingService containers for each. If the seller is using the Global Shipping Program as an international option, only a total of four international shipping service options (including GSP) can be offered.

See How to set up shipping carrier and shipping service values.

To use the eBay standard envelope service (eSE), see Using eBay standard envelope (eSE) service.

This array is conditionally required if the seller is offering one or more domestic and/or international shipping service options. */ shippingServices?: components["schemas"]["ShippingService"][]; }; /** @description This type is used by the shippingServices array, an array that provides details about every domestic and international shipping service option that is defined for the policy. */ ShippingService: { - /** @description This container is used by the seller to cover the use case when a single buyer purchases multiple quantities of the same line item. This cost cannot exceed the corresponding shippingCost value. A seller will generally set this field when he/she wants to pass on a shipping discount to the buyer if that buyer purchases multiple quantities of a line item.

The seller can ship multiple quantities of the line item in the same package and pass on the shipping savings to the buyer.

If this field is not set, and a buyer purchases multiple quantities of an item, the seller can technically charge the same cost set in the shippingCost container for each individual item, but in general, it behooves both the seller and the buyer (and saves both parties money) if they discuss combined shipping.

This field is not applicable to auction listings or single-quantity, fixed-price listings.

This container is returned if set. */ + /** @description This container is used by the seller to cover the use case when a single buyer purchases multiple quantities of the same line item. This cost cannot exceed the corresponding shippingCost value. A seller will generally set this field when he/she wants to pass on a shipping discount to the buyer if that buyer purchases multiple quantities of a line item.

The seller can ship multiple quantities of the line item in the same package and pass on the shipping savings to the buyer.

If this field is not set, and a buyer purchases multiple quantities of an item, the seller can technically charge the same cost set in the shippingCost container for each individual item, but in general, it behooves both the seller and the buyer (and saves both parties money) if they discuss combined shipping.

This field is not applicable to auction listings or single-quantity, fixed-price listings.

This container is returned if set. */ additionalShippingCost?: components["schemas"]["Amount"]; - /** @description This field should be included and set to true for a motor vehicle listing if it will be the buyer's responsibility to pick up the purchased motor vehicle after full payment is made.

This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle.

This field is returned if set.

Default: false */ + /** @description This field should be included and set to true for a motor vehicle listing if it will be the buyer's responsibility to pick up the purchased motor vehicle after full payment is made.

This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle.

This field is returned if set.

Default: false */ buyerResponsibleForPickup?: boolean; - /** @description This field should be included and set to true for a motor vehicle listing if it will be the buyer's responsibility to arrange for shipment of a purchased motor vehicle after full payment is made.

This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle.

This field is returned if set.

Default: false */ + /** @description This field should be included and set to true for a motor vehicle listing if it will be the buyer's responsibility to arrange for shipment of a motor vehicle.

This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle.

This field is returned if set.

Default: false */ buyerResponsibleForShipping?: boolean; - /** @description This container is used if the seller charges a Cash on Delivery (COD) fee. This container is returned if set. */ - cashOnDeliveryFee?: components["schemas"]["Amount"]; - /** @description This field is included and set to true if the seller offers a free shipping option to the buyer.

This field can only be included and set to true for the first domestic shipping service option specified in the shippingServices container (it is ignored if set for subsequent shipping services or for any international shipping service option).

The first specified shipping service option has a sortOrder value of 1 or if the sortOrderId field is not used, it is the shipping service option that's specified first in the shippingServices container.

This container is returned if set. */ + /** @description This field is included and set to true if the seller offers a free domestic shipping option to the buyer.

This field can only be included and set to true for the first domestic shipping service option specified in the shippingServices array (it is ignored if set for subsequent shipping services or for any international shipping service option).

The first specified shipping service option has a sortOrder value of 1 or if the sortOrderId field is not used, it is the shipping service option that's specified first in the shippingServices array.

This container is returned if set. */ freeShipping?: boolean; - /** @description This field sets/indicates the shipping carrier, such as USPS, FedEx, or UPS. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.

For a full list of shipping carrier enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingCarrierDetails. The enum values for each shipping carriers can be found in each ShippingCarrierDetails.ShippingCarrier field in the response payload.

This field is actually optional, as the shipping carrier is also tied into the shippingServiceCode enum value, and that field is required for every specified shipping service option.

This field is returned if set. */ + /** @description This field sets/indicates the shipping carrier, such as USPS, FedEx, or UPS. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.

For a full list of shipping carrier enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingCarrierDetails. The enum values for each shipping carriers can be found in each ShippingCarrierDetails.ShippingCarrier field in the response payload.

This field is actually optional, as the shipping carrier is also tied into the shippingServiceCode enum value, and that field is required for every specified shipping service option.

This field is returned if set. */ shippingCarrierCode?: string; - /** @description This container is used to set the shipping cost to ship one item using the corresponding shipping service option. This container is conditionally required if the seller is using flat-rate shipping and is not using a domestic or international shipping rate table.

This container is not necessary for calculated shipping, since eBay will calculate the shipping cost and display it in the View Item page based off of the potential buyer's ship-to location.

This value is automatically set to 0.0 for the first specified domestic shipping service option and if the corresponding freeShipping field is set to true.

This container is returned if set for the policy. */ + /** @description This container is used to set the shipping cost to ship one item using the corresponding shipping service option. This container is conditionally required if the seller is using flat-rate shipping and is not using a domestic or international shipping rate table.

This container is not necessary for calculated shipping, since eBay will calculate the shipping cost and display it in the View Item page based off of the potential buyer's ship-to location.

This value is automatically set to 0.0 for the first specified domestic shipping service option and if the corresponding freeShipping field is set to true.

This container is returned if set for the policy. */ shippingCost?: components["schemas"]["Amount"]; - /** @description This field sets/indicates the domestic or international shipping service option, such as USPSPriority, FedEx2Day, or UPS3rdDay. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.

For a full list of shipping service option enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingServiceDetails.

The enum values for each shipping service option can be found in each ShippingServiceDetails.ShippingService field in the response payload. The seller must make sure that the shipping service option is still valid, which is indicated by a true value in the corresponding ValidForSellingFlow boolean field. International shipping service options are typically returned at the top of the response payload, and are indicated by an InternationalService boolean field that reads true.

The InternationalService boolean field is not returned at all for domestic shipping service options.

This field is required for every specified shipping service option.

This field is returned if set. */ + /** @description This field sets/indicates the domestic or international shipping service option, such as USPSPriority, FedEx2Day, or UPS3rdDay. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.

For a full list of shipping service option enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingServiceDetails.

The enum values for each shipping service option can be found in each ShippingServiceDetails.ShippingService field in the response payload. The seller must make sure that the shipping service option is still valid, which is indicated by a true value in the corresponding ValidForSellingFlow boolean field. International shipping service options are typically returned at the top of the response payload, and are indicated by an InternationalService boolean field that reads true.

The InternationalService boolean field is not returned at all for domestic shipping service options.

This field is required for every specified shipping service option. */ shippingServiceCode?: string; - /** @description This container is used to set the ship-to locations applicable to the corresponding shipping service option. Although the regionExcluded container is defined for RegionSet type and could technically be used here, it is recommened that only the regionIncluded container be used at the shipping service level. The excluded shipping regions (if any) can instead be set up in the top-level regionExcluded container.

The regionIncluded and regionExcluded containers define the geographical regions/countries/states or provinces/domestic regions where the seller does and doesn't ship to with this fulfillment policy.

To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call GeteBayDetails with DetailName value set to ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in the regionIncluded.regionName field. The STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post. */ + /** @description This container is used to set the ship-to locations applicable to the corresponding shipping service option. Although the regionExcluded container is defined for RegionSet type and could technically be used here, it is recommened that only the regionIncluded container be used at the shipping service level. The excluded shipping regions (if any) can instead be set up in the top-level regionExcluded container.

The regionIncluded and regionExcluded containers define the geographical regions/countries/states or provinces/domestic regions where the seller does and doesn't ship to with this fulfillment policy.

To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call GeteBayDetails with DetailName value set to ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in the regionIncluded.regionName field. The STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post. */ shipToLocations?: components["schemas"]["RegionSet"]; /** * Format: int32 - * @description The integer value set in this field controls the order of the corresponding domestic or international shipping service option in the View Item and Checkout pages.

Sellers can specify up to four domestic shipping services (in four separate shippingService containers), so valid values are 1, 2, 3, and 4. A shipping service option with a sortOrder value of 1 appears at the top of View Item and Checkout pages. Conversely, a shipping service option with a sortOrder value of 1 appears at the bottom of the list.

Sellers can specify up to five international shipping services (in five separate shippingService containers), so valid values for international shipping services are 1, 2, 3, 4, and 5. Similarly to domestic shipping service options, the sortOrder value of a international shipping service option controls the placement of that shipping service option in the View Item and Checkout pages.

If the sortOrder field is not supplied, the order of domestic and international shipping service options is determined by the order in which they are listed in the API call.

Min: 1. Max: 4 (for domestic shipping service) or 5 (for international shipping service). + * @description The integer value set in this field controls the order of the corresponding domestic or international shipping service option in the View Item and Checkout pages.

If the sortOrder field is not supplied, the order of domestic and international shipping service options is determined by the order in which they are listed in the API call.

Min: 1. Max: 4 (for domestic shipping service) or 5 (for international shipping service). */ sortOrder?: number; - /** @description Note: DO NOT USE THIS FIELD. Shipping surcharges for domestic shipping service options can no longer be set with fulfillment business policies, except through shipping rate tables.

To do this, a seller would set up a surcharge-based shipping rate table and specify the surcharge in that table. Then, the seller would need to associate this shipping rate table to the fulfillment business policy by specifying the unique ID of the shipping rate table through the shippingOptions.rateTableId field.
Shipping surcharges cannot be applied at all to international shipping service options. */ + /** @description Note: DO NOT USE THIS FIELD. Shipping surcharges for domestic shipping service options can no longer be set with fulfillment business policies, except through shipping rate tables.

To do this, a seller would set up a surcharge-based shipping rate table and specify the surcharge in that table. Then, the seller would need to associate this shipping rate table to the fulfillment business policy by specifying the unique ID of the shipping rate table through the shippingOptions.rateTableId field.
Shipping surcharges cannot be applied at all to international shipping service options. */ surcharge?: components["schemas"]["Amount"]; }; - /** @description This type is used to express the special operating hours of a store location on a specific date. A specialHours container is needed when the store's opening hours on a specific date are different than the normal operating hours on that particular day of the week. */ - SpecialHours: { - /** @description A date value is required for each specific date that the store location has special operating hours.

The timestamp is formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-04T07:09:00.000Z

This field is returned if set for the store location. */ - date?: string; - /** @description This container is used to define the opening and closing times of a store on a specific date (defined in the date field). An intervals container is needed for each specific date that the store has special operating hours. These special operating hours on the specific date override the normal operating hours for the specific day of the week. If a store location closes for lunch (or any other period during the day) and then reopens, multiple open and close pairs are needed.

This container is returned if set for the store location. */ - intervals?: components["schemas"]["Interval"][]; - }; /** @description This type is used by the getSubscription response container, which defines the subscription types and levels for the seller account. */ Subscription: { /** @description The marketplace with which the subscription is associated. For implementation help, refer to eBay API documentation */ @@ -1361,7 +1128,7 @@ export interface components { /** @description The term of the subscription plan (typically in months). */ term?: components["schemas"]["TimeDuration"]; }; - /** @description This type is used by the response payload for the getSubscription method.

Note: Pagination has not yet been enabled for getSubscription, so all of the pagination-related fields are for future use. */ + /** @description This type is used by the response payload for the getSubscription method.

Note: Pagination has not yet been enabled for getSubscription, so all of the pagination-related fields are for future use. */ SubscriptionResponse: { /** @description This field is for future use. */ href?: string; @@ -1380,9 +1147,9 @@ export interface components { */ total?: number; }; - /** @description A type used to specify a period of time using a specified time-measurement unit. Payment, return, and fulfillment business policies all use this type to specify time windows.

Whenever a container that uses this type is used in a request, both of these fields are required. Similarly, whenever a container that uses this type is returned in a response, both of these fields are always returned. */ + /** @description A type used to specify a period of time using a specified time-measurement unit. Payment, return, and fulfillment business policies all use this type to specify time windows.

Whenever a container that uses this type is used in a request, both of these fields are required. Similarly, whenever a container that uses this type is returned in a response, both of these fields are always returned. */ TimeDuration: { - /** @description These enum values represent the time measurement unit, such as DAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit.

See TimeDurationUnitEnum for a complete list of possible time-measurement units. For implementation help, refer to eBay API documentation */ + /** @description These enum values represent the time measurement unit, such as DAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit.

See TimeDurationUnitEnum for a complete list of possible time-measurement units. For implementation help, refer to eBay API documentation */ unit?: string; /** * Format: int32 @@ -1390,6 +1157,23 @@ export interface components { */ value?: number; }; + /** @description This container stores the array of sales-tax table entries that have been created or updated. */ + UpdatedSalesTaxEntry: { + /** @description The two-letter ISO 3166 code of the country associated with the sales-tax table entry. */ + countryCode?: string; + /** @description The ID of the tax jurisdiction associated with the sales-tax table entry. */ + jurisdictionId?: string; + /** + * Format: int32 + * @description The HTTP status code for the call.

Note: The system returns one HTTP status code regardless of the number of sales-tax table entries provided. Therefore, the same HTTP statusCode will be listed for all sales-tax table entries returned in the payload. + */ + statusCode?: number; + }; + /** @description This type is used to return the list of new and updated sales-tax table entries. */ + UpdatedSalesTaxResponse: { + /** @description The array of new and updated sales-tax table entries. */ + updatedSalesTaxEntries?: components["schemas"]["UpdatedSalesTaxEntry"][]; + }; }; responses: never; parameters: never; @@ -1402,13 +1186,10 @@ export interface operations { getCustomPolicies: { parameters: { query?: { - /** @description This query parameter specifies the type of custom policies to be returned.

Multiple policy types may be requested in a single call by providing a comma-delimited set of all policy types to be returned.

Note: Omitting this query parameter from a request will also return policies of all policy types.

Two Custom Policy types are supported: */ + /** @description This query parameter specifies the type of custom policies to be returned.

Multiple policy types may be requested in a single call by providing a comma-delimited set of all policy types to be returned.

Note: Omitting this query parameter from a request will also return policies of all policy types.
See the CustomPolicyTypeEnum type for a list of supported values. */ policy_types?: string; }; - header: { - /** @description This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the MarketplaceIdEnum type definition.

Note: The following eBay marketplaces support Custom Policies:
  • Germany (EBAY_DE)
  • Canada (EBAY_CA)
  • Australia (EBAY_AU)
  • United States (EBAY_US)
  • France (EBAY_FR)
*/ - "X-EBAY-C-MARKETPLACE-ID": string; - }; + header?: never; path?: never; cookie?: never; }; @@ -1443,8 +1224,8 @@ export interface operations { parameters: { query?: never; header: { - /** @description This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the MarketplaceIdEnum type definition.

Note: The following eBay marketplaces support Custom Policies:
  • Germany (EBAY_DE)
  • Canada (EBAY_CA)
  • Australia (EBAY_AU)
  • United States (EBAY_US)
  • France (EBAY_FR)
*/ - "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; path?: never; cookie?: never; @@ -1492,12 +1273,9 @@ export interface operations { getCustomPolicy: { parameters: { query?: never; - header: { - /** @description This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the MarketplaceIdEnum type definition.

Note: The following eBay marketplaces support Custom Policies:
  • Germany (EBAY_DE)
  • Canada (EBAY_CA)
  • Australia (EBAY_AU)
  • United States (EBAY_US)
  • France (EBAY_FR)
*/ - "X-EBAY-C-MARKETPLACE-ID": string; - }; + header?: never; path: { - /** @description This path parameter is the unique custom policy identifier for the policy to be returned.

Note: This value is automatically assigned by the system when the policy is created. */ + /** @description This path parameter is the unique identifier of the custom policy to retrieve.

This ID can be retrieved for a custom policy by using the getCustomPolicies method. */ custom_policy_id: string; }; cookie?: never; @@ -1540,11 +1318,11 @@ export interface operations { parameters: { query?: never; header: { - /** @description This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the MarketplaceIdEnum type definition.

Note: The following eBay marketplaces support Custom Policies:
  • Germany (EBAY_DE)
  • Canada (EBAY_CA)
  • Australia (EBAY_AU)
  • United States (EBAY_US)
  • France (EBAY_FR)
*/ - "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; path: { - /** @description This path parameter is the unique custom policy identifier for the policy to be returned.

Note: This value is automatically assigned by the system when the policy is created. */ + /** @description This path parameter is the unique identifier of the custom policy to update.

Note: A list of custom policies defined for a seller's account that includes this ID can be retrieved by calling the getCustomPolicies method. */ custom_policy_id: string; }; cookie?: never; @@ -1596,7 +1374,10 @@ export interface operations { createFulfillmentPolicy: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path?: never; cookie?: never; }; @@ -1638,7 +1419,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter specifies the ID of the fulfillment policy you want to retrieve. */ + /** @description This path parameter specifies the ID of the fulfillment policy you want to retrieve.

This ID can be retrieved for a fulfillment policy by using the getFulfillmentPolicies method. */ fulfillmentPolicyId: string; }; cookie?: never; @@ -1680,9 +1461,12 @@ export interface operations { updateFulfillmentPolicy: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path: { - /** @description This path parameter specifies the ID of the fulfillment policy you want to update. */ + /** @description This path parameter specifies the ID of the fulfillment policy you want to update.

This ID can be retrieved for a specific fulfillment policy by using the getFulfillmentPolicies method. */ fulfillmentPolicyId: string; }; cookie?: never; @@ -1731,7 +1515,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter specifies the ID of the fulfillment policy to delete. */ + /** @description This path parameter specifies the ID of the fulfillment policy to delete.

This ID can be retrieved for a fulfillment policy by using the getFulfillmentPolicies method. */ fulfillmentPolicyId: string; }; cookie?: never; @@ -1781,7 +1565,10 @@ export interface operations { /** @description This query parameter specifies the eBay marketplace of the policies you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */ marketplace_id: string; }; - header?: never; + header?: { + /** @description Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + "Content-Language"?: string; + }; path?: never; cookie?: never; }; @@ -1817,10 +1604,13 @@ export interface operations { query: { /** @description This query parameter specifies the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */ marketplace_id: string; - /** @description This query parameter specifies the seller-defined name of the fulfillment policy you want to retrieve. */ + /** @description This query parameter specifies the seller-defined name of the fulfillment policy you want to retrieve.

This value can be retrieved for a fulfillment policy by using the getFulfillmentPolicies method. */ name: string; }; - header?: never; + header?: { + /** @description Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + "Content-Language"?: string; + }; path?: never; cookie?: never; }; @@ -1857,7 +1647,10 @@ export interface operations { /** @description This query parameter specifies the eBay marketplace of the policies you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */ marketplace_id: string; }; - header?: never; + header?: { + /** @description Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + "Content-Language"?: string; + }; path?: never; cookie?: never; }; @@ -1891,7 +1684,10 @@ export interface operations { createPaymentPolicy: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path?: never; cookie?: never; }; @@ -1933,7 +1729,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter specifies the ID of the payment policy you want to retrieve. */ + /** @description This path parameter specifies the ID of the payment policy you want to retrieve.

This ID can be retrieved for a payment policy by using the getPaymentPolices method. */ payment_policy_id: string; }; cookie?: never; @@ -1975,9 +1771,12 @@ export interface operations { updatePaymentPolicy: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path: { - /** @description This path parameter specifies the ID of the payment policy you want to update. */ + /** @description This path parameter specifies the ID of the payment policy you want to update.

This ID can be retrieved for a payment policy by using the getPaymentPolices method. */ payment_policy_id: string; }; cookie?: never; @@ -2026,7 +1825,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter specifies the ID of the payment policy you want to delete. */ + /** @description This path parameter specifies the unique identifier of the payment policy you want to delete.

This ID can be retrieved for a payment policy by using the getPaymentPolices method. */ payment_policy_id: string; }; cookie?: never; @@ -2075,10 +1874,13 @@ export interface operations { query: { /** @description This query parameter specifies the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */ marketplace_id: string; - /** @description This query parameter specifies the seller-defined name of the payment policy you want to retrieve. */ + /** @description This query parameter specifies the seller-defined name of the payment policy you want to retrieve.

This value can be retrieved for a payment policy by using the getPaymentPolicies method. */ name: string; }; - header?: never; + header?: { + /** @description Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + "Content-Language"?: string; + }; path?: never; cookie?: never; }; @@ -2279,7 +2081,10 @@ export interface operations { optInToProgram: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path?: never; cookie?: never; }; @@ -2332,7 +2137,10 @@ export interface operations { optOutOfProgram: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path?: never; cookie?: never; }; @@ -2422,10 +2230,13 @@ export interface operations { getReturnPolicies: { parameters: { query: { - /** @description This query parameter specifies the ID of the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */ + /** @description This query parameter specifies the ID of the eBay marketplace of the policies you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */ marketplace_id: string; }; - header?: never; + header?: { + /** @description Get the correct policies for a marketplace that supports multiple locales using the Content-Language request header. For example, get the policies for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + "Content-Language"?: string; + }; path?: never; cookie?: never; }; @@ -2459,7 +2270,10 @@ export interface operations { createReturnPolicy: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path?: never; cookie?: never; }; @@ -2501,7 +2315,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter specifies the of the return policy you want to retrieve. */ + /** @description This path parameter specifies the unique identifier of the return policy you want to retrieve.

This ID can be retrieved for a return policy by using the getReturnPolicies method. */ return_policy_id: string; }; cookie?: never; @@ -2543,9 +2357,12 @@ export interface operations { updateReturnPolicy: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path: { - /** @description This path parameter specifies the ID of the return policy you want to update. */ + /** @description This path parameter specifies the ID of the return policy you want to update.

This ID can be retrieved for a return policy by using the getReturnPolicies method. */ return_policy_id: string; }; cookie?: never; @@ -2594,7 +2411,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter specifies the ID of the return policy you want to delete. */ + /** @description This path parameter specifies the unique identifier of the return policy you want to delete.

This ID can be retrieved for a return policy by using the getReturnPolicies method. */ return_policy_id: string; }; cookie?: never; @@ -2643,10 +2460,13 @@ export interface operations { query: { /** @description This query parameter specifies the ID of the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */ marketplace_id: string; - /** @description This query parameter specifies the seller-defined name of the return policy you want to retrieve. */ + /** @description This query parameter specifies the seller-defined name of the return policy you want to retrieve.

This value can be retrieved for a return policy by using the getReturnPolicies method. */ name: string; }; - header?: never; + header?: { + /** @description Get the correct policy for a marketplace that supports multiple locales using the Content-Language request header. For example, get a policy for the French locale of the Canadian marketplace by specifying fr-CA for the Content-Language header. Likewise, target the Dutch locale of the Belgium marketplace by setting Content-Language: nl-BE. For details on header values, see HTTP request headers. */ + "Content-Language"?: string; + }; path?: never; cookie?: never; }; @@ -2677,14 +2497,60 @@ export interface operations { }; }; }; + bulkCreateOrReplaceSalesTax: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description List of sales taxes to be updated */ + requestBody: { + content: { + "application/json": components["schemas"]["BulkSalesTaxInput"]; + }; + }; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["UpdatedSalesTaxResponse"]; + }; + }; + /** @description partial success */ + 207: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; getSalesTax: { parameters: { query?: never; header?: never; path: { - /** @description This path parameter specifies the two-letter ISO 3166 code for the country whose sales tax table you want to retrieve. */ + /** @description This path parameter specifies the two-letter ISO 3166 code for the country whose sales tax table you want to retrieve.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
*/ countryCode: string; - /** @description This path parameter specifies the ID of the sales tax jurisdiction for the tax table entry you want to retrieve. Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API. */ + /** @description This path parameter specifies the ID of the sales tax jurisdiction for the tax table entry to be retrieved.

Valid jurisdiction IDs can be retrieved using the getSalesTaxJurisdiction method of the Metadata API.

Note: When countryCode is set to US, the only supported values for jurisdictionId are:
  • AS (American Samoa)
  • GU (Guam
  • MP Northern Mariana Islands
  • PW (Palau)
  • VI (US Virgin Islands)
*/ jurisdictionId: string; }; cookie?: never; @@ -2733,11 +2599,14 @@ export interface operations { createOrReplaceSalesTax: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path: { - /** @description This path parameter specifies the two-letter ISO 3166 code for the country for which you want to create a sales tax table entry. */ + /** @description This path parameter specifies the two-letter ISO 3166 code for the country for which you want to create a sales tax table entry.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
*/ countryCode: string; - /** @description This path parameter specifies the ID of the tax jurisdiction for the table entry you want to create. Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API. */ + /** @description This path parameter specifies the ID of the tax jurisdiction for the table entry to be created.

Valid jurisdiction IDs can be retrieved using the getSalesTaxJurisdiction method of the Metadata API.

Note: When countryCode is set to US, the only supported values for jurisdictionId are:
  • AS (American Samoa)
  • GU (Guam)
  • MP (Northern Mariana Islands)
  • PW (Palau)
  • VI (US Virgin Islands)
*/ jurisdictionId: string; }; cookie?: never; @@ -2784,9 +2653,9 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter specifies the two-letter ISO 3166 code for the country whose sales tax table entry you want to delete. */ + /** @description This path parameter specifies the two-letter ISO 3166 code for the country whose sales tax table entry you want to delete.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
*/ countryCode: string; - /** @description This path parameter specifies the ID of the sales tax jurisdiction whose table entry you want to delete. Retrieve valid jurisdiction IDs using getSalesTaxJurisdictions in the Metadata API. */ + /** @description This path parameter specifies the ID of the sales tax jurisdiction whose table entry you want to delete.

Valid jurisdiction IDs can be retrieved using the getSalesTaxJurisdiction method of the Metadata API.

Note: When countryCode is set to US, the only supported values for jurisdictionId are:
  • AS (American Samoa)
  • GU (Guam)
  • MP (Northern Mariana Islands)
  • PW (Palau)
  • VI (US Virgin Islands)
*/ jurisdictionId: string; }; cookie?: never; @@ -2826,7 +2695,7 @@ export interface operations { getSalesTaxes: { parameters: { query: { - /** @description This path parameter specifies the two-letter ISO 3166 code for the country whose tax table you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:CountryCodeEnum */ + /** @description This path parameter specifies the two-letter ISO 3166 code for the country whose tax table you want to retrieve.

Note: Sales-tax tables are available only for the US and Canada marketplaces. Therefore, the only supported values are:
  • US
  • CA
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:CountryCodeEnum */ country_code: string; }; header?: never; @@ -2943,11 +2812,11 @@ export interface operations { getAdvertisingEligibility: { parameters: { query?: { - /** @description A comma-separated list of eBay advertising programs.

Tip: See the AdvertisingProgramEnum type for possible values.

If no programs are specified, the results will be returned for all programs. */ + /** @description A comma-separated list of eBay advertising programs for which eligibility status will be returned.

See the AdvertisingProgramEnum type for a list of supported values.

If no programs are specified, the results will be returned for all programs. */ program_types?: string; }; header: { - /** @description The unique identifier of the eBay marketplace for which the seller eligibility status shall be checked.

Note: This value is case-sensitive. */ + /** @description The unique identifier of the eBay marketplace for which the seller eligibility status shall be checked. This header is required or the call will fail.

See the MarketplaceIdEnum type for the supported marketplace ID values. */ "X-EBAY-C-MARKETPLACE-ID": string; }; path?: never; @@ -2980,355 +2849,4 @@ export interface operations { }; }; }; - getInventoryLocation: { - parameters: { - query?: never; - header?: never; - path: { - /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in at the end of the call URI to specify the inventory location to retrieve.

Max length: 36 */ - merchantLocationKey: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["InventoryLocationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - createInventoryLocation: { - parameters: { - query?: never; - header?: never; - path: { - /** @description A unique, merchant-defined key (ID) for an inventory location. This unique identifier, or key, is used in other Inventory API calls to identify an inventory location.

Max length: 36 */ - merchantLocationKey: string; - }; - cookie?: never; - }; - /** @description Inventory Location details */ - requestBody: { - content: { - "application/json": components["schemas"]["InventoryLocationFull"]; - }; - }; - responses: { - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Location Already Exists */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - deleteInventoryLocation: { - parameters: { - query?: never; - header?: never; - path: { - /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in at the end of the call URI to indicate the inventory location to be deleted.

Max length: 36 */ - merchantLocationKey: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - disableInventoryLocation: { - parameters: { - query?: never; - header?: never; - path: { - /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in through the call URI to disable the specified inventory location.

Max length: 36 */ - merchantLocationKey: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": Record; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - enableInventoryLocation: { - parameters: { - query?: never; - header?: never; - path: { - /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in through the call URI to specify the disabled inventory location to enable.

Max length: 36 */ - merchantLocationKey: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": Record; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getInventoryLocations: { - parameters: { - query?: { - /** @description The value passed in this query parameter sets the maximum number of records to return per page of data. Although this field is a string, the value passed in this field should be a positive integer value. If this query parameter is not set, up to 100 records will be returned on each page of results.

Min: 1 */ - limit?: string; - /** @description Specifies the number of locations to skip in the result set before returning the first location in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ - offset?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LocationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - updateInventoryLocation: { - parameters: { - query?: never; - header?: never; - path: { - /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in the call URI to indicate the inventory location to be updated.

Max length: 36 */ - merchantLocationKey: string; - }; - cookie?: never; - }; - /** @description The inventory location details to be updated (other than the address and geo co-ordinates). */ - requestBody: { - content: { - "application/json": components["schemas"]["InventoryLocation"]; - }; - }; - responses: { - /** @description Success */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getSalesTaxJurisdictions: { - parameters: { - query?: never; - header?: never; - path: { - /** @description This path parameter specifies the two-letter ISO 3166 country code for the country whose jurisdictions you want to retrieve. eBay provides sales tax jurisdiction information for Canada and the United States.Valid values for this path parameter are CA and US. */ - countryCode: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SalesTaxJurisdictions"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; } diff --git a/src/types/restful/specs/sell_account_v2_oas3.ts b/src/types/restful/specs/sell_account_v2_oas3.ts index b09037f2..40c283e7 100644 --- a/src/types/restful/specs/sell_account_v2_oas3.ts +++ b/src/types/restful/specs/sell_account_v2_oas3.ts @@ -11,7 +11,10 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves an existing rate table identified by the rate_table_id path parameter.

Shipping rate tables are currently supported by the following marketplaces: United States, Canada, United Kingdom, Germany, Australia, France, Italy, and Spain. A successful call returns detailed information for the specified shipping rate table. */ + /** + * Retrieves details of a specific shipping rate table. + * @description This method retrieves an existing rate table identified by the rate_table_id path parameter.

Shipping rate tables are currently supported by the following marketplaces: United States, Canada, United Kingdom, Germany, Australia, France, Italy, and Spain. A successful call returns detailed information for the specified shipping rate table. + */ get: operations["getRateTable"]; put?: never; post?: never; @@ -30,7 +33,10 @@ export interface paths { }; get?: never; put?: never; - /** @description This method allows sellers to update shippingCost and/or additionalCost information for an existing shipping rate table identified by the rate_table_id path parameter.

A successful call returns an HTTP status code of 204 No Content. */ + /** + * Updates one or more shipping rates for a specific shipping rate table. + * @description This method allows sellers to update shippingCost and/or additionalCost information for an existing shipping rate table identified by the rate_table_id path parameter.

A successful call returns an HTTP status code of 204 No Content. + */ post: operations["updateShippingCost"]; delete?: never; options?: never; @@ -45,7 +51,10 @@ export interface paths { path?: never; cookie?: never; }; - /** @description

Important! Split-payout functionality is only available to mainland China sellers, who can split payouts between their Payoneer account and bank account. Card payouts are not currently available for sellers in mainland China.


This method returns details on two payment instruments defined on a seller's account, including the ID, type, status, nickname, last four digits of the account number, and payout percentage for the instruments.

Using the instrumentId returned with this method, sellers can makes changes to the payout split of the instruments with the updatePayoutPercentage method. Note that the instrumentStatus of a payment instrument, also returned using this method, must be ACTIVE in order to do split payouts on that payment instrument. */ + /** + * Retrieves payout percentages and unique IDs for accounts configured to receive seller payouts. + * @description

Important! Split-payout functionality is only available to mainland China sellers, who can split payouts between their Payoneer account and bank account. Card payouts are not currently available for sellers in mainland China.


This method returns details on two payment instruments defined on a seller's account, including the ID, type, status, nickname, last four digits of the account number, and payout percentage for the instruments.

Using the instrumentId returned with this method, sellers can makes changes to the payout split of the instruments with the updatePayoutPercentage method. Note that the instrumentStatus of a payment instrument, also returned using this method, must be ACTIVE in order to do split payouts on that payment instrument. + */ get: operations["getPayoutSettings"]; put?: never; post?: never; @@ -64,7 +73,10 @@ export interface paths { }; get?: never; put?: never; - /** @description

Important! Split-payout functionality is only available to mainland China sellers, who can split payouts between their Payoneer account and bank account. Card payouts are not currently available for sellers in mainland China.


This method allows sellers in mainland China to configure the split-payout percentage for two payout instruments available for seller payouts. For example, a seller can split payouts to have 70% of the payout go to a bank account and 30% go to a Payoneer account.

Note: The split-payout percentage must always add up to 100%. If the values do not equal 100, the call will fail. Instruments cannot be added/removed using Finance and Account APIs.
Users can specify the payout instruments being updated by using the instrumentId associated with each payment instrument in the request payload. This value is returned by using the getPayoutSettings method. Users can specify the percentage of the payout allocated to each instrument using the payoutPercentage request field. This value must be a whole number and cannot exceed 100.

For more details on configuring split-payout percentages, see Mainland China Split Payout Playbook. */ + /** + * Updates the split-payout percentage for two payout instruments for sellers in mainland China. + * @description

Important! Split-payout functionality is only available to mainland China sellers, who can split payouts between their Payoneer account and bank account. Card payouts are not currently available for sellers in mainland China.


This method allows sellers in mainland China to configure the split-payout percentage for two payout instruments available for seller payouts. For example, a seller can split payouts to have 70% of the payout go to a bank account and 30% go to a Payoneer account.

Note: The split-payout percentage must always add up to 100%. If the values do not equal 100, the call will fail. Instruments cannot be added/removed using Finance and Account APIs.
Users can specify the payout instruments being updated by using the instrumentId associated with each payment instrument in the request payload. This value is returned by using the getPayoutSettings method. Users can specify the percentage of the payout allocated to each instrument using the payoutPercentage request field. This value must be a whole number and cannot exceed 100.

For more details on configuring split-payout percentages, see Mainland China Split Payout Playbook. + */ post: operations["updatePayoutPercentage"]; delete?: never; options?: never; @@ -72,20 +84,289 @@ export interface paths { patch?: never; trace?: never; }; + "/combined_shipping_rules/create_calculated_shipping_rules": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Creates calculated shipping rules that determine combined shipping costs based on item attributes, such as weight and dimensions, for the seller's account. + * @description This method creates or registers calculated shipping rules that determine combined shipping costs based on weight, item count, or cost parameters for an authenticated seller.

This shipping rule will apply to eBay listings that use the calculated shipping model. + */ + post: operations["createCalculatedShippingRules"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/combined_shipping_rules/create_flat_shipping_rules": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Creates flat-rate rules that apply standard combined shipping costs for a seller's listings. + * @description This method is used to create fixed-rate (flat) shipping rules that apply standard combined shipping costs for a seller’s listings. + */ + post: operations["createFlatShippingRules"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/combined_shipping_rules/create_promotional_shipping_rule": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Creates promotional shipping rules, such as discounts or free-shipping thresholds. + * @description This method defines promotional shipping rules such as discounts or free-shipping thresholds, configurable by marketplace for the seller. + */ + post: operations["createPromotionalShippingRule"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/combined_shipping_rules": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Retrieves all combined shipping rule configurations defined for the seller. + * @description This method retrieves all existing combined shipping rule configurations defined by the authenticated seller, including calculated, flat, and promotional types. + */ + get: operations["getCombinedShippingRules"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/combined_shipping_rules/update_calculated_shipping_rules": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Updates previously defined calculated shipping rules. + * @description This method updates previously defined calculated shipping rules to modify discount percentages, weight offsets, or amount parameters for the seller. + */ + post: operations["updateCalculatedShippingRules"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/combined_shipping_rules/update_combined_payments": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Updates combined payment settings that determine how unpaid orders can be merged. + * @description This method configures or modifies combined payment settings that determine how unpaid orders can be merged for a single invoice within a defined duration for the seller. + */ + post: operations["updateCombinedPayments"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/combined_shipping_rules/update_flat_shipping_rules": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Updates existing flat-rate shipping rules. + * @description This method updates existing shipping rules. + */ + post: operations["updateFlatShippingRules"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/combined_shipping_rules/update_promotional_shipping_rule": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Updates a promotional shipping rule to adjust discount thresholds, eligibility criteria, or duration for the seller. + * @description This method updates an existing promotional shipping rule to adjust discount thresholds, eligibility criteria, or duration for the seller. + */ + post: operations["updatePromotionalShippingRule"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/user_preferences": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Retrieves the seller's preferences for a specific eBay marketplace. + * @description This method retrieves the seller's preferences for a specific eBay marketplace, such as combined payment preferences, same-day shipping cutoff time, excluded shipping locations, and opt-in status for Business Policies and Out-of-Stock control. The fieldgroups query parameter specifies the type of seller preferences to retrieve. If fieldgroups = ALL or the parameter is omitted, all the supported seller preferences are returned. To retrieve only specific preferences, include the fieldgroups parameter with one or more supported values, delimited by commas. + */ + get: operations["getUserPreferences"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + /** + * Modifies one or more preferences for a seller on a specific marketplace. + * @description This method is used to modify one or more preferences for a seller on a specific marketplace. The preferences that can be modified include combined payment preferences, same-day shipping cutoff time, and opt-in status for Business Policies and Out-of-stock control. This is a PATCH operation, so you only need to include the fields that correspond to the preferences/settings that you are changing. + */ + patch: operations["setUserPreferences"]; + trace?: never; + }; } export type webhooks = Record; export interface components { schemas: { /** @description A complex type that describes the value of a monetary amount as represented by a global currency. */ Amount: { - /** @description The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD. For implementation help, refer to eBay API documentation */ - currency?: string; + /** @description The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD. */ + currency?: components["schemas"]["CurrencyCodeEnum"]; /** @description The monetary amount in the specified currency. */ value?: string; }; + /** @description This type defines the structure for calculated handling fee discounts applicable when combining multiple orders. */ + CalculatedHandlingRuleType: { + /** @description This enumeration value specifies the type of combined-shipping rule applied to handling fees (for example, weight-based, flat-rate, or percentage-based calculation method). */ + combinedShippingRuleType?: components["schemas"]["CombinedShippingRuleTypeHandlingEnum"]; + /** @description This container specifies the additional monetary charge applied for each extra item included in a combined shipment. */ + eachAdditionalAmount?: components["schemas"]["Amount"]; + /** @description This container represents the fixed monetary discount deducted from the total shipping cost for each additional item in a combined shipment. */ + eachAdditionalAmountOffShippingCost?: components["schemas"]["Amount"]; + /** @description This integer specifies the percentage discount applied to the total shipping cost for each additional item in a combined shipment. */ + eachAdditionalPercentOffShippingCost?: number; + /** @description This container represents the handling fee charged for processing a combined order, if applicable. */ + orderHandlingAmount?: components["schemas"]["Amount"]; + }; + /** @description This type describes calculated discount rules determining total shipping cost reductions for combined items. */ + CalculatedShippingRuleType: { + /** @description This array lists the discount rules applied to combined shipments, detailing calculation methods and rule identifiers.

When used by a create call, there won't be any rule ID. */ + combinedShippingRules?: components["schemas"]["CombinedShippingRule"][]; + /** @description This container defines the type of combined-shipping rule applied to calculate discounts, such as weight-based, percentage-based, or flat-rate models. */ + combinedShippingRuleType?: components["schemas"]["CombinedShippingRuleTypeEnum"]; + }; + /** @description This container is used to change the combined payment option. Sellers have the option to combine multiple line items from the same buyer into a combined invoice that can be paid for with one payment. See CombinedPaymentOptionEnum for a description of each value. */ + CombinedPaymentPreferencesType: { + /** @description This enum type defines the available options for handling combined payments when a seller allows multiple line items from the same buyer to be paid for with a single payment. See CombinedPaymentOptionEnum for a description of each value. */ + combinedPaymentOption?: components["schemas"]["CombinedPaymentOptionEnum"]; + }; + /** @description This container defines a discount profile schema for combined shipping, including rule IDs, names, and applicable weight or amount reductions.

Note: This field is not applicable for the create rule use case. */ + CombinedShippingRule: { + /** @description This field represents the unique identifier for the combined-shipping discount profile,

used to reference or update a specific rule configuration. */ + combinedShippingRuleId?: string; + /** @description This field specifies the unique name identifying the combined shipping discount profile within the seller’s account. This name is configured by the seller and can have a maximum of XX characters. */ + combinedShippingRuleName?: string; + /** @description This containter defines the additional monetary charge applied for each extra item when multiple items are shipped together. */ + eachAdditionalAmount?: components["schemas"]["Amount"]; + /** @description This container defines the fixed discount amount deducted from the total shipping cost for each additional item. */ + eachAdditionalAmountOffShippingCost?: components["schemas"]["Amount"]; + /** @description This integer specifies the percentage discount applied to the total shipping cost for each additional item in the combined order. */ + eachAdditionalPercentOffShippingCost?: number; + /** @description This field specifies the unique ID that links this combined-shipping rule to another related rule in the seller’s account. */ + mappedCombinedShippingRuleId?: string; + /** @description This container specifies the total weight reduction applied when combining multiple items into one shipment. */ + weightOffTotalWeight?: components["schemas"]["MeasureType"]; + }; + /** @description This type defines the structure of a request to create calculated shipping rules, including handling, duration, and rule type details. */ + CreateCalculatedShippingRulesRequest: { + /** @description This container defines the calculated handling fee rules applied to combined orders, specifying how handling costs are determined or discounted

based on combined-shipping parameters. */ + calculatedHandlingRule?: components["schemas"]["CalculatedHandlingRuleType"]; + /** @description This container defines the calculated shipping rule applied to combined orders, detailing how shipping discounts or costs are computed

based on item count, total weight, or order value. */ + calculatedShippingRule: components["schemas"]["CalculatedShippingRuleType"]; + /** @description This enumerated value specifies the time window during which multiple unpaid orders can be combined into a single payment or invoice, represented by using one of the values in CombinedPaymentPeriodEnum. */ + combinedDuration?: components["schemas"]["CombinedPaymentPeriodEnum"]; + }; + /** @description This type represents a request to configure flat-rate combined shipping rules with specified durations and conditions. */ + CreateFlatShippingRulesRequest: { + /** @description This enumerated value specifies the time window during which multiple unpaid orders can be combined into a single payment or invoice, represented by using one of the values in CombinedPaymentPeriodEnum. */ + combinedDuration: components["schemas"]["CombinedPaymentPeriodEnum"]; + /** @description This container defines the flat-rate combined-shipping rule, which applies a fixed shipping cost for multiple items shipped together. */ + flatShippingRule: components["schemas"]["FlatShippingRuleType"]; + }; + /** @description This type represents the request schema for creating promotional shipping rules with combined payment durations. */ + CreatePromotionalShippingRuleRequest: { + /** @description This container specifies the time window during which multiple unpaid orders can be combined into a single payment or invoice, represented by using one of the values in CombinedPaymentPeriodEnum. */ + combinedDuration?: components["schemas"]["CombinedPaymentPeriodEnum"]; + /** @description This container defines the promotional combined-shipping rule that offers discounts or free shipping based on order value, item count, or other qualifying conditions. */ + promotionalShippingRule: components["schemas"]["PromotionalShippingRuleType"]; + }; + /** @description This container is used to change the order cut-off time for same-day shipping. */ + DispatchCutoffTimePreferencesType: { + /** @description This field indicates the dispatch cut-off time in Zulu format (HH:mm:ss.SSSZ) - 24-hour format with milliseconds and Z timezone indicator.

Note: Despite the Z that is returned in the timestamp, the cut-off time is actually based on the default timezone of the eBay marketplace for the seller.

Note: If an eBay listing supports same-day shipping, and an order is paid for before the cut-off time, the seller is expected to ship the order out that same business day. */ + cutoffTime?: string; + }; + /** @description This container shows the seller's preferences for the end-of-auction email sent to the winning bidder. */ + EndOfAuctionEmailPreferencesType: { + /** @description This boolean field indicates whether or not the seller is using a customized email to send to winning bidders. */ + emailCustomized?: boolean; + /** @description This boolean field indicates whether or not the seller is using a customized logo in the emails that are sent to winning bidders. */ + logoCustomized?: boolean; + /** @description This enum indicates the type of logo that is used in the email that is sent to winning bidders. See EndOfAuctionLogoTypeEnum type for descriptions of the different logo types. */ + logoType?: components["schemas"]["EndOfAuctionLogoTypeEnum"]; + /** @description This field shows the URL path to a seller’s custom logo image that is being used in the email sent to winning bidders. This field is only returned if the seller is using a customized logo in emails. */ + logoUrl?: string; + /** @description This field shows the body text that is being used if the seller is sending customized emails to winning bidders. The template text has a maximum limit of 1000 characters. */ + templateText?: string; + /** @description This boolean field indicates whether or not the seller is using customized text in the emails that are sent to winning bidders. */ + textCustomized?: boolean; + }; /** @description This type defines the fields that can be returned in an error. */ Error: { - /** @description Identifies the type of erro. */ + /** @description Identifies the type of error. */ category?: string; /** @description Name for the primary system where the error occurred. This is relevant for application errors. */ domain?: string; @@ -113,81 +394,323 @@ export interface components { /** @description The value of the object. */ value?: string; }; + /** @description This type defines the flat-rate combined-shipping rule, which applies a fixed shipping cost for multiple items shipped together. */ + FlatShippingRuleType: { + /** @description This array specifies the type of combined-shipping rule applied, such as flat-rate or cost-based. */ + combinedShippingRules: components["schemas"]["CombinedShippingRule"][]; + /** @description This container defines the type of discount rule applied (e.g., percentage-based, fixed-rate). */ + combinedShippingRuleType: components["schemas"]["CombinedShippingRuleTypeEnum"]; + }; + /** @description The base response type of the getCombinedShippingRules method.

All of a seller's calculated, flat, and promotional shipping discount rules defined for an eBay marketplace will be returned in the response, along with the current combined duration value. */ + GetCombinedShippingRulesPublicApiResponse: { + /** @description This container will show one or more calculated shipping rules set up for that seller on that ebay marketplace.

Note: This will not be returned if a calculated handling rule is not set up for that seller on that eBay marketplace */ + calculatedHandlingRule?: components["schemas"]["CalculatedHandlingRuleType"]; + /** @description This container specifies the type of combined-shipping rule applied, such as flat-rate, weight-based, or cost-based. */ + calculatedShippingRule?: components["schemas"]["CalculatedShippingRuleType"]; + /** @description This field is represented by one of the values in the CombinedPaymentPeriodEnum. */ + combinedDuration?: components["schemas"]["CombinedPaymentPeriodEnum"]; + /** @description This container will show one or more flat shipping rules set up for that seller on that ebay marketplace. */ + flatShippingRule?: components["schemas"]["FlatShippingRuleType"]; + /** @description This container shows the promotional shipping rule that is currently set up on the seller's account for the eBay marketplace.

This container will not be returned if no promotional shipping rule is currently set up on the seller's account for the eBay marketplace. */ + promotionalShippingRule?: components["schemas"]["PromotionalShippingRuleType"]; + }; + /** @description This container represents the seller's preferences for the list of items that are awaiting payment. */ + GetItemsAwaitingPaymentPreferencesType: { + /** @description This boolean indicates if the item should be automatically relisted. */ + autoRelist?: boolean; + /** + * Format: int32 + * @description This integer indicates the delay in days before cancelling the buyer's commitment. + */ + delayBeforeCancellingCommitment?: number; + /** @description This string returns the list of sellers excluded from unpaid item assistance. */ + excludedUsers?: string[]; + /** @description This boolean indicates if the unpaid item assistance is opted in. */ + optInStatus?: boolean; + }; + /** @description This type defines the responses for the getUserPreferences method. */ + GetUserPreferencesResponse: { + /** @description This container returns the combined payment preferences when the COMBINED_PAYMENT value is included through the fieldgroups query parameter or when fieldgroups=ALL. It indicates if the seller allows multiple line items from the same buyer to be combined. */ + combinedPaymentPreferences?: components["schemas"]["CombinedPaymentPreferencesType"]; + /** @description This container is returned when the DISPATCH_CUTOFF_TIME value is included through the fieldgroups query parameter or when fieldgroups=ALL. */ + dispatchCutoffTimePreference?: components["schemas"]["DispatchCutoffTimePreferencesType"]; + /** @description This boolean field indicates whether or not the seller’s account is configured to automatically send an email to buyers with the shipment tracking number for an order. */ + emailShipmentTrackingNumberPreference?: boolean; + /** @description This container allows sellers to customize the email sent to buyers immediately after an auction listing is won. */ + endOfAuctionEmailPreferences?: components["schemas"]["EndOfAuctionEmailPreferencesType"]; + /** @description This boolean field indicates whether or not the seller’s new listings on the eBay marketplace will automatically use the Global Shipping Program for international shipping. This field is returned when the GLOBAL_SHIPPING_PROGRAM value is included through the fieldgroups query parameter or when fieldgroups=ALL.
Note: The Global Shipping Program is only available for the eBay UK marketplace, and the seller must be opted into the program. */ + globalShippingProgramListingPreference?: boolean; + /** @description This container shows the seller’s preferences for automatically handling unpaid line items. */ + itemsAwaitingPaymentPreferences?: components["schemas"]["GetItemsAwaitingPaymentPreferencesType"]; + /** @description This boolean field indicates whether or not the seller is opted into the Global Shipping Program on the eBay marketplace.
Note: The Global Shipping Program is only available for the eBay UK marketplace. */ + offerGlobalShippingProgramPreference?: boolean; + /** @description This boolean field indicates whether or not the seller is opted into the Out-of-Stock feature. With this feature, a multiple quantity fixed price listing that runs out of stock will be hidden from eBay search but kept alive. Once the sellers add quantity to the listing, the listing will become active and available again. */ + outOfStockControlPreference?: boolean; + /** @description This boolean field indicates whether or not the seller specifies an international shipping service to a particular country for a given listing, the specified service will take precedence and be the listing's default international shipping option for buyers in that country, rather than the Global Shipping Program.
Note: The Global Shipping Program is only available for the eBay UK marketplace. */ + overrideGspServiceWithIntlServicePreference?: boolean; + /** @description This boolean field indicates whether or not the seller is opted into the Click & Collect feature.
Note: The Click & Collect feature is only available on the eBay UK, Australia, and Germany marketplaces. */ + pickupDropoffSellerPreference?: boolean; + /** @description This boolean field indicates whether or not the seller’s account is configured to have eBay send occasional purchase reminder emails for unpaid line items. */ + purchaseReminderEmailPreferences?: boolean; + /** @description This boolean field indicates whether or not the buyer is required to provide a shipping phone number during checkout. */ + requiredShipPhoneNumberPreference?: boolean; + /** @description This container shows the list of locations that the seller does not ship to. This list of shipping locations can only be updated in My eBay through Shipping Preferences and not with the setUserPreferences method. */ + sellerExcludeShipToLocationPreferences?: components["schemas"]["SellerExcludeShipToLocationPreferencesType"]; + /** @description This container is returned when the SELLER_PROFILE value is included through the fieldgroups query parameter or when fieldgroups=ALL. */ + sellerProfilePreferences?: components["schemas"]["SellerProfilePreferencesType"]; + /** @description This container indicates the FedEx, UPS, and US Post Office shipping rate types that are available to the seller. This container is returned when the SHIPPING_CARRIER_RATE value is included through the fieldgroups query parameter or when fieldgroups=ALL.
Note: This container is only applicable to the eBay US marketplace. */ + shippingCarrierRatePreferences?: components["schemas"]["ShippingCarrierRatePreferencesType"]; + }; + /** @description This type displays measurement type with value, unit, and measurement system. */ + MeasureType: { + /** @description This field defines the unit of measure (e.g., kilograms, pounds) associated with the value field. */ + unit?: components["schemas"]["WeightUnitOfMeasureEnum"]; + /** @description This field defines the numeric value representing the measurement, weight, in the specified unit. */ + value?: string; + }; /** @description This type is used to provide details about one or two of the seller's accounts that are enabled to receive payouts. */ PayoutInstrument: { /** @description The last four digits of the account that the seller uses to receive payouts. This may be the last four digits of a bank account or a payment processor account such as Payoneer. */ - accountLastFourDigits?: string; + accountLastFourDigits: string; /** @description The unique reference identifier for a payout instrument. The instrumentId is needed to change the split-payout percentages through an updatePayoutPercentage request. */ - instrumentId?: string; - /** @description The status of a payout instrument. Valid payout instrument statuses include:
  • PENDING: This status indicates that the account must be verified before it can be used.
  • ACTIVE:This status indicates that payouts are enabled on this account.
  • VERIFICATION_FAILED: This status indicates that verification has failed for this account and payouts are disabled.
  • INACTIVE: This status indicates that this account has become inactive and payouts are disabled.

See InstrumentStatusEnum for more details on each instrument status value.

Note: Payment accounts can only receive payouts if the status of a payout instrument is ACTIVE. For implementation help, refer to eBay API documentation */ - instrumentStatus?: string; + instrumentId: string; + /** @description The status of a payout instrument. Valid payout instrument statuses include:
  • PENDING: This status indicates that the account must be verified before it can be used.
  • ACTIVE:This status indicates that payouts are enabled on this account.
  • VERIFICATION_FAILED: This status indicates that verification has failed for this account and payouts are disabled.
  • INACTIVE: This status indicates that this account has become inactive and payouts are disabled.

See InstrumentStatusEnum for more details on each instrument status value.

Note: Payment accounts can only receive payouts if the status of a payout instrument is ACTIVE. */ + instrumentStatus: components["schemas"]["InstrumentStatusEnum"]; /** @description The type of account that received payouts. The value returned in this field may be:
  • BANK: Indicates that the payout was made to a seller's bank account.
  • CARD (Not Currently Available): Indicates that the payout went to a seller's debit card.
  • The name of a digital wallet provider or payment processor (e.g., PAYONEER)

Note: Only Payoneer is currently supported for sellers in mainland China. Card payouts are not currently available for sellers in mainland China. */ - instrumentType?: string; + instrumentType: string; /** @description When instrumentType returns BANK, this value is the seller-provided nickname that the seller uses to represent the bank account that receives the payout.

When instrumentType returns CARD, this value is the debit card network for the debit card that receives the payout.

When instrumentType returns a provider of digital wallet or payment processing services, the value returned is the name of the service provider (e.g., PAYONEER)

Note: Only Payoneer is currently supported for sellers in mainland China. Card payouts are not currently available for sellers in mainland China. */ - nickname?: string; + nickname: string; /** @description The current payout percentage allocated to an instrument. For example, 50 indicates that 50% of the payout goes to the instrument. */ payoutPercentage?: string; }; /** @description The base response type of the getPayoutSettings method. */ PayoutSettingsResponse: { /** @description This array provides details about the seller's accounts defined for the seller's account.

Payment accounts can only receive payouts if the status of the payout instrument is ACTIVE. */ - payoutInstruments?: components["schemas"]["PayoutInstrument"][]; + payoutInstruments: components["schemas"]["PayoutInstrument"][]; + }; + /** @description This type is used to represent a promotional shipping rule set up by the seller on an eBay marketplace. */ + PromotionalShippingRuleType: { + /** @description This field specifies the type of combined-shipping rule applied, such as flat-rate or cost-based, as defined in the CombinedShippingRuleTypeEnum. */ + combinedShippingRuleType?: components["schemas"]["CombinedShippingRuleTypeEnum"]; + /** + * Format: int32 + * @description This integer indicates the quantity of items that must be purchased by the buyer in order for that buyer to qualify for the promotional discount. + */ + itemCount?: number; + /** @description This container specifies the minimum order amount required to qualify for the associated discount or promotional rule. */ + orderAmount?: components["schemas"]["Amount"]; + /** @description This container represents the total shipping cost or discounted shipping charge for the combined order. */ + shippingCost?: components["schemas"]["Amount"]; }; /** @description This container details shipping rate information identified by a unique rate ID. A successful call returns the requested shipping rate information. */ Rate: { /** @description An additional shipping cost added to the base shipping rate (i.e., shippingCost).

This amount applies only to the following rateTableBasis options:
  • WEIGHT: This is a cost per unit weight and is calculated using the weight of the item(s) being shipped.
  • SURCHARGE: This is a flat amount that is added to the base shipping rate.
This field is returned only when it is applicable to the specified rate ID. */ additionalCost?: components["schemas"]["Amount"]; /** @description The unique identifier for rate information.

Note: This is a string that is automatically assigned by the system when a rate object is created. */ - rateId?: string; - /** @description Indicates the level of shipping service to which the shipping rate information applies.

Available shipping categories are:
  • ONE_DAY: This option is not supported when shippingOptionType is INTERNATIONAL.
  • EXPEDITED
  • STANDARD
  • ECONOMY
  • EXPRESS: This option is supported only when MarketplaceId is EBAY_DE (Germany)
For implementation help, refer to eBay API documentation */ - shippingCategory?: string; + rateId: string; + /** @description Indicates the level of shipping service to which the shipping rate information applies.

Available shipping categories are:
  • ONE_DAY: This option is not supported when shippingOptionType is INTERNATIONAL.
  • EXPEDITED
  • STANDARD
  • ECONOMY
  • EXPRESS: This option is supported only when MarketplaceId is EBAY_DE (Germany)
*/ + shippingCategory: components["schemas"]["ShippingCategoryEnum"]; /** @description Specifies the base shipping rate for an item.

This amount applies only to the following rateTableBasis options:
  • ITEM: This is a flat rate shipping cost per item being shipped.
  • WEIGHT: This is a cost per unit weight and is calculated using the weight of the item(s) being shipped.
*/ shippingCost?: components["schemas"]["Amount"]; /** @description An array of Region names to which the shipping rate information applies.

Returned values may be:
  • Geographical Regions (e.g., Worldwide, Europe, and Middle East)
  • Individual countries identified by a two-letter code such as US (United States), CA (Canada), and GB (United Kingdom)
  • US states and/or Canadian provinces identified by a two-letter code such as NY (New York) or SK (Saskatchewan)
  • Domestic Regions such as AK/HI (Alaska/Hawaii)
*/ - shippingRegionNames?: string[]; + shippingRegionNames: string[]; /** @description An enum value that indicates the shipping service used for the specified shipping rate. These enum values align with ShippingService metadata returned by a GeteBayDetails call with DetailName set to shippingServiceDetails. */ shippingServiceCode?: string; }; /** @description This container includes all information pertaining to a shipping rate table. A successful call returns the requested shipping rate information. */ RateTableDetails: { - /** @description Identifies the eBay marketplace to which the shipping rate table applies. For implementation help, refer to eBay API documentation */ - marketplaceId?: string; + /** @description Identifies the eBay marketplace to which the shipping rate table applies. */ + marketplaceId: components["schemas"]["MarketplaceIdEnum"]; /** @description The seller-defined name for the shipping rate table. Names must be unique for each table assigned to the same seller, shippingOptionType, and eBay marketplace.

Max length: 50 */ - name?: string; + name: string; /** @description An array of rate objects associated with the specified shipping rate table. Each rate object is identified by a unique system-generated ID and defines specific shipping rate information. */ - rates?: components["schemas"]["Rate"][]; - /** @description The rate calculation type provides three methods of calculating the shipping cost based on the seller's selection/input:
  • ITEM: Specifies the flat rate shipping cost that buyers in the specified shipping region will pay. When this option is selected, information specified in the rate table overrides all shipping options/costs that are specified at the listing level. Buyers in the specified regions will only see the services provided in the rate table. Buyers in other regions that are not specified in the rate table will see the shipping services associated with the listing.
  • WEIGHT: Seller can provide minimum shipping cost and an additional shipping cost per pound. The additional cost will be calculated based on the weight the seller provide at the time of listing. Buyers will see the total shipping cost and won’t see these calculations. Buyers in the specified regions will only see the services provided in the rate table. Buyers in other regions that were not specified in the rate table, will see the shipping services associated with the listing.
  • SURCHARGE: Lists surcharges for buyers within specified regions, or indicates a flat amount added to the shipping cost specified within an item's listing. Buyers will see only the total shipping cost as well as shipping services associated with the item's listing. If a SURCHARGE is specified in the rate table for certain regions, buyers in those regions will see the (shipping cost + SURCHARGE) total.
For implementation help, refer to eBay API documentation */ - rateTableBasis?: string; + rates: components["schemas"]["Rate"][]; + /** @description The rate calculation type provides three methods of calculating the shipping cost based on the seller's selection/input:
  • ITEM: Specifies the flat rate shipping cost that buyers in the specified shipping region will pay. When this option is selected, information specified in the rate table overrides all shipping options/costs that are specified at the listing level. Buyers in the specified regions will only see the services provided in the rate table. Buyers in other regions that are not specified in the rate table will see the shipping services associated with the listing.
  • WEIGHT: Seller can provide minimum shipping cost and an additional shipping cost per pound. The additional cost will be calculated based on the weight the seller provide at the time of listing. Buyers will see the total shipping cost and won’t see these calculations. Buyers in the specified regions will only see the services provided in the rate table. Buyers in other regions that were not specified in the rate table, will see the shipping services associated with the listing.
  • SURCHARGE: Lists surcharges for buyers within specified regions, or indicates a flat amount added to the shipping cost specified within an item's listing. Buyers will see only the total shipping cost as well as shipping services associated with the item's listing. If a SURCHARGE is specified in the rate table for certain regions, buyers in those regions will see the (shipping cost + SURCHARGE) total.
*/ + rateTableBasis?: components["schemas"]["ShippingRateCalculationEnum"]; /** @description A unique, system-generated ID assigned to the shipping rate table when it is initially created. */ - rateTableId?: string; - /** @description The region serviced by the shipping rate table. Valid values are:
  • DOMESTIC: Indicates that the shipping rate table applies to shipping destinations within the country in which an item has been listed (i.e., the source country).
  • INTERNATIONAL: Indicates that the shipping rate table applies to shipping destinations outside of the country in which an item has been listed.
For implementation help, refer to eBay API documentation */ - shippingOptionType?: string; + rateTableId: string; + /** @description The region serviced by the shipping rate table. Valid values are:
  • DOMESTIC: Indicates that the shipping rate table applies to shipping destinations within the country in which an item has been listed (i.e., the source country).
  • INTERNATIONAL: Indicates that the shipping rate table applies to shipping destinations outside of the country in which an item has been listed.
*/ + shippingOptionType: components["schemas"]["ShippingOptionTypeEnum"]; }; /** @description This type is used by the request payload of the updateShippingCost method to pass updated shipping cost information for a rate table identified by rateTableId. */ RateTableUpdate: { /** @description An array of rate objects for which shippingCost and/or additionalCost are to be updated. */ - rates?: components["schemas"]["RateUpdate"][]; + rates: components["schemas"]["RateUpdate"][]; }; /** @description This container defines the updated shipping cost information for a rate object identified by rateId.

To view a list of all rate objects and corresponding rateID values, issue getRateTable for the rate table identified by rateTableId. */ RateUpdate: { /** @description An additional shipping cost added to the base shipping rate (i.e., shippingCost).

This amount applies only to the following rateTableBasis options:
  • WEIGHT: This is a cost per unit weight and is calculated using the weight of the item(s) being shipped.
  • SURCHARGE: This is a flat amount that is added to the base shipping rate.
This field is returned only when it is applicable to the specified rate ID. */ additionalCost?: components["schemas"]["Amount"]; /** @description The identifier for the rate object.

Note: This is a string automatically assigned by the system when the rate object is created. It cannot be changed or updated. */ - rateId?: string; + rateId: string; /** @description This is the base shipping rate for an item.

This amount applies only to the following rateTableBasis options:
  • ITEM: This is a flat rate shipping cost per item being shipped.
  • WEIGHT: This is a cost per unit weight and is calculated using the weight of the item(s) being shipped.
*/ shippingCost?: components["schemas"]["Amount"]; }; + /** @description This container represents the list of locations that the seller wants to exclude from shipping. */ + SellerExcludeShipToLocationPreferencesType: { + /** @description This array shows the list of locations that the seller does not ship to. Excluded locations may include continents and large geographical areas. For example, 'Middle East', individual countries represented by two-letter codes, or special locations within a country such as 'Alaska/Hawaii' or 'PO Box'. */ + excludeShipToLocations?: string[]; + }; + /** @description This container indicates whether or not the seller is opted into Business Policies. If a seller is opted into Business Policies, they must use Payment,Return, and Shipping business policies instead of individual payment, return, and shipping fields. */ + SellerProfilePreferencesType: { + /** @description This boolean indicates whether the seller has opted in to seller profiles. */ + sellerProfileOptedIn?: boolean; + }; + /** @description This field is included if the seller wishes to add or modify the shipping carrier rate type that is available to the seller. This field is only returned if set.
Note: This container is only applicable to the eBay US marketplace. */ + ShippingCarrierRatePreferencesType: { + /** @description This enum is included if the seller wishes to add or modify the FedEx shipping carrier rate.
Note: This preference is only applicable to the eBay US marketplace. */ + fedexRateOption?: components["schemas"]["FedexRateOptionEnum"]; + /** @description This enum is included if the seller wishes to add or modify the UPS shipping carrier rate.
Note: This preference is only applicable to the eBay US marketplace. */ + upsRateOption?: components["schemas"]["UPSRateOptionEnum"]; + }; + /** @description This type is used to update calculated shipping rules. */ + UpdateCalculatedShippingRulesRequest: { + /** @description This container specifies the calculated handling rule that determines how handling fees are automatically computed based on order weight, quantity, or value in a combined shipment. */ + calculatedHandlingRule?: components["schemas"]["CalculatedHandlingRuleType"]; + /** @description This container defines the calculated shipping rule that determines shipping costs or discounts based on factors such as total weight, price, or item count in a combined order. */ + calculatedShippingRule?: components["schemas"]["CalculatedShippingRuleType"]; + /** @description This enumerated value specifies the duration within which multiple unpaid orders may be combined into a single invoice, represented by one of the values in CombinedPaymentPeriodEnum. */ + combinedDuration?: components["schemas"]["CombinedPaymentPeriodEnum"]; + }; + /** @description This type is used to update the combined payment duration */ + UpdateCombinedPaymentsRequest: { + /** @description This field specifies the duration within which multiple unpaid orders may be combined into a single invoice.

One of the values in CombinedPaymentPeriodEnum must be used in this field. */ + combinedDuration: components["schemas"]["CombinedPaymentPeriodEnum"]; + }; + /** @description This type defines a request to update flat shipping rules. */ + UpdateFlatShippingRulesRequest: { + /** @description This field specifies the duration within which multiple unpaid orders may be combined into a single invoice.

One of the values in CombinedPaymentPeriodEnum must be used in this field. */ + combinedDuration: components["schemas"]["CombinedPaymentPeriodEnum"]; + /** @description This container defines the flat-rate combined-shipping rule, which applies a fixed shipping cost for multiple items shipped together. */ + flatShippingRule: components["schemas"]["FlatShippingRuleType"]; + }; /** @description This type allows the user to change the payout percentages for two active payment instruments. */ UpdatePayoutPercentage: { - /** @description The unique reference identifier for a payout instrument. This value is returned in the getPayoutSettings response and is needed to change split-payout percentages through an updatePayoutPercentage request. */ - instrumentId?: string; + /** @description The unique reference identifier for a payout instrument. This value is returned in the getPayoutSettings response and is needed to change split-payout percentages through an updatePayoutPercentage request. */ + instrumentId: string; /** @description The user-defined payout percentage allocated to this instrument. For example, 50 indicates that 50% of the payout goes to this instrument.

The split-payout percentage must be a positive integer value from 0-100. The values of two instruments must always add up to 100%. If the values do not equal 100, the call will fail. */ - payoutPercentage?: string; + payoutPercentage: string; }; /** @description This type is used by the request payload of the updatePayoutPercentage method to allow a seller to configure the split-payout percentages for two payout instruments. */ UpdatePayoutPercentageRequest: { /** @description This array allows the seller to set the payout split percentages for two accounts enabled to receive payouts. */ - payoutInstruments?: components["schemas"]["UpdatePayoutPercentage"][]; + payoutInstruments: components["schemas"]["UpdatePayoutPercentage"][]; + }; + /** @description This type defines a request to update promotional shipping rule. */ + UpdatePromotionalShippingRuleRequest: { + /** @description This container specifies the duration within which multiple unpaid orders may be combined into a single invoice.

One of the values in CombinedPaymentPeriodEnum must be used in this field. */ + combinedDuration?: components["schemas"]["CombinedPaymentPeriodEnum"]; + /** @description This container specifies the promotional shipping rule that offers discounts or free-shipping options based on defined order thresholds, item counts, or marketplace conditions. */ + promotionalShippingRule?: components["schemas"]["PromotionalShippingRuleType"]; + }; + /** + * @description This enum type defines the available options for handling combined payments when a seller allows multiple line items from the same buyer to be paid for with a single payment. See CombinedPaymentOptionEnum for a description of each value. | - **NO_COMBINED_PAYMENT**: Indicates that combined payments are not allowed. - **DISCOUNT_SPECIFIED**: Indicates that a combined-payment discount has been specified. - **SPECIFY_DISCOUNT_LATER**: Indicates that the seller will specify the combined-payment discount later. + * @enum {string} + */ + CombinedPaymentOptionEnum: "NO_COMBINED_PAYMENT" | "DISCOUNT_SPECIFIED" | "SPECIFY_DISCOUNT_LATER"; + /** + * @description This enumerated type defines the allowable time durations (e.g., 3, 7, 14 days) within which multiple unpaid items may be merged into a combined invoice. | - **DAYS_14**: Indicates that eligible unpaid line items can be combined into one payment for up to 14 days. - **DAYS_3**: Indicates that eligible unpaid line items can be combined into one payment for up to 3 days. - **DAYS_30**: Indicates that eligible unpaid line items can be combined into one payment for up to 30 days. - **DAYS_5**: Indicates that eligible unpaid line items can be combined into one payment for up to 5 days. - **DAYS_7**: Indicates that eligible unpaid line items can be combined into one payment for up to 7 days. - **INELIGIBLE**: Indicates that the buyer is not eligible to combine unpaid line items into one payment. + * @enum {string} + */ + CombinedPaymentPeriodEnum: "DAYS_14" | "DAYS_3" | "DAYS_30" | "DAYS_5" | "DAYS_7" | "INELIGIBLE"; + /** + * @description This enumeration type defines the available types of combined-shipping rules, such as weight-based, cost-based, or flat-rate discount models. | - **COMBINED_ITEM_WEIGHT**: Indicates that combined shipping is calculated from the combined weight of the items in the order. - **EACH_ADDITIONAL_AMOUNT**: Indicates that a specified amount is charged for each additional item in the order. - **EACH_ADDITIONAL_AMOUNT_OFF**: Indicates that a specified amount is subtracted from the shipping cost for each additional item in the order. - **EACH_ADDITIONAL_PERCENT_OFF**: Indicates that a specified percentage is subtracted from the shipping cost for each additional item in the order. - **INDIVIDUAL_ITEM_WEIGHT**: Indicates that combined shipping is calculated from the individual item weights. - **MAXIMUM_SHIPPING_COST_PER_ORDER**: Indicates that the combined shipping cost is capped at a maximum amount for the order. - **SHIPPING_COST_X_FOR_AMOUNT_Y**: Indicates that the shipping cost is a specified amount when the order amount meets a configured threshold. - **SHIPPING_COST_X_FOR_ITEM_COUNT_N**: Indicates that the shipping cost is a specified amount when the order item count meets a configured threshold. - **WEIGHT_OFF**: Indicates that a specified weight amount is subtracted from the total order weight. + * @enum {string} + */ + CombinedShippingRuleTypeEnum: "COMBINED_ITEM_WEIGHT" | "EACH_ADDITIONAL_AMOUNT" | "EACH_ADDITIONAL_AMOUNT_OFF" | "EACH_ADDITIONAL_PERCENT_OFF" | "INDIVIDUAL_ITEM_WEIGHT" | "MAXIMUM_SHIPPING_COST_PER_ORDER" | "SHIPPING_COST_X_FOR_AMOUNT_Y" | "SHIPPING_COST_X_FOR_ITEM_COUNT_N" | "WEIGHT_OFF"; + /** + * @description This enumeration type calculates all valid handling discount rule types that govern how combined order handling costs are applied. | - **COMBINED_HANDLING_FEE**: Indicates that handling fees are combined for the order. - **EACH_ADDITIONAL_AMOUNT**: Indicates that a specified handling amount is charged for each additional item. - **EACH_ADDITIONAL_AMOUNT_OFF**: Indicates that a specified amount is subtracted from the handling cost for each additional item. - **EACH_ADDITIONAL_PERCENT_OFF**: Indicates that a specified percentage is subtracted from the handling cost for each additional item. - **INDIVIDUAL_HANDLING_FEE**: Indicates that handling fees are calculated separately for individual items. + * @enum {string} + */ + CombinedShippingRuleTypeHandlingEnum: "COMBINED_HANDLING_FEE" | "EACH_ADDITIONAL_AMOUNT" | "EACH_ADDITIONAL_AMOUNT_OFF" | "EACH_ADDITIONAL_PERCENT_OFF" | "INDIVIDUAL_HANDLING_FEE"; + /** + * @description This enumerated type lists the three-letter ISO 4217 codes representing the supported world currencies. | - **AED**: Indicates the currency is United Arab Emirates dirham. - **AFN**: Indicates the currency is Afghan afghani. - **ALL**: Indicates the currency is Albanian lek. - **AMD**: Indicates the currency is Armenian dram. - **ANG**: Indicates the currency is Netherlands Antillean guilder. - **AOA**: Indicates the currency is Angolan kwanza. - **ARS**: Indicates the currency is Argentine peso. - **AUD**: Indicates the currency is Australian dollar. - **AWG**: Indicates the currency is Aruban florin. - **AZN**: Indicates the currency is Azerbaijani manat. - **BAM**: Indicates the currency is Bosnia and Herzegovina convertible mark. - **BBD**: Indicates the currency is Barbados dollar. - **BDT**: Indicates the currency is Bangladeshi taka. - **BGN**: Indicates the currency is Bulgarian lev. - **BHD**: Indicates the currency is Bahraini dinar. - **BIF**: Indicates the currency is Burundian franc. - **BMD**: Indicates the currency is Bermudian dollar. - **BND**: Indicates the currency is Brunei dollar. - **BOB**: Indicates the currency is Bolivian boliviano. - **BRL**: Indicates the currency is Brazilian real. - **BSD**: Indicates the currency is Bahamian dollar. - **BTN**: Indicates the currency is Bhutanese ngultrum. - **BWP**: Indicates the currency is Botswana pula. - **BYR**: Indicates the currency is Belarusian ruble. - **BZD**: Indicates the currency is Belize dollar. - **CAD**: Indicates the currency is Canadian dollar. - **CDF**: Indicates the currency is Congolese franc. - **CHF**: Indicates the currency is Swiss franc. - **CLP**: Indicates the currency is Chilean peso. - **CNY**: Indicates the currency is Chinese yuan. - **COP**: Indicates the currency is Colombian peso. - **CRC**: Indicates the currency is Costa Rican colon. - **CUP**: Indicates the currency is Cuban peso. - **CVE**: Indicates the currency is Cape Verdean escudo. - **CZK**: Indicates the currency is Czech koruna. - **DJF**: Indicates the currency is Djiboutian franc. - **DKK**: Indicates the currency is Danish krone. - **DOP**: Indicates the currency is Dominican peso. - **DZD**: Indicates the currency is Algerian dinar. - **EGP**: Indicates the currency is Egyptian pound. - **ERN**: Indicates the currency is Eritrean nakfa. - **ETB**: Indicates the currency is Ethiopian birr. - **EUR**: Indicates the currency is Euro. - **FJD**: Indicates the currency is Fiji dollar. - **FKP**: Indicates the currency is Falkland Islands pound. - **GBP**: Indicates the currency is Pound sterling. - **GEL**: Indicates the currency is Georgian lari. - **GHS**: Indicates the currency is Ghanaian cedi. - **GIP**: Indicates the currency is Gibraltar pound. - **GMD**: Indicates the currency is Gambian dalasi. - **GNF**: Indicates the currency is Guinean franc. - **GTQ**: Indicates the currency is Guatemalan quetzal. - **GYD**: Indicates the currency is Guyanese dollar. - **HKD**: Indicates the currency is Hong Kong dollar. - **HNL**: Indicates the currency is Honduran lempira. - **HRK**: Indicates the currency is Croatian kuna. - **HTG**: Indicates the currency is Haitian gourde. - **HUF**: Indicates the currency is Hungarian forint. - **IDR**: Indicates the currency is Indonesian rupiah. - **ILS**: Indicates the currency is Israeli new shekel. - **INR**: Indicates the currency is Indian rupee. - **IQD**: Indicates the currency is Iraqi dinar. - **IRR**: Indicates the currency is Iranian rial. - **ISK**: Indicates the currency is Icelandic krona. - **JMD**: Indicates the currency is Jamaican dollar. - **JOD**: Indicates the currency is Jordanian dinar. - **JPY**: Indicates the currency is Japanese yen. - **KES**: Indicates the currency is Kenyan shilling. - **KGS**: Indicates the currency is Kyrgyzstani som. - **KHR**: Indicates the currency is Cambodian riel. - **KMF**: Indicates the currency is Comorian franc. - **KPW**: Indicates the currency is North Korean won. - **KRW**: Indicates the currency is South Korean won. - **KWD**: Indicates the currency is Kuwaiti dinar. - **KYD**: Indicates the currency is Cayman Islands dollar. - **KZT**: Indicates the currency is Kazakhstani tenge. - **LAK**: Indicates the currency is Lao kip. - **LBP**: Indicates the currency is Lebanese pound. - **LKR**: Indicates the currency is Sri Lankan rupee. - **LRD**: Indicates the currency is Liberian dollar. - **LSL**: Indicates the currency is Lesotho loti. - **LTL**: Indicates the currency is Lithuanian litas. - **LYD**: Indicates the currency is Libyan dinar. - **MAD**: Indicates the currency is Moroccan dirham. - **MDL**: Indicates the currency is Moldovan leu. - **MGA**: Indicates the currency is Malagasy ariary. - **MKD**: Indicates the currency is Macedonian denar. - **MMK**: Indicates the currency is Myanmar kyat. - **MNT**: Indicates the currency is Mongolian tugrik. - **MOP**: Indicates the currency is Macanese pataca. - **MRO**: Indicates the currency is Mauritanian ouguiya. - **MUR**: Indicates the currency is Mauritian rupee. - **MVR**: Indicates the currency is Maldivian rufiyaa. - **MWK**: Indicates the currency is Malawian kwacha. - **MXN**: Indicates the currency is Mexican peso. - **MYR**: Indicates the currency is Malaysian ringgit. - **MZN**: Indicates the currency is Mozambican metical. - **NAD**: Indicates the currency is Namibian dollar. - **NGN**: Indicates the currency is Nigerian naira. - **NIO**: Indicates the currency is Nicaraguan cordoba. - **NOK**: Indicates the currency is Norwegian krone. - **NPR**: Indicates the currency is Nepalese rupee. - **NZD**: Indicates the currency is New Zealand dollar. - **OMR**: Indicates the currency is Omani rial. - **PAB**: Indicates the currency is Panamanian balboa. - **PEN**: Indicates the currency is Peruvian sol. - **PGK**: Indicates the currency is Papua New Guinean kina. - **PHP**: Indicates the currency is Philippine peso. - **PKR**: Indicates the currency is Pakistani rupee. - **PLN**: Indicates the currency is Polish zloty. - **PYG**: Indicates the currency is Paraguayan guarani. - **QAR**: Indicates the currency is Qatari riyal. - **RON**: Indicates the currency is Romanian leu. - **RSD**: Indicates the currency is Serbian dinar. - **RUB**: Indicates the currency is Russian ruble. - **RWF**: Indicates the currency is Rwandan franc. - **SAR**: Indicates the currency is Saudi riyal. - **SBD**: Indicates the currency is Solomon Islands dollar. - **SCR**: Indicates the currency is Seychelles rupee. - **SDG**: Indicates the currency is Sudanese pound. - **SEK**: Indicates the currency is Swedish krona. - **SGD**: Indicates the currency is Singapore dollar. - **SHP**: Indicates the currency is Saint Helena pound. - **SLL**: Indicates the currency is Sierra Leonean leone. - **SOS**: Indicates the currency is Somali shilling. - **SRD**: Indicates the currency is Surinamese dollar. - **STD**: Indicates the currency is Sao Tome and Principe dobra. - **SYP**: Indicates the currency is Syrian pound. - **SZL**: Indicates the currency is Swazi lilangeni. - **THB**: Indicates the currency is Thai baht. - **TJS**: Indicates the currency is Tajikistani somoni. - **TMT**: Indicates the currency is Turkmenistan manat. - **TND**: Indicates the currency is Tunisian dinar. - **TOP**: Indicates the currency is Tongan paanga. - **TRY**: Indicates the currency is Turkish lira. - **TTD**: Indicates the currency is Trinidad and Tobago dollar. - **TWD**: Indicates the currency is New Taiwan dollar. - **TZS**: Indicates the currency is Tanzanian shilling. - **UAH**: Indicates the currency is Ukrainian hryvnia. - **UGX**: Indicates the currency is Ugandan shilling. - **USD**: Indicates the currency is United States dollar. - **UYU**: Indicates the currency is Uruguayan peso. - **UZS**: Indicates the currency is Uzbekistani som. - **VEF**: Indicates the currency is Venezuelan bolivar. - **VND**: Indicates the currency is Vietnamese dong. - **VUV**: Indicates the currency is Vanuatu vatu. - **WST**: Indicates the currency is Samoan tala. - **XAF**: Indicates the currency is Central African CFA franc. - **XCD**: Indicates the currency is East Caribbean dollar. - **XOF**: Indicates the currency is West African CFA franc. - **XPF**: Indicates the currency is CFP franc. - **YER**: Indicates the currency is Yemeni rial. - **ZAR**: Indicates the currency is South African rand. - **ZMW**: Indicates the currency is Zambian kwacha. - **ZWL**: Indicates the currency is Zimbabwean dollar. + * @enum {string} + */ + CurrencyCodeEnum: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LTL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL"; + /** + * @description This enum type defines the supported logo types that can be used in end-of-auction emails sent to winning bidders. | - **WINNING_BIDDER_NOTICE**: Indicates that the winning-bidder notice logo is used. - **STORE**: Indicates that the seller's eBay Store logo is used. - **CUSTOMIZED**: Indicates that the seller uses a customized logo. - **NONE**: Indicates that no logo is used. + * @enum {string} + */ + EndOfAuctionLogoTypeEnum: "WINNING_BIDDER_NOTICE" | "STORE" | "CUSTOMIZED" | "NONE"; + /** + * @description This enum type defines the FedEx shipping rate options that are available to the seller. | - **FEDEX_STANDARD_LIST**: Indicates that FedEx standard list rates are used. - **FEDEX_COUNTER**: Indicates that FedEx counter rates are used. + * @enum {string} + */ + FedexRateOptionEnum: "FEDEX_STANDARD_LIST" | "FEDEX_COUNTER"; + /** + * @description This enumeration type lists the different possible instrument statuses that can be returned with the getPayoutSettings method.

Note: Payout splits can only be modified for accounts in ACTIVE state. | - **PENDING**: This status indicates that the account must be verified before it can be used. - **ACTIVE**: This status indicates that payouts are enabled on this account. - **VERIFICATION_FAILED**: This status indicates that verification has failed for this account and payouts are disabled. - **INACTIVE**: This status indicates that this account has become inactive and payouts are disabled. + * @enum {string} + */ + InstrumentStatusEnum: "PENDING" | "ACTIVE" | "VERIFICATION_FAILED" | "INACTIVE"; + /** + * @description This enumerated type defines the unique eBay-assigned IDs for each of the eBay marketplaces. | - **EBAY_AT**: Indicates the eBay marketplace for Austria (https://www.ebay.at). - **EBAY_AU**: Indicates the eBay marketplace for Australia (https://www.ebay.com.au). - **EBAY_BE**: Indicates the eBay marketplace for Belgium (https://www.ebay.be/). - **EBAY_CA**: Indicates the eBay marketplace for Canada (https://www.ebay.ca). - **EBAY_CH**: Indicates the eBay marketplace for Switzerland (https://www.ebay.ch). - **EBAY_CN**: Reserved for future use. - **EBAY_CZ**: Reserved for future use. - **EBAY_DE**: Indicates the eBay marketplace for Germany (https://www.ebay.de). - **EBAY_DK**: Reserved for future use. - **EBAY_ES**: Indicates the eBay marketplace for Spain (https://www.ebay.es). - **EBAY_FI**: Reserved for future use. - **EBAY_FR**: Indicates the eBay marketplace for France (https://www.ebay.fr). - **EBAY_GB**: Indicates the eBay marketplace for Great Britain (https://www.ebay.co.uk). - **EBAY_GR**: Reserved for future use. - **EBAY_HK**: Indicates the eBay marketplace for Hong Kong (https://www.ebay.com.hk). - **EBAY_HU**: Reserved for future use. - **EBAY_ID**: Reserved for future use. - **EBAY_IE**: Indicates the eBay marketplace for Ireland (https://www.ebay.ie). - **EBAY_IL**: Reserved for future use. - **EBAY_IN**: Indicates the eBay marketplace for India (https://www.ebay.in). - **EBAY_IT**: Indicates the eBay marketplace for Italy (https://www.ebay.it). - **EBAY_JP**: Reserved for future use. - **EBAY_MY**: Indicates the eBay marketplace for Malaysia (https://www.ebay.com.my). - **EBAY_NL**: Indicates the eBay marketplace for the Netherlands (https://www.ebay.nl). - **EBAY_NO**: Reserved for future use. - **EBAY_NZ**: Reserved for future use. - **EBAY_PE**: Reserved for future use. - **EBAY_PH**: Indicates the eBay marketplace for the Philippines (https://www.ebay.ph). - **EBAY_PL**: Indicates the eBay marketplace for Poland (https://www.ebay.pl). - **EBAY_PR**: Reserved for future use. - **EBAY_PT**: Reserved for future use. - **EBAY_RU**: Reserved for future use. - **EBAY_SE**: Reserved for future use. - **EBAY_SG**: Indicates the eBay marketplace for Singapore (https://www.ebay.com.sg). - **EBAY_TH**: Indicates the eBay marketplace for Thailand (https://info.ebay.co.th). - **EBAY_TW**: Indicates the eBay marketplace for Taiwan (https://www.ebay.com.tw). - **EBAY_US**: Indicates the eBay marketplace for the United States (https://www.ebay.com). - **EBAY_VN**: Indicates the eBay marketplace for Vietnam (https://www.ebay.vn). - **EBAY_ZA**: Reserved for future use. - **EBAY_HALF_US**: No longer used. - **EBAY_MOTORS_US**: Indicates the parent category for Auto Parts and Vehicles on the EBAY_US marketplace (https://www.ebay.com/motors). + * @enum {string} + */ + MarketplaceIdEnum: "EBAY_AT" | "EBAY_AU" | "EBAY_BE" | "EBAY_CA" | "EBAY_CH" | "EBAY_CN" | "EBAY_CZ" | "EBAY_DE" | "EBAY_DK" | "EBAY_ES" | "EBAY_FI" | "EBAY_FR" | "EBAY_GB" | "EBAY_GR" | "EBAY_HK" | "EBAY_HU" | "EBAY_ID" | "EBAY_IE" | "EBAY_IL" | "EBAY_IN" | "EBAY_IT" | "EBAY_JP" | "EBAY_MY" | "EBAY_NL" | "EBAY_NO" | "EBAY_NZ" | "EBAY_PE" | "EBAY_PH" | "EBAY_PL" | "EBAY_PR" | "EBAY_PT" | "EBAY_RU" | "EBAY_SE" | "EBAY_SG" | "EBAY_TH" | "EBAY_TW" | "EBAY_US" | "EBAY_VN" | "EBAY_ZA" | "EBAY_HALF_US" | "EBAY_MOTORS_US"; + /** + * @description An enum that defines the available levels of shipping service. | - **ONE_DAY**: Shipping rate applies to One-Day delivery services. Note: This option is not supported when shippingOptionType is INTERNATIONAL. - **EXPEDITED**: Shipping rate applies to Expedited delivery services. This generally indicates that a shipment can arrive at the shipping destination within one or two business days. - **STANDARD**: Shipping rate applies to Standard delivery services. - **ECONOMY**: Shipping rate applies to Economy delivery services. This generally indicates that shipping rates are minimized but it will take longer for the shipment to arrive at the shipping destination. - **EXPRESS**: Shipping rate applies to Express delivery services. Note: This option is supported only when MarketplaceIdEnum is EBAY_DE (Germany). + * @enum {string} + */ + ShippingCategoryEnum: "ONE_DAY" | "EXPEDITED" | "STANDARD" | "ECONOMY" | "EXPRESS"; + /** + * @description An enum defining a region that is either domestic (within the country from where the item is listed or shipped) or international (a country outside the country from where the item is listed or shipped). | - **DOMESTIC**: DOMESTIC indicates a region that is within the source country. - **INTERNATIONAL**: INTERNATIONAL indicates a region that is external to the source country. + * @enum {string} + */ + ShippingOptionTypeEnum: "DOMESTIC" | "INTERNATIONAL"; + /** + * @description An enum that specifies the how a shipping rate is calculated. | - **ITEM**: Specifies the flat rate shipping cost that buyers in the specified shipping region will pay. - **WEIGHT**: Specifies that the shipping cost is calculated using the weight of the item or items being shipped. - **SURCHARGE**: Specifies a flat amount that is added to the shipping cost specified within an item's listing. + * @enum {string} + */ + ShippingRateCalculationEnum: "ITEM" | "WEIGHT" | "SURCHARGE"; + /** + * @description This enum type defines the UPS shipping rate options that are available to the seller. | - **UPS_DAILY_RATES**: Indicates that UPS Daily Rates are used. - **UPS_ON_DEMAND_RATES**: Indicates that UPS On Demand Rates are used. + * @enum {string} + */ + UPSRateOptionEnum: "UPS_DAILY_RATES" | "UPS_ON_DEMAND_RATES"; + /** + * @description This enumeration type defines the supported weight measurement units (e.g., kilograms, pounds, ounces) used in shipping calculations and rule configurations. | - **POUND**: Indicates the unit of measure is pounds. - **KILOGRAM**: Indicates the unit of measure is kilograms. - **OUNCE**: Indicates the unit of measure is ounces. - **GRAM**: Indicates the unit of measure is grams. + * @enum {string} + */ + WeightUnitOfMeasureEnum: "POUND" | "KILOGRAM" | "OUNCE" | "GRAM"; + /** @description This container represents the seller's preferences for the items that are awaiting payment. */ + SetItemsAwaitingPaymentPreferencesType: { + /** @description This boolean field is included if the seller wishes to toggle the setting that controls whether or not the line item should be automatically relisted when cancelled. For this field to be set to true, the optInStatus field should also be true.
Note: If the line item was part of an auction listing or a single-quantity fixed price listing, a new listing will actually be created. If the line item was part of a multiple-quantity fixed price listing, eBay will only adjust the quantity based on the cancelled line item’s quantity. */ + autoRelist?: boolean; + /** + * Format: int32 + * @description This integer field is included if the seller wishes to set or change the number of business days without payment that must elapse before the line item is cancelled. This is a required field if the optInStatus field is true.
Note: The supported integer values (representing business days) varies by eBay marketplace. + */ + delayBeforeCancellingCommitment?: number; + /** @description This array is used if the seller wishes to exclude one or more eBay users from the unpaid item assistance mechanism. The seller would need to manually cancel any unpaid line items for all users on this list. This array will not be returned if there are no users on the excluded users list.
Note: The eBay public username is used for each excluded user, and a comma is used to delimit each user in the array. */ + excludedUsers?: string[]; + /** @description This boolean field is included if the seller wishes to toggle the setting that controls whether or not the seller is opted into the unpaid item assistance mechanism. If the seller is not opted in, no other fields under itemsAwaitingPaymentPreferences are applicable. */ + optInStatus?: boolean; + /** @description This boolean field is included and set to true if the seller wishes to remove all eBay users from the current excluded users list. If this field is included and set to true, the excludedUsers array should not be included. */ + removeAllExcludedUsers?: boolean; + }; + /** @description This type defines the request fields for the seller preferences configuration for eBay services. */ + SetUserPreferencesRequest: { + /** @description This container is included if the seller wishes to allow combined invoices if the buyer has multiple unpaid orders from the same seller. */ + combinedPaymentPreferences?: components["schemas"]["CombinedPaymentPreferencesType"]; + /** @description This container is included if the seller wishes to set or modify the order cut-off time for same-day shipping. */ + dispatchCutoffTimePreference?: components["schemas"]["DispatchCutoffTimePreferencesType"]; + /** @description This field is included if the seller wishes to enable or disable the setting that will automatically email the buyer with the tracking number when it becomes available. */ + emailShipmentTrackingNumberPreference?: boolean; + /** @description This container is included if the seller wishes to change one or more of the end of auction email preferences. */ + endOfAuctionEmailPreferences?: components["schemas"]["EndOfAuctionEmailPreferencesType"]; + /** @description This boolean field is included if the seller wishes to toggle the setting that controls whether or not the seller’s new listings on the eBay UK marketplace will automatically use the Global Shipping Program for international shipping.
Note: The Global Shipping Program is only available for the eBay UK marketplace, and the seller must be opted into the program, that is offerGlobalShippingProgramPreference = true */ + globalShippingProgramListingPreference?: boolean; + /** @description This container is included if the seller wishes to change one or more of the items awaiting payment preferences. */ + itemsAwaitingPaymentPreferences?: components["schemas"]["SetItemsAwaitingPaymentPreferencesType"]; + /** @description This boolean field is included if the seller wishes to toggle the setting that controls whether or not the seller is opted into the Out-of-Stock feature. With this feature, a multiple quantity fixed price listing that runs out of stock will be hidden from eBay search but kept alive. Once the sellers add quantity to the listing, the listing will become active and available again. */ + outOfStockControlPreference?: boolean; + /** @description This boolean field is included if the seller wishes to toggle the setting that controls whether or not the buyer is expected to provide a shipping phone number upon checkout. Some shipping carriers require the receiver's phone number. */ + purchaseReminderEmailPreferences?: boolean; + /** @description This boolean indicates whether the seller wishes to require phone numbers for shipping or not. */ + requiredShipPhoneNumberPreference?: boolean; + /** @description This container is included if the seller wishes to add or modify a FedEx, UPS, and/or US Post Office shipping rate type that is available to the seller.
Note: This container is only applicable to the eBay US marketplace. */ + shippingCarrierRatePreferences?: components["schemas"]["ShippingCarrierRatePreferencesType"]; }; }; responses: never; @@ -203,7 +726,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter is the unique identifier for the shipping rate table to retrieve.

Use the getRateTables method of the Account API v1 to retrieve rate table IDs. */ + /** @description This path parameter is the unique identifier for the shipping rate table to retrieve.

Use the getRateTables method of the Account API v1 to retrieve rate table IDs. */ rate_table_id: string; }; cookie?: never; @@ -224,21 +747,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -246,11 +775,11 @@ export interface operations { parameters: { query?: never; header: { - /** @description This header indicates the format of the request body provided by the client. It's value should be set to application/json.

For more information, refer to HTTP request headers. */ + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ "Content-Type": string; }; path: { - /** @description This path parameter is the unique identifier for the shipping rate table for which shipping costs will be updated.

Use the getRateTables method of the Account API v1 to retrieve rate table IDs. */ + /** @description This path parameter is the unique identifier for the shipping rate table for which shipping costs will be updated.

Use the getRateTables method of the Account API v1 to retrieve rate table IDs. */ rate_table_id: string; }; cookie?: never; @@ -274,28 +803,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -322,7 +859,9 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -330,7 +869,7 @@ export interface operations { parameters: { query?: never; header: { - /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ "Content-Type": string; }; path?: never; @@ -351,18 +890,460 @@ export interface operations { }; /** @description Bad Request */ 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + createCalculatedShippingRules: { + parameters: { + query?: never; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + }; + path?: never; + cookie?: never; + }; + /** @description This type is used to define and configure calculated combined shipping and handling rules and/or change the combined payment duration. */ + requestBody?: { + content: { + "application/json": components["schemas"]["CreateCalculatedShippingRulesRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { headers: { [name: string]: unknown; }; content?: never; }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; /** @description Internal Server Error */ 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + createFlatShippingRules: { + parameters: { + query?: never; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + }; + path?: never; + cookie?: never; + }; + /** @description This type is used to define and configure flat-rate combined shipping rules and/or change the combined payment duration. */ + requestBody?: { + content: { + "application/json": components["schemas"]["CreateFlatShippingRulesRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { headers: { [name: string]: unknown; }; content?: never; }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + createPromotionalShippingRule: { + parameters: { + query?: never; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + }; + path?: never; + cookie?: never; + }; + /** @description This type is used to define and configure the promotional combined shipping rule and/or change the combined payment duration. */ + requestBody?: { + content: { + "application/json": components["schemas"]["CreatePromotionalShippingRuleRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + getCombinedShippingRules: { + parameters: { + query?: never; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + }; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GetCombinedShippingRulesPublicApiResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + updateCalculatedShippingRules: { + parameters: { + query?: never; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + }; + path?: never; + cookie?: never; + }; + /** @description This type is used for creating and updating calculated combined-shipping rules. */ + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateCalculatedShippingRulesRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + updateCombinedPayments: { + parameters: { + query?: never; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + }; + path?: never; + cookie?: never; + }; + /** @description This type is used for updating combined-payment settings.

It defines how multiple unpaid orders from the same buyer are combined into a single payment, including configuration parameters such as eligible duration, order-merge criteria, and marketplace context. */ + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateCombinedPaymentsRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + updateFlatShippingRules: { + parameters: { + query?: never; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + }; + path?: never; + cookie?: never; + }; + /** @description This type is used for creating and updating flat-rate combined-shipping rules. */ + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateFlatShippingRulesRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + updatePromotionalShippingRule: { + parameters: { + query?: never; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + }; + path?: never; + cookie?: never; + }; + /** @description This type is used for updating an existing promotional combined-shipping rules. */ + requestBody?: { + content: { + "application/json": components["schemas"]["UpdatePromotionalShippingRuleRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + getUserPreferences: { + parameters: { + query?: { + /** @description The fieldgroups query parameter specifies the type of seller preferences to retrieve.

If fieldgroups=ALL or is omitted, all the supported seller preferences are returned.

To retrieve specific seller preferences, include the fieldgroups parameter and specify one or more values, with each value delimited by a comma.

For example, fieldgroups = SHIPPING_CARRIER_RATE,COMBINED_PAYMENT.

The value can be ALL or any combination of the following (comma-separated):
COMBINED_PAYMENT, DISPATCH_CUTOFF_TIME, EMAIL_SHIPMENT_TRACKING_NUMBER, END_OF_AUCTION_EMAIL, GLOBAL_SHIPPING_PROGRAM, GLOBAL_SHIPPING_PROGRAM_LISTING, ITEMS_AWAITING_PAYMENT, OUT_OF_STOCK_CONTROL SELLER_PROFILE, OVERRIDE_GSP_SERVICE_WITH_INTL_SERVICE, PICKUP_DROPOFF_SELLER, PURCHASE_REMINDER_EMAIL, REQUIRED_SHIP_PHONE_NUMBER, SELLER_EXCLUDE_SHIP_TO_LOCATION, SHIPPING_CARRIER_RATE */ + fieldgroups?: string; + }; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + }; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GetUserPreferencesResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + setUserPreferences: { + parameters: { + query?: never; + header: { + /** @description This required header sets the eBay marketplace where the request is processed. For the full list of eBay marketplace values, see the MarketplaceIdEnum type. */ + "X-EBAY-C-MARKETPLACE-ID": components["schemas"]["MarketplaceIdEnum"]; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["SetUserPreferencesRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; }; }; } diff --git a/src/types/restful/specs/sell_compliance_v1_oas3.ts b/src/types/restful/specs/sell_compliance_v1_oas3.ts deleted file mode 100644 index 2b84ed2d..00000000 --- a/src/types/restful/specs/sell_compliance_v1_oas3.ts +++ /dev/null @@ -1,358 +0,0 @@ -/** - * This file was auto-generated by openapi-typescript. - * Do not make direct changes to the file. - */ - -export interface paths { - "/listing_violation_summary": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This call returns listing violation counts for a seller. A user can pass in one or more compliance types through the compliance_type query parameter. See ComplianceTypeEnum for more information on the supported listing compliance types. Listing violations are returned for multiple marketplaces if the seller sells on multiple eBay marketplaces. Note: Only a canned response, with counts for all listing compliance types, is returned in the Sandbox environment. Due to this limitation, the compliance_type query parameter (if used) will not have an effect on the response. */ - get: operations["getListingViolationsSummary"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/listing_violation": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This call returns specific listing violations for the supported listing compliance types. Only one compliance type can be passed in per call, and the response will include all the listing violations for this compliance type, and listing violations are grouped together by eBay listing ID. See ComplianceTypeEnum for more information on the supported listing compliance types. This method also has pagination control. Note: A maximum of 2000 listing violations will be returned in a result set. If the seller has more than 2000 listing violations, some/all of those listing violations must be corrected before additional listing violations will be retrieved. The user should pay attention to the total value in the response. If this value is '2000', it is possible that the seller has more than 2000 listing violations, but this field maxes out at 2000. Note: In a future release of this API, the seller will be able to pass in a specific eBay listing ID as a query parameter to see if this specific listing has any violations. Note: Only mocked non-compliant listing data will be returned for this call in the Sandbox environment, and not specific to the seller. However, the user can still use this mock data to experiment with the compliance type filters and pagination control. */ - get: operations["getListingViolations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/suppress_listing_violation": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** @description This call suppresses a listing violation for a specific listing. Only listing violations in the AT_RISK state (returned in the violations.complianceState field of the getListingViolations call) can be suppressed. Note: At this time, the suppressViolation call only supports the suppressing of ASPECTS_ADOPTION listing violations in the AT_RISK state. In the future, it is possible that this method can be used to suppress other listing violation types. A successful call returns a http status code of 204 Success. There is no response payload. If the call is not successful, an error code will be returned stating the issue. */ - post: operations["suppressViolation"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; -} -export type webhooks = Record; -export interface components { - schemas: { - /** @description This type is used by the aspectsRecommendation container, which is returned if eBay has found a listing with missing or invalid item aspects (ASPECTS_ADOPTION compliance type). */ - AspectRecommendations: { - /** @description The name of the item aspect for which eBay has a recommendation. In many cases, the same item aspect(s) that are returned under the violationData array for ASPECTS_ADOPTION listing violations are also returned here Note: This name is always localized for the specified marketplace. */ - localizedAspectName?: string; - /** @description One or more valid values for the corresponding item aspect (in localizedAspectName) are returned here. These suggested values for the item aspect depend on the listing category and on the information specified in the listing. Sellers should confirm accuracy of the values before applying them to the listing. Please use getItemAspectsForCategory in the Taxonomy API or GetCategorySpecifics in the Trading API to get a comprehensive list of required and recommended aspects for a given category and a list of supported aspect values for each. */ - suggestedValues?: string[]; - }; - /** @description This type is used by each listing violation that is returned under the violations container. */ - ComplianceDetail: { - /** @description This value states the nature of the listing violation. A reasonCode value is returned for each listing violation, and each compliance type can have several reason codes and related messages. The reasonCode values vary by compliance type. The reason codes for each compliance type are summarized below. Aspects adoption The reason codes for ASPECTS_ADOPTION compliance indicate that for the given violation, aspects listed in the violationData container are either missing from the listing or they have invalid values. The reason codes specify whether the violation is for required aspects, recommended (preferred) aspects, or soon to be required aspects. MISSING_OR_INVALID_REQUIRED_ASPECTS MISSING_OR_INVALID_PREFERRED_ASPECTS MISSING_OR_INVALID_SOON_TO_BE_REQUIRED_ASPECTS HTTPS The reason codes for HTTPS compliance identify where in the listing the violation occurs. For HTTPS policy violations, the seller will just need to remove the HTTP link (or update to HTTPS) from the listing details or product details: NON_SECURE_HTTP_LINK_IN_LISTING NON_SECURE_HTTP_LINK_IN_PRODUCT Non-eBay links The reason codes for OUTSIDE_EBAY_BUYING_AND_SELLING compliance identify the specific type of data (e.g., telephone number) that violated the policy. For each of these violations, the seller will just need to revise the listing, removing this information: UNAPPROVED_DOMAIN_WEBLINK_IN_LISTING PHONE_NUMBER_IN_LISTING EMAIL_ADDRESS_IN_LISTING Product adoption Product Adoption is not enforced at this time. Product adoption conformance Product Adoption is not enforced at this time. Returns policy The only RETURNS_POLICY reason code is UNSUPPORTED_RETURNS_PERIOD. The seller will have to revise their listing (or return business policy) with a supported return period for the site and category. The GetCategoryFeatures call of the Trading API can be used to verify the supported return periods for a particular category. For most eBay categories, the minimum return period that can be stated in a Returns Policy is 14 days for domestic and international sales, but some categories require a minimum 30-day return period. */ - reasonCode?: string; - /** @description This field provides a textual summary of the listing violation. A message field is returned for each listing violation. This message will vary widely based on the compliance type and corresponding reason code. */ - message?: string; - /** @description This container defines the variation within a multiple-variation listing that has the listing violation. This container is only returned if an individual variation within a multiple-variation listing has the listing violation. */ - variation?: components["schemas"]["VariationDetails"]; - /** @description This container provides more information about the listing violation, if applicable. The type of information that appears here will vary based on the compliance type and type of violation. For example, for ASPECTS_ADOPTION violations, this container lists the missing aspect(s) or aspect(s) with invalid values. */ - violationData?: components["schemas"]["NameValueList"][]; - /** @description This container is returned for ASPECTS_ADOPTION violations if eBay has found one or more item aspect name-value pairs that may be appropriate for the seller's product. In many cases, the missing or incorrect item aspect(s) shown under the corresponding violationData array, will also show up under the aspectRecommendations array with suggested value(s). Note: eBay catalog product adoption is not enforced for any eBay category at this time, so a recommended eBay product ID (aka ePID) will not be returned under the productRecommendation container at this time. */ - correctiveRecommendations?: components["schemas"]["CorrectiveRecommendations"]; - /** @description The enumeration value returned in this field indicates if the listing violation is considered to be OUT_OF_COMPLIANCE with an eBay listing policy, or the listing is considered to be AT_RISK of becoming non-compliant against an eBay listing policy. Generally, OUT_OF_COMPLIANCE policy violations can prevent the seller from revising a listing until the underlying violation(s) can be remedied. When the compliance state is AT_RISK, the seller is not blocked from revising the listing, but the seller should correct the violation to prevent the listing from being blocked for revisions in the future. Note: This field is returned for most violations, but not all. In the case that this field is not returned, it can be assumed that the state of the listing violation is OUT_OF_COMPLIANCE. For implementation help, refer to eBay API documentation */ - complianceState?: string; - }; - /** @description This type is the base type for the getListingViolationsSummary response. The violationSummaries container contains an array of policy violation counts for each unique eBay marketplace and compliance type violation. */ - ComplianceSummary: { - /** @description This container is an array of one or more policy violation counts. A policy violation count is returned for each unique eBay marketplace and compliance type violation. As long as there is at least one non-compliant listing for the specified compliance type(s), this container will be returned. If no non-compliant listings are found for the specified compliance type(s), an HTTP status code of 204 No Content is returned, and there is no response body. */ - violationSummaries?: components["schemas"]["ComplianceSummaryInfo"][]; - }; - /** @description This type is used by each unique eBay marketplace and compliance type combination that is returned in the getListingViolationsSummary response to indicate the total number of listing violations in regards to that eBay marketplace and compliance type. */ - ComplianceSummaryInfo: { - /** @description This enumeration value indicates the type of compliance. See ComplianceTypeEnum for more information on each compliance type. For implementation help, refer to eBay API documentation */ - complianceType?: string; - /** @description This enumeration value indicates the eBay marketplace where the listing violations exist. For implementation help, refer to eBay API documentation */ - marketplaceId?: string; - /** - * Format: int32 - * @description This integer value indicates the number of eBay listings that are currently violating the compliance type indicated in the complianceType field, for the eBay marketplace indicated in the marketplaceId field. - */ - listingCount?: number; - }; - /** @description This type is used by each listing violation that is returned under the listingViolations container. */ - ComplianceViolation: { - /** @description This enumeration value indicates the compliance type of listing violation. See ComplianceTypeEnum for more information on each compliance type. This will always be returned for each listing violation that is found. For implementation help, refer to eBay API documentation */ - complianceType?: string; - /** @description The unique identifier of the eBay listing that currently has the corresponding listing violation{s). This field will always be returned for each listing that has one or more violations. */ - listingId?: string; - /** @description The seller-defined SKU value of the product in the listing with the violation{s). This field is only returned if defined in the listing. SKU values are optional in listings except when creating listings using the Inventory API model. */ - sku?: string; - /** @description Note: This field is for future use, and will not be returned, even for listings created through the Inventory API. The unique identifier of the offer. This field is only applicable and returned for listings that were created through the Inventory API. To convert an Inventory Item object into an eBay listing, an Offer object must be created and published. */ - offerId?: string; - /** @description This container consists of an array of one or more listing violations applicable to the eBay listing specified in the listingId field. This array is returned for each eBay listing that has one or more violations. For each returned violation, the fields that are returned and the details that are given will depend on the listing violation. */ - violations?: components["schemas"]["ComplianceDetail"][]; - }; - /** @description This type is used by the correctiveRecommendations container, which is returned if eBay has suggestions for how to correct the given violation. */ - CorrectiveRecommendations: { - /** @description This container is only applicable (and possibly returned) for the PRODUCT_ADOPTION and PRODUCT_ADOPTION_CONFORMANCE compliance types, and since eBay catalog product adoption is not enforced for any eBay category at this time, the productRecommendation container will not be returned at this time. */ - productRecommendation?: components["schemas"]["ProductRecommendation"]; - /** @description This container is returned for ASPECTS_ADOPTION violations if eBay has found one or more item aspect name-value pairs that may be appropriate for the seller's product. In many cases, the missing or invalid item aspect(s) shown under the corresponding violationData array, will also show up under this array with suggested value(s). */ - aspectRecommendations?: components["schemas"]["AspectRecommendations"][]; - }; - /** @description This type defines the fields that can be returned in an error. */ - Error: { - /** @description Identifies the type of erro. */ - category?: string; - /** @description Name for the primary system where the error occurred. This is relevant for application errors. */ - domain?: string; - /** - * Format: int32 - * @description A unique number to identify the error. - */ - errorId?: number; - /** @description An array of request elements most closely associated to the error. */ - inputRefIds?: string[]; - /** @description A more detailed explanation of the error. */ - longMessage?: string; - /** @description Information on how to correct the problem, in the end user's terms and language where applicable. */ - message?: string; - /** @description An array of request elements most closely associated to the error. */ - outputRefIds?: string[]; - /** @description An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned. */ - parameters?: components["schemas"]["ErrorParameter"][]; - /** @description Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc. */ - subdomain?: string; - }; - ErrorParameter: { - /** @description The object of the error. */ - name?: string; - /** @description The value of the object. */ - value?: string; - }; - /** @description This type is used to provide a name-value pair, including the identifying aspects of a product variation through the variationAspects container. */ - NameValueList: { - /** @description This is the name of the variation aspect, or the name of the category of information that is returned through the name-value pair. The type of information that appears here will vary based on the compliance type and type of violation. */ - name?: string; - /** @description This is the value of the variation aspect (in name field), or the value of the category of information that is returned through the name-value pair. The type of information that appears here will vary based on the compliance type and type of violation. */ - value?: string; - }; - /** @description This type is the base response type of the getListingViolations method. */ - PagedComplianceViolationCollection: { - /** - * Format: int32 - * @description This integer value shows the offset of the current page of results. The offset value controls the first listing violation in the result set that will be displayed at the top of the response. The offset and limit query parameters are used to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the call retrieves listing violations 11 thru 20 from the resulting collection of violations. Note: This feature employs a zero-based index, where the first item in the list has an offset of 0. Default: 0 {zero) - */ - offset?: number; - /** @description The URI of the getListingViolations call request that produced the current page of the result set. */ - href?: string; - /** - * Format: int32 - * @description The total number of listing violations in the result set. If this value is higher than the limit value, there are multiple pages in the result set to view. - */ - total?: number; - /** @description The getListingViolations call URI to use to view the next page of the result set. For example, the following URI returns listing violations 21 thru 30 from the collection of policy violations: path/listing_violation?limit=10&offset=20 This field is only returned if an additional page of listing violations exists. */ - next?: string; - /** @description The getListingViolations call URI to use to view the previous page of the result set. For example, the following URI returns listing violations 1 thru 10 from the collection of policy violations: path/listing_violation?limit=10&offset=0 This field is only returned if an previous page of listing violations exists. */ - prev?: string; - /** - * Format: int32 - * @description The maximum number of listing violations returned per page of the result set. The limit and offset query parameters are used to control the pagination of the output. Note: If this is the last or only page in the result set, it may contain fewer listing violations than the limit value. To determine the number of pages in the result set, divide this value into the value of total and round up to the next integer. Default: 50 Max: 200 - */ - limit?: number; - /** @description An array of listing violations that match the criteria in the call request, including pagination control {if set). As long as there is at least one listing violation that matches the input criteria, this container will be returned. If no listing violations are found for the seller, an HTTP status code of 204 No Content is returned, and there is no response body. */ - listingViolations?: components["schemas"]["ComplianceViolation"][]; - }; - /** @description This type is used by the productRecommendation container, which is returned if eBay has found an eBay catalog product that may be a match for the product (or product variation) that has a listing violation. Note: eBay catalog product adoption is not enforced at this time, so product adoption violations are no longer returned. Due to this fact, this type and productRecommendation container are not currently applicable. */ - ProductRecommendation: { - /** @description This field will return the eBay Product ID {ePID) of an eBay Catalog product that eBay recommends that the seller use to make their listing compliant. Note: Product Adoption is not enforced at this time. Product Adoption violations are no longer returned. */ - epid?: string; - }; - /** @description This is the base request type of the suppressViolation method, and is used to identify the listing violation that the seller wishes to suppress. */ - SuppressViolationRequest: { - /** @description The compliance type of the listing violation to suppress is specified in this field. The compliance type for each listing violation is found in the complianceType field under the listingViolations array in a getListingViolations response. Note: At this time, the suppressViolation method is only used to suppress aspect adoption listing violations in the 'at-risk' state, so ASPECTS_ADOPTION is currently the only supported value for this field. For implementation help, refer to eBay API documentation */ - complianceType?: string; - /** @description The unique identifier of the listing with the violation(s) is specified in this field. The unique identifier of the listing with the listing violation(s) is found in the listingId field under the listingViolations array in a getListingViolations response. Note: At this time, the suppressViolation method is only used to suppress aspect adoption listing violations in the 'at-risk' state, so the listing specified in this field should be a listing with an ASPECTS_ADOPTION violation in the 'at-risk' state. */ - listingId?: string; - }; - /** @description This type is used to identify the product variation that has the listing violation. */ - VariationDetails: { - /** @description The seller-defined SKU value of the variation within the multiple-variation listing with the violation{s). This field is only returned if a seller-defined SKU value is defined for the variation. SKU values are optional in listing except when creating listings using the Inventory API. */ - sku?: string; - /** @description An array of one or more variation aspects that define a variation within a multiple-variation listing. The aspect{s) returned here define the individual variation, because these aspects will differ for each variation. Common varying aspects include color and size. */ - variationAspects?: components["schemas"]["NameValueList"][]; - }; - }; - responses: never; - parameters: never; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export interface operations { - getListingViolationsSummary: { - parameters: { - query?: { - /** @description A user passes in one or more compliance type values through this query parameter. See ComplianceTypeEnum for more information on the supported compliance types that can be passed in here. If more than one compliance type value is used, delimit these values with a comma. If no compliance type values are passed in, the listing count for all compliance types will be returned. Note: Only a canned response, with counts for all listing compliance types, is returned in the Sandbox environment. Due to this limitation, the compliance_type query parameter (if used) will not have an effect on the response. */ - compliance_type?: string; - }; - header?: { - /** @description Use this header to specify the eBay marketplace identifier. Supported values for this header can be found in the MarketplaceIdEnum type definition. Note that Version 1.4.0 of the Compliance API is only supported on the US, UK, Australia, Canada {English), and Germany sites. */ - "X-EBAY-C-MARKETPLACE-ID"?: string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json;charset=UTF-8": components["schemas"]["ComplianceSummary"]; - }; - }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - getListingViolations: { - parameters: { - query?: { - /** @description A seller uses this query parameter to retrieve listing violations of a specific compliance type. Only one compliance type value should be passed in here. See ComplianceTypeEnum for more information on the compliance types that can be passed in here. If the listing_id query parameter is used, the compliance_type query parameter {if passed in) will be ignored. This is because all of a listing's policy violations {each compliance type) will be returned if a listing_id is provided. Either the listing_id or a compliance_type query parameter must be used, and if the seller only wants to view listing violations of a specific compliance type, both of these parameters can be used. Note: The listing_id query parameter is not yet available for use, so the seller does not have the ability to retrieve listing violations for one or more specific listings. Until the listing_id query parameter becomes available, the compliance_type query parameter is required with each getListingViolations call. */ - compliance_type?: string; - /** @description The integer value input into this field controls the first listing violation in the result set that will be displayed at the top of the response. The offset and limit query parameters are used to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the call retrieves listing violations 11 thru 20 from the resulting set of violations. Note: This feature employs a zero-based index, where the first item in the list has an offset of 0. If the listing_id parameter is included in the request, this parameter will be ignored. Default: 0 {zero) */ - offset?: string; - /** @description Note: This query parameter is not yet supported for the Compliance API. Please note that until this query parameter becomes available, the compliance_type query parameter is required with each getListingViolations call. This query parameter is used if the user wants to view all listing violations for one or more eBay listings. The string value passed into this field is the unique identifier of the listing, sometimes referred to as the Item ID. Either the listing_id or a compliance_type query parameter must be used, and if the seller only wants to view listing violations of a specific compliance type, both of these parameters can be used. Up to 50 listing IDs can be specified with this query parameter, and each unique listing ID is separated with a comma. */ - listing_id?: string; - /** @description This query parameter is used if the user wants to set a limit on the number of listing violations that are returned on one page of the result set. This parameter is used in conjunction with the offset parameter to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the call retrieves listing violations 11 thru 20 from the collection of listing violations that match the value set in the compliance_type parameter. Note: This feature employs a zero-based index, where the first item in the list has an offset of 0. If the listing_id parameter is included in the request, this parameter will be ignored. Default: 100 Maximum: 200 */ - limit?: string; - /** @description This filter allows a user to retrieve only listings that are currently out of compliance, or only listings that are at risk of becoming out of compliance. Although other filters may be added in the future, complianceState is the only supported filter type at this time. The two compliance 'states' are OUT_OF_COMPLIANCE and AT_RISK. Below is an example of how to set up this compliance state filter. Notice that the filter type and filter value are separated with a colon (:) character, and the filter value is wrapped with curly brackets. filter=complianceState:{OUT_OF_COMPLIANCE} */ - filter?: string; - }; - header: { - /** @description This header is required and is used to specify the eBay marketplace identifier. Supported values for this header can be found in the MarketplaceIdEnum type definition. Note that Version 1.4.0 of the Compliance API is only supported on the US, UK, Australia, Canada {English), and Germany sites. */ - "X-EBAY-C-MARKETPLACE-ID": string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Success */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json;charset=UTF-8": components["schemas"]["PagedComplianceViolationCollection"]; - }; - }; - /** @description No Content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - suppressViolation: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description This type is the base request type of the SuppressViolation method. */ - requestBody: { - content: { - "application/json": components["schemas"]["SuppressViolationRequest"]; - }; - }; - responses: { - /** @description Success */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Business error */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Internal Server Error */ - 500: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; -} diff --git a/src/types/restful/specs/sell_feed_v1_oas3.ts b/src/types/restful/specs/sell_feed_v1_oas3.ts index 017a9f3a..a8e00e34 100644 --- a/src/types/restful/specs/sell_feed_v1_oas3.ts +++ b/src/types/restful/specs/sell_feed_v1_oas3.ts @@ -14,7 +14,7 @@ export interface paths { /** @description This method returns the details and status for an array of order tasks based on a specified feed_type or schedule_id. Specifying both feed_type and schedule_id results in an error. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.

If specifying the feed_type, limit which order tasks are returned by specifying filters such as the creation date range or period of time using look_back_days.

If specifying a schedule_id, the schedule template (that the schedule_id is based on) determines which order tasks are returned (see schedule_id for additional information). Each schedule_id applies to one feed_type. */ get: operations["getOrderTasks"]; put?: never; - /** @description This method creates an order download task with filter criteria for the order report. When using this method, specify the feedType, schemaVersion, and filterCriteria for the report. The method returns the location response header containing the getOrderTask call URI to retrieve the order task you just created. The URL includes the eBay-assigned task ID, which you can use to reference the order task.

To retrieve the status of the task, use the getOrderTask method to retrieve a single task ID or the getOrderTasks method to retrieve multiple order task IDs.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

The following list contains this method's authorization scope and its corresponding feed type:

  • https://api.ebay.com/oauth/api_scope/sell.fulfillment: LMS_ORDER_REPORT

For details about how this method is used, see General feed types in the Selling Integration Guide.

Note: At this time, the createOrderTask method only supports order creation date filters and not modified order date filters. Do not include the modifiedDateRange filter in your request payload.

*/ + /** @description This method creates an order download task with filter criteria for the order report. When using this method, specify the feedType, schemaVersion, and filterCriteria for the report. The method returns the location response header containing the getOrderTask call URI to retrieve the order task you just created. The URL includes the eBay-assigned task ID, which you can use to reference the order task.

To retrieve the status of the task, use the getOrderTask method to retrieve a single task ID or the getOrderTasks method to retrieve multiple order task IDs.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

The following list contains this method's authorization scope and its corresponding feed type:

  • https://api.ebay.com/oauth/api_scope/sell.fulfillment: LMS_ORDER_REPORT

For details about how this method is used, see General feed types in the Selling Integration Guide.

Note: At this time, the createOrderTask method only supports order creation date filters and not modified order date filters. Do not include the modifiedDateRange filter in your request payload.

*/ post: operations["createOrderTask"]; delete?: never; options?: never; @@ -118,7 +118,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method downloads the latest result file generated by the schedule. The response of this call is a compressed or uncompressed CSV, XML, or JSON file, with the applicable file extension (for example: csv.gz). Specify the schedule_id path parameter to download its last generated file. */ + /** @description This method downloads the latest Order Report generated by the schedule. The response of this call is a compressed or uncompressed CSV, XML, or JSON file, with the applicable file extension (for example: csv.gz). Specify the schedule_id path parameter to download its last generated file. */ get: operations["getLatestResultFile"]; put?: never; post?: never; @@ -169,10 +169,10 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method returns the details and status for an array of tasks based on a specified feed_type or scheduledId. Specifying both feed_type and scheduledId results in an error. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.

If specifying the feed_type, limit which tasks are returned by specifying filters, such as the creation date range or period of time using look_back_days. Also, by specifying the feed_type, both on-demand and scheduled reports are returned.

If specifying a scheduledId, the schedule template (that the schedule ID is based on) determines which tasks are returned (see schedule_id for additional information). Each scheduledId applies to one feed_type. */ + /** @description This method returns the details and status for an array of tasks based on a specified feed_type or schedule_id. Specifying both feed_type and schedule_id results in an error. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.

If specifying the feed_type, limit which tasks are returned by specifying filters, such as the creation date range or period of time using look_back_days. Also, by specifying the feed_type, both on-demand and scheduled reports are returned.

If specifying a schedule_id, the schedule template (that the schedule ID is based on) determines which tasks are returned (see schedule_id for additional information). Each scheduledId applies to one feed_type. */ get: operations["getTasks"]; put?: never; - /** @description This method creates an upload task or a download task without filter criteria. When using this method, specify the feedType and the feed file schemaVersion. The feed type specified sets the task as a download or an upload task.

For details about the upload and download flows, see Working with Order Feeds in the Selling Integration Guide.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

The following list contains this method's authorization scopes and their corresponding feed types:

  • https://api.ebay.com/oauth/api_scope/sell.inventory: See LMS FeedTypes
  • https://api.ebay.com/oauth/api_scope/sell.fulfillment: LMS_ORDER_ACK (specify for upload tasks). Also see LMS FeedTypes
  • https://api.ebay.com/oauth/api_scope/sell.marketing: None*
  • https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly: None*

* Reserved for future release

*/ + /** @description This method creates an upload task or a download task without filter criteria. When using this method, specify the feedType and the feed file schemaVersion. The feed type specified sets the task as a download or an upload task.

For details about the upload and download flows, see Working with Order Feeds in the Selling Integration Guide.

Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.

The following list contains this method's authorization scopes and their corresponding feed types:

  • https://api.ebay.com/oauth/api_scope/sell.inventory: See LMS FeedTypes
  • https://api.ebay.com/oauth/api_scope/sell.fulfillment: LMS_ORDER_ACK (specify for upload tasks). Also see LMS FeedTypes
  • https://api.ebay.com/oauth/api_scope/sell.marketing: None*
  • https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly: None*

* Reserved for future release

*/ post: operations["createTask"]; delete?: never; options?: never; @@ -240,7 +240,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method associates the specified file with the specified task ID and uploads the input file. After the file has been uploaded, the processing of the file begins.

Reports often take time to generate and it's common for this method to return an HTTP status of 202, which indicates the report is being generated. Use the getTask with the task ID or getTasks to determine the status of a report.

The status flow is QUEUED > IN_PROCESS > COMPLETED or COMPLETED_WITH_ERROR. When the status is COMPLETED or COMPLETED_WITH_ERROR, this indicates the file has been processed and the order report can be downloaded. If there are errors, they will be indicated in the report file.

For details of how this method is used in the upload flow, see Working with Order Feeds in the Selling Integration Guide.

Note: This method applies to all Seller Hub feed types and LMS feed types except LMS_ORDER_REPORT and LMS_ACTIVE_INVENTORY_REPORT. See LMS feed types and Seller Hub feed types.

Note: You must use a Content-Type header with its value set to "multipart/form-data". See Samples for information.

*/ + /** @description This method associates the specified file with the specified task ID and uploads the input file. After the file has been uploaded, the processing of the file begins.

Reports often take time to generate and it's common for this method to return an HTTP status of 202, which indicates the report is being generated. Use the getTask with the task ID or getTasks to determine the status of a report.

The status flow is QUEUED > IN_PROCESS > COMPLETED or COMPLETED_WITH_ERROR. When the status is COMPLETED or COMPLETED_WITH_ERROR, this indicates the file has been processed and the order report can be downloaded. If there are errors, they will be indicated in the report file.

For details of how this method is used in the upload flow, see Working with Order Feeds in the Selling Integration Guide.

This call does not have a JSON Request payload but uploads the file as form-data. For example:
 fileName: "AddFixedPriceItem_Macbook.xml" 
name: "file"
type: "form-data"
file: @"/C:/Users/.../AddFixedPriceItem_Macbook.7z"
See Samples for information.

Note: This method applies to all Seller Hub feed types, and to all LMS feed types except LMS_ORDER_REPORT and LMS_ACTIVE_INVENTORY_REPORT.

Note: You must use a Content-Type header with its value set to "multipart/form-data". See Samples for information.

Note: For LMS feed types, upload a regular XML file or an XML file in zipped format (both formats are allowed).

*/ post: operations["uploadFile"]; delete?: never; options?: never; @@ -287,17 +287,18 @@ export interface paths { export type webhooks = Record; export interface components { schemas: { + /** @description This type defines inventory-related download task request fields. */ CreateInventoryTaskRequest: { - /** @description The schemaVersion/version number of the file format (use the schema version of the API to which you are programming): */ - schemaVersion?: string; - /** @description The feed type associated with the inventory task you are about to create. Use a feedType that is available for your API. Presently, only one feed type is available:
  • LMS_ACTIVE_INVENTORY_REPORT

See Report download feed types for more information. */ + /** @description The feed type associated with the inventory task you are about to create. Presently, only one feed type is available:
  • LMS_ACTIVE_INVENTORY_REPORT
See Report download feed types for more information. */ feedType?: string; - /** @description The container for the filter fields. This container is used to set the filter criteria for the ActiveInventoryReport. A seller can retrieve listings for a specified format. */ + /** @description This container allows a seller to create an ActiveInventoryReport for a single listing format. */ filterCriteria?: components["schemas"]["InventoryFilterCriteria"]; + /** @description The version number of the inventory task to use for the feedType.

Note: This field must have a value of 1.0. */ + schemaVersion?: string; }; /** @description The type that defines the fields for the createOrderTask request. */ CreateOrderTaskRequest: { - /** @description The feed type associated with the task. The only presently supported value is LMS_ORDER_REPORT. See Report download feed types for more information. */ + /** @description The feed type associated with the task. The only presently supported value is LMS_ORDER_REPORT.

See Report download feed types for more information. */ feedType?: string; /** @description The container for the filter fields. This container is used to set the filter criteria for the order report. A seller can set date range filters and/or can retrieve orders in a specific state. */ filterCriteria?: components["schemas"]["OrderFilterCriteria"]; @@ -306,23 +307,23 @@ export interface components { }; /** @description The type that defines the fields for the Customer Service Metric reports generated with the Feed API. */ CreateServiceMetricsTaskRequest: { - /** @description The feedType specified for the task. The report lists the transaction details that contribute to the service metrics evaluation. Supported types include:

CUSTOMER_SERVICE_METRICS_REPORT

*/ + /** @description The feedType specified for the customer service metric task being created. The report lists the transaction details that contribute to the service metrics evaluation. Supported types include:

CUSTOMER_SERVICE_METRICS_REPORT

*/ feedType?: string; /** @description This container is used to customize and set criteria for Customer Service Metric report that will be associated with the task. */ filterCriteria?: components["schemas"]["CustomerServiceMetricsFilterCriteria"]; - /** @description The version number of the file format.

Valid value: 1.0

*/ + /** @description The version number of the customer service metric.

Note: This field must have a value of 1.0. */ schemaVersion?: string; }; /** @description The type that defines the fields for the createTask method. */ CreateTaskRequest: { - /** @description The feed type associated with the task. Only use a feedType that is available for your API. Available feed types:

*/ + /** @description The feed type associated with the task. Available feed types:
*/ feedType?: string; - /** @description The schemaVersion/version number of the file format (use the schema version of the API to which you are programming): */ + /** @description The schemaVersion/version number of the file format:
*/ schemaVersion?: string; }; /** @description The type that defines the fields for the createSchedule method. */ CreateUserScheduleRequest: { - /** @description The name of the feed type for the created schedule. Match the feed_type from the schedule template associated with this schedule. */ + /** @description The name of the feed type for the created schedule.

Use the getScheduleTemplates method to retrieve the feed type of a schedule template.

Note: Schedules are currently only available for LMS_ORDER_REPORT. */ feedType?: string; /** * Format: int32 @@ -337,13 +338,14 @@ export interface components { scheduleEndDate?: string; /** @description The schedule name assigned by the user for the created schedule. */ scheduleName?: string; - /** @description The timestamp to start generating the report. After this timestamp, the schedule status becomes active until either the scheduleEndDate occurs or the scheduleTemplateId becomes inactive.

Use this field, if available, to start the schedule in the future but before the scheduleEndDate (if supplied). This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC yyyy-MM-ddTHHZ

For example, the following represents a schedule start date of UTC October 01, 2020 at 12:00 PM:
2020-01-01T12Z */ + /** @description The timestamp to start generating the report. After this timestamp, the schedule status becomes active until either the scheduleEndDate occurs or the scheduleTemplateId becomes inactive.

Use this field, if available, to start the schedule in the future but before the scheduleEndDate (if supplied). This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC yyyy-MM-ddTHHZ

For example, the following represents a schedule start date of UTC October 01, 2020 at 12:00 PM:
2020-01-01T12Z */ scheduleStartDate?: string; - /** @description The ID of the template associated with the schedule ID. You can get this ID from the documentation or by calling the getScheduleTemplates method. This method requires a schedule template ID that is ACTIVE. */ + /** @description The unique identifier of the template to be used for this schedule.

Use the getScheduleTemplates method to retrieve the schedule template ID. This method requires a schedule template ID that is ACTIVE.

Note: Schedules are currently only available for LMS_ORDER_REPORT. */ scheduleTemplateId?: string; - /** @description The schema version of the schedule feedType. This field is required if the feedType has a schema version.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value. */ + /** @description The schema version of a schedule. */ schemaVersion?: string; }; + /** @description This type defines customer service metric task response fields. */ CustomerServiceMetricTaskCollection: { /** @description The URI of the current page of results. */ href?: string; @@ -371,9 +373,9 @@ export interface components { }; /** @description A complex data type that filters data for report creation. See CustomerServiceMetricsFilterCriteria for fields and descriptions. */ CustomerServiceMetricsFilterCriteria: { - /** @description An enumeration value that specifies the customer service metric that eBay tracks to measure seller performance. See CustomerServiceMetricTypeEnum for values. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value that specifies the customer service metric that eBay tracks to measure seller performance.

See CustomerServiceMetricTypeEnum for values. For implementation help, refer to eBay API documentation */ customerServiceMetricType?: string; - /** @description An enumeration value that specifies the eBay marketplace where the evaluation occurs. See MarketplaceIdEnum for values. For implementation help, refer to eBay API documentation */ + /** @description An enumeration value that specifies the eBay marketplace where the evaluation occurs.

See MarketplaceIdEnum for values. For implementation help, refer to eBay API documentation */ evaluationMarketplaceId?: string; /** @description A list of listing category IDs on which the service metric is measured. A seller can use one or more L1 (top-level) eBay categories to get metrics specific to those L1 categories. The Category IDs for each L1 category are required. Category ID values for L1 categories can be retrieved using the Taxonomy API.

Note: Pass this attribute to narrow down your filter results for the ITEM_NOT_AS_DESCRIBED customerServiceMetricType.

Supported categories include:

primary(L1) category Id

*/ listingCategories?: string[]; @@ -417,33 +419,9 @@ export interface components { /** @description The value of the object. */ value?: string; }; - /** @description The metadata for the file. */ - FormDataContentDisposition: { - /** @description The file creation date.

Format: UTC yyyy-MM-ddThh:mm:ss.SSSZ

For example:

Created on September 8, 2019

2019-09-08T00:00:00.000Z

*/ - creationDate?: string; - /** @description The name of the file including its extension (for example, xml or csv) to be uploaded. */ - fileName?: string; - /** @description The file modified date.

Format: UTC yyyy-MM-ddThh:mm:ss.SSSZ

For example:

Created on September 9, 2019

2019-09-09T00:00:00.000Z

*/ - modificationDate?: string; - /** @description A content identifier. The only presently supported name is file. */ - name?: string; - /** @description The parameters you want associated with the file. */ - parameters?: { - [key: string]: string; - }; - /** @description The date you read the file.

Format: UTC yyyy-MM-ddThh:mm:ss.SSSZ

For example:

Created on September 10, 2019

2019-09-10T00:00:00.000Z

*/ - readDate?: string; - /** - * Format: int32 - * @description The size of the file. - */ - size?: number; - /** @description The file type. The only presently supported type is form-data. */ - type?: string; - }; - /** @description The container for the filter fields. This container is used to set the filter criteria for the order report. A seller can retrieve listings for a specified format. */ + /** @description This container is used to set the filter criteria for the ActiveInventoryReport. A seller can create an ActiveInventoryReport for a single listing format. */ InventoryFilterCriteria: { - /** @description The type of buying option for the order. For implementation help, refer to eBay API documentation */ + /** @description The listing format for the ActiveInventoryReport being created. Supported types are:
  • AUCTION
  • FIXED_PRICE
For implementation help, refer to eBay API documentation */ listingFormat?: string; }; InventoryTask: { @@ -588,6 +566,7 @@ export interface components { /** @description An array of the configuration supported by this template. */ supportedConfigurations?: components["schemas"]["SupportedConfiguration"][]; }; + /** @description This type defines customer service metric task response fields. */ ServiceMetricsTask: { /** @description The timestamp when the customer service metrics task went into the COMPLETED or COMPLETED_WITH_ERROR state. This field is only returned if the status is one of the two completed values. This state means that eBay has compiled the report for the seller based on the seller’s filter criteria, and the seller can run a getResultFile call to download the report. */ completionDate?: string; @@ -671,7 +650,7 @@ export interface components { preferredTriggerDayOfMonth?: number; /** @description The preferred day of the week to trigger the schedule. This field can be used with preferredTriggerHour for weekly schedules.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value. For implementation help, refer to eBay API documentation */ preferredTriggerDayOfWeek?: string; - /** @description The preferred two-digit hour of the day to trigger the schedule.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC hhZ

For example, the following represents 11:00 am UTC: 11Z

Minimum: 00Z

Maximum: 23Z */ + /** @description The preferred two-digit hour of the day to trigger the schedule.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC hhZ

For example, the following represents 11:00 am UTC: 11Z

Minimum: 00Z

Maximum: 23Z */ preferredTriggerHour?: string; /** @description The timestamp on which the schedule (report generation) ends. After this date, the schedule status becomes INACTIVE.

Use this field, if available, to end the schedule in the future. This value must be later than scheduleStartDate (if supplied). This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC yyyy-MM-ddTHHZ

For example, the following represents UTC October 10, 2021 at 10:00 AM:
2021-10-10T10Z */ scheduleEndDate?: string; @@ -679,7 +658,7 @@ export interface components { scheduleName?: string; /** @description The timestamp to start generating the report. After this timestamp, the schedule status becomes active until either the scheduleEndDate occurs or the scheduleTemplateId becomes inactive.

Use this field, if available, to start the schedule in the future but before the scheduleEndDate (if supplied). This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value.

Format: UTC yyyy-MM-ddTHHZ

For example, the following represents a schedule start date of UTC October 01, 2020 at 12:00 PM:
2020-01-01T12Z */ scheduleStartDate?: string; - /** @description The schema version of the feedType for the schedule. This field is required if the feedType has a schema version.

This field is available as specified by the template (scheduleTemplateId). The template can specify this field as optional or required, and optionally provides a default value. */ + /** @description The schema version of a schedule. */ schemaVersion?: string; }; /** @description This container provides summary information on an upload feed (not applicable for download feed types). */ @@ -769,7 +748,7 @@ export interface operations { query?: { /** @description The order tasks creation date range. This range is used to filter the results. The filtered results are filtered to include only tasks with a creation date that is equal to this date or is within specified range. Only orders less than 90 days old can be retrieved. Do not use with the look_back_days parameter.

Format: UTC

For example:

Tasks within a range
yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on September 8, 2019
2019-09-08T00:00:00.000Z..2019-09-09T00:00:00.000Z
*/ date_range?: string; - /** @description The feed type associated with the task. The only presently supported value is LMS_ORDER_REPORT. Do not use with the schedule_id parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type. */ + /** @description The feed type associated with the order tasks being retrieved. The only presently supported value is LMS_ORDER_REPORT

See Report download feed types for more information.

Note: Do not use with the schedule_id parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type. */ feed_type?: string; /** @description The maximum number of order tasks that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves order tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500

*/ limit?: string; @@ -777,7 +756,7 @@ export interface operations { look_back_days?: string; /** @description The number of order tasks to skip in the result set before returning the first order in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0 */ offset?: string; - /** @description The schedule ID associated with the order task. A schedule periodically generates a report for the feed type specified by the schedule template (see scheduleTemplateId in createSchedule). Do not use with the feed_type parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type. */ + /** @description The schedule ID associated with the order tasks being retrieved. A schedule periodically generates a report, and these schedules can be created with the createSchedule method.

Note: Do not use with the feed_type parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type.
Use the getSchedules method to retrieve schedule IDs. */ schedule_id?: string; }; header?: never; @@ -821,9 +800,9 @@ export interface operations { createOrderTask: { parameters: { query?: never; - header?: { - /** @description The ID of the eBay marketplace where the item is hosted.

Note: This value is case sensitive.

For example:

X-EBAY-C-MARKETPLACE-ID:EBAY_US

This identifies the eBay marketplace that applies to this task. See MarketplaceIdEnum.

*/ - "X-EBAY-C-MARKETPLACE-ID"?: string; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; path?: never; cookie?: never; @@ -877,7 +856,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The ID of the task. This ID is generated when the task was created by the createOrderTask method. */ + /** @description This path parameter is the unique identifier of the order task being retrieved.

Use the getOrderTasks method to retrieve order task IDs. */ task_id: string; }; cookie?: never; @@ -926,9 +905,9 @@ export interface operations { getInventoryTasks: { parameters: { query?: { - /** @description The feed type associated with the inventory task. Either feed_type or schedule_id is required. Do not use with the schedule_id parameter. Presently, only one feed type is available:
  • LMS_ACTIVE_INVENTORY_REPORT
*/ + /** @description The feed type associated with the inventory tasks being retrieved. Presently, only one feed type is available:
  • LMS_ACTIVE_INVENTORY_REPORT
See Report value feed types for more information. */ feed_type?: string; - /** @description The ID of the schedule for which to retrieve the latest result file. This ID is generated when the schedule was created by the createSchedule method. Schedules apply to downloaded reports (LMS_ACTIVE_INVENTORY_REPORT). Either schedule_id or feed_type is required. Do not use with the feed_type parameter. */ + /** @description Note: Schedule functionality for ActiveInventoryReport is currently unavailable, so this field is not usable. */ schedule_id?: string; /** @description The number of previous days in which to search for tasks. Do not use with the date_range parameter. If both date_range and look_back_days are omitted, this parameter's default value is used.

Default: 7

Range: 1-90 (inclusive) */ look_back_days?: string; @@ -980,9 +959,9 @@ export interface operations { createInventoryTask: { parameters: { query?: never; - header?: { - /** @description The ID of the eBay marketplace where the item is hosted.

Note: This value is case sensitive.

For example:

X-EBAY-C-MARKETPLACE-ID:EBAY_US

This identifies the eBay marketplace that applies to this task. See MarketplaceIdEnum.

*/ - "X-EBAY-C-MARKETPLACE-ID"?: string; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; path?: never; cookie?: never; @@ -1036,7 +1015,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The ID of the task. This ID was generated when the task was created by the createInventoryTask method */ + /** @description This path parameter is the unique identifier of the inventory task being retrieved.

Use the getInventoryTasks method to retrieve inventory task IDs. */ task_id: string; }; cookie?: never; @@ -1085,7 +1064,7 @@ export interface operations { getSchedules: { parameters: { query: { - /** @description The feedType associated with the schedule. */ + /** @description The feed type associated with the schedules being retrieved.

Note: Schedules are currently only available for LMS_ORDER_REPORT. */ feed_type: string; /** @description The maximum number of schedules that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves schedules 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500 */ limit?: string; @@ -1133,7 +1112,10 @@ export interface operations { createSchedule: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path?: never; cookie?: never; }; @@ -1189,7 +1171,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The ID of the schedule for which to retrieve the details. This ID is generated when the schedule was created by the createSchedule method. */ + /** @description This path parameter is the unique identifier of the schedule for which to retrieve details.

Use the getSchedules method to retrieve schedule IDs. */ schedule_id: string; }; cookie?: never; @@ -1238,9 +1220,12 @@ export interface operations { updateSchedule: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path: { - /** @description The ID of the schedule to update. This ID is generated when the schedule was created by the createSchedule method. */ + /** @description This path parameter is the unique identifier of the schedule being updated.

Use the getSchedules method to retrieve schedule IDs. */ schedule_id: string; }; cookie?: never; @@ -1301,7 +1286,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The schedule_id of the schedule to delete. This ID was generated when the task was created. If you do not know the schedule_id, use the getSchedules method to return all schedules based on a specified feed_type and find the schedule_id of the schedule to delete. */ + /** @description This path parameter is the unique identifier of the schedule being deleted.

Use the getSchedules method to retrieve schedule IDs. */ schedule_id: string; }; cookie?: never; @@ -1343,7 +1328,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The ID of the schedule for which to retrieve the latest result file. This ID is generated when the schedule was created by the createSchedule method. */ + /** @description This path parameter is the unique identifier of the schedule for which to retrieve the latest Order Report.

Use the getSchedules method to retrieve schedule IDs. */ schedule_id: string; }; cookie?: never; @@ -1395,7 +1380,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The ID of the template to retrieve. If you do not know the schedule_template_id, refer to the documentation or use the getScheduleTemplates method to find the available schedule templates. */ + /** @description This path parameter is the unique identifier of the schedule template being retrieved.

Use the getScheduleTemplates method to retrieve schedule template IDs.

Note: Template schedules are currently only available for LMS_ORDER_REPORT. */ schedule_template_id: string; }; cookie?: never; @@ -1437,7 +1422,7 @@ export interface operations { getScheduleTemplates: { parameters: { query: { - /** @description The feed type of the schedule templates to retrieve. */ + /** @description The feed type of the schedule templates to retrieve.

Note: Schedules are currently only available for LMS_ORDER_REPORT. */ feed_type: string; /** @description The maximum number of schedule templates that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves schedule templates 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500 */ limit?: string; @@ -1480,7 +1465,7 @@ export interface operations { query?: { /** @description Specifies the range of task creation dates used to filter the results. The results are filtered to include only tasks with a creation date that is equal to this date or is within specified range. Only tasks that are less than 90 days can be retrieved.

Note: Maximum date range window size is 90 days.


Valid Format (UTC):yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

For example: Tasks created on September 8, 2019
2019-09-08T00:00:00.000Z..2019-09-09T00:00:00.000Z */ date_range?: string; - /** @description The feed type associated with the tasks to be returned. Only use a feedType that is available for your API:
  • Order Feeds: LMS_ORDER_ACK, LMS_ORDER_REPORT
  • Large Merchant Services (LMS) Feeds: See Available FeedTypes

Do not use with the schedule_id parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type. */ + /** @description The feed type associated with the tasks to be returned. Only use a feedType that is available for your API:
  • Order Feeds: LMS_ORDER_ACK, LMS_ORDER_REPORT
  • Inventory Upload Feed Types: See Available FeedTypes
Do not use with the schedule_id parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type. */ feed_type?: string; /** @description The maximum number of tasks that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

For example, if offset is set to 10 and limit is set to 10, the call retrieves tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Default: 10

Maximum: 500 */ limit?: string; @@ -1488,7 +1473,7 @@ export interface operations { look_back_days?: string; /** @description The number of tasks to skip in the result set before returning the first task in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.

Default: 0 */ offset?: string; - /** @description The schedule ID associated with the task. A schedule periodically generates a report for the feed type specified by the schedule template (see scheduleTemplateId in createSchedule). Do not use with the feed_type parameter. Since schedules are based on feed types, you can specify a schedule (schedule_id) that returns the needed feed_type. */ + /** @description The unique identifier associated with the tasks being returned. A schedule periodically generates a report for the feed type specified by the schedule template.

Note: Schedules are currently only available for LMS_ORDER_REPORT.
Do not use with the feed_type parameter. */ schedule_id?: string; }; header?: never; @@ -1532,9 +1517,13 @@ export interface operations { createTask: { parameters: { query?: never; - header?: { - /** @description The ID of the eBay marketplace where the item is hosted.

Note: This value is case sensitive.

For example:

X-EBAY-C-MARKETPLACE-ID:EBAY_US

This identifies the eBay marketplace that applies to this task. See MarketplaceIdEnum.

*/ - "X-EBAY-C-MARKETPLACE-ID"?: string; + header: { + /** @description The ID of the eBay marketplace where the item is hosted.

For example:

X-EBAY-C-MARKETPLACE-ID:EBAY_US

This identifies the eBay marketplace that applies to this task. See MarketplaceIdEnum for supported values.

Note: When listing the items in the feed file on the French Canada and French Belgium marketplaces, also set the Accept-Language header as needed. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + /** @description The Accept-Language header is required for listing items in the French Canada and French Belgium marketplaces. Set the following headers to list items on these marketplaces:
  • French Canada: Set the X-EBAY-C-MARKETPLACE-ID header value to EBAY_CA and include the Accept-Language header with a value of fr-CA.
  • French Belgium: Set the X-EBAY-C-MARKETPLACE-ID header value to EBAY_BE and include the Accept-Language header with a value of fr-BE.
*/ + "Accept-Language"?: string; }; path?: never; cookie?: never; @@ -1588,7 +1577,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The task ID associated with the file to be downloaded. */ + /** @description This path parameter is the unique identifier of the task associated with the input file to be downloaded.

Use the getTasks method to retrieve task IDs. */ task_id: string; }; cookie?: never; @@ -1640,7 +1629,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The ID of the task associated with the file you want to download. This ID was generated when the task was created. */ + /** @description This path parameter is the unique identifier of the task associated with the file to be downloaded.

Use the getTasks method to retrieve task IDs. */ task_id: string; }; cookie?: never; @@ -1692,7 +1681,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The ID of the task. This ID was generated when the task was created. */ + /** @description This path parameter is the unique identifier of the task being retrieved.

Use the getTasks method to retrieve task IDs. */ task_id: string; }; cookie?: never; @@ -1741,18 +1730,17 @@ export interface operations { uploadFile: { parameters: { query?: never; - header?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to multipart/form-data.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; path: { - /** @description The task_id associated with the file that will be uploaded. This ID was generated when the specified task was created. */ + /** @description This path parameter is the unique identifier of the task associated with the file that will be uploaded.

Use the getTasks method to retrieve task IDs. */ task_id: string; }; cookie?: never; }; - requestBody?: { - content: { - "multipart/form-data": components["schemas"]["FormDataContentDisposition"]; - }; - }; + requestBody?: never; responses: { /** @description Success */ 200: { @@ -1798,7 +1786,7 @@ export interface operations { query?: { /** @description The task creation date range. The results are filtered to include only tasks with a creation date that is equal to the dates specified or is within the specified range. Do not use with the look_back_days parameter.

Format: UTC

For example, tasks within a range:

yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ

Tasks created on March 8, 2020

2020-03-08T00:00.00.000Z..2020-03-09T00:00:00.000Z

Maximum: 90 days

*/ date_range?: string; - /** @description The feed type associated with the task. The only presently supported value is CUSTOMER_SERVICE_METRICS_REPORT. */ + /** @description The feed type associated with the tasks being retrieved. The only presently supported value is CUSTOMER_SERVICE_METRICS_REPORT. */ feed_type?: string; /** @description The number of customer service metric tasks to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

For example, if offset is set to 10 and limit is set to 10, the call retrieves tasks 11 thru 20 from the result set.

If this parameter is omitted, the default value is used.

Note:This feature employs a zero-based list, where the first item in the list has an offset of 0.

Default: 10

Maximum: 500

*/ limit?: string; @@ -1849,8 +1837,10 @@ export interface operations { parameters: { query?: never; header: { - /** @description Use this header to specify the natural language in which the authenticated user desires the response. */ - "accept-language": string; + /** @description Use this header to specify the natural language in which the authenticated user desires the response. For example, en-US for English or de-DE for German. */ + "Accept-Language": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; path?: never; cookie?: never; @@ -1897,7 +1887,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description Use this path parameter to specify the task ID value for the customer service metric task to retrieve. */ + /** @description This path parameter is the unique identifier of the customer service metric task being retrieved.

Use the getCustomerServiceMetricTasks method to retrieve task IDs. */ task_id: string; }; cookie?: never; diff --git a/src/types/restful/specs/sell_finances_v1_oas3.ts b/src/types/restful/specs/sell_finances_v1_oas3.ts index d1ae1678..114b1a64 100644 --- a/src/types/restful/specs/sell_finances_v1_oas3.ts +++ b/src/types/restful/specs/sell_finances_v1_oas3.ts @@ -4,6 +4,57 @@ */ export interface paths { + "/order_earnings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns detailed order-level financial data for each order associated with a seller account. The returned order-level financial data includes order earnings, gross amount, expenses, and refunds. Order earnings includes earnings after deducting expenses and refunds from the gross amount.

Note: Expenses include fees, shipping labels, and donations. Refunds include gross refunds, gross claims, and gross payment disputes.

The financial data for orders will be returned as filtered based on the order's creation date.

Note: Only charges and credits tied to the order are shown, and they appear in near real time for orders created within the selected order creation time window.

Pagination is supported through the limit and offset parameters. These parameters can be used to control the number of records returned in a single response and to retrieve subsequent pages of results when the result set spans multiple pages.

The response can be filtered by using the filter parameter. This parameter allows consumers to restrict the results returned by the method based on supported filtering criteria.

Note: Access to the order_earnings resource is currently limited to only US, China, or Hong Kong sellers who meet the following criteria and also request access:

- US sellers with the country of residence set to US and having a payout currency in USD.

- Hong Kong or China sellers having the country of residence set to HK or CN and the payout currency set to USD have access.

To request access, submit an application growth check to have the required OAuth scope added to your app. After submission, you can use the same growth check link to track the status of the request.

eBay plans on expanding this to other markets in the future.


Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.

*/ + get: operations["getOrderEarnings"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/order_earnings/{order_id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns detailed order-level financial data including order earnings, gross amount, expenses, and refunds. Order earnings includes earnings after deducting expenses and refunds from the gross amount.

Note: Expenses include fees, shipping labels, and donations. Refunds include gross refunds, gross claims, and gross payment disputes.

Note: Only charges and credits tied to the order are shown, and they appear in near real time for orders created within the selected order creation time window.

The response returns earnings information only for the order identified by the order_id path parameter.

Note: Access to the order_earnings resource is currently limited to only US, China, or Hong Kong sellers who meet the following criteria and also request access:

- US sellers with the country of residence set to US and having a payout currency in USD.

- Hong Kong or China sellers having the country of residence set to HK or CN and the payout currency set to USD have access.

To request access, submit an application growth check to have the required OAuth scope added to your app. After submission, you can use the same growth check link to track the status of the request.

eBay plans on expanding this to other markets in the future.


Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.

*/ + get: operations["getOrderEarningsById"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/order_earnings_summary": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns a summarized view of order earnings information for one or more orders associated with a seller account. The method retrieves aggregated data for order earnings after deducting expenses and refunds from the gross amount. You can use this method for high-level financial reporting workflows.

Note: Expenses include fees, shipping labels, and donations. Refunds include gross refunds, gross claims, and gross payment disputes.

Note: Only charges and credits tied to the order are shown, and they appear in near real time for orders created within the selected order creation time window.

The response can be filtered by using the filter parameter. This parameter allows consumers to restrict the summary results returned by the method based on supported filtering criteria.

Note: Access to the order_earnings resource is currently limited to only US, China, or Hong Kong sellers who meet the following criteria and also request access:

- US sellers with the country of residence set to US and having a payout currency in USD.

- Hong Kong or China sellers having the country of residence set to HK or CN and the payout currency set to USD have access.

To request access, submit an application growth check to have the required OAuth scope added to your app. After submission, you can use the same growth check link to track the status of the request.

eBay plans on expanding this to other markets in the future.


Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.

*/ + get: operations["getOrderEarningsSummary"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/payout/{payout_Id}": { parameters: { query?: never; @@ -11,7 +62,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves details on a specific seller payout. The unique identfier of the payout is passed in as a path parameter at the end of the call URI.

The getPayouts method can be used to retrieve the unique identifier of a payout, or the user can check Seller Hub. */ + /** @description

Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.
This method retrieves details on a specific seller payout. The unique identifier of the payout is passed in as a path parameter at the end of the call URI.

The getPayouts method can be used to retrieve the unique identifier of a payout, or the user can check Seller Hub.

For split-payout cases, which are only available to sellers in mainland China, this method will return the payoutPercentage for the specified payout. This value indicates the current payout percentage allocated to a payment instrument. This method will also return the convertedToCurrency and convertedToValue response fields in CNY value.

Note: In split-payout cases, this method will only return details on an individual payout, also known as a true(actual) payoutid. If a user inputs a payoutReference id as a path parameter, the call will fail and the 404 not found status code will be returned.
For more information on split payouts, see Mainland China Split Payout Playbook.
*/ get: operations["getPayout"]; put?: never; post?: never; @@ -28,7 +79,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method is used to retrieve the details of one or more seller payouts. By using the filter query parameter, users can retrieve payouts processed within a specific date range, and/or they can retrieve payouts in a specific state.

There are also pagination and sort query parameters that allow users to control the payouts that are returned in the response.

If no payouts match the input criteria, an empty payload is returned. */ + /** @description

Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.
This method is used to retrieve the details of one or more seller payouts. By using the filter query parameter, users can retrieve payouts processed within a specific date range, and/or they can retrieve payouts in a specific state.

There are also pagination and sort query parameters that allow users to control the payouts that are returned in the response.

If no payouts match the input criteria, an empty payload is returned.

For split-payout cases, which are only available to sellers in mainland China, this method will return the payoutPercentage for the specified payout. This value indicates the current payout percentage allocated to a payout instrument. This method will also return the convertedToCurrency and convertedTo response fields set to CNY value and the payoutReference, the unique identifier reference (not true payout).

By using the filter query parameter, users can retrieve the two true(actual) payouts associated with a payoutReference.

Note: For more information on split payouts, see Mainland China Split Payout Playbook.

Note: Only payouts less than 5 years in the past can be retrieved. */ get: operations["getPayouts"]; put?: never; post?: never; @@ -45,7 +96,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method is used to retrieve cumulative values for payouts in a particular state, or all states. The metadata in the response includes total payouts, the total number of monetary transactions (sales, refunds, credits) associated with those payouts, and the total dollar value of all payouts.

If the filter query parameter is used to filter by payout status, only one payout status value may be used. If the filter query parameter is not used to filter by a specific payout status, cumulative values for payouts in all states are returned.

The user can also use the filter query parameter to specify a date range, and then only payouts that were processed within that date range are considered. */ + /** @description

Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.
This method is used to retrieve cumulative values for payouts in a particular state, or all states. The metadata in the response includes total payouts, the total number of monetary transactions (sales, refunds, credits) associated with those payouts, and the total dollar value of all payouts.

If the filter query parameter is used to filter by payout status, only one payout status value may be used. If the filter query parameter is not used to filter by a specific payout status, cumulative values for payouts in all states are returned.

The user can also use the filter query parameter to specify a date range, and then only payouts that were processed within that date range are considered.

Note: getPayoutSummary will only return data on payouts that occurred less than five years in the past. */ get: operations["getPayoutSummary"]; put?: never; post?: never; @@ -55,6 +106,23 @@ export interface paths { patch?: never; trace?: never; }; + "/seller_funds_summary": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description

Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.
This method retrieves all pending funds that have not yet been distributed through a seller payout.

There are no input parameters for this method. The response payload includes available funds, funds being processed, funds on hold, and also an aggregate count of all three of these categories.

If there are no funds that are pending, on hold, or being processed for the seller's account, no response payload is returned, and an http status code of 204 - No Content is returned instead. */ + get: operations["getSellerFundsSummary"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/transaction": { parameters: { query?: never; @@ -62,7 +130,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method allows a seller to retrieve one or monetary transactions. In this case, 'monetary transactions' include sales orders, buyer refunds, seller credits, buyer-initiated payment disputes, eBay shipping label purchases, and transfers. There are numerous input filters available for use, including filters to retrieve specific types of monetary transactions, to retrieve monetary transactions processed within a specific date range, or to retrieve monetary transactions in a specific state. See the filter field for more information on each filter, and how each one is used.

There are also pagination and sort query parameters that allow users to further control the monetary transactions that are returned in the response.

If no monetary transactions match the input criteria, an http status code of 204 No Content is returned with no response payload. */ + /** @description

Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.
The getTransactions method allows a seller to retrieve information about one or more of their monetary transactions.

Note: For a complete list of transaction types, refer to TransactionTypeEnum.
Numerous input filters are available which can be used individually or combined to refine the data that are returned. For example:
  • SALE transactions for August 15, 2022;
  • RETURN transactions for the month of January, 2021;
  • Transactions currently in a transactionStatus equal to FUNDS_ON_HOLD.
Refer to the filter field for additional information about each filter and its use.

Pagination and sort query parameters are also provided that allow users to further control how monetary transactions are displayed in the response.

If no monetary transactions match the input criteria, an http status code of 204 No Content is returned with no response payload.

Note: Only monetary transactions that have occurred within the last five years can be retrieved. */ get: operations["getTransactions"]; put?: never; post?: never; @@ -79,7 +147,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method is used to retrieve cumulative values for five types of monetary transactions (order sales, seller credits, buyer refunds, buyer-initiated payment disputes, eBay shipping label purchases, and transfers). If applicable, the number of payment holds and the amount of the holds are also returned.

See the description for the filter query parameter for more information on the available filters.

Note: Unless the transactionType filter is used to retrieve a specific type of monetary transaction (sale, buyer refund, seller credit, payment dispute, shipping label, transfer), the creditCount and creditAmount response fields account for both order sales and seller credits (the count and value is not distinguished between the two monetary transaction types). */ + /** @description

Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.
The getTransactionSummary method retrieves cumulative information for monetary transactions. If applicable, the number of payments with a transactionStatus equal to FUNDS_ON_HOLD and the total monetary amount of these on-hold payments are also returned.

Note: For a complete list of transaction types, refer to TransactionTypeEnum.
Refer to the filter field for additional information about each filter and its use.

Note: Unless a transactionType filter is used to retrieve a specific type of transaction (e.g., SALE, REFUND, etc.,) the creditCount and creditAmount response fields both include order sales and seller credits information. That is, the count and value fields do not distinguish between these two types monetary transactions.

Note: getTransactionSummary will only return data on transactions that occurred less than five years in the past. */ get: operations["getTransactionSummary"]; put?: never; post?: never; @@ -96,7 +164,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves detailed information regarding a TRANSFER transaction type. A TRANSFER is a monetary transaction type that involves a seller transferring money to eBay for reimbursement of one or more charges. For example, when a seller reimburses eBay for a buyer refund.

If an ID is passed into the URI that is an identifier for another transaction type, this call will return an http status code of 404 Not found. */ + /** @description

Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.
This method retrieves detailed information regarding a TRANSFER transaction type. A TRANSFER is a monetary transaction type that involves a seller transferring money to eBay for reimbursement of one or more charges. For example, when a seller reimburses eBay for a buyer refund.

If an ID is passed into the URI that is an identifier for another transaction type, this call will return an http status code of 404 Not found. */ get: operations["getTransfer"]; put?: never; post?: never; @@ -106,15 +174,15 @@ export interface paths { patch?: never; trace?: never; }; - "/seller_funds_summary": { + "/billing_activity": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method retrieves all pending funds that have not yet been distibuted through a seller payout.

There are no input parameters for this method. The response payload includes available funds, funds being processed, funds on hold, and also an aggregate count of all three of these categories.

If there are no funds that are pending, on hold, or being processed for the seller's account, no response payload is returned, and an http status code of 204 - No Content is returned instead. */ - get: operations["getSellerFundsSummary"]; + /** @description

Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made on behalf of EU/UK sellers, including all Finances API methods. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signatures to be included in the HTTP payload.


Note: The Finances API does not support Team Access. Financial information, such as payouts or transactions, is only returned for the user that makes the call. You cannot use any of the methods in this API to return financial information for another user.
This method retrieves filtered billing activities of the seller. Returned results are filtered through query parameters such as date range, activity ID, listing ID, or order ID. Sorting and pagination features help organize and navigate returned activities efficiently. */ + get: operations["getBillingActivities"]; put?: never; post?: never; delete?: never; @@ -129,13 +197,17 @@ export interface components { schemas: { /** @description This type is used to express the dollar value and currency used for any transaction retrieved with the Finances API, including an order total, a seller payout, a buyer refund, or a seller credit. */ Amount: { - /** @description A three-letter ISO 4217 code that indicates the currency of the amount in the value field. This field is always returned with any container using Amount type.

Default: The currency of the authenticated user's country. For implementation help, refer to eBay API documentation */ - currency?: string; - /** @description The three-letter ISO 4217 code representing the currency of the amount in the convertedFromValue field. This value is the pre-conversion currency.

This field is only returned if/when currency conversion was applied by eBay. For implementation help, refer to eBay API documentation */ + /** @description The three-letter ISO 4217 code representing the currency of the amount in the convertedFromValue field. This value is the pre-conversion currency.

This field is only returned if/when currency conversion was applied by eBay. For implementation help, refer to eBay API documentation */ convertedFromCurrency?: string; /** @description The monetary amount before any conversion is performed, in the currency specified by the convertedFromCurrency field. This value is the pre-conversion amount. The value field contains the converted amount of this value, in the currency specified by the currency field.

This field is only returned if/when currency conversion was applied by eBay. */ convertedFromValue?: string; - /** @description The exchange rate used for the monetary conversion. This field shows the exchange rate used to convert the dollar value in the value field from the dollar value in the convertedFromValue field.

This field is only returned when eBay does a currency version, and a currency conversion is generally needed if the buyer is viewing, or has purchased an item on an international site.

This field is only returned if/when currency conversion was applied by eBay. */ + /** @description Note: This field is only applicable for Mainland China sellers with an available CNY Bank payment instrument. This response can only have a value of CNY.The three-letter ISO 4217 code representing the currency of the amount in the convertedToValue field.

This field is only returned for payouts to bank accounts when currency conversion was applied by eBay. For implementation help, refer to eBay API documentation */ + convertedToCurrency?: string; + /** @description Note: This field is only applicable for Mainland China sellers with an available CNY Bank payment instrument. This response only returns value in CNY.The monetary value after any conversion is performed, in the currency specified by the convertedToCurrency field. This value is the converted amount.

The field is only returned for payouts to bank accounts when currency conversion was applied by eBay. */ + convertedToValue?: string; + /** @description A three-letter ISO 4217 code that indicates the currency of the amount in the value field. This field is always returned with any container using Amount type.

Default: The currency of the authenticated user's country. For implementation help, refer to eBay API documentation */ + currency?: string; + /** @description The exchange rate used for the monetary conversion. This field shows the exchange rate used to convert the dollar value in the value field from the dollar value in the convertedFromValue field.

For sellers in mainland China, this field shows the exchange rate to convert the dollar value in the value field to the CNY value in the convertedToValue field.

This field is only returned when eBay does a currency version, and a currency conversion is generally needed if the buyer is viewing, or has purchased an item on an international site.

This field is only returned if/when currency conversion was applied by eBay. */ exchangeRate?: string; /** @description The monetary amount, in the currency specified by the currency field. This field is always returned with any container using Amount type. */ value?: string; @@ -147,9 +219,66 @@ export interface components { /** @description The enumeration value returned here indicates if the charge is a DEBIT or a CREDIT to the seller. Generally, all transfer transaction types are going to be DEBIT, since the money is being tranferred from the seller to eBay. For implementation help, refer to eBay API documentation */ adjustmentType?: string; }; + /** @description BillingActivityLineItem */ + BillingActivityLineItem: { + /** @description This container shows the amount of the fee or credit. The value and currency are always returned. If the buyer is in one country and purchases from an eBay marketplace that uses a different currency, the response also includes the converted-from and converted-to fields, along with the exchange rate. */ + amount?: components["schemas"]["Amount"]; + /** @description This timestamp indicates the date/time when eBay processed the transaction. */ + billingTransactionDate?: string; + /** @description This field provides a unique identifier of the billing transaction. If a seller wants to view details on a specific billing transaction, they can use the actvityId filter and pass in a specific billingTransactionId value. */ + billingTransactionId?: string; + /** @description The value returned in this field will indicate if the billing transaction is a debit against the seller's account, or a credit. A debit is much more prevalent than a credit, but sometimes a listing fee will get reversed and they will get a credit for this fee. Possible values:
  • DEBIT
  • CREDIT
*/ + bookingEntry?: string; + /** @description This field describes the type of fee associated with the transaction. An example value is FinalValueFeeFixedFeePerOrder. */ + feeType?: string; + /** @description This field contains the human-readable description of the fee type associated with the transaction. For example, Final Value Fee. */ + feeTypeDescription?: string; + /** @description The unique identifier of the eBay listing associated with the billing transaction. This field is returned if the fee is associated with a listing. */ + listingId?: string; + /** @description The unique identifier of the eBay order associated with the billing transaction. This field is returned if the fee is associated with an order. */ + orderId?: string; + /** @description A list of seller promotional offers applicable for the billing transaction. */ + promotionalOffers?: components["schemas"]["DiscountDetail"][]; + }; + /** @description BillingActivityResponse */ + BillingActivityResponse: { + /** @description A list of billing activity entries that meet the filter criteria. Billing activity will include fees, credits, and promotional offers applied to the seller's account. */ + billingActivities?: components["schemas"]["BillingActivityLineItem"][]; + /** + * Format: int32 + * @description An integer representing the number of billing activity items returned in this response page. + */ + count?: number; + /** + * Format: int32 + * @description The value of the limit parameter. This is the maximum number of line items, as filtered, of billing transactions to return per page from the result set. + */ + limit?: number; + /** @description The URI for the next page of results starting with the resource name. This URI is returned if there is an additional page of results in the result set. */ + next?: string; + /** + * Format: int32 + * @description The value of the offset parameter. This field indicates how many results were skipped in the response. If an offset parameter was not included in the request, this value will default to 0, returning the first page of results. + */ + offset?: number; + /** @description The URI for the previous page of results starting with the resource name. This URI is returned if there is a previous page of results in the result set. */ + prev?: string; + /** + * Format: int32 + * @description The total number of billing transactions available that match the filter criteria.

Note: When the total value exceeds the limit value, there are multiple pages of results.

+ */ + total?: number; + }; /** @description This type is used to express details about the buyer associated with an order. At this time, the only field in this type is the eBay user ID of the buyer, but more fields may get added at a later date. */ Buyer: { - /** @description The eBay user ID of the order's buyer. */ + /** @description The eBay user ID of the order's buyer.

Note: Effective September 26, 2025, select developers will no longer receive username data for U.S. users through this field. Instead, an immutable user ID will be returned in its place. For more information, please refer to Data Handling Compliance. */ + username?: string; + }; + /** @description This type defines identifying information about the buyer associated with an order. */ + BuyerWithId: { + /** @description The public user id of the buyer */ + userId?: string; + /** @description The username of the buyer.

Note: Effective September 26, 2025, select developers will no longer receive username data for U.S. users through this field. Instead, an immutable user ID will be returned in its place. For more information, please refer to Data Handling Compliance. */ username?: string; }; /** @description This type is used by the charge container, which is an array of one or more charges related to the transfer. */ @@ -171,6 +300,24 @@ export interface components { /** @description The unique identifier of an order return. This field is only applicable and returned if the charge is related to an order that was returned by the buyer. */ returnId?: string; }; + /** @description This container shows the amount of the promotional offer. */ + DiscountDetail: { + /** @description This container shows the amount of the promotion. The value and currency are always returned. If the buyer is in one country and purchases from an eBay marketplace that uses a different currency, the response also includes the converted-from and converted-to fields, and the exchange rate. */ + amount?: components["schemas"]["Amount"]; + /** @description The type of promotional discount applied through the activity's promotional offer amount. Examples include offer types such as ETRS (eBay Top Rated Seller) and PROMOTION. */ + offerType?: string; + }; + /** @description This type defines a summarized view of earnings information derived from one order. It defines fields that provides a summarized view of earnings information derived from one order including aggregated financial values for gross amount, expenses, earnings, and refunds. */ + EarningsSummary: { + /** @description This container provides the total expenses associated with an order, including:
  • Fees and fee credits (transaction fees, other fees, and ad fees)
  • Shipping labels
  • Donations
It is used by both the getOrderEarnings and getOrderEarningsById methods.

Note: Expenses are always in the seller's payout currency. Conversion-related fields (such as exchangeRate or converted from/to fields) in this container do not apply to the order_earnings resource.

*/ + expenses?: components["schemas"]["Expense"]; + /** @description This container shows the gross amount before any eBay deductions. This amount includes the item subtotal, buyer-paid shipping and handling, and seller-collected tax paid by the buyer.

Note: This amount does not include any taxes or fees that eBay collects from the buyer.

Note: Gross amount is always in the seller's payout currency. Conversion-related fields (such as exchangeRate or converted from/to fields) in this container do not apply to the order_earnings resource.

*/ + grossAmount?: components["schemas"]["Amount"]; + /** @description This container shows your earnings after deducting expenses and any refunds from your gross amount.

Note: Order earnings are always in the seller's payout currency. Conversion-related fields (such as exchangeRate or converted from/to fields) in this container do not apply to the order_earnings resource.

*/ + orderEarnings?: components["schemas"]["Amount"]; + /** @description This container includes refunds for returns, cases, cancellations, requests, and disputes. It does not include fee credits.

Note: Refunds are always in the seller's payout currency. Conversion-related fields (such as exchangeRate or converted from/to fields) in this container do not apply to the order_earnings resource.

*/ + refunds?: components["schemas"]["Amount"]; + }; /** @description This type defines the fields that can be returned in an error. */ Error: { /** @description Identifies the type of erro. */ @@ -201,16 +348,38 @@ export interface components { /** @description The value of the object. */ value?: string; }; - /** @description This type is used to display fees that are automatically deducted from seller payouts. */ + /** @description This type defines provides the total expenses associated with an order. Expenses represent cost components that reduce the seller's gross earnings and may include deductions such as marketplace fees, eBay shipping labels, and donations, applied during order processing. */ + Expense: { + /** @description This field shows the three-letter currency code that represents the currency used for all of the order expenses For implementation help, refer to eBay API documentation */ + currency?: string; + /** @description This array shows the amount(s) of one or more donations that are submitted to eBay charity organizations for one or more orders.

Note: Donations are always tied to specific items. When an item is listed with a charity contribution (for example, 10%), the donation is calculated per item at the time of sale. Order earnings factor in only the items within the order that are eligible for donation.

*/ + donations?: components["schemas"]["OrderEarningFee"][]; + /** @description This array shows the type and amount(s) of marketplace fees that were charged against one or more orders. */ + marketplaceFees?: components["schemas"]["OrderEarningFee"][]; + /** @description This container shows the total amount paid by the seller for eBay shipping labels for one or more orders.

Note: Charges and credits for shipping labels purchased with non-eBay payment methods (for example, PayPal) are excluded from the order earnings calculation.

*/ + shippingLabels?: components["schemas"]["Amount"]; + /** @description This field shows the total expenses including charges and credits associated for one or more orders based on the order creation time period chosen. */ + value?: string; + }; + /** @description This type is used for provide information about a fee that is charged against an order. */ Fee: { - /** @description The amount of the fee. */ + /** @description The monetary amount charged for the fee. */ amount?: components["schemas"]["Amount"]; - /** @description A description of the fee that was deducted from the seller payout. */ + /** @description This type defines the jurisdiction associated with a fee. It identifies the geographic or regulatory context under which a specific fee is applied to an order. */ + feeJurisdiction?: components["schemas"]["FeeJurisdiction"]; + /** @description A descriptive message that provides additional context about the fee applied to the order. */ feeMemo?: string; /** @description The enumeration value returned here indicates the type of fee that was deducted from the seller payout. For implementation help, refer to eBay API documentation */ feeType?: string; }; - /** @description This type provided details on the funding source for the transfer. */ + /** @description This type defines the jurisdiction information associated with a fee, identifying the geographic or regulatory region under which the fee is applied. */ + FeeJurisdiction: { + /** @description The name of the region to which the fee applies.

The set of valid regionName values returned is determined by the corresponding regionType value.

Note: Currently supported regionName values are standard two-character country or state codes.

Typical examples include:
  • MX (Mexico)
  • IN (India)
  • US (United States)
  • CA (California)
  • VT (Vermont)
  • ME (Maine)
*/ + regionName?: string; + /** @description This enumeration value indicates the type of region that the fee jurisdiction represents, such as a country or a state. For implementation help, refer to eBay API documentation */ + regionType?: string; + }; + /** @description This type defines the source of funds used to finance a transfer, such as available seller funds, a credit card, or a bank account. */ FundingSource: { /** @description The brand name of the credit card or the name of the financial institution that is the source of payment. This field may not be populated for other funding sources. */ brand?: string; @@ -219,18 +388,95 @@ export interface components { /** @description The string value returned here indicates the funding source. Possible values include the following:
  • AVAILABLE_FUNDS: transfer is funded with seller payout funds
  • CREDIT_CARD: transfer is funded with seller's credit card
  • BANK: transfer is funded with a direct debit to seller's bank account on file with eBay
  • PAY_UPON_INVOICE: eBay will bill the seller for the transfer on the monthly invoice
*/ type?: string; }; - /** @description This type is used to show the fees that are deducted from a seller payout for each line item in an order. */ + /** @description This type defines the earnings details for a single order. It includes information associated with the order, such as an informatiuon about the buyer, an order summary, and an order earnings summary. */ + OrderEarning: { + /** @description Information about the buyer associated with the order. Includes buyer name and public user id. */ + buyer?: components["schemas"]["BuyerWithId"]; + /** @description The date the order was created and payment was successful. */ + orderCreationDate?: string; + /** @description This container defines a summarized view of earnings information derived from one order. It provides aggregated financial values for order earnings, gross amount, expenses, and refunds. Order earnings includes earnings after deducting expenses and refunds from the gross amount. */ + orderEarningsSummary?: components["schemas"]["EarningsSummary"]; + /** @description The unique identifier of the order. */ + orderId?: string; + /** @description The date when the order was last modified. */ + orderLastModifiedDate?: string; + /** @description The container for order cost details, including line item subtotal, shipping and handling, seller-collected taxes, and any seller applied discounts. Always provided in the listing currency. */ + orderSummary?: components["schemas"]["OrderSummary"]; + }; + /** @description This type is used to show the fee type and amount of the marketplace fee or donation. */ + OrderEarningFee: { + /** @description The monetary amount of the expense. */ + amount?: components["schemas"]["Amount"]; + /** @description The classification of the fee applied to the order. For implementation help, refer to eBay API documentation */ + feeType?: string; + }; + /** @description The base response type of the getOrderEarnings method, which includes pagination output fields and a collection of orders that match the request criteria. */ + OrderEarnings: { + /** @description The URI for the current page of results. */ + href?: string; + /** + * Format: int32 + * @description The maximum number of order earnings records returned in a single page of results. + */ + limit?: number; + /** @description The URI for the next page of results. This field is only returned if there is a next page of results to retrieve. */ + next?: string; + /** + * Format: int32 + * @description The number of order earnings records skipped before returning the current page of results. + */ + offset?: number; + /** @description The list of order earnings records returned in the current page of results. This array will be returned as empty if no orders match the request criteria. */ + orders?: components["schemas"]["OrderEarning"][]; + /** @description The URI for the previous page of results. This field is only returned if there is a previous page of results to retrieve. */ + prev?: string; + /** + * Format: int32 + * @description The total number of order earnings records that match the request criteria. + */ + total?: number; + }; + /** @description The base response type for the getOrderEarningsSummary method, which includes aggregate order earnings, expenses, gross amount, and order count for orders created within the date range and included in the summary. */ + OrderEarningsSummary: { + /** @description The aggregate amount of expenses for all orders included in the summary.

Note: Expenses are always in the seller's payout currency. Conversion-related fields (such as exchangeRate) in this container do not apply to the order_earnings resource.

*/ + expenses?: components["schemas"]["Amount"]; + /** @description The aggregate gross amount for all orders included in the order earnings summary. This amount equals the item subtotal plus shipping and handling, and any seller-collected taxes paid by the buyer, minus any seller-offered discount.

Note: Gross amount is always in the seller's payout currency. Conversion-related fields (such as exchangeRate) in this container do not apply to the order_earnings resource.

*/ + grossAmount?: components["schemas"]["Amount"]; + /** + * Format: int32 + * @description The total number of orders included in the summary. + */ + orderCount?: number; + /** @description The aggregate earnings amount for all orders included in the summary, which includes the amount of order earnings after deducting expenses and any refunds from the gross amount.

Note: Order earnings are always in the seller's payout currency. Conversion-related fields (such as exchangeRate) in this container do not apply to the order_earnings resource.

*/ + orderEarnings?: components["schemas"]["Amount"]; + /** @description The aggregate amount of all refunds issued for the orders included in the summary.

Note: Refunds include gross refunds, gross claims, and gross payment disputes.

Note: Refunds are always in the seller's payout currency. Conversion-related fields (such as exchangeRate) in this container do not apply to the order_earnings resource.

*/ + refunds?: components["schemas"]["Amount"]; + }; + /** @description This type is used to show the fees and donations that are deducted from a seller payout for each line item in an order. */ OrderLineItem: { - /** @description This is the total amount of fees accrued for the order line item and deducted from a seller payout. All of the fees under the marketplaceFees container should equal this amount. */ + /** @description The list of donations applied to the line item.

Note: Currently, this array is only returned if the seller chooses to donate a percentage of the sales proceeds to a charitable organization registered with the eBay for Charity program. */ + donations?: components["schemas"]["Fee"][]; + /** @description This amount is the order's total amount and equals what the buyer has paid. This value includes transactions.amount, totalFeeAmount, eBayCollectedTaxAmount, and shipping charges (if any). */ feeBasisAmount?: components["schemas"]["Amount"]; /** @description The unique identifier of an order line item. */ lineItemId?: string; /** @description An array of all fees accrued for the order line item and deducted from a seller payout. */ marketplaceFees?: components["schemas"]["Fee"][]; }; + /** @description This type provides order cost details, including line item subtotal, shipping and handling, seller-collected taxes, and any seller applied discounts. Always provided in the listing currency. */ + OrderSummary: { + /** @description The total amount of item-level promotions or discounts offered by the seller for a sale (order). */ + discounts?: components["schemas"]["Amount"]; + /** @description The sum of the listing price(s) for all items in the order, before applying any seller discounts. */ + itemSubtotal?: components["schemas"]["Amount"]; + /** @description The total amount of tax collected by the seller on all sold items for the order. */ + sellerCollectedTaxes?: components["schemas"]["Amount"]; + /** @description The total amount collected from the buyer to cover shipping and handling for all items in the order. */ + shippingAndHandlingCosts?: components["schemas"]["Amount"]; + }; /** @description This type is used to express the details of one seller payout that is returned with the getPayout or getPayouts methods. */ Payout: { - /** @description This the total amount of the seller payout. The container shows the dollar amount of the payout and the currency used. The value of the payout is always shown, even if the payout has failed. */ + /** @description This is the total amount of the seller payout. The container shows the dollar amount of the payout and the currency used. The value of the payout is always shown, even if the payout has failed. */ amount?: components["schemas"]["Amount"]; /** @description This field contains additional information provided by the bank and passed on by the payment processor; e.g., the manner in which the transaction will appear on the seller's bank statement. The field is returned only when provided by the bank and processor. */ bankReference?: string; @@ -240,28 +486,45 @@ export interface components { payoutDate?: string; /** @description The unique identifier of the seller payout. This identifier is generated once eBay begins processing the payout to the seller's bank account. */ payoutId?: string; - /** @description This field contains information provided by upstream components, based on internal and external commitments. A typical message would contain the expected arrival time of the payout. */ - payoutMemo?: string; /** @description This container provides details about the seller's account that received (or is scheduled to receive) the payout. This container is still returned even if the payout failed. */ payoutInstrument?: components["schemas"]["PayoutInstrument"]; + /** @description This field contains information provided by upstream components, based on internal and external commitments. A typical message would contain the expected arrival time of the payout. */ + payoutMemo?: string; + /** @description This field contains the unique identifier for the Payout Reference. In split-payout cases, this is the unique identifier reference (not true payout). This field is only returned and will show the associated true(actual) payout id(s) when sellers in Mainland China enable split payouts between a Payoneer account and/or a bank account.

Note: Split-payout functionality will only be available to mainland China sellers. */ + payoutReference?: string; /** @description This enumeration value indicates the current status of the seller payout. For a successful payout, the value returned will be SUCCEEDED. See the PayoutStatusEnum type for more details on each payout status value. For implementation help, refer to eBay API documentation */ payoutStatus?: string; /** @description This field provides more details about the current status of payout. The description returned here will correspond with enumeration value returned in the payoutStatus field. The following shows what description text might appear based on the different payoutStatus values:
  • INITIATED: Preparing to send
  • SUCCEEDED: Funds sent
  • REVERSED: Waiting to retry : Money rejected by seller's bank
  • RETRYABLE_FAILED: Waiting to retry
  • TERMINAL_FAILED: Payout failed
*/ payoutStatusDescription?: string; + /** @description This container indicates the sum of a seller's net payout amount plus the EXPRESS_PAYOUT_FEE charged by eBay. The is expressed as a numeric value and the currency used. */ + totalAmount?: components["schemas"]["Amount"]; + /** @description This container indicates the amount of the EXPRESS_PAYOUT_FEE charged by eBay when a seller requests payout to a debit card. The fee is expressed as a numeric value and the currency used. */ + totalFee?: components["schemas"]["Amount"]; + /** @description This array indicates all payout fees associated with a payout, including the fee type, amount, value, and currency. */ + totalFeeDetails?: components["schemas"]["Fee"][]; /** * Format: int32 - * @description This integer value indicates the number of monetary transactions (all orders, refunds, and credits, etc.) that have occurred with the corresponding payout. Its value should always be at least 1, since there is at least one order per seller payout. + * @description This integer value indicates the number of monetary transactions (all orders, refunds, and credits, etc.) that have occurred with the corresponding payout. Its value should always be at least 1, since there is at least one order per seller payout.

For split payouts, each of the two sibling payouts would be considered its own transaction. Because of this, if a seller had a payout for one order, but split the order between two accounts, the value would be 2 instead of 1.

Note: Split-payout functionality is only applicable to mainland China sellers. */ transactionCount?: number; }; - /** @description This type provides details about the seller's account that received (or is scheduled to receive) a payout. */ + /** @description This type provide payout details for a split-payout case. This type is only applicable for split payouts. */ + PayoutDetails: { + /** @description This array indicates the list of true(actual) payout ids associated with a split payout. These values can be used as a path parameter for the getPayout method to retrieve details on the associated payouts. */ + payoutIds?: string[]; + /** @description This field contains the unique identifier for the Payout Reference. In split-payout cases, this is the unique identifier reference (not true payout). This field is only returned and will show the associated true(actual) payout id(s) when sellers in Mainland China enable split payouts between a Payoneer account and/or a bank account. This value can be used by the filter query parameter of the getPayouts method to get the monetary details of each true(actual) payout associated with the payoutReference.

Note:Split-payout functionality will only be available to mainland China sellers. */ + payoutReference?: string; + }; + /** @description This type is used to provide details about one or two of the seller's accounts that are enabled to receive payouts. */ PayoutInstrument: { - /** @description This string value is the last four digits of the seller's account number. */ + /** @description This value is the last four digits of the account that the seller uses to receive the payout. This may be the last four digits of a bank account, a debit card, or a payment processor account such as Payoneer. */ accountLastFourDigits?: string; - /** @description This string value indicates the type of account that received the payout. At this time, seller payouts can only be distributed to bank acounts, so the string value returned in this field will always be BankAccount. */ + /** @description This value indicates the type of account that received the payout. The value returned in this field may be:
  • BANK: indicates that the payout was made to a seller's bank account.
  • CARD: indicates that the payout went to a seller's debit card
  • The name of a digital wallet provider or payment processor (e.g., PAYONEER)


Note: Only Payoneer is currently supported for sellers in mainland China. Card payouts are not currently available for sellers in mainland China. */ instrumentType?: string; - /** @description This string value is a seller-provided nickname that the seller uses to represent the bank account. */ + /** @description When instrumentType returns BANK, this value is the seller-provided nickname that the seller uses to represent the bank account that receives the payout.

When instrumentType returns CARD, this value is the debit card network for the debit card that receives the payout.

When instrumentType returns a provider of digital wallet or payment processing services, the value returned is the name of the service provider (e.g., PAYONEER).

Note: Card payouts are not currently available for sellers in mainland China. */ nickname?: string; + /** @description This value indicates the current payout percentage allocated to a payout instrument. For example, 50 indicates that 50% of the payout goes to the instrument.

This field will be returned even when 100% of the payout funds are going to one payout instrument.

This field is only returned to sellers in mainland China. */ + payoutPercentage?: string; }; /** @description This type is the base response type of the getPayoutSummary method, and contains the total count of seller payouts (that match the input criteria), the total count of monetary transactions (order payment, buyer refunds, or seller credits) associated with those payouts, and the total value of those seller payouts. */ PayoutSummaryResponse: { @@ -284,19 +547,19 @@ export interface components { href?: string; /** * Format: int32 - * @description The maximum number of payouts that may be returned per page of the result set. The limit value can be passed in as a query parameter, or if omitted, its value defaults to 20.

Note: If this is the last or only page of the result set, the page may contain fewer payouts than the limit value. To determine the number of pages in a result set, divide the total value (total number of payouts matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total payouts) and the limit value was 50 (show 50 payouts per page), the total number of pages in the result set is three, so the seller would have to make three separate getPayouts calls to view all payouts matching the input criteria.

Maximum: 200
Default: 20 + * @description The maximum number of payouts that may be returned per page of the result set. The limit value can be passed in as a query parameter, or if omitted, its value defaults to 20.

Note: If this is the last or only page of the result set, the page may contain fewer payouts than the limit value. To determine the number of pages in a result set, divide the total value (total number of payouts matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total payouts) and the limit value was 50 (show 50 payouts per page), the total number of pages in the result set is three, so the seller would have to make three separate getPayouts calls to view all payouts matching the input criteria.

Maximum: 200
Default: 20 */ limit?: number; - /** @description The getPayouts call URI to use if you wish to view the next page of the result set.

This field is only returned if there is a next page of results to view based on the current input criteria. */ + /** @description The getPayouts call URI to use if you wish to view the next page of the result set.

This field is only returned if there is a next page of results to view based on the current input criteria. */ next?: string; /** * Format: int32 - * @description This integer value indicates the actual position that the first payout returned on the current page has in the results set. So, if you wanted to view the 11th payout of the result set, you would set the offset value in the request to 10.

In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the call retrieves payouts 31 thru 40 from the resulting collection of payouts.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

Default: 0 (zero) + * @description This integer value indicates the actual position that the first payout returned on the current page has in the results set. So, if you wanted to view the 11th payout of the result set, you would set the offset value in the request to 10.

In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the call retrieves payouts 31 thru 40 from the resulting collection of payouts.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

Default: 0 (zero) */ offset?: number; /** @description An array of one or more payouts that match the input criteria. Details for each payout include the unique identifier of the payout, the status of the payout, the amount of the payout, and the number of monetary transactions associated with the payout. */ payouts?: components["schemas"]["Payout"][]; - /** @description The getPayouts call URI to use if you wish to view the previous page of the result set.

This field is only returned if there is a previous page of results to view based on the current input criteria. */ + /** @description The getPayouts call URI to use if you wish to view the previous page of the result set.

This field is only returned if there is a previous page of results to view based on the current input criteria. */ prev?: string; /** * Format: int32 @@ -313,15 +576,22 @@ export interface components { }; /** @description This type is used by the response payload of the getSellerFundsSummary method. All of the funds returned in getSellerFundsSummary are funds that have not yet been paid to the seller through a seller payout. If there are no funds that are pending, on hold, or being processed for the seller's account, no response payload is returned, and an http status code of 204 - No Content is returned instead. */ SellerFundsSummaryResponse: { - /** @description The dollar value in this field represents the total amount of order funds that are available for a payout, but processing for a seller payout has not yet begun. If a seller wants to get more details on sales transactions that have yet to be processed, the seller can use the getTransactions method, and use the transactionStatus filter with its value set to FUNDS_AVAILABLE_FOR_PAYOUT.

This container is not returned if there are no funds available to be processed for a payout. */ + /** @description This field represents the total amount of order funds that are available for a payout, but processing for a seller payout has not yet begun. If a seller wants to get more details on sales transactions that have yet to be processed, the seller can use the getTransactions method, and use the transactionStatus filter with its value set to FUNDS_AVAILABLE_FOR_PAYOUT.

This container will return 0.0 with the appropriate payout currency if there are no funds available to be processed for a payout. */ availableFunds?: components["schemas"]["Amount"]; - /** @description The dollar value in this field represents the total amount of order funds on hold. Seller payment holds can occur for different reasons. If a seller wants to get more details on sales transactions where funds are currently on hold, the seller can use the getTransactions method, and use the transactionStatus filter with its value set to FUNDS_ON_HOLD.

This container is not returned if there are no seller payment holds that will eventually be processed for a payout. */ + /** @description This field represents the total amount of order funds on hold. Seller payment holds can occur for different reasons. If a seller wants to get more details on sales transactions where funds are currently on hold, the seller can use the getTransactions method, and use the transactionStatus filter with its value set to FUNDS_ON_HOLD.

This container will return 0.0 with the appropriate payout currency if there are no seller payment holds that will eventually be processed for a payout. */ fundsOnHold?: components["schemas"]["Amount"]; - /** @description The dollar value in this field represents the total amount of order funds being prepared and processed for a seller payout. If a seller wants to get more details on sales transactions that are being processed, the seller can use the getTransactions method, and use the transactionStatus filter with its value set to FUNDS_PROCESSING.

This container is not returned if there are no funds being processed for a payout. */ + /** @description This field represents the total amount of order funds being prepared and processed for a seller payout. If a seller wants to get more details on sales transactions that are being processed, the seller can use the getTransactions method, and use the transactionStatus filter with its value set to FUNDS_PROCESSING.

This container will return 0.0 with the appropriate payout currency if there are no funds available to be processed for a payout. */ processingFunds?: components["schemas"]["Amount"]; - /** @description The dollar value in this field represents the total amount of order funds still due to be distributed to the seller through a seller payout. The dollar value in this field should equal the amounts found in the three other containers.

If there are no pending funds due to the seller through a payout, this container is not returned, and there will not be any response payload at all. Instead, an http status code of 204 - No Content is returned */ + /** @description This field represents the total amount of order funds still due to be distributed to the seller through a seller payout. This field should equal the sum of the amounts returned in the following fields:
  • processingFunds
  • availableFunds
  • fundsOnHold

If no payout funds are due to the seller, a 204 - No Content status code will be returned along with an empty payload. */ totalFunds?: components["schemas"]["Amount"]; }; + /** @description This type defines tax information associated with a transaction. */ + Tax: { + /** @description The type of tax applied to the transaction. For implementation help, refer to eBay API documentation */ + taxType?: string; + /** @description The monetary amount of the tax applied. */ + amount?: components["schemas"]["Amount"]; + }; /** @description This type is used to express the details of one of the following monetary transactions: a buyer's payment for an order, a refund to the buyer for a returned item or cancelled order, or a credit issued by eBay to the seller's account. */ Transaction: { /** @description This container shows the dollar value and currency type of the monetary transaction. This field is always returned even when eBay has yet to initiate a payout for the order. */ @@ -330,33 +600,41 @@ export interface components { bookingEntry?: string; /** @description This is the unique eBay user ID for the buyer who purchased the order. This field is not returned for TRANSFER monetary transaction types. */ buyer?: components["schemas"]["Buyer"]; - /** @description The type of fee. For implementation help, refer to eBay API documentation */ + /** @description This is the amount of sales tax that has been collected by eBay for an order.

Note: Sales tax applies only to SALE and REFUND transactions (transactionType). */ + eBayCollectedTaxAmount?: components["schemas"]["Amount"]; + /** @description This container stores information about region-specific fees that are charged to sellers.

This is returned for fees (i.e., FeeTypeEnum values,) that are mandated by a seller's governing jurisdiction.

For example:
  • INCOME_TAX_WITHHOLDING
  • TAX_DEDUCTION_AT_SOURCE
  • VAT_WITHHOLDING
*/ + feeJurisdiction?: components["schemas"]["FeeJurisdiction"]; + /** @description The enumeration value returned in this field indicates the type of fee that was deducted from the seller payout. For implementation help, refer to eBay API documentation */ feeType?: string; /** @description The unique identifier of the eBay order associated with the monetary transaction. */ orderId?: string; - /** @description This array shows the fees that are deducted from a seller payout for each line item in an order. */ + /** @description This array either shows the order line item transactional fees related to a SALE transaction and deducted from the payout associated with that order, or it shows the transactional fee credits going back to the seller in the case of a REFUND transaction.

Note: In certain circumstances, transactional fees like FINAL_VALUE_FEE and FINAL_VALUE_FEE_FIXED_PER_ORDER are not deducted from a seller payout, but instead they are billed to the seller's account as "non-sale charges". When this happens, the SALE transaction entity will not have these fees under the orderLineItems array, but they will appear as separate NON_SALE_CHARGE transactions. When this happens, and you want to see those transactional fees for the order, one thing you can do is make another call to getTransactions and filter against the orderId. In the response, you will see the SALE transaction and the NON_SALE_CHARGE transactions applied against the order. See Sample 6: Get transactional fees for an order and Sample 10: Get non-sale charges for an order for examples. */ orderLineItems?: components["schemas"]["OrderLineItem"][]; - /** @description This string value indicates the entity that is processing the payment. */ + /** @description This string value indicates the entity that is processing the payment. */ paymentsEntity?: string; - /** @description The unique identifier of the seller payout associated with the monetary transaction. This identifier is generated once eBay begins processing the payout for the corresponding order. This field will not be returned if eBay has not yet begun processing the payout for an order. */ + /** @description This container provides the payout details for a split-payout case. This container is only returned for split-payout use cases. */ + payoutDetails?: components["schemas"]["PayoutDetails"]; + /** @description The unique identifier of the seller payout associated with the monetary transaction. This identifier is generated once eBay begins processing the payout for the corresponding order. This field will not be returned if eBay has not yet begun processing the payout for an order.

This value can be used by the filter query parameter to get monetary transactions associated with the true(actual) payout associated with the PayoutId.

Note: In case of a split payout, always pick the first true(actual) payout id. */ payoutId?: string; /** @description This field contains reference information for the transaction fee. This includes an ID and the type of ID provided (such as item ID). */ references?: components["schemas"]["Reference"][]; - /** @description The Sales Record Number associated with a sales order. Sales Record Numbers are Selling Manager/Selling Manager Pro identifiers that are created at order checkout.

Note: For all orders originating after February 1, 2020, a value of 0 will be returned in this field. The Sales Record Number field has also been removed from Seller Hub. Instead of salesRecordReference, depend on orderId instead as the identifier of the order. The salesRecordReference field has been scheduled for deprecation, and a date for when this field will no longer be returned at all will be announced soon. */ + /** @description The Sales Record Number associated with a sales order. Sales Record Numbers are Selling Manager/Selling Manager Pro identifiers that are created at order checkout.

Note: For all orders originating after February 1, 2020, a value of 0 will be returned in this field. The Sales Record Number field has also been removed from Seller Hub. Instead of salesRecordReference, depend on orderId instead as the identifier of the order. The salesRecordReference field has been scheduled for deprecation, and a date for when this field will no longer be returned at all will be announced soon. */ salesRecordReference?: string; - /** @description This amount is the total amount of the order before selling fees are deducted from the seller payout associated with the order. To determine the actual amount of the order that will be paid out through a seller payout, deduct the totalFeeAmount from the basePayoutAmount. */ - totalFeeBasisAmount?: components["schemas"]["Amount"]; - /** @description This amount is the total amount of selling fees paid for order. A breakdown of fees for each order line item can be found in the orderLineItems array.

This field is even returned if it is 0.0 (no fees deducted from seller payout). */ + /** @description This array shows the tax type and amount applicable to the transaction.

Note: Currently, this array is only returned for tax charged against a purchased eBay shipping label. */ + taxes?: components["schemas"]["Tax"][]; + /** @description This amount is the total amount of selling fees paid for order. A breakdown of fees for each order line item can be found in the orderLineItems array.

This field is even returned if it is 0.0 (no fees deducted from seller payout). */ totalFeeAmount?: components["schemas"]["Amount"]; + /** @description This amount is the total amount for the order before selling fees are deducted from the seller payout associated with the order. */ + totalFeeBasisAmount?: components["schemas"]["Amount"]; /** @description This timestamp indicates when the monetary transaction (order purchase, buyer refund, seller credit) occurred. The following (UTC) format is used: YYYY-MM-DDTHH:MM:SS.SSSZ. For example, 2015-08-04T19:09:02.768Z. */ transactionDate?: string; - /** @description The unique identifier of the monetary transaction. A monetary transaction can be a sales order, an order refund to the buyer, a credit to the seller's account, a debit to the seller for the purchase of a shipping label, or a transaction where eBay recouped money from the seller if the seller lost a buyer-initiated payment dispute. */ + /** @description This field, when combined with the transactionType field, provide a unique identifier of the monetary transaction. A monetary transaction can be a sales order, an order refund to the buyer, a credit to the seller's account, a debit to the seller for the purchase of a shipping label, or a transaction where eBay recouped money from the seller if the seller lost a buyer-initiated payment dispute. */ transactionId?: string; - /** @description This field provides more details on shipping label transactions and transactions where the funds are being held by eBay. For shipping label transactions, the transactionMemo gives details about a purchase, a refund, or a price adjustment to the cost of the shipping label. For on-hold transactions, the transactionMemo provides information on the reason for the hold or when the hold will be released (e.g., "Funds on hold. Estimated release on Jun 1").

This field is only returned if applicable/available. */ + /** @description This field applies to shipping label transactions, sales transactions where payout is on hold, and non-sale charge fees. The following are examples of how the field is used for each transaction type:
  • Shipping label purchase: the transactionMemo field gives details about a purchase, a refund, or a price adjustment to the cost of the shipping label.
  • Sales transactions with funds on hold: the transactionMemo field provides information on the reason for the hold or when the hold will be released (e.g., "Funds on hold. Estimated release on Jun 1").
  • Non-sale charge fees: the transactionMemo field will provide the type of fee that was charged, such as Promoted Offsite Fee.
This field is only returned if applicable/available. */ transactionMemo?: string; /** @description This enumeration value indicates the current status of the seller payout associated with the monetary transaction. See the TransactionStatusEnum type for more information on the different states. For implementation help, refer to eBay API documentation */ transactionStatus?: string; - /** @description This enumeration value indicates whether the monetary transaction is a buyer's payment for an order, a refund to the buyer for a returned item or cancelled order, a credit issued by eBay to the seller's account, a payment dispute between the buyer and seller, or where eBay is billing the seller for an eBay shipping label or another charge (such as a refund to a buyer). Note that the shipping label functionality will initially only be available to a select number of sellers. For implementation help, refer to eBay API documentation */ + /** @description This enumeration value indicates the type of monetary transaction. Examples of monetary transactions include a buyer's payment for an order, a refund to the buyer for a returned item or cancelled order, or a credit issued by eBay to the seller's account. For a complete list of monetary transaction types within the Finances API, see the TransactionTypeEnum type. For implementation help, refer to eBay API documentation */ transactionType?: string; }; /** @description This type is the base response type of the getTransactionSummary method, and based on the filters that are used in the getTransactionSummary call URI, the response may include total count and amount of the seller's sales and credits, total count and amount of buyer refunds, and total count and amount of seller payment holds. */ @@ -379,16 +657,16 @@ export interface components { * @description The total balance transfer count for given payee within the specified period. */ balanceTransferCount?: number; - /** @description This amount is the total dollar value of all the seller's sales and/or credits that match the input criteria.

Note: Unless the transactionType filter is used in the request to retrieve a specific type of monetary transaction, the creditCount and creditAmount fields account for both order sales and seller credits (the count and value is not distinguished between the two monetary transaction types).

If there are no sales/credits (creditCount=0), this container is not returned. */ + /** @description This amount is the total dollar value of all the seller's sales and/or credits that match the input criteria.

Note: Unless the transactionType filter is used in the request to retrieve a specific type of monetary transaction, the creditCount and creditAmount fields account for both order sales and seller credits (the count and value is not distinguished between the two monetary transaction types).

If there are no sales/credits (creditCount=0), this container is not returned. */ creditAmount?: components["schemas"]["Amount"]; /** @description The enumeration value indicates whether the dollar amount in the creditAmount field is a charge (debit) to the seller or a credit. Typically, the enumeration value returned here will be CREDIT. For implementation help, refer to eBay API documentation */ creditBookingEntry?: string; /** * Format: int32 - * @description This integer value indicates the total number of the seller's sales and/or credits that match the input criteria.

Note: Unless the transactionType filter is used in the request to retrieve a specific type of monetary transaction (sale, buyer refund, or seller credit), the creditCount and creditAmount fields account for both order sales and seller credits (the count and value is not distinguished between the two monetary transaction types).

This field is generally returned, even if 0, but it will not be returned if a transactionType filter is used, and its value is set to either REFUND, DISPUTE, or SHIPPING_LABEL. + * @description This integer value indicates the total number of the seller's sales and/or credits that match the input criteria.

Note: Unless the transactionType filter is used in the request to retrieve a specific type of monetary transaction (sale, buyer refund, or seller credit), the creditCount and creditAmount fields account for both order sales and seller credits (the count and value is not distinguished between the two monetary transaction types).

This field is generally returned, even if 0, but it will not be returned if a transactionType filter is used, and its value is set to either REFUND, DISPUTE, or SHIPPING_LABEL. */ creditCount?: number; - /** @description This amount is the total dollar value associated with any existing payment disputes that have been initiated by one or more buyers. Only the orders that match the input criteria are considered. The Payment Disputes methods in the Fulfillment API can be used by the seller to retrieve more information about any payment disputes.

If there are no payment disputes (disputeCount=0), this container is not returned. */ + /** @description This amount is the total dollar value associated with any existing payment disputes that have been initiated by one or more buyers. Only the orders that match the input criteria are considered. The Payment Disputes methods in the Fulfillment API can be used by the seller to retrieve more information about any payment disputes.

If there are no payment disputes (disputeCount=0), this container is not returned. */ disputeAmount?: components["schemas"]["Amount"]; /** @description The enumeration value indicates whether the dollar amount in the disputeAmount field is a charge (debit) to the seller or a credit. Typically, the enumeration value returned here will be DEBIT, but its possible that CREDIT could be returned if the seller contested one or more payment disputes and won the dispute. For implementation help, refer to eBay API documentation */ disputeBookingEntry?: string; @@ -397,6 +675,15 @@ export interface components { * @description This integer value indicates the total number of payment disputes that have been initiated by one or more buyers. Only the orders that match the input criteria are considered. The Payment Disputes methods in the Fulfillment API can be used by the seller to retrieve more information about any payment disputes.

This field is generally returned, even if 0, but it will not be returned if a transactionType filter is used, and its value is set to any value other than DISPUTE. */ disputeCount?: number; + /** @description The sum of all LOAN_REPAYMENT transactions (i.e., debit and credit,) that match the input criteria.

For example, within a specified transactionDate range, three LOAN_REPAYMENT transactions are identified:
  • DEBIT of 15.00 USD
  • DEBIT of 10.00 USD
  • CREDIT of 5.00 USD

The net amount of these three transactions is a DEBIT of 20.00 USD to the seller's account. Therefore, the value returned for loanRepaymentAmount will be 20.00 USD.

Note: For this example:
  • The value returned for loanRepaymentCount will be 3
  • The loanRepaymentBookingEntry will be DEBIT

If there are no transactions that match the input criteria (i.e., loanRepaymentCount=0,) this container is not returned. */ + loanRepaymentAmount?: components["schemas"]["Amount"]; + /** @description The enumeration value indicates whether the loanRepaymentAmount is a DEBIT against, or a CREDIT to, the sellers's account.

For most loanRepaymentAmount transactions, loanRepaymentBookingEntry will be DEBIT. However, if a loan repayment transaction is reversed, that transaction will be shown as a CREDIT. For implementation help, refer to eBay API documentation */ + loanRepaymentBookingEntry?: string; + /** + * Format: int32 + * @description This integer value indicates the total number of LOAN_REPAYMENT transactions (i.e., DEBIT and CREDIT,) that match the input criteria.

This field is generally returned even if it equals 0. However it will not be returned if a transactionType filter is used and its value has been set to any enumeration value other than LOAN_REPAYMENT. + */ + loanRepaymentCount?: number; /** @description The total non-sale charge amount for given payee within a specified period. */ nonSaleChargeAmount?: components["schemas"]["Amount"]; /** @description The credit/debit sign indicator for the non-sale charge. For implementation help, refer to eBay API documentation */ @@ -406,7 +693,7 @@ export interface components { * @description The total non-sale charge count for given payee within a specified period. */ nonSaleChargeCount?: number; - /** @description This amount is the total dollar value of order sales where the associated funds are on hold. Only the orders that match the input criteria are considered.

If there are no seller payment holds (onHoldCount=0), this container is not returned. */ + /** @description This amount is the total dollar value of order sales where the associated funds are on hold. Only the orders that match the input criteria are considered.

If there are no seller payment holds (onHoldCount=0), this container is not returned. */ onHoldAmount?: components["schemas"]["Amount"]; /** @description The enumeration value indicates whether the dollar amount in the onHoldAmount field is a charge (debit) to the seller or a credit. Typically, the enumeration value returned here will be CREDIT, since on-hold funds should eventually be released as part of a payout to the seller once the hold is cleared. For implementation help, refer to eBay API documentation */ onHoldBookingEntry?: string; @@ -415,7 +702,16 @@ export interface components { * @description This integer value indicates the total number of order sales where the associated funds are on hold. Only the orders that match the input criteria are considered.

This field is generally returned, even if 0, but it will not be returned if a transactionStatus filter is used, and its value is set to any value other than FUNDS_ON_HOLD. */ onHoldCount?: number; - /** @description This amount is the total dollar value of buyer refunds that match the input criteria.

If there are no refunds (refundCount=0), this container is not returned. */ + /** @description Note: The PURCHASE transaction type is currently only applicable in the US marketplace.
This amount is the total dollar value of all the purchases that have been initiated by a seller using spendable funds that match the input criteria.

If there are no transactions that match the input criteria (i.e., purchaseCount=0), this container will not be returned. */ + purchaseAmount?: components["schemas"]["Amount"]; + /** @description Note: The PURCHASE transaction type is currently only applicable in the US marketplace.
This enumeration value indicates whether the dollar amount in the purchase field is a charge (debit) to the seller or a credit. For implementation help, refer to eBay API documentation */ + purchaseBookingEntry?: string; + /** + * Format: int32 + * @description Note: The PURCHASE transaction type is currently only applicable in the US marketplace.
This integer value indicates the total number of purchases that have been initiated by a seller using spendable funds that match the input criteria.

This field is generally returned, even if it equals 0. However, it will not be returned if a transactionType filter is used and its value has been set to any enumeration value other than PURCHASE. + */ + purchaseCount?: number; + /** @description This amount is the total dollar value of buyer refunds that match the input criteria.

If there are no refunds (refundCount=0), this container is not returned. */ refundAmount?: components["schemas"]["Amount"]; /** @description The enumeration value indicates whether the dollar amount in the refundAmount field is a charge (debit) to the seller or a credit. Typically, the enumeration value returned here will be DEBIT since this a refund from the seller to the buyer. For implementation help, refer to eBay API documentation */ refundBookingEntry?: string; @@ -424,16 +720,16 @@ export interface components { * @description This integer value indicates the total number of buyer refunds that match the input criteria.

This field is generally returned, even if 0, but it will not be returned if a transactionType filter is used, and its value is set to any value other than REFUND. */ refundCount?: number; - /** @description This is the total dollar value of the eBay shipping labels purchased by the seller. */ + /** @description This is the total dollar value of the eBay shipping labels purchased by the seller.

Note: eBay SHIPPING_LABEL transactions paid through PayPal are not currently supported by the Finances API, so those transactions will not be reflected in the amounts returned in this container. */ shippingLabelAmount?: components["schemas"]["Amount"]; - /** @description The enumeration value indicates whether the dollar amount in the shippingLabelAmount field is a charge (debit) to the seller or a credit. Typically, the enumeration value returned here will be DEBIT, as eBay will charge the seller when eBay shipping labels are purchased, but it can be CREDIT if the seller was refunded for a shipping label or was possibly overcharged for a shipping label. For implementation help, refer to eBay API documentation */ + /** @description The enumeration value indicates whether the dollar amount in the shippingLabelAmount field is a charge (debit) to the seller or a credit. Typically, the enumeration value returned here will be DEBIT, as eBay will charge the seller when eBay shipping labels are purchased, but it can be CREDIT if the seller was refunded for a shipping label or was possibly overcharged for a shipping label.

Note: eBay SHIPPING_LABEL transactions paid through PayPal are not currently supported by the Finances API, so those transactions will not be reflected in this field. For implementation help, refer to eBay API documentation */ shippingLabelBookingEntry?: string; /** * Format: int32 - * @description This is the total number of eBay shipping labels purchased by the seller. The count returned here may depend on the specified input criteria. + * @description This is the total number of eBay shipping labels purchased by the seller. The count returned here may depend on the specified input criteria.

Note: eBay SHIPPING_LABEL transactions paid through PayPal are not currently supported by the Finances API, so those transactions will not be reflected in the count returned in this container. */ shippingLabelCount?: number; - /** @description This amount is the total dollar value of buyer refund transfers that match the input criteria.

If there are no transfers (refundCount=0), this container is not returned. */ + /** @description This amount is the total dollar value of buyer refund transfers that match the input criteria.

If there are no transfers (refundCount=0), this container is not returned. */ transferAmount?: components["schemas"]["Amount"]; /** @description The enumeration value indicates whether the dollar amount in the transferAmount field is a charge (debit) to the seller or a credit. Typically, the enumeration value returned here will be DEBIT since this a seller reimbursement to eBay for buyer refunds. For implementation help, refer to eBay API documentation */ transferBookingEntry?: string; @@ -442,6 +738,15 @@ export interface components { * @description This integer value indicates the total number of buyer refund transfers that match the input criteria.

This field is generally returned, even if 0, but it will not be returned if a transactionType filter is used, and its value is set to any value other than TRANSFER. */ transferCount?: number; + /** @description This amount is the total dollar value of on-demand payouts (withdrawals) that match the input criteria.

If there are no withdrawals (withdrawalCount=0), this container is not returned. */ + withdrawalAmount?: components["schemas"]["Amount"]; + /** @description The enumeration value indicates whether the dollar amount in the withdrawalAmount field is a charge (debit) to the seller or a credit. Typically, the enumeration value returned here will be DEBIT since this transaction involves a debit to the seller's available payout funds. For implementation help, refer to eBay API documentation */ + withdrawalBookingEntry?: string; + /** + * Format: int32 + * @description This integer value indicates the total number of on-demand payouts (withdrawals) that match the input criteria.

This field is generally returned, even if 0, but it will not be returned if a transactionType filter is used, and its value is set to any value other than WITHDRAWAL. + */ + withdrawalCount?: number; }; /** @description This is the base response type of the getTransactions method. The getTransactions response includes details on one or more monetary transactions that match the input criteria, as well as pagination data. */ Transactions: { @@ -449,17 +754,17 @@ export interface components { href?: string; /** * Format: int32 - * @description The maximum number of monetary transactions that may be returned per page of the result set. The limit value can be passed in as a query parameter, or if omitted, its value defaults to 20.

Note: If this is the last or only page of the result set, the page may contain fewer monetary transactions than the limit value. To determine the number of pages in a result set, divide the total value (total number of monetary transactions matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total monetary transactions) and the limit value was 50 (show 50 monetary transactions per page), the total number of pages in the result set is three, so the seller would have to make three separate getTransactions calls to view all monetary transactions matching the input criteria.

Maximum: 200
Default: 20 + * @description The maximum number of monetary transactions that may be returned per page of the result set. The limit value can be passed in as a query parameter, or if omitted, its value defaults to 20.

Note: If this is the last or only page of the result set, the page may contain fewer monetary transactions than the limit value. To determine the number of pages in a result set, divide the total value (total number of monetary transactions matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 120 (120 total monetary transactions) and the limit value was 50 (show 50 monetary transactions per page), the total number of pages in the result set is three, so the seller would have to make three separate getTransactions calls to view all monetary transactions matching the input criteria.

Maximum: 200
Default: 20 */ limit?: number; - /** @description The getTransactions method URI to use if you wish to view the next page of the result set.

This field is only returned if there is a next page of results to view based on the current input criteria. */ + /** @description The getTransactions method URI to use if you wish to view the next page of the result set.

This field is only returned if there is a next page of results to view based on the current input criteria. */ next?: string; /** * Format: int32 - * @description This integer value indicates the actual position that the first monetary transaction returned on the current page has in the results set. So, if you wanted to view the 11th monetary transaction of the result set, you would set the offset value in the request to 10.

In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the method retrieves monetary transactions 31 thru 40 from the resulting collection of monetary transactions.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

Default: 0 (zero) + * @description This integer value indicates the actual position that the first monetary transaction returned on the current page has in the results set. So, if you wanted to view the 11th monetary transaction of the result set, you would set the offset value in the request to 10.

In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the method retrieves monetary transactions 31 thru 40 from the resulting collection of monetary transactions.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

Default: 0 (zero) */ offset?: number; - /** @description The getTransactions method URI to use if you wish to view the previous page of the result set.

This field is only returned if there is a previous page of results to view based on the current input criteria. */ + /** @description The getTransactions method URI to use if you wish to view the previous page of the result set.

This field is only returned if there is a previous page of results to view based on the current input criteria. */ prev?: string; /** * Format: int32 @@ -500,12 +805,148 @@ export interface components { } export type $defs = Record; export interface operations { + getOrderEarnings: { + parameters: { + query?: { + /** @description This parameter can be used to filter orders created within a specified date range. The filter uses the orderCreationDate field, which works similarly to the transactionDate filter used by the Transactions API. Currently, orderCreationDate is the only supported filter value.

Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user.

Default: If no value is specified, results from the past year will be returned.

For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ + filter?: string; + /** @description This parameter configures the number of orders to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

For example, if offset is set to 10 and limit is set to 10, the method retrieves orders 11 thru 20 from the result set.

Note: This feature employs a zero-based list, where the first page in the results set has an offset value of 0.

Maximum: 200
Default: 20 */ + limit?: string; + /** @description This parameter can be used to specify the number of records to skip before returning results. This parameter is commonly used with the limit parameter to retrieve the next page of results.

Maximum: 10,000
Default: 0 */ + offset?: string; + /** @description This parameter can be used to specify the sort order of the results. Currently, sorting is supported by order creation date.

Default: Results returned in ascending order sorted by orderCreationDate, with earliest creation date first. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:SortField */ + sort?: string; + }; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; + }; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrderEarnings"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getOrderEarningsById: { + parameters: { + query?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; + }; + path: { + /** @description This path parameter identifies the specific order for which earnings information is requested. */ + order_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrderEarning"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getOrderEarningsSummary: { + parameters: { + query?: { + /** @description This parameter can be used to filter orders created within a specified date range. The filter uses the orderCreationDate field, which works similarly to the transactionDate filter used by the Transactions API. Currently, orderCreationDate is the only supported filter value.

Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user.

Default: If no value is specified, results from the past year will be returned.

For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ + filter?: string; + }; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; + }; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrderEarningsSummary"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; getPayout: { parameters: { query?: never; - header?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; + }; path: { - /** @description The unique identfier of the payout is passed in as a path parameter at the end of the call URI.

The getPayouts method can be used to retrieve the unique identifier of a payout, or the user can check Seller Hub to get the payout ID. */ + /** @description This path parameter is used to specify the unique identifier of the payout being retrieved.

Use the getPayouts method to retrieve payout IDs, or check Seller Hub to get the payout ID. */ payout_Id: string; }; cookie?: never; @@ -547,16 +988,19 @@ export interface operations { getPayouts: { parameters: { query?: { - /** @description The three filter types that can be used here are discussed below. If none of these filters are used, all recent payouts in all states are returned:
  • payoutDate: search for payouts within a specific range of dates. The date format to use is YYYY-MM-DDTHH:MM:SS.SSSZ. Below is the proper syntax to use if filtering by a date range:

    https://apiz.ebay.com/sell/finances/v1/payout?filter=payoutDate:[2018-12-17T00:00:01.000Z..2018-12-24T00:00:01.000Z]

    Alternatively, the user could omit the ending date, and the date range would include the starting date and up to 90 days past that date, or the current date if the starting date is less than 90 days in the past.
  • lastAttemptedPayoutDate: search for attempted payouts that failed within a specific range of dates. In order to use this filter, the payoutStatus filter must also be used and its value must be set to RETRYABLE_FAILED. The date format to use is YYYY-MM-DDTHH:MM:SS.SSSZ. The same syntax used for the payoutDate filter is also used for the lastAttemptedPayoutDate filter.

    This filter is only applicable (and will return results) if one or more seller payouts have failed, but are retryable.
  • payoutStatus: search for payouts in a particular state. Only one payout state can be specified with this filter. The supported payoutStatus values are as follows:
    • INITIATED: search for payouts that have been initiated but not processed.
    • SUCCEEDED: search for successful payouts.
    • RETRYABLE_FAILED: search for payouts that failed, but ones which will be tried again. This value must be used if filtering by lastAttemptedPayoutDate.
    • TERMINAL_FAILED: search for payouts that failed, and ones that will not be tried again.
    • REVERSED: search for payouts that were reversed.
    Below is the proper syntax to use if filtering by payout status:

    https://apiz.ebay.com/sell/finances/v1/payout?filter=payoutStatus:{SUCCEEDED}

If both the payoutDate and payoutStatus filters are used, payouts must satisfy both criteria to be returned. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ + /** @description The filter types that can be used here are discussed below. If none of these filters are used, all payouts in all states from within the last five years are returned:
  • payoutDate: search for payouts within a specific range of dates. The date format to use is YYYY-MM-DDTHH:MM:SS.SSSZ. Below is the proper syntax to use if filtering by a date range:

    https://apiz.ebay.com/sell/finances/v1/payout?filter=payoutDate:[2024-12-17T00:00:01.000Z..2024-12-24T00:00:01.000Z]

    Only payouts from the last five years can be retrieved, so make sure the starting date is less than five years in the past from the present time. Also, the maximum date range that can be specified through this date filter is 36 months, so make sure your specified date range is no more than 36 months.
  • lastAttemptedPayoutDate: search for attempted payouts that failed within a specific range of dates. In order to use this filter, the payoutStatus filter must also be used and its value must be set to RETRYABLE_FAILED. The date format to use is YYYY-MM-DDTHH:MM:SS.SSSZ. The same syntax and requirements applicable to the payoutDate filter also apply to the lastAttemptedPayoutDate filter.

    This filter is only applicable (and will return results) if one or more seller payouts have failed, but are retryable.
  • payoutStatus: search for payouts in a particular state. Only one payout state can be specified with this filter. For supported payoutStatus values, see PayoutStatusEnum.

    Below is the proper syntax to use if filtering by payout status:

    https://apiz.ebay.com/sell/finances/v1/payout?filter=payoutStatus:{SUCCEEDED}
  • payoutReference: returns the two true (actual) payouts associated with the payoutReference id. This parameter can support up to 200 payoutReference inputs. This filter is only supported for mainland China sellers. Below is the proper syntax to use if filtering by a specific payoutReference:

    https://apiz.ebay.com/sell/finances/v1/payout?filter=payoutReference:{5********3}

If both the payoutDate and payoutStatus filters are used, payouts must satisfy both criteria to be returned. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ filter?: string; - /** @description By default, payouts or failed payouts that match the input criteria are sorted in ascending order according to the payout date/last attempted payout date (oldest payouts returned first).

To view payouts in descending order instead (most recent payouts/attempted payouts first), you would include the sort query parameter, and then set the value of its field parameter to payoutDate or lastAttemptedPayoutDate (if searching for failed, retrybable payouts). Below is the proper syntax to use if filtering by a payout date range in descending order:

https://apiz.ebay.com/sell/finances/v1/payout?filter=payoutDate:[2018-12-17T00:00:01.000Z..2018-12-24T00:00:01.000Z]&sort=payoutDate

Payouts can only be sorted according to payout date, and can not be sorted by payout status. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:SortField */ - sort?: string; - /** @description The number of payouts to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

For example, if offset is set to 10 and limit is set to 10, the method retrieves payouts 11 thru 20 from the result set.

Note: This feature employs a zero-based list, where the first payout in the results set has an offset value of 0.

Maximum: 200
Default: 20 */ + /** @description The number of payouts to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

For example, if offset is set to 10 and limit is set to 10, the method retrieves payouts 11 thru 20 from the result set.

Note: This feature employs a zero-based list, where the first payout in the results set has an offset value of 0.

Maximum: 200
Default: 20 */ limit?: string; - /** @description This integer value indicates the actual position that the first payout returned on the current page has in the results set. So, if you wanted to view the 11th payout of the result set, you would set the offset value in the request to 10.

In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the method retrieves payouts 31 thru 40 from the resulting collection of payouts.

Note: This feature employs a zero-based list, where the first payout in the results set has an offset value of 0.

Default: 0 (zero) */ + /** @description This integer value indicates the actual position that the first payout returned on the current page has in the results set. So, if you wanted to view the 11th payout of the result set, you would set the offset value in the request to 10.

In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the method retrieves payouts 31 thru 40 from the resulting collection of payouts.

To avoid poor response time, use offset values of less than 5000.

Note: This feature employs a zero-based list, where the first payout in the results set has an offset value of 0.

Default: 0 (zero) */ offset?: string; + /** @description By default, payouts or failed payouts that match the input criteria are sorted in descending order according to the payout date/last attempted payout date (i.e., most recent payouts returned first).

To view payouts in ascending order instead (i.e., oldest payouts/attempted payouts first,) you would include the sort query parameter, and then set the value of its field parameter to payoutDate or lastAttemptedPayoutDate (if searching for failed, retryable payouts). Below is the proper syntax to use if filtering by a payout date range in ascending order:

https://apiz.ebay.com/sell/finances/v1/payout?filter=payoutDate:[2018-12-17T00:00:01.000Z..2018-12-24T00:00:01.000Z]&sort=payoutDate

Payouts can only be sorted according to payout date, and can not be sorted by payout status. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:SortField */ + sort?: string; + }; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; }; - header?: never; path?: never; cookie?: never; }; @@ -597,10 +1041,13 @@ export interface operations { getPayoutSummary: { parameters: { query?: { - /** @description The two filter types that can be used here are discussed below. One or both of these filter types can be used. If none of these filters are used, the data returned in the response will reflect payouts, in all states, processed within the last 90 days.
  • payoutDate: consider payouts processed within a specific range of dates. The date format to use is YYYY-MM-DDTHH:MM:SS.SSSZ. Below is the proper syntax to use if filtering by a date range:

    https://apiz.ebay.com/sell/finances/v1/payout_summary?filter=payoutDate:[2018-12-17T00:00:01.000Z..2018-12-24T00:00:01.000Z]

    Alternatively, the user could omit the ending date, and the date range would include the starting date and up to 90 days past that date, or the current date if the starting date is less than 90 days in the past.
  • payoutStatus: consider only the payouts in a particular state. Only one payout state can be specified with this filter. The supported payoutStatus values are as follows:
    • INITIATED: search for payouts that have been initiated but not processed.
    • SUCCEEDED: consider only successful payouts.
    • RETRYABLE_FAILED: consider only payouts that failed, but ones which will be tried again.
    • TERMINAL_FAILED: consider only payouts that failed, and ones that will not be tried again.
    • REVERSED: consider only payouts that were reversed.
    Below is the proper syntax to use if filtering by payout status:

    https://apiz.ebay.com/sell/finances/v1/payout_summary?filter=payoutStatus:{SUCCEEDED}

If both the payoutDate and payoutStatus filters are used, only the payouts that satisfy both criteria are considered in the results. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ + /** @description The two filter types that can be used here are discussed below. One or both of these filter types can be used. If none of these filters are used, the data returned in the response will reflect all payouts in all states that have occurred within the last five years:
  • payoutDate: consider payouts processed within a specific range of dates. The date format to use is YYYY-MM-DDTHH:MM:SS.SSSZ. Below is the proper syntax to use if filtering by a date range:

    https://apiz.ebay.com/sell/finances/v1/payout_summary?filter=payoutDate:[2024-12-17T00:00:01.000Z..2024-12-24T00:00:01.000Z]

    Only payouts from the last five years can be retrieved, so make sure the starting date is less than five years in the past from the present time. Also, the maximum date range that can be specified through this date filter is 36 months, so make sure your specified date range is no more than 36 months.
  • payoutStatus: consider only the payouts in a particular state. Only one payout state can be specified with this filter. For supported payoutStatus values, see PayoutStatusEnum.

    Below is the proper syntax to use if filtering by payout status:

    https://apiz.ebay.com/sell/finances/v1/payout_summary?filter=payoutStatus:{SUCCEEDED}

If both the payoutDate and payoutStatus filters are used, only the payouts that satisfy both criteria are considered in the results. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ filter?: string; }; - header?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; + }; path?: never; cookie?: never; }; @@ -631,19 +1078,59 @@ export interface operations { }; }; }; + getSellerFundsSummary: { + parameters: { + query?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; + }; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SellerFundsSummaryResponse"]; + }; + }; + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; getTransactions: { parameters: { query?: { - /** @description Numerous filters are available for the getTransactions method, and these filters are discussed below. One or more of these filter types can be used. If none of these filters are used, all monetary transactions from the last 90 days are returned:
  • transactionDate: search for monetary transactions that occurred within a specific range of dates.

    Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user.

    Below is the proper syntax to use if filtering by a date range:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionDate:[2018-10-23T00:00:01.000Z..2018-11-09T00:00:01.000Z]

    Alternatively, the user could omit the ending date, and the date range would include the starting date and up to 90 days past that date, or the current date if the starting date is less than 90 days in the past.
  • transactionType: search for a specific type of monetary transaction. The supported transactionType values are as follows:
    • SALE: a sales order.
    • REFUND: a refund to the buyer after an order cancellation or return.
    • CREDIT: a credit issued by eBay to the seller's account.
    • DISPUTE: a monetary transaction associated with a payment dispute between buyer and seller.
    • NON_SALE_CHARGE: a monetary transaction involving a seller transferring money to eBay for the balance of a charge for NON_SALE_CHARGE transactions (transactions that contain non-transactional seller fees). These can include a one-time payment, monthly/yearly subscription fees charged monthly, NRC charges, and fee credits.
    • SHIPPING_LABEL: a monetary transaction where eBay is billing the seller for an eBay shipping label. Note that the shipping label functionality will initially only be available to a select number of sellers.
    • TRANSFER: A transfer is a monetary transaction where eBay is billing the seller for reimbursement of a charge. An example of a transfer is a seller reimbursing eBay for a buyer refund.
    Below is the proper syntax to use if filtering by a monetary transaction type:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionType:{SALE}
  • transactionStatus: this filter type is only applicable for sales orders, and allows the user to filter seller payouts in a particular state. The supported transactionStatus values are as follows:
    • PAYOUT: this indicates that the proceeds from the corresponding sales order has been paid out to the seller's account.
    • FUNDS_PROCESSING: this indicates that the funds for the corresponding monetary transaction are currently being processed.
    • FUNDS_AVAILABLE_FOR_PAYOUT: this indicates that the proceeds from the corresponding sales order are available for a seller payout, but processing has not yet begun.
    • FUNDS_ON_HOLD: this indicates that the proceeds from the corresponding sales order are currently being held by eBay, and are not yet available for a seller payout.
    • COMPLETED: this indicates that the funds for the corresponding TRANSFER monetary transaction have transferred and the transaction has completed.
    • FAILED: this indicates the process has failed for the corresponding TRANSFER monetary transaction.
    Below is the proper syntax to use if filtering by transaction status:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionStatus:{PAYOUT}
  • buyerUsername: the eBay user ID of the buyer involved in the monetary transaction. Only monetary transactions involving this buyer are returned. Below is the proper syntax to use if filtering by a specific eBay buyer:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=buyerUsername:{buyer1234}
  • salesRecordReference: the unique Selling Manager identifier of the order involved in the monetary transaction. Only monetary transactions involving this Selling Manager Sales Record ID are returned. Below is the proper syntax to use if filtering by a specific Selling Manager Sales Record ID:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=salesRecordReference:{123}

    Note: For all orders originating after February 1, 2020, a value of 0 will be returned in the salesRecordReference field. So, this filter will only be useful to retrieve orders than occurred before this date.
  • payoutId: the unique identifier of a seller payout. This value is auto-generated by eBay once the seller payout is set to be processed. Only monetary transactions involving this Payout ID are returned. Below is the proper syntax to use if filtering by a specific Payout ID:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=payoutId:{5000106638}
  • transactionId: the unique identifier of a monetary transaction. For a sales order, the orderId filter should be used instead. Only the monetary transaction defined by the identifier is returned.

    Note: This filter cannot be used alone; the transactionType must also be specified when filtering by transaction ID.

    Below is the proper syntax to use if filtering by a specific transaction ID:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionId:{03-03620-33763}&filter=transactionType:{SALE}
  • orderId: the unique identifier of a sales order. For any other monetary transaction, the transactionId filter should be used instead. Only the sales order defined by the identifier is returned. Below is the proper syntax to use if filtering by a specific order ID:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=orderId:{03-03620-33763}
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ + /** @description Numerous filters are available for the getTransactions method, and these filters are discussed below. One or more of these filter types can be used. If none of these filters are used, all monetary transactions occurring within the last five years are returned:
  • transactionDate: search for monetary transactions that occurred within a specific range of dates.

    Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user.
    Below is the proper syntax to use if filtering by a date range:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionDate:[2024-10-23T00:00:01.000Z..2024-11-09T00:00:01.000Z]

    Only payouts from the last five years can be retrieved, so make sure the starting date is less than five years in the past from the present time. Also, the maximum date range that can be specified through this date filter is 36 months, so make sure your specified date range is no more than 36 months.
  • transactionType: search for a specific type of monetary transaction. For supported transactionType values, see TransactionTypeEnum.

    Below is the proper syntax to use if filtering by a monetary transaction type:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionType:{SALE}
  • transactionStatus: this filter type is only applicable for sales orders, and allows the user to filter seller payouts in a particular state. For supported transactionStatus values, see TransactionStatusEnum.

    Below is the proper syntax to use if filtering by transaction status:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionStatus:{PAYOUT}
  • buyerUsername: the eBay username or user ID of the buyer involved in the monetary transaction. Only monetary transactions involving this buyer are returned. Below is the proper syntax to use if filtering by a specific eBay buyer:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=buyerUsername:{buyer1234}
  • payoutId: the unique identifier of a seller payout. This value is auto-generated by eBay once the seller payout is set to be processed. Only monetary transactions involving this Payout ID are returned. Below is the proper syntax to use if filtering by a specific Payout ID:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=payoutId:{5********8}
  • transactionId: use this field transactionId and also transactionType to filter for a unique identifier of a monetary transaction, or an error will occur. For a sales order, the orderId filter should be used instead. Only the monetary transaction defined by the identifier is returned.

    Note: This filter cannot be used alone; the transactionType must also be specified when filtering by transaction ID.
    Below is the proper syntax to use if filtering by a specific transaction ID:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionId:{0*-0***0-3***3}&filter=transactionType:{SALE}
  • orderId: the unique identifier of a sales order. Only monetary transaction(s) associated with this orderId value are returned.

    For any other monetary transaction, the transactionId filter should be used instead.

    Below is the proper syntax to use if filtering by a specific order ID:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=orderId:{0*-0***0-3***3}
  • payoutReference: returns the monetary transactions associated with the payoutReference. By using this ID as a filter parameter, the user will be able to track all monetary transactions associated with both sibling payouts, including sales and refunds, if any. This filter is only supported for sellers in Mainland China. Below is the proper syntax to use if filtering by payoutReference:

    https://apiz.ebay.com/sell/finances/v1/transaction?filter=payoutReference:{5*******3}
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ filter?: string; - /** @description Sorting is not yet available for the getTransactions method. By default, monetary transactions that match the input criteria are sorted in descending order according to the transaction date. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:SortField */ - sort?: string; - /** @description The number of monetary transactions to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

For example, if offset is set to 10 and limit is set to 10, the method retrieves monetary transactions 11 thru 20 from the result set.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0. If an orderId, transactionId, or payoutId filter is included in the request, any limit value will be ignored.

Maximum: 1000
Default: 20 */ + /** @description The number of monetary transactions to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output.

For example, if offset is set to 10 and limit is set to 10, the method retrieves monetary transactions 11 thru 20 from the result set.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.

Maximum: 1000
Default: 20 */ limit?: string; - /** @description This integer value indicates the actual position that the first monetary transaction returned on the current page has in the results set. So, if you wanted to view the 11th monetary transaction of the result set, you would set the offset value in the request to 10.

In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the method retrieves transactions 31 thru 40 from the resulting collection of transactions.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.
Default: 0 (zero) */ + /** @description This integer value indicates the actual position that the first monetary transaction returned on the current page has in the results set. So, if you wanted to view the 11th monetary transaction of the result set, you would set the offset value in the request to 10.

In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the method retrieves transactions 31 thru 40 from the resulting collection of transactions.

To avoid poor response time, use offset values of less than 5000.

Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.
Default: 0 (zero) */ offset?: string; + /** @description By default, monetary transactions that match the input criteria are sorted in descending order according to the transaction date (i.e, most recent transactions returned first).

To view transactions in ascending order instead (i.e., oldest transactions first), you would include the sort query parameter and set its value to transactionDate. Below is the proper syntax to use if filtering by a transaction date range in ascending order:

https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionDate:[2023-10-01T00:00:01.000Z..2023-10-12T00:00:01.000Z]&sort=transactionDate

Transactions can only be sorted according to transaction date. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:SortField */ + sort?: string; + }; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; }; - header?: never; path?: never; cookie?: never; }; @@ -684,10 +1171,13 @@ export interface operations { getTransactionSummary: { parameters: { query?: { - /** @description Numerous filters are available for the getTransactionSummary method, and these filters are discussed below. One or more of these filter types can be used. The transactionStatus filter must be used. All other filters are optional.
  • transactionStatus: the data returned in the response pertains to the sales, payouts, and transfer status set. The supported transactionStatus values are as follows:
    • PAYOUT: only consider monetary transactions where the proceeds from the sales order(s) have been paid out to the seller's bank account.
    • FUNDS_PROCESSING: only consider monetary transactions where the proceeds from the sales order(s) are currently being processed.
    • FUNDS_AVAILABLE_FOR_PAYOUT: only consider monetary transactions where the proceeds from the sales order(s) are available for a seller payout, but processing has not yet begun.
    • FUNDS_ON_HOLD: only consider monetary transactions where the proceeds from the sales order(s) are currently being held by eBay, and are not yet available for a seller payout.
    • COMPLETED: this indicates that the funds for the corresponding TRANSFER monetary transaction have transferred and the transaction has completed.
    • FAILED: this indicates the process has failed for the corresponding TRANSFER monetary transaction.
    Below is the proper syntax to use when setting up the transactionStatus filter:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionStatus:{PAYOUT}
  • transactionDate: only consider monetary transactions that occurred within a specific range of dates.

    Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user.

    Below is the proper syntax to use if filtering by a date range:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionDate:[2018-10-23T00:00:01.000Z..2018-11-09T00:00:01.000Z]

    Alternatively, the user could omit the ending date, and the date range would include the starting date and up to 90 days past that date, or the current date if the starting date is less than 90 days in the past.
  • transactionType: only consider a specific type of monetary transaction. The supported transactionType values are as follows:
    • SALE: a sales order.
    • REFUND: a refund to the buyer after an order cancellation or return.
    • CREDIT: a credit issued by eBay to the seller's account.
    • DISPUTE: a monetary transaction associated with a payment dispute between buyer and seller.
    • NON_SALE_CHARGE: a monetary transaction involving a seller transferring money to eBay for the balance of a charge for NON_SALE_CHARGE transactions (transactions that contain non-transactional seller fees). These can include a one-time payment, monthly/yearly subscription fees charged monthly, NRC charges, and fee credits.
    • SHIPPING_LABEL: a monetary transaction where eBay is billing the seller for an eBay shipping label. Note that the shipping label functionality will initially only be available to a select number of sellers.
    • TRANSFER: A transfer is a monetary transaction where eBay is billing the seller for reimbursement of a charge. An example of a transfer is a seller reimbursing eBay for a buyer refund.
    Below is the proper syntax to use if filtering by a monetary transaction type:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionType:{SALE}
  • buyerUsername: only consider monetary transactions involving a specific buyer (specified with the buyer's eBay user ID). Below is the proper syntax to use if filtering by a specific eBay buyer:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=buyerUsername:{buyer1234}
  • salesRecordReference: only consider monetary transactions corresponding to a specific order (identified with a Selling Manager order identifier). Below is the proper syntax to use if filtering by a specific Selling Manager Sales Record ID:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=salesRecordReference:{123}

    Note: For all orders originating after February 1, 2020, a value of 0 will be returned in the salesRecordReference field. So, this filter will only be useful to retrieve orders than occurred before this date.
  • payoutId: only consider monetary transactions related to a specific seller payout (identified with a Payout ID). This value is auto-generated by eBay once the seller payout is set to be processed. Below is the proper syntax to use if filtering by a specific Payout ID:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=payoutId:{5000106638}
  • transactionId: the unique identifier of a monetary transaction. For a sales order, the orderId filter should be used instead. Only the monetary transaction(s) associated with this transactionId value are returned.

    Note: This filter cannot be used alone; the transactionType must also be specified when filtering by transaction ID.

    Below is the proper syntax to use if filtering by a specific transaction ID:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionId:{03-03620-33763}&filter=transactionType:{SALE}
  • orderId: the unique identifier of a sales order. For any other monetary transaction, the transactionId filter should be used instead. Only the monetary transaction(s) associated with this orderId value are returned. Below is the proper syntax to use if filtering by a specific order ID:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=orderId:{03-03620-33763}
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ + /** @description Numerous filters are available for the getTransactionSummary method, and these filters are discussed below. One or more of these filter types can be used. The transactionStatus filter must be used. All other filters are optional.
  • transactionStatus: the data returned in the response pertains to the sales, payouts, and transfer status set. For supported transactionStatus values, see TransactionStatusEnum.

    Below is the proper syntax to use when setting up the transactionStatus filter:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionStatus:{PAYOUT}
  • transactionDate: only consider monetary transactions that occurred within a specific range of dates.

    Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user.

    Below is the proper syntax to use if filtering by a date range:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionDate:[2024-10-23T00:00:01.000Z..2024-11-09T00:00:01.000Z]

    Note:Only monetary transactions from the last five years can be retrieved, so make sure the starting date is less than five years in the past from the present time. Also, the maximum date range that can be specified through this date filter is 36 months, so make sure your specified date range is no more than 36 months.
  • transactionType: only consider a specific type of monetary transaction. For supported transactionType values, see TransactionTypeEnum.

    Below is the proper syntax to use if filtering by a monetary transaction type:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionType:{SALE}
  • buyerUsername: only consider monetary transactions involving a specific buyer (specified with the buyer's eBay username or user ID). Below is the proper syntax to use if filtering by a specific eBay buyer:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=buyerUsername:{buyer1234}
  • payoutId: only consider monetary transactions related to a specific seller payout (identified with a Payout ID). This value is auto-generated by eBay once the seller payout is set to be processed. Below is the proper syntax to use if filtering by a specific Payout ID:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=payoutId:{5********8}
  • transactionId: the unique identifier of a monetary transaction. For a sales order, the orderId filter should be used instead. Only the monetary transaction(s) associated with this transactionId value are returned.

    Note: This filter cannot be used alone; the transactionType must also be specified when filtering by transaction ID.

    Below is the proper syntax to use if filtering by a specific transaction ID:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionId:{0*-0***0-3***3}&filter=transactionType:{SALE}
  • orderId: the unique identifier of a sales order. For any other monetary transaction, the transactionId filter should be used instead. Only the monetary transaction(s) associated with this orderId value are returned. Below is the proper syntax to use if filtering by a specific order ID:

    https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=orderId:{0*-0***0-3***3}
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ filter?: string; }; - header?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; + }; path?: never; cookie?: never; }; @@ -721,9 +1211,12 @@ export interface operations { getTransfer: { parameters: { query?: never; - header?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See HTTP request headers for the marketplace ID values.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used. */ + "X-EBAY-C-MARKETPLACE-ID": string; + }; path: { - /** @description The unique identifier of the TRANSFER transaction type you wish to retrieve. */ + /** @description This path parameter is used to specify the unique identifier of the TRANSFER transaction type you wish to retrieve.

Use the getTransactions method to retrieve this value by setting the transactionType filter to TRANSFER. The transfer_id value will then be returned in the transaction_id field of the response. */ transfer_Id: string; }; cookie?: never; @@ -753,7 +1246,7 @@ export interface operations { }; content?: never; }; - /** @description Internal Server Error */ + /** @description Internal Server Error. */ 500: { headers: { [name: string]: unknown; @@ -762,26 +1255,38 @@ export interface operations { }; }; }; - getSellerFundsSummary: { + getBillingActivities: { parameters: { - query?: never; - header?: never; + query?: { + /** @description This required field specifies which results to return in the response. Only one of the following four filter values must be used. A user can either retrieve all billing activity within a date range, or they can retrieve billing activity related to a specific eBay order, eBay listing, or they can retrieve information on a specific billing activity.
  • activityId: If this filter is used, only information on a specific billing activity is returned. The billingTransactionId returned in the response can be used as the activityId.
  • listingId: If this filter is used, only billing activity associated with the specified listing is returned.
  • orderId: If this filter is used, only billing activity associated with the specified order is returned.
  • transactionDate: If a date range filter is used, only billing activity that occurred within the specified date range is returned. The starting date cannot be set back further than 120 days in the past. Use UTC date values in the following order: [start..end]

Examples

IDs:
filter=activityID:{12**56}

Date range:
filter=transactionDate:[2025-10-01T00:00:00Z..2025-10-31T23:59:59Z] For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField */ + filter?: string; + /** @description Sets the maximum number of records to return per page of data.

Use this parameter in conjunction with the offset parameter to control the pagination of the output. For example, with offset set to 20 and limit set to 10, the call retrieves entries 21 through 30 from the result set.

Although this field is optional, if omitted the default value of 100 is used.


Minimum: 1
Maximum: 200
Default: 100 */ + limit?: string; + /** @description Specifies the number of records to skip in the result set. This is used with the limit field to control the pagination of the output. For example:
  • If offset is 0 and limit is 10, the method will retrieve records 1-10 from the list of records returned
  • If offset is 10 and limit is 10, the method will retrieve records 11-20 from the list of records returned.

If this parameter is not set, its value defaults to 0 which returns the first page of records.

Note: This feature employs a zero-based list, where the first activity in the list has an offset of 0.

Default: 0 (zero, returns the first page)

*/ + offset?: string; + /** @description By default, transactions that match the input criteria are sorted in descending order according to the transaction date (most recent transactions returned first).

To view transactions in ascending order instead (oldest transactions first), include the sort query parameter and set its value to sort=transactionDate. For example (ascending order):

filter=transactionDate:[2025-11-01T00:00:01.000Z..2025-11-12T00:00:01.000Z]&sort=transactionDate

Transactions can only be sorted according to transaction date. If omitted, defaults to descending order (most recent transactions returned first). For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:SortField */ + sort?: string; + }; + header?: { + /** @description This header indicates the natural language and locale preferred by the user for the response.

For more information, see the Accept-Language header in HTTP request headers and Marketplace ID values. If not provided, defaults to en-US. */ + "Accept-Language"?: string; + }; path?: never; cookie?: never; }; requestBody?: never; responses: { - /** @description Success */ + /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["SellerFundsSummaryResponse"]; + "application/json": components["schemas"]["BillingActivityResponse"]; }; }; - /** @description No Content */ - 204: { + /** @description Bad Request */ + 400: { headers: { [name: string]: unknown; }; diff --git a/src/types/restful/specs/sell_inventory_v1_oas3.ts b/src/types/restful/specs/sell_inventory_v1_oas3.ts index a71cf7d5..f8db04ef 100644 --- a/src/types/restful/specs/sell_inventory_v1_oas3.ts +++ b/src/types/restful/specs/sell_inventory_v1_oas3.ts @@ -562,18 +562,18 @@ export interface components { }; /** @description This type is used by the seller to provide additional information about the condition of an item in a structured format. */ ConditionDescriptor: { - /** @description This string provides additional information about a condition descriptor. Open text is passed in this field.

In the case of trading cards, this field houses the optional Certification Number condition descriptor for graded cards.

Max Length: 30 characters */ + /** @description This string provides additional information about a condition descriptor. Open text is passed in this field.

In the case of trading cards and coins, this field houses the optional Certification Number condition descriptor for graded items.

Max Length: 30 characters */ additionalInfo?: string; - /** @description This string provides the name of a condition descriptor. A numeric ID is passed in this field. This numeric ID maps to the name of a condition descriptor. Condition descriptor name-value pairs provide more information about an item's condition in a structured way.

To retrieve all condition descriptor name numeric IDs for a category, refer to the conditionDescriptorId field returned in the getItemConditionPolicies method of Metadata API.

In the case of trading cards, this field is used to provide condition descriptors for a card. For graded cards, the condition descriptors for Grader and Grade are required, while the condition descriptor for Certification Number is optional. For ungraded cards, only the Card Condition condition descriptor is required. */ + /** @description This string provides the name of a condition descriptor. A numeric ID is passed in this field. This numeric ID maps to the name of a condition descriptor. Condition descriptor name-value pairs provide more information about an item's condition in a structured way.

To retrieve all condition descriptor name numeric IDs for a category, refer to the conditionDescriptorId field returned in the getItemConditionPolicies method of Metadata API.

In the case of trading cards, this field is used to provide condition descriptors for a card. For graded cards, the condition descriptors for Grader and Grade are required, while the condition descriptor for Certification Number is optional. For ungraded cards, only the Card Condition condition descriptor is required.

In the case of coins, this field is used to provide condition descriptors for a coin. For graded coins, the condition descriptors for Grader, Number Grade, and Letter Grade are required, while the condition descriptor for Certification Number is optional. For ungraded coins, only the Coin Condition condition descriptor is required. */ name?: string; - /** @description This array provides the value(s) associated with a condition descriptor. One or more numeric IDs is passed in this field. Commas are used as delimiters between successive name/value pairs. These numeric IDs map to the values associated with a condition descriptor name. Condition descriptor name-value pairs provide more information about an item's condition in a structured way.

To retrieve all condition descriptor value numeric IDs for a category, refer to the ConditionDescriptorValueId array returned in the getItemConditionPolicies method of Metadata API.

In the case of trading cards, this field houses the information on the Grader and Grade descriptors of graded cards and the Card Condition descriptor for ungraded cards. */ + /** @description This array provides the value(s) associated with a condition descriptor. One or more numeric IDs is passed in this field. Commas are used as delimiters between successive name/value pairs. These numeric IDs map to the values associated with a condition descriptor name. Condition descriptor name-value pairs provide more information about an item's condition in a structured way.

To retrieve all condition descriptor value numeric IDs for a category, refer to the ConditionDescriptorValueId array returned in the getItemConditionPolicies method of Metadata API.

In the case of trading cards, this field houses the information on the Grader and Grade descriptors of graded cards and the Card Condition descriptor for ungraded cards.

In the case of coins, this field houses the information on the Grader and Number Grade, and Letter Grade descriptors of graded coins and the Coin Condition descriptor for ungraded coins. */ values?: string[]; }; /** @description This type specifies custom product compliance and/or take-back policies that apply to a specified country. */ CountryPolicy: { /** @description The two-letter ISO 3166-1 country code identifying the country to which the policy or policies specified in the corresponding policyIds array will apply. For implementation help, refer to eBay API documentation */ country?: string; - /** @description An array of custom policy identifiers that apply to the country specified by listingPolicies.regionalTakeBackPolicies.countryPolicies.country.

Product compliance and take-back policy information may be returned using the following methods:
  • getCustomPolicies

    Set policy_types to:
    • PRODUCT_COMPLIANCE for product compliance policies
    • TAKE_BACK for takeback policies

    This returns the list of specified policies and corresponding customPolicyId values a seller has created.
  • getCustomPolicy with custom_policy_id = customPolicyId

    Returns the details of the the policy specified by customPolicyId
For information about creating and managing custom policies, refer to the custom_policy resource in the Sell Account API. */ + /** @description An array of custom policy identifiers that apply to the country specified by listingPolicies.regionalTakeBackPolicies.countryPolicies.country.

Product compliance and take-back policy information may be returned using the following methods:
  • getCustomPolicies

    Set policy_types to:
    • PRODUCT_COMPLIANCE for product compliance policies
    • TAKE_BACK for takeback policies

    This returns the list of specified policies and corresponding customPolicyId values a seller has created.
  • getCustomPolicy with custom_policy_id = customPolicyId

    Returns the details of the policy specified by customPolicyId
For information about creating and managing custom policies, refer to the custom_policy resource in the Sell Account API. */ policyIds?: string[]; }; /** @description This type is used to specify the dimensions (and the unit used to measure those dimensions) of a shipping package. The dimensions container is conditionally required if the seller will be offering calculated shipping rates to determine shipping cost. See the Calculated shipping help page for more information on calculated shipping. */ @@ -656,7 +656,7 @@ export interface components { EbayOfferDetailsWithId: { /** * Format: int32 - * @description This integer value sets the quantity of the inventory item that will be available through the offer. Quantity must be set to 1 or more in order for the inventory item to be purchasable. This value should not be more than the quantity that is specified for the inventory item record. For auction listings, this value must be 1.

If this field exists for the current unpublished or published offer, it should be provided again in the updateOffer call, even if the value is not changing. If this particular field is omitted in an updateOffer call, the general available quantity set for the inventory item record may be used instead, and this may not be accurate if the inventory item is being sold across multiple marketplaces. + * @description This integer value sets the quantity of the inventory item that will be available through the offer. Quantity must be set to 1 or more in order for the inventory item to be purchasable. This value should not be more than the quantity that is specified for the inventory item record. For auction listings, this field should not be provided.

If this field exists for the current unpublished or published offer, it should be provided again in the updateOffer call, even if the value is not changing. If this particular field is omitted in an updateOffer call, the general available quantity set for the inventory item record may be used instead, and this may not be accurate if the inventory item is being sold across multiple marketplaces. */ availableQuantity?: number; /** @description The unique identifier of the eBay category that the inventory item is/will be listed under. This field is not immediately required for an unpublished offer, but will be required before publishing the offer. Sellers can use the getCategorySuggestions method of the Taxonomy API to retrieve suggested category ID values. The seller passes in a query string like "iPhone 6", and category ID values for suggested categories are returned in the response.

If this field exists for the current unpublished offer, it should be provided again in the updateOffer call, even if the eBay category is not changing. For a published offer (aka active eBay listing), this field must be provided or an error may occur. The eBay category of an active eBay listing cannot be changed once the listing has one or more sales, or if the listing is scheduled to end in less than 12 hours.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.

*/ @@ -704,7 +704,7 @@ export interface components { EbayOfferDetailsWithKeys: { /** * Format: int32 - * @description This integer value sets the quantity of the inventory item (specified by the sku value) that will be available for purchase by buyers shopping on the eBay site specified in the marketplaceId field. Quantity must be set to 1 or more in order for the inventory item to be purchasable, but this field is not necessarily required, even for published offers, if the general quantity of the inventory item has already been set in the inventory item record.

For auction listings, this value must be 1.

Note: The availableQuantity field if set here overrides the quantity field set in the inventory item. See the note in Offer fields for details. + * @description This integer value sets the quantity of the inventory item (specified by the sku value) that will be available for purchase by buyers shopping on the eBay site specified in the marketplaceId field. Quantity must be set to 1 or more in order for the inventory item to be purchasable, but this field is not necessarily required, even for published offers, if the general quantity of the inventory item has already been set in the inventory item record.

For auction listings, this field should not be provided.

Note: The availableQuantity field if set here overrides the quantity field set in the inventory item. See the note in Offer fields for details. */ availableQuantity?: number; /** @description The unique identifier of the eBay category that the product will be listed under. This field is not immediately required upon creating an offer, but will be required before publishing the offer.

Sellers can use the getCategorySuggestions method of the Taxonomy API to retrieve suggested category ID values. The seller passes in a query string like "iPhone 6", and category ID values for suggested categories are returned in the response.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.

Note: When listing in categoryID 173651 (Auto Performance Tuning Devices & Software), use of catalog products is required. For more information, see Tuning devices and software.

*/ @@ -754,7 +754,7 @@ export interface components { /** @description This container is applicable and used only if a sales-tax table, a Value-Added Tax (VAT) rate, or a tax exception category code will be applied to the offer. Only Business Sellers can apply VAT to their listings. It is possible that the applyTax field will be included with a value of true, but a buyer's purchase will not involve sales tax.

A sales-tax rate must be set up in the seller's sales-tax table for the buyer's state/tax jurisdiction in order for that buyer to be subject to sales tax. Sales-tax rates for different jurisdictions can be added/modified in the Payment Preferences section of My eBay, or the seller can use the sales tax calls of the Account API.

Note: Sales-tax tables are available only for the US and Canada marketplaces.
Refer to Taxes and import charges for more information on setting up and using a sales tax table. */ tax?: components["schemas"]["Tax"]; }; - /** @description This container provides information about the energy efficiency for certain durable goods. */ + /** @description This type provides information about the energy efficiency for certain durable goods.

Important! When providing energy efficiency information on an appliance or smartphones and tablets listing, the energy efficiency rating and range of the item must be specified through the the aspects field when creating the inventory item record. Use the getItemAspectsForCategory method of the Taxonomy API to retrieve applicable rating and range values for a specified category.

*/ EnergyEfficiencyLabel: { /** @description A brief verbal summary of the information included on the Energy Efficiency Label for an item.

For example, On a scale of A to G the rating is E. */ imageDescription?: string; @@ -891,18 +891,18 @@ export interface components { Interval: { /** @description The close value is actually the time that the store location closes. Local time (in Military format) is used. So, if a store closed at 8 PM local time, the close time would look like the following: 20:00:00. This field is conditionally required if the intervals container is used to specify working hours or special hours for a store.

This field is returned if set for the store location. */ close?: string; - /** @description The open value is actually the time that the store opens. Local time (in Military format) is used. So, if a store opens at 9 AM local time, the close time would look like the following: 09:00:00. This field is conditionally required if the intervals container is used to specify working hours or special hours for a store.

This field is returned if set for the store location. */ + /** @description The open value is actually the time that the store opens. Local time (in Military format) is used. So, if a store opens at 9 AM local time, the open time would look like the following: 09:00:00. This field is conditionally required if the intervals container is used to specify working hours or special hours for a store.

This field is returned if set for the store location. */ open?: string; }; /** @description This type is used to provide detailed information about an inventory item. */ InventoryItem: { /** @description This container is used to specify the quantity of the inventory item that are available for purchase.

This container is optional up until the seller is ready to publish an offer with the SKU, at which time it becomes required. Availability data must also be passed if an inventory item is being updated and availability data already exists for that inventory item.

Since an inventory item must have specified quantity before being published in an offer, this container is always returned in the 'Get' calls for SKUs that are part of a published offer. If a SKU is not part of a published offer, this container will only be returned if set for the inventory item. */ availability?: components["schemas"]["Availability"]; - /** @description This enumeration value indicates the condition of the item. Supported item condition values will vary by eBay site and category. To see which item condition values that a particular eBay category supports, use the getItemConditionPolicies method of the Metadata API. This method returns condition ID values that map to the enumeration values defined in the ConditionEnum type. The Item condition ID and name values topic in the Selling Integration Guide has a table that maps condition ID values to ConditionEnum values. The getItemConditionPolicies call reference page has more information.

A condition value is optional up until the seller is ready to publish an offer with the SKU, at which time it becomes required for most eBay categories.

Note: The 'Manufacturer Refurbished' item condition is no longer a valid item condition on any eBay marketplace, and to reflect this change, the MANUFACTURER_REFURBISHED value is no longer applicable, and should not be used. With Version 1.13.0, the CERTIFIED_REFURBISHED enumeration value has been introduced, and CR-eligible sellers should make a note to start using CERTIFIED_REFURBISHED from this point forward. For the time being, if the MANUFACTURER_REFURBISHED enum is used in a createOrReplaceInventoryItem method, it will be accepted but automatically converted by eBay to CERTIFIED_REFURBISHED. In the future, the MANUFACTURER_REFURBISHED may start triggering an error if used.

To list an item as 'Certified Refurbished', a seller must be pre-qualified by eBay for this feature. Any seller who is not eligible for this feature will be blocked if they try to create a new listing or revise an existing listing with this item condition.

Any seller that is interested in eligibility requirements to list with 'Certified Refurbished' should see the Certified refurbished program page in Seller Center.

Important!For trading card listings in Non-Sport Trading Card Singles (183050), CCG Individual Cards (183454), and Sports Trading Card Singles (261328) categories, sellers must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition. No other item conditions will be accepted. Use of these item conditions require the seller to use the conditionDescriptors array to provide one or more applicable Condition Descriptor name-value pairs. See the conditionDescriptors field description for more information. If these requierments are not followed, publishOffer, updateOffer, bulkPublishOffer, and publishOfferByInventoryItemGroup methods will fail when trying to create new listings.


Important!Publish offer note: This field is required before an offer can be published to create an active listing.

For implementation help, refer to eBay API documentation */ + /** @description This enumeration value indicates the condition of the item. Supported item condition values will vary by eBay site and category. To see which item condition values that a particular eBay category supports, use the getItemConditionPolicies method of the Metadata API. This method returns condition ID values that map to the enumeration values defined in the ConditionEnum type. The Item condition ID and name values topic in the Selling Integration Guide has a table that maps condition ID values to ConditionEnum values. The getItemConditionPolicies call reference page has more information.

A condition value is optional up until the seller is ready to publish an offer with the SKU, at which time it becomes required for most eBay categories.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.

For implementation help, refer to eBay API documentation */ condition?: string; /** @description This string field is used by the seller to more clearly describe the condition of a used inventory item, or an inventory item whose condition value is not NEW, LIKE_NEW, NEW_OTHER, or NEW_WITH_DEFECTS.

The conditionDescription field is available for all eBay categories. If the conditionDescription field is used with an item in one of the new conditions (mentioned in previous paragraph), eBay will simply ignore this field if included, and eBay will return a warning message to the user.

This field should only be used to further clarify the condition of the used item. It should not be used for branding, promotions, shipping, returns, payment or other information unrelated to the condition of the used item. Make sure that the condition value, condition description, listing description, and the item's pictures do not contradict one another.

This field is not always required, but is required if an inventory item is being updated and a condition description already exists for that inventory item.

This field is returned in the getInventoryItem and getInventoryItems calls if a condition description was provided for a used inventory item.

Max Length: 1000. */ conditionDescription?: string; - /** @description

Important!For trading card listings in Non-Sport Trading Card Singles (183050), CCG Individual Cards (183454), and Sports Trading Card Singles (261328) categories, sellers must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition. No other item conditions will be accepted. Use of these item conditions require the seller to use the conditionDescriptors array to provide one or more applicable Condition Descriptor name-value pairs. See the conditionDescriptors field description for more information. If these requierments are not followed, publishOffer, updateOffer, bulkPublishOffer, and publishOfferByInventoryItemGroup methods will fail when trying to create new listings.


This container is used by the seller to provide additional information about the condition of an item in a structured format. Condition descriptors are name-value attributes that can be either closed set or open text inputs.

To retrieve all condition descriptor numeric IDs for a category, use the getItemConditionPolicies method of the Metadata API.

*/ + /** @description This container is used by the seller to provide additional information about the condition of an item in a structured format. Condition descriptors are name-value attributes that can be either closed set or open text inputs.

For trading card and coin listings in applicable categories, sellers must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition to specify the item as Graded or Ungraded, respectively. Use of either of these conditions requires the seller to use this array to provide one or more applicable Condition Descriptor name-value pairs.

To retrieve all condition descriptor numeric IDs for a category, use the getItemConditionPolicies method of the Metadata API. */ conditionDescriptors?: components["schemas"]["ConditionDescriptor"][]; /** @description This container is used if the seller is offering one or more calculated shipping options for the inventory item, or if the seller is offering flat-rate shipping but is including a shipping surcharge based on the item's weight. This container is used to specify the dimensions and weight of a shipping package.

Note: Package weight and dimensions are only supported for the following marketplaces: AU, CA, DE, IT, UK, US, and Motors. If this information is provided on other marketplaces, it will be ignored.
This container is not always required, but is required if an inventory item is being updated and shipping package data already exists for that inventory item.

This container is returned in the getInventoryItem and getInventoryItems calls if package type, package weight, and/or package dimensions are specified for an inventory item.

See the Calculated shipping help page for more information on calculated shipping. */ packageWeightAndSize?: components["schemas"]["PackageWeightAndSize"]; @@ -911,7 +911,7 @@ export interface components { }; /** @description This type is used by the base request payload of the createOrReplaceInventoryItemGroup call and the base response payload of the getInventoryItemGroup call. */ InventoryItemGroup: { - /** @description This is a collection of item specifics (aka product aspects) name-value pairs that are shared by all product variations within the inventory item group. Common aspects for the inventory item group are not immediately required upon creating an inventory item group, but these aspects will be required before the first offer of the group is published. Common aspects for a men's t-shirt might be pattern and sleeve length. Below is an example of the proper JSON syntax to use when manually inputting item specifics. Note that one item specific name, such as 'Features', can have more than one value. If an item specific name has more than one value, each value is delimited with a comma.
"aspects": {
"pattern": ["solid"],
"sleeves": ["short"]
}
This container is always returned if one or more offers associated with the inventory item group have been published, and is only returned if set for an inventory item group if that group has yet to have any offers published.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.

*/ + /** @description This is a collection of item specifics (aka product aspects) name-value pairs that are shared by all product variations within the inventory item group. Common aspects for the inventory item group are not immediately required upon creating an inventory item group, but these aspects will be required before the first offer of the group is published. Common aspects for a men's t-shirt might be pattern and sleeve length.

Important! Effective from December 28th, 2024, sellers offering certain rechargeable devices in EU and Northern Ireland markets must comply with the Common Charger Directive (CCD) and list appropriate charger-related aspects and values on their listings. See Common Charger Directive for more information.


Below is an example of the proper JSON syntax to use when manually inputting item specifics. Note that one item specific name, such as 'Features', can have more than one value. If an item specific name has more than one value, each value is delimited with a comma.
"aspects": {
"pattern": ["solid"],
"sleeves": ["short"]
}
This container is always returned if one or more offers associated with the inventory item group have been published, and is only returned if set for an inventory item group if that group has yet to have any offers published.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.

*/ aspects?: string; /** @description The description of the inventory item group. This description should fully describe the product and the variations of the product that are available in the inventory item group, since this description will ultimately become the listing description once the first offer of the group is published. This field is not initially required when first creating an inventory item group, but will be required before the first offer of the group is published.

Note: Since this description will ultimately become the listing description in a multiple-variation listing, the seller should omit the listingDescription field when creating the offers for each variation. If they include the listingDescription field for the individual offer(s) in an item group, the text in that field for a published offer will overwrite the text provided in this description field for the inventory item group.

HTML tags and markup can be used in this field, but each character counts toward the max length limit.

Note: To ensure that their short listing description is optimized when viewed on mobile devices, sellers should strongly consider using eBay's View Item description summary feature when listing their items. Keep in mind that the 'short' listing description is what prospective buyers first see when they view the listing on a mobile device. The 'full' listing description is also available to mobile users when they click on the short listing description, but the full description is not automatically optimized for viewing in mobile devices, and many users won't even drill down to the full description.

Using HTML div and span tag attributes, this feature allows sellers to customize and fully control the short listing description that is displayed to prospective buyers when viewing the listing on a mobile device. The short listing description on mobile devices is limited to 800 characters, and whenever the full listing description (provided in this field, in UI, or seller tool) exceeds this limit, eBay uses a special algorithm to derive the best possible short listing description within the 800-character limit. However, due to some short listing description content being removed, it is definitely not ideal for the seller, and could lead to a bad buyer experience and possibly to a Significantly not as described (SNAD) case, since the buyer may not get complete details on the item when viewing the short listing description. See the eBay help page for more details on using the HTML div and span tags.


This field is always returned if one or more offers associated with the inventory item group have been published, and is only returned if set for an inventory item group if that group has yet to have any offers published.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.


Max Length: 500000 (which includes HTML markup/tags)
*/ description?: string; @@ -957,11 +957,11 @@ export interface components { InventoryItemWithSkuLocale: { /** @description This container is used to specify the quantity of the inventory item that are available for purchase.

Availability data must also be passed if an inventory item is being updated and availability data already exists for that inventory item.

Since an inventory item must have specified quantity before being published in an offer, this container is always returned in the 'Get' calls for SKUs that are part of a published offer. If a SKU is not part of a published offer, this container will only be returned if set for the inventory item. */ availability?: components["schemas"]["Availability"]; - /** @description This enumeration value indicates the condition of the item. Supported item condition values will vary by eBay site and category. To see which item condition values that a particular eBay category supports, use the getItemConditionPolicies method of the Metadata API. This method returns condition ID values that map to the enumeration values defined in the ConditionEnum type. The Item condition ID and name values topic in the Selling Integration Guide has a table that maps condition ID values to ConditionEnum values. The getItemConditionPolicies call reference page has more information.

A condition value is optional up until the seller is ready to publish an offer with the SKU, at which time it becomes required for most eBay categories.

Note: The 'Manufacturer Refurbished' item condition is no longer a valid item condition on any eBay marketplace, and to reflect this change, the MANUFACTURER_REFURBISHED value is no longer applicable, and should not be used. With Version 1.13.0, the CERTIFIED_REFURBISHED enumeration value has been introduced, and CR-eligible sellers should make a note to start using CERTIFIED_REFURBISHED from this point forward. For the time being, if the MANUFACTURER_REFURBISHED enum is used for any of the SKUs in a bulkCreateOrReplaceInventoryItem method, it will be accepted but automatically converted by eBay to CERTIFIED_REFURBISHED.

To list an item as 'Certified Refurbished', a seller must be pre-qualified by eBay for this feature. Any seller who is not eligible for this feature will be blocked if they try to create a new listing or revise an existing listing with this item condition.

Any seller that is interested in eligibility requirements to list with 'Certified Refurbished' should see the Certified refurbished program page in Seller Center.

Important!For trading card listings in Non-Sport Trading Card Singles (183050), CCG Individual Cards (183454), and Sports Trading Card Singles (261328) categories, sellers must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition. No other item conditions will be accepted. Use of these item conditions require the seller to use the conditionDescriptors array to provide one or more applicable Condition Descriptor name-value pairs. See the conditionDescriptors field description for more information. If these requierments are not followed, publishOffer, updateOffer, bulkPublishOffer, and publishOfferByInventoryItemGroup methods will fail when trying to create new listings.


Important!Publish offer note: This field is required before an offer can be published to create an active listing.

For implementation help, refer to eBay API documentation */ + /** @description This enumeration value indicates the condition of the item. Supported item condition values will vary by eBay site and category. To see which item condition values that a particular eBay category supports, use the getItemConditionPolicies method of the Metadata API. This method returns condition ID values that map to the enumeration values defined in the ConditionEnum type. The Item condition ID and name values topic in the Selling Integration Guide has a table that maps condition ID values to ConditionEnum values. The getItemConditionPolicies call reference page has more information.

A condition value is optional up until the seller is ready to publish an offer with the SKU, at which time it becomes required for most eBay categories.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.

For implementation help, refer to eBay API documentation */ condition?: string; /** @description This string field is used by the seller to more clearly describe the condition of a used inventory item, or an inventory item whose condition value is not NEW, LIKE_NEW, NEW_OTHER, or NEW_WITH_DEFECTS.

The conditionDescription field is available for all eBay categories. If the conditionDescription field is used with an item in one of the new conditions (mentioned in previous paragraph), eBay will simply ignore this field if included, and eBay will return a warning message to the user.

This field should only be used to further clarify the condition of the used item. It should not be used for branding, promotions, shipping, returns, payment or other information unrelated to the condition of the used item. Make sure that the condition value, condition description, listing description, and the item's pictures do not contradict one another.

This field is not always required, but is required if an inventory item is being updated and a condition description already exists for that inventory item.

This field is returned in the getInventoryItem, bulkGetInventoryItem, and getInventoryItems calls if a condition description was provided for a used inventory item.

Max Length: 1000 */ conditionDescription?: string; - /** @description

Important!For trading card listings in Non-Sport Trading Card Singles (183050), CCG Individual Cards (183454), and Sports Trading Card Singles (261328) categories, sellers must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition. No other item conditions will be accepted. Use of these item conditions require the seller to use the conditionDescriptors array to provide one or more applicable Condition Descriptor name-value pairs. See the conditionDescriptors field description for more information. If these requierments are not followed, publishOffer, updateOffer, bulkPublishOffer, and publishOfferByInventoryItemGroup methods will fail when trying to create new listings.



This container is used by the seller to provide additional information about the condition of an item in a structured format. Condition descriptors are name-value attributes that can be either closed set or open text inputs.

To retrieve all condition descriptor numeric IDs for a category, use the getItemConditionPolicies method of the Metadata API.

*/ + /** @description This container is used by the seller to provide additional information about the condition of an item in a structured format. Condition descriptors are name-value attributes that can be either closed set or open text inputs.

For trading card and coin listings in applicable categories, sellers must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition to specify the item as Graded or Ungraded, respectively. Use of either of these conditions requires the seller to use this array to provide one or more applicable Condition Descriptor name-value pairs.

To retrieve all condition descriptor numeric IDs for a category, use the getItemConditionPolicies method of the Metadata API. */ conditionDescriptors?: components["schemas"]["ConditionDescriptor"][]; /** @description This request parameter sets the natural language that was provided in the field values of the request payload (i.e., en_AU, en_GB or de_DE). For implementation help, refer to eBay API documentation */ locale?: string; @@ -976,11 +976,11 @@ export interface components { InventoryItemWithSkuLocaleGroupKeys: { /** @description This container shows the quantity of the inventory item that is available for purchase if the item will be shipped to the buyer, and/or the quantity of the inventory item that is available for In-Store Pickup at one or more of the merchant's physical stores. */ availability?: components["schemas"]["AvailabilityWithAll"]; - /** @description This enumeration value indicates the condition of the item. Supported item condition values will vary by eBay site and category.

Since the condition of an inventory item must be specified before being published in an offer, this field is always returned in the 'Get' calls for SKUs that are part of a published offer. If a SKU is not part of a published offer, this field will only be returned if set for the inventory item.

Note: The 'Manufacturer Refurbished' item condition is no longer a valid item condition on any eBay marketplace, and to reflect this change, the MANUFACTURER_REFURBISHED value has essentially been replaced with the CERTIFIED_REFURBISHED enumeration value with Version 1.13.0. For any existing inventory items that have MANUFACTURER_REFURBISHED set as their condition value, eBay will automatically convert the condition of these inventory items to CERTIFIED_REFURBISHED, so it is not necessary for the developer to update these inventory items with a 'create or replace' call.

To list an item as 'Certified Refurbished', a seller must be pre-qualified by eBay for this feature. Any seller who is not eligible for this feature will be blocked if they try to create a new listing or revise an existing listing with this item condition.

Any seller that is interested in eligibility requirements to list with 'Certified Refurbished' should see the Certified refurbished program page in Seller Center.

Important!For trading card listings in Non-Sport Trading Card Singles (183050), CCG Individual Cards (183454), and Sports Trading Card Singles (261328) categories, LIKE_NEW (2750) can be used to specify the card as a Graded card and USED_VERY_GOOD (4000) can be used to specify the card as an Ungraded card. If either of these item conditions are used for the affected categories, the seller is then required to use the conditionDescriptors array to provide one or more applicable Condition Descriptor name-value pairs. See the conditionDescriptors field description for more information.

Beginning October 23, 2023, trading card listings in the affected categories must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition, and no other item conditions will be accepted. These item conditions and the conditionDescriptors array will be required for all new listings. If not provided after this date, the publishOffer, bulkPublishOffer, and publishOfferByInventoryItemGroup methods will fail when trying to create new listings.

By January 22 2024, all existing listings must be modified with either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition and applicable conditionDescriptors name-value pairs. The updateOffer method will fail if the inventory item object does not have one of these two item conditions along with applicable conditionDescriptors name-value pairs.

For implementation help, refer to eBay API documentation */ + /** @description This enumeration value indicates the condition of the item. Supported item condition values will vary by eBay site and category.

Since the condition of an inventory item must be specified before being published in an offer, this field is always returned in the 'Get' calls for SKUs that are part of a published offer. If a SKU is not part of a published offer, this field will only be returned if set for the inventory item. For implementation help, refer to eBay API documentation */ condition?: string; /** @description This string field is used by the seller to more clearly describe the condition of used items, or items that are not 'Brand New', 'New with tags', or 'New in box'. The ConditionDescription field is available for all categories. If the ConditionDescription field is used with an item in a new condition (Condition IDs 1000-1499), eBay will simply ignore this field if included, and eBay will return a warning message to the user. This field should only be used to further clarify the condition of the used item. It should not be used for branding, promotions, shipping, returns, payment or other information unrelated to the condition of the item. Make sure that the condition value, condition description, listing description, and the item's pictures do not contradict one another.Max length: 1000. */ conditionDescription?: string; - /** @description

Important!For trading card listings in Non-Sport Trading Card Singles (183050), CCG Individual Cards (183454), and Sports Trading Card Singles (261328) categories, LIKE_NEW (2750) can be used to specify the card as a Graded card and USED_VERY_GOOD (4000) can be used to specify the card as an Ungraded card. If either of these item conditions are used for the affected categories, the seller is then required to use the conditionDescriptors array to provide one or more applicable Condition Descriptor name-value pairs.

Beginning October 23, 2023, trading card listings in the affected categories must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition, and no other item conditions will be accepted. These item conditions and the conditionDescriptors array will be required for all new listings. If not provided after this date, the publishOffer, bulkPublishOffer, and publishOfferByInventoryItemGroup methods will fail when trying to create new listings.

By January 22 2024, all existing listings must be modified with either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition and applicable conditionDescriptors name-value pairs. The updateOffer method will fail if the inventory item object does not have one of these two item conditions along with applicable conditionDescriptors name-value pairs.



This container is used by the seller to provide additional information about the condition of an item in a structured format. Descriptors are name-value attributes that can be either closed set or open text.

For more information on the numeric IDs and their text equivalents, use the getItemConditionPolicies method of the Metadata API.

*/ + /** @description This container is used by the seller to provide additional information about the condition of an item in a structured format. Condition descriptors are name-value attributes that can be either closed set or open text inputs.

For trading card and coin listings in applicable categories, sellers must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition to specify the item as Graded or Ungraded, respectively. Use of either of these conditions requires the seller to use this array to provide one or more applicable Condition Descriptor name-value pairs.

To retrieve all condition descriptor numeric IDs for a category, use the getItemConditionPolicies method of the Metadata API. */ conditionDescriptors?: components["schemas"]["ConditionDescriptor"][]; /** @description This array is returned if the inventory item is associated with any inventory item group(s). The value(s) returned in this array are the unique identifier(s) of the inventory item's variation in a multiple-variation listing. This array is not returned if the inventory item is not associated with any inventory item groups. */ inventoryItemGroupKeys?: string[]; @@ -996,11 +996,11 @@ export interface components { InventoryItemWithSkuLocaleGroupid: { /** @description This container is used to specify the quantity of the inventory item that are available for purchase if the item will be shipped to the buyer, and the quantity of the inventory item that are available for In-Store Pickup at one or more of the merchant's physical stores */ availability?: components["schemas"]["AvailabilityWithAll"]; - /** @description This enumeration value indicates the condition of the item. Supported item condition values will vary by eBay site and category.

Since the condition of an inventory item must be specified before being published in an offer, this field is always returned in the 'Get' calls for SKUs that are part of a published offer. If a SKU is not part of a published offer, this field will only be returned if set for the inventory item.

Note: The 'Manufacturer Refurbished' item condition is no longer a valid item condition on any eBay marketplace, and to reflect this change, the MANUFACTURER_REFURBISHED value has essentially been replaced with the CERTIFIED_REFURBISHED enumeration value with Version 1.13.0. For any existing inventory items that have MANUFACTURER_REFURBISHED set as their condition value, eBay will automatically convert the condition of these inventory items to CERTIFIED_REFURBISHED, so it is not necessary for the developer to update these inventory items with a 'create or replace' call.

To list an item as 'Certified Refurbished', a seller must be pre-qualified by eBay for this feature. Any seller who is not eligible for this feature will be blocked if they try to create a new listing or revise an existing listing with this item condition.

Any seller that is interested in eligibility requirements to list with 'Certified Refurbished' should see the Certified refurbished program page in Seller Center.

Important!For trading card listings in Non-Sport Trading Card Singles (183050), CCG Individual Cards (183454), and Sports Trading Card Singles (261328) categories, LIKE_NEW (2750) can be used to specify the card as a Graded card and USED_VERY_GOOD (4000) can be used to specify the card as an Ungraded card. If either of these item conditions are used for the affected categories, the seller is then required to use the conditionDescriptors array to provide one or more applicable Condition Descriptor name-value pairs. See the conditionDescriptors field description for more information.

Beginning October 23, 2023, trading card listings in the affected categories must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition, and no other item conditions will be accepted. These item conditions and the conditionDescriptors array will be required for all new listings. If not provided after this date, the publishOffer, bulkPublishOffer, and publishOfferByInventoryItemGroup methods will fail when trying to create new listings.

By January 22 2024, all existing listings must be modified with either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition and applicable conditionDescriptors name-value pairs. The updateOffer method will fail if the inventory item object does not have one of these two item conditions along with applicable conditionDescriptors name-value pairs.

For implementation help, refer to eBay API documentation */ + /** @description This enumeration value indicates the condition of the item. Supported item condition values will vary by eBay site and category.

Since the condition of an inventory item must be specified before being published in an offer, this field is always returned in the 'Get' calls for SKUs that are part of a published offer. If a SKU is not part of a published offer, this field will only be returned if set for the inventory item. For implementation help, refer to eBay API documentation */ condition?: string; /** @description This string field is used by the seller to more clearly describe the condition of used items, or items that are not 'Brand New', 'New with tags', or 'New in box'. The ConditionDescription field is available for all categories. If the ConditionDescription field is used with an item in a new condition (Condition IDs 1000-1499), eBay will simply ignore this field if included, and eBay will return a warning message to the user. This field should only be used to further clarify the condition of the used item. It should not be used for branding, promotions, shipping, returns, payment or other information unrelated to the condition of the item. Make sure that the condition value, condition description, listing description, and the item's pictures do not contradict one another.

Max length: 1000 */ conditionDescription?: string; - /** @description

Important!For trading card listings in Non-Sport Trading Card Singles (183050), CCG Individual Cards (183454), and Sports Trading Card Singles (261328) categories, LIKE_NEW (2750) can be used to specify the card as a Graded card and USED_VERY_GOOD (4000) can be used to specify the card as an Ungraded card. If either of these item conditions are used for the affected categories, the seller is then required to use the conditionDescriptors array to provide one or more applicable Condition Descriptor name-value pairs.

Beginning October 23, 2023, trading card listings in the affected categories must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition, and no other item conditions will be accepted. These item conditions and the conditionDescriptors array will be required for all new listings. If not provided after this date, the publishOffer, bulkPublishOffer, and publishOfferByInventoryItemGroup methods will fail when trying to create new listings.

By January 22 2024, all existing listings must be modified with either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition and applicable conditionDescriptors name-value pairs. The updateOffer method will fail if the inventory item object does not have one of these two item conditions along with applicable conditionDescriptors name-value pairs.



This container is used by the seller to provide additional information about the condition of an item in a structured format. Descriptors are name-value attributes that can be either closed set or open text.

For more information on the numeric IDs and their text equivalents, use the getItemConditionPolicies method of the Metadata API.

*/ + /** @description This container is used by the seller to provide additional information about the condition of an item in a structured format. Condition descriptors are name-value attributes that can be either closed set or open text inputs.

For trading card and coin listings in applicable categories, sellers must use either LIKE_NEW (2750) or USED_VERY_GOOD (4000) item condition to specify the item as Graded or Ungraded, respectively. Use of either of these conditions requires the seller to use this array to provide one or more applicable Condition Descriptor name-value pairs.

To retrieve all condition descriptor numeric IDs for a category, use the getItemConditionPolicies method of the Metadata API. */ conditionDescriptors?: components["schemas"]["ConditionDescriptor"][]; /** @description This array is returned if the inventory item is associated with any inventory item group(s). The value(s) returned in this array are the unique identifier(s) of the inventory item group(s). This array is not returned if the inventory item is not associated with any inventory item groups. */ groupIds?: string[]; @@ -1152,7 +1152,7 @@ export interface components { regionalProductCompliancePolicies?: components["schemas"]["RegionalProductCompliancePolicies"]; /** @description The list of unique identifiers indicating the seller-created country-specific take-back policies that will be used once an offer is published and converted to a listing. The law in some countries may require sellers to take back a used product when the buyer buys a new product.

Each offer may include one (1) country-specific take-back policy for each of the following countries:
  • United Kingdom [GB]
  • Germany [DE]
  • France [FR]
  • Italy [IT]
  • Spain [ES]

Note: Take-back policies that apply to all countries to which a seller ships are specified using takeBackPolicyId. */ regionalTakeBackPolicies?: components["schemas"]["RegionalTakeBackPolicies"]; - /** @description This unique identifier indicates the return business policy that will be used once an offer is published and converted to an eBay listing. This return business policy will set all return policy settings for the eBay listing.

Note: As a part of Digital Services Act (DSA) requirements, as of April 3, 2023, buyers in the EU must be allowed to return an item within 14 days or more, unless the item is exempt. Where applicable, sellers should update their return policies to reflect this requirement of accepting returns from EU buyers.
Business policies are not immediately required for offers, but are required before an offer can be published. The seller should review the return business policy before assigning it to the offer to make sure it is compatible with the inventory item and the offer settings.

Business policies can be created and managed in My eBay or with the Account API. To get a list of all return policies associated with a seller's account on a specific eBay Marketplace, use the Account API's getReturnPolicies call. There are also calls in the Account API to retrieve a return policy by policy ID or policy name.

This field will be returned in the getOffer and getOffers methods if set for the offer.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.

*/ + /** @description This unique identifier indicates the return business policy that will be used once an offer is published and converted to an eBay listing. This return business policy will set all return policy settings for the eBay listing.

Note: As a part of Digital Services Act (DSA) requirements, as of April 3, 2023, buyers in the EU must be allowed to return an item within 14 days or more, unless the item is exempt. Where applicable, sellers should update their return policies to reflect this requirement of accepting returns from EU buyers.
Business policies are not immediately required for offers, but are required before an offer can be published. The seller should review the return business policy before assigning it to the offer to make sure it is compatible with the inventory item and the offer settings.

Business policies can be created and managed in My eBay or with the Account API. To get a list of all return policies associated with a seller's account on a specific eBay Marketplace, use the Account API's getReturnPolicies call. There are also calls in the Account API to retrieve a return policy by policy ID or policy name.

This field will be returned in the getOffer and getOffers methods if set for the offer.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.

*/ returnPolicyId?: string; /** @description This container is used if the seller wishes to override the shipping costs or surcharge for one or more domestic or international shipping service options defined in the fulfillment listing policy. To override the costs of a specific domestic or international shipping service option, the seller must know the priority/order of that shipping service in the fulfillment listing policy. The name of a shipping service option can be found in the shippingOptions.shippingServices.shippingServiceCode field of the fulfillment policy, and the priority/order of that shipping service option is found in the shippingOptions.shippingServices.sortOrderId field. Both of these values can be retrieved by searching for that fulfillment policy with the getFulfillmentPolicies or getFulfillmentPolicyByName calls of the Account API. The shippingCostOverrides.priority value should match the shippingOptions.shippingServices.sortOrderId in order to override the shipping costs for that shipping service option. The seller must also ensure that the shippingServiceType value is set to DOMESTIC to override a domestic shipping service option, or to INTERNATIONAL to override an international shipping service option.

A separate ShippingCostOverrides node is needed for each shipping service option whose costs are being overridden. All defined fields of the shippingCostOverrides container should be included, even if the shipping costs and surcharge values are not changing.

The shippingCostOverrides container is returned in the getOffer and getOffers calls if one or more shipping cost overrides are being applied to the fulfillment policy. */ shippingCostOverrides?: components["schemas"]["ShippingCostOverride"][]; @@ -1219,8 +1219,10 @@ export interface components { addressLine2?: string; /** @description The city of the product manufacturer's street address.

Max length: 64 characters */ city?: string; - /** @description The company name of the the product manufacturer.

Max length: 100 characters */ + /** @description The company name of the product manufacturer.

Max length: 100 characters */ companyName?: string; + /** @description The contact URL of the product manufacturer.

Max length: 250 characters */ + contactUrl?: string; /** @description This defines the list of valid country codes, adapted from http://www.iso.org/iso/country_codes, ISO 3166-1 country code. List elements take the following form to identify a two-letter code with a short name in English, a three-digit code, and a three-letter code: For example, the entry for Japan includes Japan, 392, JPN. Short codes provide uniform recognition, avoiding language-dependent country names. The number code is helpful where Latin script may be problematic. Not all listed codes are universally recognized as countries, for example: code AQ is Antarctica, 010, ATA For implementation help, refer to eBay API documentation */ country?: string; /** @description The product manufacturer's business email address.

Max length: 180 characters */ @@ -1278,7 +1280,7 @@ export interface components { OfferPriceQuantity: { /** * Format: int32 - * @description This field is used if the seller wants to modify the current quantity of the inventory item that will be available for purchase in the offer (identified by the corresponding offerId value). Either the availableQuantity field or the price container is required, but not necessarily both. + * @description This field is used if the seller wants to modify the current quantity of the inventory item that will be available for purchase in the offer (identified by the corresponding offerId value).

This value represents the quantity of the item that is available in the marketplace specified within the offer, not the total quantity available. Because of this, this value should not exceed the value specified in the quantity field of the shipToLocationAvailability container (the total available quantity of the item across all marketplaces).

Note: To ensure that the available quantity allocated to a specific marketplace doesn't exceed the total available stock, the quantity specified on a listing will be the minimum value between this field and the quantity field.
Either the availableQuantity field or the price container is required, but not necessarily both. */ availableQuantity?: number; /** @description This field is the unique identifier of the offer. If an offers container is used to update one or more offers associated to a specific inventory item, the offerId value is required in order to identify the offer to update with a modified price and/or quantity.

The seller can use the getOffers method (passing in the correct SKU value as a query parameter) to retrieve offerId values for offers associated with the SKU. */ @@ -1398,7 +1400,7 @@ export interface components { }; /** @description This type is used to update the total "ship-to-home" quantity for one or more inventory items and/or to update the price and/or quantity of one or more specific offers associated with one or more inventory items. */ PriceQuantity: { - /** @description This container is needed if the seller is updating the price and/or quantity of one or more published offers, and a successful call will actually update the active eBay listing with the revised price and/or available quantity.

This call is not designed to work with unpublished offers. For unpublished offers, the seller should use the updateOffer call to update the available quantity and/or price.

If the seller is also using the shipToLocationAvailability container and sku field to update the total 'ship-to-home' quantity of the inventory item, the SKU value associated with the corresponding offerId value(s) must be the same as the corresponding sku value that is passed in, or an error will occur.

A separate (OfferPriceQuantity) node is required for each offer being updated. */ + /** @description This container is needed if the seller is updating the price and/or quantity of one or more published offers, and a successful call will actually update the active eBay listing with the revised price and/or available quantity.

This call is not designed to work with unpublished offers. For unpublished offers, the seller should use the updateOffer call to update the available quantity and/or price.

If the seller is also using the shipToLocationAvailability container and sku field to update the total 'ship-to-home' quantity of the inventory item, the SKU value associated with the corresponding offerId value(s) must be the same as the corresponding sku value that is passed in, or an error will occur.

Important! A separate (OfferPriceQuantity) node is required for each offer being updated.

*/ offers?: components["schemas"]["OfferPriceQuantity"][]; /** @description This container is needed if the seller is updating the total 'ship-to-home' quantity for the corresponding inventory item (specified in the sku field). A successful call will update the inventory item record associated with the sku value. */ shipToLocationAvailability?: components["schemas"]["ShipToLocationAvailability"]; @@ -1440,27 +1442,27 @@ export interface components { }; /** @description This type is used to define the product details, such as a title, a product description, product aspects/item specifics, and links to images for the product. Optionally, in a createOrReplaceInventoryItem call, a seller can pass in an eBay Product Identifier (ePID) or a Global Trade Item Number (GTIN) value, such as an EAN, an ISBN, a UPC, to identify a product to be matched with a product in the eBay Catalog. The information in this type is also returned in the getInventoryItem, getInventoryItems, and bulkGetInventoryItem calls if defined. */ Product: { - /** @description This is a collection of item specifics (aka product aspects) name-value pairs that provide more information about the product and might make it easier for buyers to find. To view required/recommended product aspects/item specifics names (and corresponding values) for a specific eBay category, sellers can use the getItemAspectsForCategory method of the Taxonomy API. Alternatively, sellers can view similar items on eBay.com in the same category to get an idea of what other sellers are using for product aspects/item specifics.

Sellers also have the option of specifying an eBay Product ID (ePID) or optionally, a Global Trade Item Number (GTIN) through the corresponding fields in the product container in an attempt to find a product match in the eBay Catalog. If a match is found based on the ePID or GTIN value, the product aspects that are defined for the eBay Catalog product will automatically get picked up by the newly created/updated inventory item.

Below is an example of the proper JSON syntax to use when manually inputting item specifics. Note that one item specific name, such as 'Features', can have more than one value. If an item specific name has more than one value, each value is delimited with a comma.

"aspects": {
"Brand": ["GoPro"],
"Storage Type": ["Removable"]
}

Note that inventory items that will become part of an inventory item group and multiple-variation listing should have the same attributes that are defined for the inventory item group.

This container will be returned if one or more item specific pairs are defined for the inventory item.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.



Max Length for Aspect Name: 40

Max Length for Aspect Value: 50 */ + /** @description This is a collection of item specifics (aka product aspects) name-value pairs that provide more information about the product and might make it easier for buyers to find. To view required/recommended product aspects/item specifics names (and corresponding values) for a specific eBay category, sellers can use the getItemAspectsForCategory method of the Taxonomy API. Alternatively, sellers can view similar items on eBay.com in the same category to get an idea of what other sellers are using for product aspects/item specifics.

Important! Effective from December 28th, 2024, sellers offering certain rechargeable devices in EU and Northern Ireland markets must comply with the Common Charger Directive (CCD) and list appropriate charger-related aspects and values on their listings. See Common Charger Directive for more information.


Sellers also have the option of specifying an eBay Product ID (ePID) or optionally, a Global Trade Item Number (GTIN) through the corresponding fields in the product container in an attempt to find a product match in the eBay Catalog. If a match is found based on the ePID or GTIN value, the product aspects that are defined for the eBay Catalog product will automatically get picked up by the newly created/updated inventory item.

Below is an example of the proper JSON syntax to use when manually inputting item specifics. Note that one item specific name, such as 'Features', can have more than one value. If an item specific name has more than one value, each value is delimited with a comma.

"aspects": {
"Brand": ["GoPro"],
"Storage Type": ["Removable"]
}

Note that inventory items that will become part of an inventory item group and multiple-variation listing should have the same attributes that are defined for the inventory item group.

This container will be returned if one or more item specific pairs are defined for the inventory item.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.


Max Length for Aspect Name: 40

Max Length for Aspect Value: 50 */ aspects?: string; /** @description The brand of the product. This field is often paired with the mpn field to identify a specific product by Manufacturer Part Number. This field is conditionally required if the eBay category requires a Manufacturer Part Number (MPN) value. If eBay is able to find a product match in the eBay Catalog when an eBay Product ID (ePID) or GTIN value (UPC, ISBN, or EAN) is supplied, all product details of that eBay Catalog product is picked up by the inventory item record (including brand) if the createOrReplaceInventoryItem call is successful.

This field is returned if defined for an inventory item. If a brand was passed in as an item specific name-value pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the brand field.

Max Length: 65 */ brand?: string; /** @description The description of the product. The description of an existing inventory item can be added or modified with a createOrReplaceInventoryItem call. The description of an inventory item is automatically populated if the seller specifies an eBay Product ID (ePID) or a Global Trade Item Number (GTIN) and eBay is able to find a matching product in the eBay Catalog.

Note that this field is optional but recommended. If a listingDescription field is omitted when creating and publishing a single-variation offer, the text in this field will be used instead. If neither the product.description field for the inventory item nor the listingDescription field for the offer exist, the publishOffer call will fail. If the inventory item will be part of an inventory item group/multiple-variation listing, this field should definitely be used to specify how the corresponding product variation is different (e.g. This is the green, extra-large version of the shirt). However, in the case of an inventory item group, the text in the description field of the inventory item group will become the listing description of the actual eBay listing instead of the text in this field.

Basic HTML tags are supported, including the following tags:
  • <b>
  • <strong>
  • <br>
  • <ol>
  • <ul>
  • <li>
  • Table tags including <table>, <tr>, <td>, <th>, <thead>, <tfoot>, <tbody>, <caption>, <colgroup>, and <col>
A seller can not use any active content in their listing description. Active content includes animation or video via JavaScript, Flash, plug-ins, or form actions.

This field is returned if defined for an inventory item. If one of the GTIN types (e.g. UPC) was passed in when the inventory item was created/modified and a product match was found in the eBay catalog, product description is one of the details that gets picked up from the catalog product.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.


Max Length: 4000 */ description?: string; - /** @description The European Article Number/International Article Number (EAN) for the product. Although an ePID value is preferred when trying to find a product match in the eBay Catalog, this field can also be used in an attempt to find a product match in the eBay Catalog. If a product match is found in the eBay Catalog, the inventory item is automatically populated with available product details such as a title, a product description, product aspects (including the specified EAN value), and a link to any stock image that exists for the catalog product.

This field is returned if defined for an inventory item. If an EAN was passed in as an item specific name-value pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the ean field. */ + /** @description The European Article Number/International Article Number (EAN) for the product. Although an ePID value is preferred when trying to find a product match in the eBay Catalog, this field can also be used in an attempt to find a product match in the eBay Catalog. If a product match is found in the eBay Catalog, the inventory item is automatically populated with available product details such as a title, a product description, product aspects (including the specified EAN value), and a link to any stock image that exists for the catalog product.

This field is returned if defined for an inventory item. If an EAN was passed in as an item specific name-value pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the ean field.

Note: If the item is being listed in a category that requires an EAN value, but one doesn't exist for the product, the seller must provide a string indicating that the product identifier is unavailable. This text varies by marketplace. Refer to Product Identifier Text for the specific text based on the listing marketplace.

*/ ean?: string[]; /** @description The eBay Product Identifier (ePID) for the product. This field can be used to directly identify an eBay Catalog product. Based on its specified ePID value, eBay will search for the product in the eBay Catalog, and if a match is found, the inventory item is automatically populated with available product details such as product title, product description, product aspects, and a link to any stock image that exists for the catalog product.

In an attempt to find a eBay Catalog product match, an ePID value is always preferred over the other product identifiers, since it is possible that one GTIN value can be associated with multiple eBay Catalog products, and if multiple products are found, product details will not be picked up by the Inventory Item object.


Note: When listing in categoryID 173651 (Auto Performance Tuning Devices & Software), the use of catalog products is required. For more information, see Tuning devices and software.


This field is returned if defined for an inventory item. */ epid?: string; /** @description An array of one or more links to images for the product. URLs must use the "HTTPS" protocol. Images can be self-hosted by the seller, or sellers can use the UploadSiteHostedPictures call of the Trading API to upload images to an eBay Picture Server. If successful, the response of the UploadSiteHostedPictures call will contain a full URL to the image on an eBay Picture Server. This is the URL that will be passed in through the imageUrls array. Before an offer can be published, at least one image must exist for the inventory item. In almost any category at no cost, sellers can include up to 24 pictures in one listing. For inventory items that are a part of an inventory item group/multiple-variation listings, a maximum of 12 pictures may be used per inventory item in the group. Motor vehicle listings are an exception. The number of included pictures in motor vehicle listings depend on the selected vehicle package (see Fees for selling vehicles on eBay Motors).

A link to a stock image for a product may automatically be populated for an inventory item if the seller specifies an eBay Product ID (ePID) or a Global Trade Item Number (GTIN) and eBay is able to find a matching product in the eBay Catalog.

This container will always be returned for an inventory item that is part of a published offer since a published offer will always have at least one picture, but this container will only be returned if defined for inventory items that are not a part of a published offer.

Important!Publish offer note: This array is required and at least one image URL must be specified before an offer can be published to create an active listing.

*/ imageUrls?: string[]; - /** @description The International Standard Book Number (ISBN) value for the product. Although an ePID value is preferred when trying to find a product match in the eBay Catalog, this field can also be used in an attempt to find a product match in the eBay Catalog. If a product match is found in the eBay Catalog, the inventory item is automatically populated with available product details such as a title, a product description, product aspects (including the specified ISBN value), and a link to any stock image that exists for the catalog product.

This field is returned if defined for an inventory item. If an ISBN was passed in as an item specific name-value pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the isbn field. */ + /** @description The International Standard Book Number (ISBN) value for the product. Although an ePID value is preferred when trying to find a product match in the eBay Catalog, this field can also be used in an attempt to find a product match in the eBay Catalog. If a product match is found in the eBay Catalog, the inventory item is automatically populated with available product details such as a title, a product description, product aspects (including the specified ISBN value), and a link to any stock image that exists for the catalog product.

This field is returned if defined for an inventory item. If an ISBN was passed in as an item specific name-value pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the isbn field.

Note: If the item is being listed in a category that requires an ISBN value, but one doesn't exist for the product, the seller must provide a string indicating that the product identifier is unavailable. This text varies by marketplace. Refer to Product Identifier Text for the specific text based on the listing marketplace.

*/ isbn?: string[]; - /** @description The Manufacturer Part Number (MPN) of a product. This field is paired with the brand field to identify a product. Some eBay categories require MPN values. The getItemAspectsForCategory method in the Taxonomy API can be used to see if a category requires an MPN. The MPN value for a product may automatically be populated for an inventory item if the seller specifies an eBay Product ID (ePID) or a Global Trade Item Number (GTIN) and eBay is able to find a matching product in the eBay Catalog.

This field is returned if defined for an inventory item. If an MPN was passed in as an item specific name-value pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the mpn field.

Max Length: 65 */ + /** @description The Manufacturer Part Number (MPN) of a product. This field is paired with the brand field to identify a product. Some eBay categories require MPN values. The getItemAspectsForCategory method in the Taxonomy API can be used to see if a category requires an MPN. The MPN value for a product may automatically be populated for an inventory item if the seller specifies an eBay Product ID (ePID) or a Global Trade Item Number (GTIN) and eBay is able to find a matching product in the eBay Catalog.

This field is returned if defined for an inventory item. If an MPN was passed in as an item specific name-value pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the mpn field.

Note: If the item is being listed in a category that requires an MPN value, but one doesn't exist for the product, the seller must provide a string indicating that the product identifier is unavailable. This text varies by marketplace. Refer to Product Identifier Text for the specific text based on the listing marketplace.

Max Length: 65 */ mpn?: string; /** @description A subtitle is an optional listing feature that allows the seller to provide more information about the product, possibly including keywords that may assist with search results. An additional listing fee will be charged to the seller if a subtitle is used. For more information on using listing subtitles on the US site, see the Adding a subtitle to your listings help page. The subtitle of an existing inventory item can added, modified, or removed with a createOrReplaceInventoryItem call.

Note that the same subtitle text should be used for each inventory item that will be part of an inventory item group, and ultimately become one product variation within a multiple-variation listing.

This field will only be returned if set for an inventory item.

Max Length: 55 */ subtitle?: string; /** @description The title of an inventory item can be added or modified with a createOrReplaceInventoryItem call. Although not immediately required, a title will be needed before an offer with the inventory item is published. The title of an inventory item is automatically populated if the seller specifies an eBay Product ID (ePID) or a Global Trade Item Number (GTIN) and eBay is able to find a matching product in the eBay Catalog. If the inventory item will become part of a single-variation offer, and the listing is not a product-based listing, the text in this field will become the actual listing title for the published offer. However, if the inventory item will become part of a multiple-variation offer, the text in title field of the inventory item group entity will actually become the listing title for the published offer instead, although a title can still be provided for the inventory item, and it will actually become the title of the variation.

This field will always be returned for an inventory item that is part of a published offer since a published offer will always have a listing title, but this field will only be returned if defined for inventory items that are not a part of a published offer.

Important!Publish offer note: This field is required before an offer can be published to create an active listing.


Max Length: 80 */ title?: string; - /** @description The Universal Product Code (UPC) value for the product. Although an ePID value is preferred when trying to find a product match in the eBay Catalog, this field can also be used in an attempt to find a product match in the eBay Catalog. If a product match is found in the eBay Catalog, the inventory item is automatically populated with available product details such as a title, a product description, product aspects (including the specified UPC value), and a link to any stock image that exists for the catalog product.

This field is returned if defined for an inventory item. If a UPC was passed in as an item specific name-value pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the upc field. */ + /** @description The Universal Product Code (UPC) value for the product. Although an ePID value is preferred when trying to find a product match in the eBay Catalog, this field can also be used in an attempt to find a product match in the eBay Catalog. If a product match is found in the eBay Catalog, the inventory item is automatically populated with available product details such as a title, a product description, product aspects (including the specified UPC value), and a link to any stock image that exists for the catalog product.

This field is returned if defined for an inventory item. If a UPC was passed in as an item specific name-value pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the upc field.

Note: If the item is being listed in a category that requires a UPC value, but one doesn't exist for the product, the seller must provide a string indicating that the product identifier is unavailable. This text varies by marketplace. Refer to Product Identifier Text for the specific text based on the listing marketplace.

*/ upc?: string[]; /** @description An array of one or more videoId values for the product. A video ID is a unique identifier that is automatically created by eBay when a seller successfully uploads a video to eBay using the uploadVideo method of the Media API.

For information on supported marketplaces and platforms, as well as other requirements and limitations of video support, please refer to Managing videos.

Note: Only one video per listing is supported. */ videoIds?: string[]; @@ -1524,7 +1526,7 @@ export interface components { Regulatory: { /** @description This container provides a collection of regulatory documents associated with the listing.

For information on removing one or more files from a listing using the updateOffer method, see Remove documents from listings. .

Note: As a part of General Product Safety Regulation (GPSR) requirements effective on December 13th, 2024, sellers operating in, or shipping to, EU-based countries or Northern Ireland are conditionally required to provide regulatory document information in their eBay listings. For more information on GPSR, see General Product Safety Regulation (GPSR). */ documents?: components["schemas"]["Document"][]; - /** @description This container provides information about the energy efficiency for certain durable goods.

Note: Sellers in the EU and UK can use this container to provide European energy efficiency (EEK) information for listings in the Tyres and Appliance categories. If no EEK information is specified through this container, it will be retrieved through a third party vendor. For more information, see Energy efficiency information.
Note: Energy efficiency information is not required for all categories. Use the getRegulatoryPolicies method of the Metadata API to return metadata on the eBay categories that recommend or require energy efficiency-related fields. */ + /** @description This container provides information about the energy efficiency for certain durable goods.

Note: This container can be used to provide European energy efficiency (EEK) information for listings in the Tyres and Appliance categories for sellers in the EU and UK, and Smartphones and Tablets categories for sellers in the US, AU, CA, EU, and UK. If no EEK information is specified through this container, it may be retrieved through a third party vendor. For more information, see Energy efficiency information.
Note: Energy efficiency information is not required for all categories. Use the getRegulatoryPolicies method of the Metadata API to return metadata on the eBay categories that recommend or require energy efficiency-related fields.

Important! When providing energy efficiency information on an appliance or smartphones and tablets listing, the energy efficiency rating and range of the item must be specified through the aspects field when creating the inventory item record. Use the getItemAspectsForCategory method of the Taxonomy API to retrieve applicable rating and range values for a specified category.

*/ energyEfficiencyLabel?: components["schemas"]["EnergyEfficiencyLabel"]; /** @description This container is used by the seller to provide hazardous material information for the listing.

The statements element is required to complete the Hazmat section of a listing.

The following elements are optional:
  • pictograms
  • signalWord
  • component
Note: Hazmat information is not required for all categories. Use the getRegulatoryPolicies method of the Metadata API to return metadata on the eBay categories that recommend or require Hazmat-related fields. */ hazmat?: components["schemas"]["Hazmat"]; @@ -1545,8 +1547,10 @@ export interface components { addressLine2?: string; /** @description The city of the Responsible Person's street address.

Max length: 64 characters */ city?: string; - /** @description The name of the the Responsible Person or entity.

Max length: 100 characters */ + /** @description The name of the Responsible Person or entity.

Max length: 100 characters */ companyName?: string; + /** @description The contact URL of the Responsible Person or entity.

Max length: 250 characters */ + contactUrl?: string; /** @description This defines the list of valid country codes, adapted from http://www.iso.org/iso/country_codes, ISO 3166-1 country code. List elements take the following form to identify a two-letter code with a short name in English, a three-digit code, and a three-letter code: For example, the entry for Japan includes Japan, 392, JPN. Short codes provide uniform recognition, avoiding language-dependent country names. The number code is helpful where Latin script may be problematic. Not all listed codes are universally recognized as countries, for example: code AQ is Antarctica, 010, ATA For implementation help, refer to eBay API documentation */ country?: string; /** @description The Responsible Person's email address.

Max length: 180 characters */ @@ -1573,7 +1577,7 @@ export interface components { availabilityDistributions?: components["schemas"]["AvailabilityDistribution"][]; /** * Format: int32 - * @description This container is used to set the total 'ship-to-home' quantity of the inventory item that will be available for purchase through one or more published offers. This field is not immediately required, but 'ship-to-home' quantity must be set before an offer of the inventory item can be published.

If an existing inventory item is being updated, and the 'ship-to-home' quantity already exists for the inventory item record, this field should be included again, even if the value is not changing, or the available quantity data will be lost.

Note: The availableQuantity field if set in the offer overrides the quantity field set here. See the note in Offer fields for details. + * @description This container is used to set the total 'ship-to-home' quantity of the inventory item that will be available for purchase through one or more published offers.

This field represents the total quantity of the item that is available for sale across all marketplaces. To update the available quantity allocated to a specific marketplace, use the availableQuantity field in the offer container associated with that marketplace.

Note: To ensure that the available quantity allocated to a specific marketplace doesn't exceed the total available stock, the quantity specified on a listing will be the minimum value between this field and the availableQuantity field.
If an existing inventory item is being updated, and the 'ship-to-home' quantity already exists for the inventory item record, this field should be included again, even if the value is not changing, or the available quantity data will be lost.

Important! This field is not immediately required, but 'ship-to-home' quantity must be set before an offer of the inventory item can be published.

*/ quantity?: number; }; @@ -1607,9 +1611,9 @@ export interface components { }; /** @description This type is used to express the special operating hours of a store location on a specific date. A specialHours container is needed when the store's opening hours on a specific date are different than the normal operating hours on that particular day of the week. */ SpecialHours: { - /** @description A date value is required for each specific date that the store location has special operating hours.

The timestamp is formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-04T07:09:00.000Z

This field is returned if set for the store location. */ + /** @description A date value is required for each specific date that the store location has special operating hours or is closed for that date.

The timestamp is formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2025-08-04T00:00:00.000Z

This field is returned if set for the store location. */ date?: string; - /** @description This container is used to define the opening and closing times of a store location on a specific date (defined in the date field). An intervals container is needed for each specific date that the store has special operating hours. These special operating hours on the specific date override the normal operating hours for the specific day of the week. If a store location closes for lunch (or any other period during the day) and then reopens, multiple open and close pairs are needed.

This container is returned if set for the store location. */ + /** @description This array is used to set the operating hours for the date specified in the corresponding date field. These special operating hours on this specific date will override the normal operating hours for that day of the week that is specified through the operatingHours array.

To specify a location as closed on the corresponding date, include the intervals array as empty.

If a location closes for lunch (or any other period during the day) and then reopens, multiple open and close pairs are needed to specify each interval where the location is open.

This container is returned if set for the store location. */ intervals?: components["schemas"]["Interval"][]; }; /** @description This type is used to specify product aspects for which variations within an inventory item group vary, and the order in which they appear in the listing. For example, t-shirts in an inventory item group may be available in multiple sizes and colors. */ @@ -1722,21 +1726,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -1771,21 +1781,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -1820,21 +1836,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -1864,21 +1886,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -1929,21 +1957,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -1964,28 +1998,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2017,21 +2059,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2061,21 +2109,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2126,21 +2180,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2161,28 +2221,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2212,21 +2280,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2277,21 +2351,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2312,28 +2392,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2368,21 +2456,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2414,21 +2508,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2458,21 +2558,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2495,28 +2601,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2553,21 +2667,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2602,21 +2722,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2654,21 +2780,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2706,14 +2838,18 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2743,21 +2879,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2798,28 +2940,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2840,28 +2990,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2896,21 +3054,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2940,21 +3104,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2989,14 +3159,18 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3026,21 +3200,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3066,21 +3246,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3110,21 +3296,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3153,28 +3345,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Location Already Exists */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3195,28 +3395,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3246,21 +3454,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3290,21 +3504,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3336,14 +3556,18 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3372,28 +3596,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; diff --git a/src/types/restful/specs/sell_logistics_v1_oas3.ts b/src/types/restful/specs/sell_logistics_v1_oas3.ts index 15249253..4b39e268 100644 --- a/src/types/restful/specs/sell_logistics_v1_oas3.ts +++ b/src/types/restful/specs/sell_logistics_v1_oas3.ts @@ -4,7 +4,7 @@ */ export interface paths { - "/shipping_quote": { + "/shipment/{shipmentId}/cancel": { parameters: { query?: never; header?: never; @@ -13,42 +13,42 @@ export interface paths { }; get?: never; put?: never; - /** @description The createShippingQuote method returns a shipping quote that contains a list of live "rates." Each rate represents an offer made by a shipping carrier for a specific service and each offer has a live quote for the base service cost. Rates have a time window in which they are "live," and rates expire when their purchase window ends. If offered by the carrier, rates can include shipping options (and their associated prices), and users can add any offered shipping option to the base service should they desire. Also, depending on the services required, rates can also include pickup and delivery windows. Each rate is for a single package and is based on the following information: The shipping origin The shipping destination The package size (weight and dimensions) Rates are identified by a unique eBay-assigned rateId and rates are based on price points, pickup and delivery time frames, and other user requirements. Because each rate offered must be compliant with the eBay shipping program, all rates reflect eBay-negotiated prices. The various rates returned in a shipping quote offer the user a choice from which they can choose a shipping service that best fits their needs. Select the rate for your shipment and using the associated rateId, call cerateFromShippingQuote to create a shipment and generate a shipping label that you can use to ship the package. */ - post: operations["createShippingQuote"]; + /** @description This method cancels the shipment associated with the specified shipment ID and the associated shipping label is deleted. When you cancel a shipment, the totalShippingCost of the canceled shipment is refunded to the account established by the user's billing agreement.

Note that you cannot cancel a shipment if you have used the associated shipping label. */ + post: operations["cancelShipment"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/shipping_quote/{shippingQuoteId}": { + "/shipment/create_from_shipping_quote": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method retrieves the complete details of the shipping quote associated with the specified shippingQuoteId value. A "shipping quote" pertains to a single specific package and contains a set of shipping "rates" that quote the cost to ship the package by different shipping carriers and services. The quotes are based on the package's origin, destination, and size. Call createShippingQuote to create a shippingQuoteId. */ - get: operations["getShippingQuote"]; + get?: never; put?: never; - post?: never; + /** @description This method creates a shipment based on the shippingQuoteId and rateId values supplied in the request. The rate identified by the rateId value specifies the carrier and service for the package shipment, and the rate ID must be contained in the shipping quote identified by the shippingQuoteId value. Call createShippingQuote to retrieve a set of live shipping rates.

Note: The Logistics API only supports USPS shipping rates and labels.
When you create a shipment, eBay generates a shipping label that you can download and use to ship your package.

In a createFromShippingQuote request, sellers can include a list of shipping options they want to add to the base service quoted in the selected rate. The list of available shipping options is specific to each quoted rate and if available, the options are listed in the rate container of the shipping quote.

In addition to a configurable return-to location and other details about the shipment, the response to this method includes:
  • The shipping carrier and service to be used for the package shipment
  • A list of selected shipping options, if any
  • The shipment tracking number
  • The total shipping cost (the sum cost of the base shipping service and any added options)
When you create a shipment, your billing agreement account is charged the sum of the baseShippingCost and the total cost of any additional shipping options you might have selected. Use the URL returned in labelDownloadURL field, or call downloadLabelFile with the shipmentId value from the response, to download a shipping label for your package.

Important! Sellers must set up their payment method before they can use this method to create a shipment and the associated shipping label.

Set up a billing agreement

Prior to using this method to create a shipment, sellers must first set up their billing agreement. Failure to do so will return Error 90030 Payment could not be completed.

The preferred method for sellers to set up their billing agreement is to go to Set up billing agreement and follow the on-screen directions.

Alternatively, sellers can do the following:
  • Go to https://www.ebay.com/ship/single/{order_id}, where {order_id} is that of the order for which the label is being printed.
  • When prompted, select PayPal.
  • Verify that Save PayPal for future purchases is selected.
  • Click Set up Payments which will open PayPal in a pop-up window.
  • Log in using PayPal credentials, and then follow the on-screen prompts to set up the billing agreement.
  • Once the agreement has been set up, sellers can leave this page as there is no need to actually print a label.
*/ + post: operations["createFromShippingQuote"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/shipment/create_from_shipping_quote": { + "/shipment/{shipmentId}/download_label_file": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + /** @description This method returns the shipping label file that was generated for the shipmentId value specified in the request. Call createFromShippingQuote to generate a shipment ID.

Note: The Logistics API only supports USPS shipping rates and labels.
Use the Accept HTTP header to specify the format of the returned file. The default file format is a PDF file. */ + get: operations["downloadLabelFile"]; put?: never; - /** @description This method creates a "shipment" based on the shippingQuoteId and rateId values supplied in the request. The rate identified by the rateId value specifies the carrier and service for the package shipment, and the rate ID must be contained in the shipping quote identified by the shippingQuoteId value. Call createShippingQuote to retrieve a set of live shipping rates. When you create a shipment, eBay generates a shipping label that you can download and use to ship your package. In a createFromShippingQuote request, sellers can include a list of shipping options they want to add to the base service quoted in the selected rate. The list of available shipping options is specific to each quoted rate and if available, the options are listed in the rate container of the of the shipping quote. In addition to a configurable return-to location and other details about the shipment, the response to this method includes: The shipping carrier and service to be used for the package shipment A list of selected shipping options, if any The shipment tracking number The total shipping cost (the sum cost of the base shipping service and any added options) When you create a shipment, your billing agreement account is charged the sum of the baseShippingCost and the total cost of any additional shipping options you might have selected. Use the URL returned in labelDownloadUrl field, or call downloadLabelFile with the shipmentId value from the response, to download a shipping label for your package. Important! Sellers must set up their payment method with eBay before they can use this method to create a shipment and the associated shipping label. */ - post: operations["createFromShippingQuote"]; + post?: never; delete?: never; options?: never; head?: never; @@ -62,7 +62,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the shipment details for the specified shipment ID. Call createFromShippingQuote to generate a shipment ID. */ + /** @description This method retrieves the shipment details for the specified shipment ID. Call createFromShippingQuote to generate a shipment ID. */ get: operations["getShipment"]; put?: never; post?: never; @@ -72,34 +72,34 @@ export interface paths { patch?: never; trace?: never; }; - "/shipment/{shipmentId}/download_label_file": { + "/shipping_quote": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method returns the shipping label file that was generated for the shipmentId value specified in the request. Call createFromShippingQuote to generate a shipment ID. Use the Accept HTTP header to specify the format of the returned file. The default file format is a PDF file. */ - get: operations["downloadLabelFile"]; + get?: never; put?: never; - post?: never; + /** @description The createShippingQuote method returns a shipping quote that contains a list of live "rates."

Each rate represents an offer made by a shipping carrier for a specific service and each offer has a live quote for the base service cost. Rates have a time window in which they are "live," and rates expire when their purchase window ends. If offered by the carrier, rates can include shipping options (and their associated prices), and users can add any offered shipping option to the base service should they desire. Also, depending on the services required, rates can also include pickup and delivery windows.

Note: The Logistics API only supports USPS shipping rates and labels.
Each rate is for a single package and is based on the following information:
  • The shipping origin
  • The shipping destination
  • The package size (weight and dimensions)
Rates are identified by a unique eBay-assigned rateId and rates are based on price points, pickup and delivery time frames, and other user requirements. Because each rate offered must be compliant with the eBay shipping program, all rates reflect eBay-negotiated prices.

The various rates returned in a shipping quote offer the user a choice from which they can choose a shipping service that best fits their needs. Select the rate for your shipment and using the associated rateId, call createFromShippingQuote to create a shipment and generate a shipping label that you can use to ship the package. */ + post: operations["createShippingQuote"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/shipment/{shipmentId}/cancel": { + "/shipping_quote/{shippingQuoteId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + /** @description This method retrieves the complete details of the shipping quote associated with the specified shippingQuoteId value.

A "shipping quote" pertains to a single specific package and contains a set of shipping "rates" that quote the cost to ship the package by different shipping carriers and services. The quotes are based on the package's origin, destination, and size.

Call createShippingQuote to create a shippingQuoteId. */ + get: operations["getShippingQuote"]; put?: never; - /** @description This method cancels the shipment associated with the specified shipment ID and the associated shipping label is deleted. When you cancel a shipment, the totalShippingCost of the canceled shipment is refunded to the account established by the user's billing agreement. Note that you cannot cancel a shipment if you have used the associated shipping label. */ - post: operations["cancelShipment"]; + post?: never; delete?: never; options?: never; head?: never; @@ -112,16 +112,16 @@ export interface components { schemas: { /** @description This complex type contains information about a shipping option that can be purchased in addition to the base shipping cost of a recommended rate. Additional options for each rate are defined, named, and offered by the selected shipping carrier. Examples include shipping insurance or the requirement for a recipient signature. */ AdditionalOption: { - /** @description The monetary cost of the additional shipping option identified by the optionType field. */ + /** @description The monetary cost of the additional shipping option identified by the optionType field. */ additionalCost?: components["schemas"]["Amount"]; /** @description The name of a shipping option that can be purchased in addition to the base shipping cost of this rate. The value supplied in this field must match exactly the option name as supplied by the selected rate. */ optionType?: string; }; /** @description A complex type that describes the value of a monetary amount as represented by a global currency. */ Amount: { - /** @description The base currency applied to the value field to establish a monetary amount. The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD. Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation */ + /** @description The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.

Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation */ currency?: string; - /** @description The monetary amount in the specified currency. */ + /** @description The monetary amount in the specified currency.

Required in the amount type. */ value?: string; }; /** @description This complex type contains contact information for an individual buyer or seller. */ @@ -143,7 +143,7 @@ export interface components { addressLine2?: string; /** @description The city in which the address is located. */ city?: string; - /** @description The country of the address, represented as two-letter ISO 3166 country code. For example, US represents the United States and DE represents Germany. For implementation help, refer to eBay API documentation */ + /** @description The country of the address, represented as two-letter ISO 3166 country code. For example, US represents the United States and DE represents Germany. For implementation help, refer to eBay API documentation */ countryCode?: string; /** @description The county (not country) in which the address is located. Counties typically contain multiple cities or towns. */ county?: string; @@ -152,19 +152,19 @@ export interface components { /** @description The state or province in which the address is located. States and provinces often contain multiple counties. */ stateOrProvince?: string; }; - /** @description This complex type contains the request payload for the createFromShippingQuote method. */ + /** @description This complex type contains the request payload for the createFromShippingQuote method. */ CreateShipmentFromQuoteRequest: { - /** @description Supply a list of one or more shipping options that the seller wants to purchase for this shipment. The baseShippingCost field that's associated with the selected shipping rate is the cost of the base service offered in the rate. In addition to the base service, sellers can add additional shipping services to the base service. Shipping options include things such as shipping insurance or a recipient's signature upon delivery. The cost of any added services is summed with the base shipping cost to determine the final cost for the shipment. All options added to the shipment must be chosen from the set of shipping options offered with the selected rate. */ + /** @description Supply a list of one or more shipping options that the seller wants to purchase for this shipment.

The baseShippingCost field that's associated with the selected shipping rate is the cost of the base service offered in the rate. In addition to the base service, sellers can add additional shipping services to the base service. Shipping options include things such as shipping insurance or a recipient's signature upon delivery. The cost of any added services is summed with the base shipping cost to determine the final cost for the shipment. All options added to the shipment must be chosen from the set of shipping options offered with the selected rate. */ additionalOptions?: components["schemas"]["AdditionalOption"][]; /** @description Optional text to be printed on the shipping label if the selected shipping carrier supports custom messages on their labels. */ labelCustomMessage?: string; - /** @description The seller's desired label size. Any supplied value is applied only if the shipping carrier supports multiple label sizes, otherwise the carrier's default label size is used. 4"x6" */ + /** @description The seller's desired label size. Any supplied value is applied only if the shipping carrier supports multiple label sizes, otherwise the carrier's default label size is used.

Currently, the only valid value is: 4"x6" */ labelSize?: string; - /** @description The eBay-assigned ID of the shipping rate that the seller selected for the shipment. This value is generated by a call to createShippingQuote and is returned in the rates.rateId field. */ + /** @description The unique eBay-assigned identifier of the shipping rate that the seller selected for the shipment. This value is generated by using the createShippingQuote method and is returned in the rates.rateId field. */ rateId?: string; - /** @description The optional return address and contact details for the shipment. The return address is printed on the shipping label. If not specified, the return address defaults to the shipFrom address returned in shipping quote. */ + /** @description The optional return address and contact details for the shipment. The return address is printed on the shipping label. If not specified, the return address defaults to the shipFrom address returned in shipping quote. */ returnTo?: components["schemas"]["Contact"]; - /** @description The unique eBay-assigned ID of the shipping quote that was generated by a call to createShippingQuote. */ + /** @description The unique eBay-assigned identifier of the shipping quote that was generated by the createShippingQuote method. */ shippingQuoteId?: string; }; /** @description This complex type defines the dimensions of a package to be shipped. */ @@ -180,7 +180,7 @@ export interface components { }; /** @description A container that defines the elements of error and warning message. */ Error: { - /** @description The category type for this error or warning. It takes a string that can have one of three values: Application: Indicates an exception or error occurred in the application code or at runtime. Examples include catching an exception in a service's business logic, system failures, or request errors from a dependency. Business: Used when your service or a dependent service refused to continue processing on the resource because of a business rule violation such as "Seller does not ship item to Antarctica" or "Buyer ineligible to purchase an alcoholic item". Business errors are not syntactical input errors. Request: Used when there is anything wrong with the request, such as authentication, syntactical errors, rate limiting or missing headers, bad HTTP header values, and so on. */ + /** @description The category type for this error or warning. It takes a string that can have one of three values:
  • Application: Indicates an exception or error occurred in the application code or at runtime. Examples include catching an exception in a service's business logic, system failures, or request errors from a dependency.
  • Business: Used when your service or a dependent service refused to continue processing on the resource because of a business rule violation such as "Seller does not ship item to Antarctica" or "Buyer ineligible to purchase an alcoholic item". Business errors are not syntactical input errors.
  • Request: Used when there is anything wrong with the request, such as authentication, syntactical errors, rate limiting or missing headers, bad HTTP header values, and so on.
*/ category?: string; /** @description Name of the domain containing the service or application. */ domain?: string; @@ -189,15 +189,15 @@ export interface components { * @description A positive integer that uniquely identifies the specific error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms. */ errorId?: number; - /** @description Identifies specific request elements associated with the error, if any. inputRefId's response is format specific. For JSON, use JSONPath notation. */ + /** @description Identifies specific request elements associated with the error, if any. inputRefId's response is format specific. For JSON, use JSONPath notation. */ inputRefIds?: string[]; /** @description An expanded version of message that should be around 100-200 characters long, but is not required to be such. */ longMessage?: string; /** @description An end user and app-developer friendly device agnostic message. It explains what the error or warning is, and how to fix it (in a general sense). Its value is at most 50 characters long. If applicable, the value is localized in the end user's requested locale. */ message?: string; - /** @description Identifies specific response elements associated with the error, if any. Path format is the same as inputRefId. */ + /** @description Identifies specific response elements associated with the error, if any. Path format is the same as inputRefId. */ outputRefIds?: string[]; - /** @description This optional complex field type contains a list of one or more context-specific ErrorParameter objects, with each item in the list entry being a parameter (or input field name) that caused an error condition. Each ErrorParameter object consists of two fields, a name and a value. */ + /** @description This optional complex field type contains a list of one or more context-specific ErrorParameter objects, with each item in the list entry being a parameter (or input field name) that caused an error condition. Each ErrorParameter object consists of two fields, a name and a value. */ parameters?: components["schemas"]["ErrorParameter"][]; /** @description Name of the domain's subsystem or subdivision. For example, checkout is a subdomain in the buying domain. */ subdomain?: string; @@ -211,9 +211,9 @@ export interface components { }; /** @description This complex type defines an order from which a seller is including one or more line items in a single package to be shipped. */ Order: { - /** @description The e-commerce platform or environment where the order was created. Use the value EBAY to get the rates available for eBay orders. */ + /** @description The marketplace where the order was created.

Use the value EBAY to get the rates available for eBay orders. */ channel?: string; - /** @description The unique ID of the order supplied by the channel of origin. For eBay orders, this would be the orderId. */ + /** @description The unique identifier of the order. The getOrders method of the Fulfillment API can be used to retrieve order IDs. */ orderId?: string; }; /** @description This complex type specifies the dimensions and weight of a package. */ @@ -230,26 +230,26 @@ export interface components { }; /** @description This complex type defines a time window for the pickup of a package. */ PickupSlot: { - /** @description The date and time the pickup slot ends, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. Format: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS].[SSS]Z Example: 2018-08-20T07:09:00.000Z */ + /** @description The date and time the pickup slot ends, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-20T07:09:00.000Z */ pickupSlotEndTime?: string; - /** @description Seller-defined name for the pickup slot. */ + /** @description Seller-defined name for the pickup slot. */ pickupSlotId?: string; - /** @description The date and time the pickup slot begins, formatted as an ISO 8601 UTC string. */ + /** @description The date and time the pickup slot begins, formatted as an ISO 8601 UTC string. */ pickupSlotStartTime?: string; - /** @description The time zone of the pickup location, returned as Time Zone Database ID (also know as an Olson time zone ID). */ + /** @description The time zone of the pickup location, returned as Time Zone Database ID (also know as an Olson time zone ID). */ pickupSlotTimeZone?: string; }; - /** @description The "rate" that has been selected and purchased for the shipment, as referenced by the rateId value. */ + /** @description The "rate" that has been selected and purchased for the shipment, as referenced by the rateId value. */ PurchasedRate: { /** @description An list of additional, optional features that have been purchased for the shipment. */ additionalOptions?: components["schemas"]["AdditionalOption"][]; - /** @description The amount of the "base cost" for the shipment as set by the given carrier for the specified service. This cost excludes any addition costs accrued from the addition of any optional shipping options. */ + /** @description The amount of the "base cost" for the shipment as set by the given carrier for the specified service. This cost excludes any addition costs accrued from the addition of any optional shipping options. */ baseShippingCost?: components["schemas"]["Amount"]; - /** @description The time zone of the destination according to Time Zone Database. For example, "America/Los_Angeles". */ + /** @description The time zone of the destination according to Time Zone Database. For example, "America/Los_Angeles". */ destinationTimeZone?: string; - /** @description A string value representing maximum (latest) estimated delivery time, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. Format: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS].[SSS]Z Example: 2018-08-20T07:09:00.000Z */ + /** @description A string value representing maximum (latest) estimated delivery time, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-20T07:09:00.000Z */ maxEstimatedDeliveryDate?: string; - /** @description A string value representing minimum (earliest) estimated delivery time, formatted as an ISO 8601ISO 8601 UTC string. */ + /** @description A string value representing minimum (earliest) estimated delivery time, formatted as an ISO 8601ISO 8601 UTC string. */ minEstimatedDeliveryDate?: string; /** @description A list of pickup networks compatible with the shipping service. */ pickupNetworks?: string[]; @@ -263,7 +263,7 @@ export interface components { shippingCarrierCode?: string; /** @description The name of the shipping carrier. */ shippingCarrierName?: string; - /** @description The unique eBay-generated ID of the shipping quote from which the seller selected a shipping rate (rateId). */ + /** @description The unique eBay-generated ID of the shipping quote from which the seller selected a shipping rate (rateId). */ shippingQuoteId?: string; /** @description String ID code for the shipping service selected for the package shipment. This is a service that the shipping carrier supplies. */ shippingServiceCode?: string; @@ -274,13 +274,13 @@ export interface components { }; /** @description This complex type contains live quote information about a shipping service that's available for a given shipping quote request, including the shipping carrier and service, delivery window, shipping cost, and additional shipping options. */ Rate: { - /** @description Contains service and pricing information for one or more shipping options that are offered by the carrier and can be purchased in addition to the base shipping service provided by this rate. Shipping options can include items such as INSURANCE and SIGNATURE. */ + /** @description Contains service and pricing information for one or more shipping options that are offered by the carrier and can be purchased in addition to the base shipping service provided by this rate. Shipping options can include items such as INSURANCE and SIGNATURE. */ additionalOptions?: components["schemas"]["AdditionalOption"][]; - /** @description A live quote for the cost that the carrier (identified by shippingCarrierCode) is charging for the shipping service being offered (identified by shippingServiceCode), excluding any additional shipping options. */ + /** @description A live quote for the cost that the carrier (identified by shippingCarrierCode) is charging for the shipping service being offered (identified by shippingServiceCode), excluding any additional shipping options. */ baseShippingCost?: components["schemas"]["Amount"]; - /** @description The name of the time zone region, as defined in the IANA Time Zone Database, to which the package is being shipped. Delivery dates are calculated relative to this time zone. Note: This is different from a Coordinated Universal Time (UTC) offset. For example, the America/Los_Angeles time zone identifies a region with the UTC standard time offset of -08:00, but so do several other time zones, including America/Tijuana,America/Dawson, and Pacific/Pitcairn. */ + /** @description The name of the time zone region, as defined in the IANA Time Zone Database, to which the package is being shipped.

Delivery dates are calculated relative to this time zone.

Note: This is different from a Coordinated Universal Time (UTC) offset. For example, the America/Los_Angeles time zone identifies a region with the UTC standard time offset of -08:00, but so do several other time zones, including America/Tijuana,America/Dawson, and Pacific/Pitcairn. */ destinationTimeZone?: string; - /** @description The latest stated date and time the shipment will be delivered at this rate. The time stamp is formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. Format: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS].[SSS]Z Example: 2018-08-20T07:09:00.000Z */ + /** @description The latest stated date and time the shipment will be delivered at this rate.

The time stamp is formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-20T07:09:00.000Z */ maxEstimatedDeliveryDate?: string; /** @description The estimated earliest date and time the shipment will be delivered at this rate. The time stamp is formatted as an ISO 8601 UTC string. */ minEstimatedDeliveryDate?: string; @@ -288,17 +288,17 @@ export interface components { pickupNetworks?: string[]; /** @description A list of available pickup slots for the package. */ pickupSlots?: components["schemas"]["PickupSlot"][]; - /** @description The type of pickup or drop-off service associated with the pickupSlots time frames. For implementation help, refer to eBay API documentation */ + /** @description The type of pickup or drop-off service associated with the pickupSlots time frames. For implementation help, refer to eBay API documentation */ pickupType?: string; /** @description The unique eBay-assigned ID for this shipping rate. */ rateId?: string; - /** @description A list of reasons this rate is recommended. Available values are: BUYER_CHOSEN — The rate meets or exceeds the requirements of the buyer's preferred shipping option. CHEAPEST_ON_TIME — The rate is the cheapest rate available that will provide delivery within the seller's time frame commitment. EBAY_PLUS_OK — The rate complies with the shipping requirements of the eBay Plus program. FASTEST_ON_TIME — The rate has the fastest shipping time, and will provide delivery within the seller's time frame commitment. GUARANTEED_DELIVERY_OK — The rate complies with the shipping requirements of the eBay Guaranteed Delivery program. */ + /** @description A list of reasons this rate is recommended. Available values are:
  • BUYER_CHOSEN — The rate meets or exceeds the requirements of the buyer's preferred shipping option.
  • CHEAPEST_ON_TIME — The rate is the cheapest rate available that will provide delivery within the seller's time frame commitment.
  • EBAY_PLUS_OK — The rate complies with the shipping requirements of the eBay Plus program.
  • FASTEST_ON_TIME — The rate has the fastest shipping time, and will provide delivery within the seller's time frame commitment.
  • GUARANTEED_DELIVERY_OK — The rate complies with the shipping requirements of the eBay Guaranteed Delivery program.
*/ rateRecommendation?: string[]; - /** @description The code name of the shipping carrier who will provide the service identified by shippingServiceCode. */ + /** @description The code name of the shipping carrier who will provide the service identified by shippingServiceCode. */ shippingCarrierCode?: string; /** @description The common name of the shipping carrier. */ shippingCarrierName?: string; - /** @description The code name of the shipping service to be provided by the carrier identified by shippingCarrierCode. */ + /** @description The code name of the shipping service to be provided by the carrier identified by shippingCarrierCode. */ shippingServiceCode?: string; /** @description The common name of the shipping service. */ shippingServiceName?: string; @@ -307,25 +307,25 @@ export interface components { Shipment: { /** @description Cancellation status for the package, if one exists. */ cancellation?: components["schemas"]["ShipmentCancellation"]; - /** @description The date and time the shipment was created, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. Format: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS].[SSS]Z Example: 2018-08-20T07:09:00.000Z */ + /** @description The date and time the shipment was created, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-20T07:09:00.000Z */ creationDate?: string; /** @description If supported by the selected shipping carrier, this field can contain optional seller text to be printed on the shipping label. */ labelCustomMessage?: string; - /** @description The direct URL the seller can use to download an image of the shipping label. By default, the file format is PDF. See downloadLabelFile for requesting different response file formats. */ + /** @description The direct URL the seller can use to download an image of the shipping label. By default, the file format is PDF. See downloadLabelFile for requesting different response file formats. */ labelDownloadUrl?: string; - /** @description The seller's desired label size. The support for multi-sized labels is shipping-carrier specific and if the size requested in the creaateFromShippingQuote call matches a size the carrier supports, the value will be represented here in the shipment. Currently, the only valid value is: 4"x6" */ + /** @description The seller's desired label size. The support for multi-sized labels is shipping-carrier specific and if the size requested in the creaateFromShippingQuote call matches a size the carrier supports, the value will be represented here in the shipment.

Currently, the only valid value is: 4"x6" */ labelSize?: string; - /** @description This list value is optionally assigned by the seller. When present, each element in the returned list contains seller-assigned information about an order (such as an order number). Because a package can contain all or part of one or more orders, this field provides a way for sellers to identify the packages that contain specific orders. */ + /** @description A list of one or more orders that will be shipped in the shipping package. */ orders?: components["schemas"]["Order"][]; /** @description The weight and dimensions of the package. */ packageSpecification?: components["schemas"]["PackageSpecification"]; - /** @description The shipping rate that the seller has chosen to purchase for this shipment. Each rate, identified by a rateId, contains the offered base service, options, and shipping parameters that were selected for the package shipment. */ + /** @description The shipping rate that the seller has chosen to purchase for this shipment. Each rate, identified by a rateId, contains the offered base service, options, and shipping parameters that were selected for the package shipment. */ rate?: components["schemas"]["PurchasedRate"]; - /** @description The address and contact details that should be used for item returns. Sellers have the option to define a return address that is different from their shipFrom address. If not specified, the return address defaults to the shipFrom address in the shipping quote. */ + /** @description The address and contact details that should be used for item returns. Sellers have the option to define a return address that is different from their shipFrom address. If not specified, the return address defaults to the shipFrom address in the shipping quote. */ returnTo?: components["schemas"]["Contact"]; /** @description The address and contact details for the origin of the package shipment. */ shipFrom?: components["schemas"]["Contact"]; - /** @description The unique eBay-assigned ID for the shipment. The ID is generated when the shipment is created by a call to createFromShippingQuote. */ + /** @description The unique eBay-assigned ID for the shipment. The ID is generated when the shipment is created by a call to createFromShippingQuote. */ shipmentId?: string; /** @description A unique carrier-assigned ID string that can be used to track the shipment. */ shipmentTrackingNumber?: string; @@ -334,35 +334,35 @@ export interface components { }; /** @description This type defines a shipment cancellation by the date and time the cancellation request was made and the current status of the request. */ ShipmentCancellation: { - /** @description The time and date the request was made to cancel the shipment, formatted as an ISO 8601 UTC string. */ + /** @description The time and date the request was made to cancel the shipment, formatted as an ISO 8601 UTC string. */ cancellationRequestedDate?: string; /** @description This enum specifies the current cancellation status of a shipment, if a cancellation request has been made. For implementation help, refer to eBay API documentation */ cancellationStatus?: string; }; - /** @description This complex type describes a "shipping quote," which contains the parameters for a package shipment. The shipping quote contains a list of "live quotes" or rates for the shipment. Rates are offerd by a carrier for a particular service, of set of services, for shipping the package. Included in the shipping quote are the package specifications, the shipment's origin and destination addresses, and the shipping parameters specified by the seller. Use the rateId value to select the specific service you want when you create a shipment by calling createFromShippingQuote. */ + /** @description This complex type describes a "shipping quote," which contains the parameters for a package shipment. The shipping quote contains a list of "live quotes" or rates for the shipment. Rates are offerd by a carrier for a particular service, of set of services, for shipping the package. Included in the shipping quote are the package specifications, the shipment's origin and destination addresses, and the shipping parameters specified by the seller.

Use the rateId value to select the specific service you want when you create a shipment by calling createFromShippingQuote. */ ShippingQuote: { /** @description The date and time this quote was created, expressed as an ISO 8601 UTC string. */ creationDate?: string; /** @description The last date and time that this quote will be honored, expressed as an ISO 8601 UTC string. After this time the quote expires and the expressed rates can no longer be purchased. */ expirationDate?: string; - /** @description This list value is optionally assigned by the seller. When present, each element in the returned list contains seller-assigned information about an order (such as an order number). Because a package can contain all or part of one or more orders, this field provides a way for sellers to identify the packages that contain specific orders. */ + /** @description A list of one or more orders that will be shipped in the shipping package. */ orders?: components["schemas"]["Order"][]; /** @description The weight and dimensions of the package covered by this shipping quote. */ packageSpecification?: components["schemas"]["PackageSpecification"]; - /** @description A list of rates where each rate, as identified by a rateId, contains information about a specific shipping service offered by a carrier. Rates include shipping carrier and service, the to and from locations, the pickup and delivery windows, the seller's shipping parameters, the service constraints, and the cost for the base service and a list of additional shipping options. Each rate offered is supported by a label service where you can purchase the rate, and associated shipping label, via a call to createFromShippingQuote. */ + /** @description A list of rates where each rate, as identified by a rateId, contains information about a specific shipping service offered by a carrier. Rates include shipping carrier and service, the to and from locations, the pickup and delivery windows, the seller's shipping parameters, the service constraints, and the cost for the base service and a list of additional shipping options.

Note: The Logistics API only supports USPS shipping rates and labels.
Each rate offered is supported by a label service where you can purchase the rate, and associated shipping label, via a call to createFromShippingQuote. */ rates?: components["schemas"]["Rate"][]; /** @description The address and contact details for the origin of the shipment. */ shipFrom?: components["schemas"]["Contact"]; /** @description The unique eBay-assigned ID for this shipping quote. The value of this field is associated with a specific package, based on its origin, destination, and size. */ shippingQuoteId?: string; - /** @description The address and contact details for the origin of the shipment. */ + /** @description The address and contact details for the origin of the shipment. */ shipTo?: components["schemas"]["Contact"]; /** @description A list of any warnings triggered by the request. */ warnings?: components["schemas"]["Error"][]; }; - /** @description This complex type defines the request body for createShippingQuote. Sellers request a quote for a shipment by defining the "To" and "From" addresses for the package, plus the package's size. Carriers respond by offering up a "rate" for the service of theirs that best fits seller's needs. */ + /** @description This complex type defines the request body for createShippingQuote. Sellers request a quote for a shipment by defining the "To" and "From" addresses for the package, plus the package's size.

Carriers respond by offering up a "rate" for the service of theirs that best fits seller's needs. */ ShippingQuoteRequest: { - /** @description A seller-defined list that contains information about the orders in the package. This allows sellers to include information about the line items in the package with the shipment information. A package can contain any number of line items from one or more orders, providing they all ship in the same package. Maximum list size: 10 */ + /** @description In this array, the seller specifies one or more orders that will be shipped in the shipping package.

A shipping package can contain any number of line items from one or more orders, providing they all ship in the same package.

Maximum list size: 10 */ orders?: components["schemas"]["Order"][]; /** @description Declares the weight and dimensions of the package. */ packageSpecification?: components["schemas"]["PackageSpecification"]; @@ -373,9 +373,9 @@ export interface components { }; /** @description This complex type contains information about the weight of an object such as a shipping package. */ Weight: { - /** @description The unit of measurement used to specify the weight of a shipping package. Both the unit and value fields are required if the weight container is used. If the English system of measurement is being used, the applicable values for weight units are POUND and OUNCE. If the metric system of measurement is being used, the applicable values for weight units are KILOGRAM and GRAM. The metric system is used by most countries outside of the US. For implementation help, refer to eBay API documentation */ + /** @description The unit of measurement used to specify the weight of a shipping package. Both the unit and value fields are required if the weight container is used. If the English system of measurement is being used, the applicable values for weight units are POUND and OUNCE. If the metric system of measurement is being used, the applicable values for weight units are KILOGRAM and GRAM. The metric system is used by most countries outside of the US. For implementation help, refer to eBay API documentation */ unit?: string; - /** @description The numeric value of the weight of the package, as measured by the value of unit. */ + /** @description The numeric value of the weight of the package, as measured by the value of unit. */ value?: string; }; }; @@ -387,27 +387,25 @@ export interface components { } export type $defs = Record; export interface operations { - createShippingQuote: { + cancelShipment: { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - /** @description The request object for createShippingQuote. */ - requestBody: { - content: { - "application/json": components["schemas"]["ShippingQuoteRequest"]; + path: { + /** @description This path parameter specifies the unique eBay-assigned ID of the shipment to be canceled.

The shipmentId value is generated and returned by the createFromShippingQuote method. */ + shipmentId: string; }; + cookie?: never; }; + requestBody?: never; responses: { - /** @description Created */ - 201: { + /** @description Success */ + 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["ShippingQuote"]; + "application/json": components["schemas"]["Shipment"]; }; }; /** @description Bad Request */ @@ -417,6 +415,13 @@ export interface operations { }; content?: never; }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; /** @description Conflict */ 409: { headers: { @@ -433,25 +438,32 @@ export interface operations { }; }; }; - getShippingQuote: { + createFromShippingQuote: { parameters: { query?: never; - header?: never; - path: { - /** @description This path parameter specifies the unique eBay-assigned ID of the shipping quote you want to retrieve. The shippingQuoteId value is generated and returned by a call to createShippingQuote. */ - shippingQuoteId: string; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + /** @description This header parameter specifies the eBay marketplace for the shipment being created.

For a list of valid values, refer to the section Marketplace ID Values in the Using eBay RESTful APIs guide. */ + "X-EBAY-C-MARKETPLACE-ID": string; }; + path?: never; cookie?: never; }; - requestBody?: never; + /** @description The create shipment from quote request. */ + requestBody: { + content: { + "application/json": components["schemas"]["CreateShipmentFromQuoteRequest"]; + }; + }; responses: { - /** @description Success */ - 200: { + /** @description Created */ + 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["ShippingQuote"]; + "application/json": components["schemas"]["Shipment"]; }; }; /** @description Bad Request */ @@ -461,8 +473,8 @@ export interface operations { }; content?: never; }; - /** @description Not Found */ - 404: { + /** @description Conflict */ + 409: { headers: { [name: string]: unknown; }; @@ -477,27 +489,28 @@ export interface operations { }; }; }; - createFromShippingQuote: { + downloadLabelFile: { parameters: { query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description The create shipment from quote request. */ - requestBody: { - content: { - "application/json": components["schemas"]["CreateShipmentFromQuoteRequest"]; + header: { + /** @description This header specifies the format of the returned file. For this method, the value of the header should be Accept: application/pdf. */ + Accept: string; }; + path: { + /** @description This path parameter specifies the unique eBay-assigned identifier of the shipment associated with the shipping label you want to download.

The shipmentId value is generated and returned by the createFromShippingQuote method. */ + shipmentId: string; + }; + cookie?: never; }; + requestBody?: never; responses: { - /** @description Created */ - 201: { + /** @description Success */ + 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Shipment"]; + "application/pdf": string[]; }; }; /** @description Bad Request */ @@ -507,8 +520,8 @@ export interface operations { }; content?: never; }; - /** @description Conflict */ - 409: { + /** @description Not Found */ + 404: { headers: { [name: string]: unknown; }; @@ -528,7 +541,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter specifies the unique eBay-assigned ID of the shipment you want to retrieve. The shipmentId value is generated and returned by a call to createFromShippingQuote. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the shipment you want to retrieve.

The shipmentId value is generated and returned by the createFromShippingQuote method. */ shipmentId: string; }; cookie?: never; @@ -567,25 +580,32 @@ export interface operations { }; }; }; - downloadLabelFile: { + createShippingQuote: { parameters: { query?: never; - header?: never; - path: { - /** @description This path parameter specifies the unique eBay-assigned ID of the shipment associated with the shipping label you want to download. The shipmentId value is generated and returned by a call to createFromShippingQuote. */ - shipmentId: string; + header: { + /** @description This header parameter specifies the eBay marketplace for the shipping quote that is being created.

For a list of valid values, refer to the section Marketplace ID Values in the Using eBay RESTful APIs guide. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; + path?: never; cookie?: never; }; - requestBody?: never; + /** @description The request object for createShippingQuote. */ + requestBody: { + content: { + "application/json": components["schemas"]["ShippingQuoteRequest"]; + }; + }; responses: { - /** @description Success */ - 200: { + /** @description Created */ + 201: { headers: { [name: string]: unknown; }; content: { - "application/pdf": string[]; + "application/json": components["schemas"]["ShippingQuote"]; }; }; /** @description Bad Request */ @@ -595,8 +615,8 @@ export interface operations { }; content?: never; }; - /** @description Not Found */ - 404: { + /** @description Conflict */ + 409: { headers: { [name: string]: unknown; }; @@ -611,13 +631,13 @@ export interface operations { }; }; }; - cancelShipment: { + getShippingQuote: { parameters: { query?: never; header?: never; path: { - /** @description This path parameter specifies the unique eBay-assigned ID of the shipment to be canceled. The shipmentId value is generated and returned by a call to createFromShippingQuote. */ - shipmentId: string; + /** @description This path parameter specifies the unique eBay-assigned ID of the shipping quote you want to retrieve.

The shippingQuoteId value is generated and returned by the createShippingQuote method. */ + shippingQuoteId: string; }; cookie?: never; }; @@ -629,7 +649,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Shipment"]; + "application/json": components["schemas"]["ShippingQuote"]; }; }; /** @description Bad Request */ @@ -646,13 +666,6 @@ export interface operations { }; content?: never; }; - /** @description Conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; /** @description Internal Server Error */ 500: { headers: { diff --git a/src/types/restful/specs/sell_marketing_v1_oas3.ts b/src/types/restful/specs/sell_marketing_v1_oas3.ts index 15744e50..3d208511 100644 --- a/src/types/restful/specs/sell_marketing_v1_oas3.ts +++ b/src/types/restful/specs/sell_marketing_v1_oas3.ts @@ -13,7 +13,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method adds multiple listings that are managed with the Inventory API to an existing Promoted Listings campaign.

For Promoted Listings Standard (PLS) campaigns using the Cost Per Sale (CPS) model, bulk ads may be directly created for the listing.

For each listing specified in the request, this method:
  • Creates an ad for the listing.
  • Sets the bid percentage (also known as the ad rate) for the ads created.
  • Associates the ads created with the specified campaign.

To create ads for a listing, specify their inventoryReferenceId and inventoryReferenceType, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to which you want to associate the ads using the campaign_id path parameter.

Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.

Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns. */ + /** @description This method adds multiple listings that are managed with the Inventory API to an existing Promoted Listings campaign.

For general strategy campaigns using the Cost Per Sale (CPS) model, bulk ads may be directly created for the listing.

For each listing specified in the request, this method:
  • Creates an ad for the listing.
  • Sets the bid percentage (also known as the ad rate) for the ads created.
  • Associates the ads created with the specified campaign.

To create ads for a listing, specify their inventoryReferenceId and inventoryReferenceType, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to which you want to associate the ads using the campaign_id path parameter.

Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.

Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns. */ post: operations["bulkCreateAdsByInventoryReference"]; delete?: never; options?: never; @@ -30,7 +30,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method adds multiple listings to an existing Promoted Listings campaign using listingId values generated by the Trading API or Inventory API, or using values generated by an ad group ID.

For Promoted Listings Standard (PLS) campaigns using the Cost Per Sale (CPS) funding model, bulk ads may be directly created for the listing.

For each listing ID specified in the request, this method:

  • Creates an ad for the listing.
  • Sets the bid percentage (also known as the ad rate) for the ad.
  • Associates the ad with the specified campaign.

To create an ad for a listing, specify its listingId, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to associate the ads with using the campaign_id path parameter. Listing IDs are generated by eBay when a seller creates listings with the Trading API.

You can specify a maximum of 500 listings per call and each campaign can have ads for a maximum of 50,000 items. Be aware when using this call that each variation in a multiple-variation listing creates an individual ad.

For Promoted Listings Advanced (PLA) campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, ads cannot be created.

For the ad group specified in the request, this method associates the ad with the specified ad group.

To create an ad for an ad group, specify the name of the ad group plus the defaultBid for the ad in the payload of the request. Specify the campaign to associate the ads with using the campaign_id path parameter. Ad groups are generated using the createAdGroup method.

You can specify one or more ad groups per campaign.

Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns.

*/ + /** @description This method adds multiple listings to an existing Promoted Listings campaign using listingId values generated by the Trading API or Inventory API, or using values generated by an ad group ID.

For general strategy campaigns using the Cost Per Sale (CPS) funding model, bulk ads may be directly created for the listing.

For each listing ID specified in the request, this method:

  • Creates an ad for the listing.
  • Sets the bid percentage (also known as the ad rate) for the ad.
  • Associates the ad with the specified campaign.

To create an ad for a listing, specify its listingId, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to associate the ads with using the campaign_id path parameter. Listing IDs are generated by eBay when a seller creates listings with the Trading API.

You can specify a maximum of 500 listings per call and each campaign can have ads for a maximum of 50,000 items. Be aware when using this call that each variation in a multiple-variation listing creates an individual ad.

For manual targeting priority strategy campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, ads cannot be created.

Note: Ad groups are not required when adding listings to a smart targeting campaign.

For the ad group specified in the request, this method associates the ad with the specified ad group.

To create an ad for an ad group, specify the name of the ad group plus the defaultBid for the ad in the payload of the request. Specify the campaign to associate the ads with using the campaign_id path parameter. Ad groups are generated using the createAdGroup method.

You can specify one or more ad groups per campaign.

Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns.

*/ post: operations["bulkCreateAdsByListingId"]; delete?: never; options?: never; @@ -115,7 +115,7 @@ export interface paths { }; get?: never; put?: never; - /** @description Note: This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to Promoted Listings Advanced Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the getAdvertisingEligibility method in Account API.
This method works with listings created with either the Trading API or the Inventory API.

This method updates the status of ads in bulk.

Specify the campaign_id you want to update as a URI parameter, and configure the adGroupStatus in the request payload. */ + /** @description Note: This method is only available for select partners who have been approved for the priority strategy program. For information about how to request access to this program, refer to Priority Strategy Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for priority strategy, use the getAdvertisingEligibility method in Account API.
This method works with listings created with either the Trading API or the Inventory API.

This method updates the status of ads in bulk.

Specify the campaign_id you want to update as a URI parameter, and configure the adGroupStatus in the request payload. */ post: operations["bulkUpdateAdsStatus"]; delete?: never; options?: never; @@ -132,7 +132,7 @@ export interface paths { }; get?: never; put?: never; - /** @description Note: This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to Promoted Listings Advanced Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the getAdvertisingEligibility method in Account API.
This method works with listings created with either the Trading API or the Inventory API.

The method updates the status of ads in bulk, based on listing ID values.

Specify the campaign_id as a path parameter and supply a set of listing IDs with their updated adStatus values in the request body. An eBay listing ID is generated when a listing is created with the Trading API.

Get the campaign IDs for a seller by calling getCampaigns and call getAds to retrieve a list of seller inventory reference IDs. */ + /** @description The method updates the status of ads in bulk, based on listing ID values.

Specify the campaign_id as a path parameter and supply a set of listing IDs with their updated adStatus values in the request body. An eBay listing ID is generated when a listing is created with the Trading API.

Get the campaign IDs for a seller by calling getCampaigns and call getAds to retrieve a list of seller inventory reference IDs. */ post: operations["bulkUpdateAdsStatusByListingId"]; delete?: never; options?: never; @@ -150,7 +150,7 @@ export interface paths { /** @description This method retrieves Promoted Listings ads that are associated with listings created with either the Trading API or the Inventory API.

The method retrieves ads related to the specified campaign. Specify the Promoted Listings campaign to target with the campaign_id path parameter.

Because of the large number of possible results, you can use query parameters to paginate the result set by specifying a limit, which dictates how many ads to return on each page of the response. You can also specify how many ads to skip in the result set before returning the first result using the offset path parameter.

Call getCampaigns to retrieve the current campaign IDs for the seller.

*/ get: operations["getAds"]; put?: never; - /** @description This method adds a listing to an existing Promoted Listings campaign using a listingId value generated by the Trading API or Inventory API, or using a value generated by an ad group ID.

For Promoted Listings Standard (PLS) campaigns using the Cost Per Sale (CPS) funding model, an ad may be directly created for the listing.

For the listing ID specified in the request, this method:

  • Creates an ad for the listing.
  • Sets the bid percentage (also known as the ad rate) for the ad.
  • Associates the ad with the specified campaign.

To create an ad for a listing, specify its listingId, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to associate the ad with using the campaign_id path parameter. Listing IDs are generated by eBay when a seller creates listings with the Trading API.

For Promoted Listings Advanced (PLA) campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, an ad cannot be created.

For the ad group specified in the request, this method associates the ad with the specified ad group.

To create an ad for an ad group, specify the name of the ad group in the payload of the request. Specify the campaign to associate the ads with using the campaign_id path parameter. Ad groups are generated using the createAdGroup method.

You can specify one or more ad groups per campaign.

Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns.

This call has no response payload. If the ad is successfully created, a 201 Created HTTP status code and the getAd URI of the ad are returned in the location header.

*/ + /** @description This method adds a listing to an existing Promoted Listings campaign using a listingId value generated by the Trading API or Inventory API, or using a value generated by an ad group ID.

For general strategy campaigns using the Cost Per Sale (CPS) funding model, an ad may be directly created for the listing.

For the listing ID specified in the request, this method:

  • Creates an ad for the listing.
  • Sets the bid percentage (also known as the ad rate) for the ad.
  • Associates the ad with the specified campaign.

To create an ad for a listing, specify its listingId, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to associate the ad with using the campaign_id path parameter. Listing IDs are generated by eBay when a seller creates listings with the Trading API.

For manual targeting priority strategy campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, ads cannot be created.

Note: Ad groups are not required when adding listings to a smart targeting campaign.

For the ad group specified in the request, this method associates the ad with the specified ad group.

To create an ad for an ad group, specify the name of the ad group in the payload of the request. Specify the campaign to associate the ads with using the campaign_id path parameter. Ad groups are generated using the createAdGroup method.

You can specify one or more ad groups per campaign.

Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns.

This call has no response payload. If the ad is successfully created, a 201 Created HTTP status code and the getAd URI of the ad are returned in the location header.

*/ post: operations["createAdByListingId"]; delete?: never; options?: never; @@ -167,7 +167,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method adds a listing that is managed with the Inventory API to an existing Promoted Listings campaign.

For Promoted Listings Standard (PLS) campaigns using the Cost Per Sale (CPS) funding model, an ad may be directly created for the listing.

For each listing specified in the request, this method:
  • Creates an ad for the listing.
  • Sets the bid percentage (also known as the ad rate) for the ads created.
  • Associates the created ad with the specified campaign.

To create an ad for a listing, specify its inventoryReferenceId and inventoryReferenceType, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to associate the ad with using the campaign_id path parameter.

Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.

Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns. */ + /** @description This method adds a listing that is managed with the Inventory API to an existing Promoted Listings campaign.

For general strategy campaigns using the Cost Per Sale (CPS) funding model, an ad may be directly created for the listing.

For each listing specified in the request, this method:
  • Creates an ad for the listing.
  • Sets the bid percentage (also known as the ad rate) for the ads created.
  • Associates the created ad with the specified campaign.

To create an ad for a listing, specify its inventoryReferenceId and inventoryReferenceType, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to associate the ad with using the campaign_id path parameter.

Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.

Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns. */ post: operations["createAdsByInventoryReference"]; delete?: never; options?: never; @@ -202,7 +202,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method works with listings that are managed with the Inventory API.

The method deletes ads using a list of seller-defined inventory reference IDs, used with the Inventory API, that are associated with the specified campaign ID.

Specify the campaign ID (as a path parameter) and a list of inventoryReferenceId and inventoryReferenceType pairs to be deleted.

Call getCampaigns to get a list of the seller's current campaign IDs.

Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.

When using the CPC funding model, use the bulkUpdateAdsStatusByInventoryReference method to change the status of ads to ARCHIVED. */ + /** @description This method works with listings that are managed with the Inventory API.

The method deletes ads using a list of seller-defined inventory reference IDs, used with the Inventory API, that are associated with the specified campaign ID.

Specify the campaign ID (as a path parameter) and a list of inventoryReferenceId and inventoryReferenceType pairs to be deleted.

Call getCampaigns to get a list of the seller's current campaign IDs.

Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.
When using the CPC funding model, use the bulkUpdateAdsStatusByInventoryReference method to change the status of ads to ARCHIVED. */ post: operations["deleteAdsByInventoryReference"]; delete?: never; options?: never; @@ -251,10 +251,10 @@ export interface paths { path?: never; cookie?: never; }; - /** @description Note: This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to Promoted Listings Advanced Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the getAdvertisingEligibility method in Account API.
This method retrieves ad groups for the specified campaigns.

Each campaign can only have one ad group.

In the request, supply the campaign_ids as path parameters.

Call getCampaigns to retrieve a list of the current campaign IDs for a seller. */ + /** @description This method retrieves ad groups for the specified campaigns.

Each campaign can only have one ad group.

In the request, supply the campaign_ids as path parameters.

Call getCampaigns to retrieve a list of the current campaign IDs for a seller. */ get: operations["getAdGroups"]; put?: never; - /** @description Note: This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to Promoted Listings Advanced Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the getAdvertisingEligibility method in Account API.
This method adds an ad group to an existing PLA campaign that uses the Cost Per Click (CPC) funding model.

To create an ad group for a campaign, specify the defaultBid for the ad group in the payload of the request. Then specify the campaign to which the ad group should be associated using the campaign_id path parameter.

Each campaign can have one or more associated ad groups. */ + /** @description This method adds an ad group to an existing priority strategy campaign that uses manual targeting.

To create an ad group for a campaign, specify the defaultBid for the ad group in the payload of the request. Then specify the campaign to which the ad group should be associated using the campaign_id path parameter.

Each campaign can have one or more associated ad groups. */ post: operations["createAdGroup"]; delete?: never; options?: never; @@ -269,9 +269,9 @@ export interface paths { path?: never; cookie?: never; }; - /** @description Note: This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to Promoted Listings Advanced Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the getAdvertisingEligibility method in Account API.
This method retrieves the details of a specified ad group, such as the ad group’s default bid and status.

In the request, specify the campaign_id and ad_group_id as path parameters.

Call getCampaigns to retrieve a list of the current campaign IDs for a seller and call getAdGroups for the ad group ID of the ad group you wish to retrieve. */ + /** @description This method retrieves the details of a specified ad group, such as the ad group’s default bid and status.

In the request, specify the campaign_id and ad_group_id as path parameters.

Call getCampaigns to retrieve a list of the current campaign IDs for a seller and call getAdGroups for the ad group ID of the ad group you wish to retrieve. */ get: operations["getAdGroup"]; - /** @description Note: This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to Promoted Listings Advanced Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the getAdvertisingEligibility method in Account API.
This method updates the ad group associated with a campaign.

With this method, you can modify the default bid for the ad group, change the state of the ad group, or change the name of the ad group. Pass the ad_group_id you want to update as a URI parameter, and configure the adGroupStatus and defaultBid in the request payload.

Call getAdGroup to retrieve the current default bid and status of the ad group that you would like to update. */ + /** @description This method updates the ad group associated with a campaign.

With this method, you can modify the default bid for the ad group, change the state of the ad group, or change the name of the ad group. Pass the ad_group_id you want to update as a URI parameter, and configure the adGroupStatus and defaultBid in the request payload.

Call getAdGroup to retrieve the current default bid and status of the ad group that you would like to update. */ put: operations["updateAdGroup"]; post?: never; delete?: never; @@ -289,7 +289,7 @@ export interface paths { }; get?: never; put?: never; - /** @description Note: This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to Promoted Listings Advanced Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the getAdvertisingEligibility method in Account API.
This method allows sellers to retrieve the suggested bids for input keywords and match type. */ + /** @description This method allows sellers to retrieve the suggested bids for input keywords and match type. */ post: operations["suggestBids"]; delete?: never; options?: never; @@ -306,7 +306,7 @@ export interface paths { }; get?: never; put?: never; - /** @description Note: This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to Promoted Listings Advanced Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the getAdvertisingEligibility method in Account API.
This method allows sellers to retrieve a list of keyword ideas to be targeted for Promoted Listings campaigns. */ + /** @description This method allows sellers to retrieve a list of keyword ideas to be targeted for Promoted Listings campaigns. */ post: operations["suggestKeywords"]; delete?: never; options?: never; @@ -338,10 +338,10 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method retrieves the details for all of the seller's defined campaigns. Request parameters can be used to retrieve a specific campaign, such as the campaign's name, the start and end date, the status, and the funding model (Cost Per Sale (CPS) or Cost Per Click (CPC).

You can filter the result set by a campaign name, end date range, start date range, or campaign status. You can also paginate the records returned from the result set using the limit query parameter, and control which records to return using the offset parameter.

*/ + /** @description This method retrieves the details for all of the seller's defined campaigns. Request parameters can be used to retrieve a specific campaign, such as the campaign's name, the start and end date, the channel, the status, and the funding model (i.e., Cost Per Sale (CPS) or Cost Per Click (CPC)).

You can filter the result set by a campaign name, end date range, start date range, campaign channel, or campaign status. You can also paginate the records returned from the result set using the limit query parameter, and control which records to return using the offset parameter.

*/ get: operations["getCampaigns"]; put?: never; - /** @description This method creates a Promoted Listings ad campaign.

A Promoted Listings campaign is the structure into which you place the ads or ad group for the listings you want to promote.

Identify the items you want to place into a campaign either by "key" or by "rule" as follows:

*/ + /** @description A list of campaign IDs to be included in the report task. Use the getCampaigns method to retrieve a list of the current campaign IDs for a seller.

For general campaign strategy sellers, this field is required if the reportType is set to CAMPAIGN_PERFORMANCE_REPORT or CAMPAIGN_PERFORMANCE_SUMMARY_REPORT.

For priority strategy campaign sellers, leave this request field blank to retrieve the details for all campaigns associated with your account, or specify the campaign IDs for which you would like to retrieve the campaign-specific details.

Note: There is a maximum data limit that cannot be exceeded when generating reports. If this threshold is exceeded, the report will fail. Refer to Promoted Listings reporting in the Selling Integration Guide for details.

Maximum: 1,000 IDs */ campaignIds?: string[]; + /** @description The channel for the advertising campaign that will be included in the report task. This value indicates whether the data included in the report task is for an Onsite or Offsite advertising campaign.

If no value is entered, this field will default to ON_SITE. Multiple channels are not supported.

Note: Channels are only applicable for campaigns that use the Cost Per Click (CPC) funding model.
Valid Values:This field is required and must be set to OFF_SITE if the report is for a Offsite Ads campaign. */ + channels?: string[]; /** @description The date defining the start of the timespan covered by the report.

Format the timestamp as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock with local offset.

Note: The date specified cannot be a future date.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z

Example: 2021-03-15T13:00:00-07:00 */ dateFrom?: string; /** @description The date defining the end of the timespan covered by the report.

As with the dateFrom field, format the timestamp as an ISO 8601 string.

Note: The date specified cannot be a future date. Additionally, the time specified must be a later time than that specified in the dateFrom field.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z

Example: 2021-03-17T13:00:00-07:00 */ @@ -1656,9 +1697,9 @@ export interface components { fundingModels?: string[]; /** @description You can use this field to supply an array of items to include in the report if you manage your inventory with the Inventory API.

This field is mutually exclusive with the listingIds field; if you populate this field, do not populate the listingIds field.

An inventory reference identifies an item in your inventory using a pair of values, where the inventoryReferenceId can be either a seller-defined SKU value or an inventoryItemGroupKey, where an inventoryItemGroupKey is seller-defined ID for an inventory item group (a multiple-variation listing).

Couple the inventoryReferenceId with an inventoryReferenceType identifier to fully identify an item in your inventory.

Maximum: 500 items

Required if you do not supply an array of listingId values or if you set reportType to INVENTORY_PERFORMANCE_REPORT. */ inventoryReferences?: components["schemas"]["InventoryReference"][]; - /** @description Use this field to supply an array of listing IDs you want to include in the report.

A listing ID is the eBay listing identifier that is generated when the listing is created. This field accepts listing ID values generated with both the Inventory API and the eBay Traditional APIs, such as the Trading and Finding APIs.

Important: This field is mutually exclusive with the inventoryReferences field; if you populate this field, do not populate the inventoryReferences field.

For Promoted Listings Standard (PLS) sellers, this field is required if you do not supply an array of inventoryReferences values or if you set the reportType to LISTING_PERFORMANCE_REPORT.

For Promoted Listings Advanced (PLA) sellers, leave this field blank to retrieve the details for all listings associated with the specified campaign IDs (or all campaigns associated with your account, if no campaign IDs are specified), or specify the listing IDs for which you would like to retrieve the listing-specific details.

Note: There is a maximum data limit that cannot be exceeded when generating reports. If this threshold is exceeded, the report will fail. Refer to Promoted Listings reporting in the Selling Integration Guide for details.

Maximum: 500 listings */ + /** @description Use this field to supply an array of eBay listing IDs you want to include in the report.

Important: This field is mutually exclusive with the inventoryReferences field; if you populate this field, do not populate the inventoryReferences field.
For general campaign strategy sellers, this field is required if you do not supply an array of inventoryReferences values or if you set the reportType to LISTING_PERFORMANCE_REPORT.

For priority strategy campaign sellers, leave this field blank to retrieve the details for all listings associated with the specified campaign IDs (or all campaigns associated with your account, if no campaign IDs are specified), or specify the listing IDs for which you would like to retrieve the listing-specific details.

Note: There is a maximum data limit that cannot be exceeded when generating reports. If this threshold is exceeded, the report will fail. Refer to Promoted Listings reporting in the Selling Integration Guide for details.

Maximum: 500 listings */ listingIds?: string[]; - /** @description The ID for the eBay marketplace on which the report is based.

Maximum: 1 For implementation help, refer to eBay API documentation */ + /** @description The unique identifier for the eBay marketplace on which the report is based. For implementation help, refer to eBay API documentation */ marketplaceId?: string; /** @description The list of metrics to be included in the report.

Metrics are the quantitative measurements compiled into the report and the data returned is based on the specified dimension of the report. For example, if the dimension is campaign, the metrics for number of sales would be the number of sales in the campaign. However, if the dimension is listing, the number of sales represents the number of items sold in that listing.

For information on metric keys and how to set them, see Promoted Listings reporting.

Minimum: 1 */ metricKeys?: string[]; @@ -1669,7 +1710,7 @@ export interface components { }; /** @description This type defines the fields used in a delete-ad request. */ DeleteAdRequest: { - /** @description A unique eBay-assigned ID for a listing that is generated when the listing is created.

Note: This request accepts both listing IDs, as generated by the Inventory API, and an item IDs, as used in the eBay Traditional API set (e.g., the Trading and Finding APIs).

*/ + /** @description A unique eBay-assigned identifier for a listing that is generated when the listing is created.

Note: This request accepts both listing IDs, as generated by the Inventory API, and an item IDs, as used in the eBay Traditional API set (e.g., the Trading and Finding APIs).

*/ listingId?: string; }; /** @description This type defines the fields returned in a delete-ad response. */ @@ -1688,9 +1729,9 @@ export interface components { }; /** @description This type defines the fields needed to delete an ad by its inventory reference ID. You must always supply both inventory_reference_id and inventory_reference_type. */ DeleteAdsByInventoryReferenceRequest: { - /** @description The inventory reference ID is a seller-defined SKU value for a single-item listing, or a seller-defined identifier for an inventory item group. Both of these values are defined when using the Inventory API, and an inventory item group is used to create a multiple-variation listing. */ + /** @description The unique identifier of a single-item listing or a multi-variation listing.

To create an ad for a single-item listing, set the inventoryReferenceType value to INVENTORY_ITEM and specify an item ID or a SKU (if the SKU is defined in the listing).

To create an ad for a multi-variation listing, set the inventoryReferenceType value to INVENTORY_ITEM_GROUP and specify the item ID for the multi-variation listing or the inventoryitemGroupKey value as defined in the Inventory API. */ inventoryReferenceId?: string; - /** @description The enumeration value passed into this field indicates the type of value used for the corresponding inventoryReferenceId value. The enumeration value used here will either be INVENTORY_ITEM (to delete the ad for a single SKU listing) or INVENTORY_ITEM_GROUP (to delete the ad for a multiple-variation listing). For implementation help, refer to eBay API documentation */ + /** @description This enumerated value indicates the type of item the inventoryReferenceId references.

The item can be either an INVENTORY_ITEM or an INVENTORY_ITEM_GROUP. For implementation help, refer to eBay API documentation */ inventoryReferenceType?: string; }; /** @description This type defines the fields returned by request to delete a set of ads by inventory reference ID. */ @@ -1736,54 +1777,54 @@ export interface components { /** @description An list of annotation keys associated with the specified dimension of the report. */ dimensionKeyAnnotations?: components["schemas"]["DimensionKeyAnnotation"][]; }; - /** @description This container defines the promotional discount as either a monetary amount or a percentage of the sales price.

Important!: You must populate one and only one of the fields in this container:

Tip: Refer to Configuring discounts for threshold promotions for information and examples on how to combine discountBenefit and discountSpecification values to create different types of promotions.

*/ + /** @description This container defines the discount as either a monetary amount or a percentage of the sales price.

Important!: You must populate one and only one of the fields in this container:

Tip: Refer to Configuring discounts for threshold discounts for information and examples on how to combine discountBenefit and discountSpecification values to create different types of discounts.

*/ DiscountBenefit: { - /** @description The monetary amount that is discounted off an item (or items) when the promotion criteria is met.

For threshold promotions, where the buyer triggers the discount, the valid values for this field are:
  5, 6, 7, 8, 9, 10, 15, 20, 25,
  30, 35, 40, 45, 50, 55, 60, 65,
  70, 75, 80, 85, 90, 95, 100, 110,
  120, 125, 150, 200, 250


For markdown promotions, the range is greater, as outlined below and detailed more precisely here: */ + /** @description The monetary amount that is discounted off an item (or items) when the discount criteria is met.

For threshold discounts, where the buyer triggers the discount, the valid values for this field are:
  5, 6, 7, 8, 9, 10, 15, 20, 25,
  30, 35, 40, 45, 50, 55, 60, 65,
  70, 75, 80, 85, 90, 95, 100, 110,
  120, 125, 150, 200, 250


For markdown discounts, the range is greater, as outlined below and detailed more precisely here: */ amountOffItem?: components["schemas"]["Amount"]; - /** @description Used for threshold promotions, this is the monetary amount that is discounted off an order when the promotion criteria is met. Because this field is valid only for orders, it's not a valid combination to use with markdown promotions.

Valid values for the associated amountOffOrder.value field:
  5, 6, 7, 8, 9, 10, 15, 20, 25,
  30, 35, 40, 45, 50, 55, 60, 65,
  70, 75, 80, 85, 90, 95, 100, 110,
  120, 125, 150, 200, 250
*/ + /** @description Used for threshold discounts, this is the monetary amount that is discounted off an order when the discount criteria is met. Because this field is valid only for orders, it's not a valid combination to use with markdown discounts.

Valid values for the associated amountOffOrder.value field:
  5, 6, 7, 8, 9, 10, 15, 20, 25,
  30, 35, 40, 45, 50, 55, 60, 65,
  70, 75, 80, 85, 90, 95, 100, 110,
  120, 125, 150, 200, 250
*/ amountOffOrder?: components["schemas"]["Amount"]; - /** @description The percentage applied to the sales price that is discounted off the promoted item (or items) when the promotion criteria is met.

Valid integer values for percentage off:   Min: 5   Max: 80 */ + /** @description The percentage applied to the sales price that is discounted off the discounted item (or items) when the discount criteria is met.

Valid integer values for percentage off:   Min: 5   Max: 80 */ percentageOffItem?: string; - /** @description Used for threshold promotions, this is the percentage of the order price that is discounted off the order when the promotion criteria is met. This field is not value for markdown promotions.

Valid integer values for ORDER_DISCOUNT promotions:   Min: 5   Max: 80

For VOLUME_DISCOUNT promotions: Must be set to 0 for the first discount rule. */ + /** @description Used for threshold discounts, this is the percentage of the order price that is discounted off the order when the discount criteria is met. This field is not value for markdown discounts.

Valid integer values for ORDER_DISCOUNT discounts:   Min: 5   Max: 80

For VOLUME_DISCOUNT discounts: Must be set to 0 for the first discount rule. */ percentageOffOrder?: string; }; - /** @description This complex type defines a promotion as being either a monetary amount or a percentage of a sales price that's subtracted from the price of an item or order.

Set the amount of the discount and the rules that govern when the discount triggers using the discountBenefit and discountSpecification fields.

Note: In volume pricing promotions, you must configure at least two discountRule containers and at most four.

*/ + /** @description This complex type defines a discount as being either a monetary amount or a percentage of a sales price that's subtracted from the price of an item or order.

Set the amount of the discount and the rules that govern when the discount triggers using the discountBenefit and discountSpecification fields.

Note: In volume pricing discounts, you must configure at least two discountRule containers and at most four.

*/ DiscountRule: { - /** @description This container defines the promotional discount as either a monetary amount or a percentage of the sales price.

Note: When configuring promotion benefits, populate just one of the following fields in the discountBenefit container:

For volume pricing, only percentageOffOrder is applicable as a discountBenefit. Also, the first discountBenefit container in a volume pricing configuration must set percentageOffOrder to 0.

Tip: Refer to Configuring discounts for threshold promotions for information and examples on how to combine discountBenefit and discountSpecification to create different types of promotions.

*/ + /** @description This container defines the discount as either a monetary amount or a percentage of the sales price.

Note: When configuring discount benefits, populate just one of the following fields in the discountBenefit container:

For volume pricing, only percentageOffOrder is applicable as a discountBenefit. Also, the first discountBenefit container in a volume pricing configuration must set percentageOffOrder to 0.

Tip: Refer to Configuring threshold discounts for information and examples on how to combine discountBenefit and discountSpecification to create different types of discounts.

*/ discountBenefit?: components["schemas"]["DiscountBenefit"]; - /** @description This container defines the criteria for when the discounts of a promotion trigger, such as the minimum quantity that the buyer must purchase before the promotion kicks in. The promotional discount is applied each time the criteria defined by this container is met.

When configuring the rules that govern when the discounts are applied, populate just one of the following fields in the discountSpecification container:

Important: When configuring volume pricing promotions, only minQuantity is applicable as a discountSpecification. Also, the configuration for minQuantity in a volume pricing configuration is specific. In the first discountSpecification container, set minQuantity to 1, and in the second, set minQuantity to 2. If you include a third discountRules pair, minQuantity must be set to 3, and in a fourth, it must be set to 4. Also, you must set a ruleOrder value in each discountRules container. In the first container, discountRules must be set to 1, and in each subsequent container, the value be be incremented by 1. For more, see Configuring volume pricing discounts.

Tip: see Configuring discounts for threshold promotions for information and examples on how to combine discountBenefit and discountSpecification to create different types of promotions.

*/ + /** @description This container defines the criteria for when the discounts trigger, such as the minimum quantity that the buyer must purchase before the discount kicks in. The discount is applied each time the criteria defined by this container is met.

When configuring the rules that govern when the discounts are applied, populate just one of the following fields in the discountSpecification container:

Important: When configuring volume pricing discounts, only minQuantity is applicable as a discountSpecification. Also, the configuration for minQuantity in a volume pricing configuration is specific. In the first discountSpecification container, set minQuantity to 1, and in the second, set minQuantity to 2. If you include a third discountRules pair, minQuantity must be set to 3, and in a fourth, it must be set to 4. Also, you must set a ruleOrder value in each discountRules container. In the first container, discountRules must be set to 1, and in each subsequent container, the value be be incremented by 1. For more, see Configuring volume pricing discounts.

Tip: see Configuring threshold discounts for information and examples on how to combine discountBenefit and discountSpecification to create different types of discounts.

*/ discountSpecification?: components["schemas"]["DiscountSpecification"]; - /** @description The limit on how much a buyer can save using a CODED_COUPON promotion type. Permitted values are 1-1000. Supported currency codes include USD, GBP, EUR, and AUD.

Note: The Currency Code for 'maxDiscountAmount' must be the same as the Currency Code for 'budget'.

*/ + /** @description The limit on how much a buyer can save using a CODED_COUPON discount type. Permitted values are 1-1000. Supported currency codes include USD, GBP, EUR, and AUD.

Note: The Currency Code for 'maxDiscountAmount' must be the same as the Currency Code for 'budget'.

*/ maxDiscountAmount?: components["schemas"]["Amount"]; /** * Format: int32 - * @description This field indicates the order in which the discountRules are presented. The value specified for this field must equal the associated minQuantity value.

Required if you are creating a volume pricing promotion. + * @description This field indicates the order in which the discountRules are presented. The value specified for this field must equal the associated minQuantity value.

Required if you are creating a volume pricing discount. */ ruleOrder?: number; }; - /** @description This container defines the criteria for when the discounts of a promotion trigger, such as the minimum quantity the buyer must purchase before the promotion kicks in. The promotional discount is applied each time the criteria defined by this container is met.

Note: When configuring the rules that govern when the discounts are applied, populate just one of the following fields in the discountSpecification container:

Tip: Refer to Configuring discounts for threshold promotions for information and examples on how to combine discountBenefit and discountSpecification to create different types of promotions.

*/ + /** @description This container defines the criteria for when the discounts trigger, such as the minimum quantity the buyer must purchase before the discount kicks in. The discount is applied each time the criteria defined by this container is met.

Note: When configuring the rules that govern when the discounts are applied, populate just one of the following fields in the discountSpecification container:

Tip: Refer to Configuring threshold discounts for information and examples on how to combine discountBenefit and discountSpecification to create different types of discounts.

*/ DiscountSpecification: { - /** @description The monetary amount that must be spent on promoted items before the promotional discount is applied.

Valid values for the associated forEachAmount.value field:
  5, 10, 15, 20, 25, 30, 35, 40, 45, 49,
  50, 55, 59, 60, 65, 69, 70, 75, 79, 80,
  85, 89, 90, 95, 99, 100, 110, 120, 125,
  149, 150, 175, 199, 200, 249, 250, 299,
  300, 350, 399, 400, 450, 499, 500
*/ + /** @description The monetary amount that must be spent on discounted items before the discount is applied.

Valid values for the associated forEachAmount.value field:
  5, 10, 15, 20, 25, 30, 35, 40, 45, 49,
  50, 55, 59, 60, 65, 69, 70, 75, 79, 80,
  85, 89, 90, 95, 99, 100, 110, 120, 125,
  149, 150, 175, 199, 200, 249, 250, 299,
  300, 350, 399, 400, 450, 499, 500
*/ forEachAmount?: components["schemas"]["Amount"]; /** * Format: int32 * @description The number of items that must be purchased in order to qualify for the discount.

Valid values:
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
  12, 13, 14, 15, 16, 17, 18, 19
  20, 25, 50, 75, 100
*/ forEachQuantity?: number; - /** @description Known as the "threshold amount", the minimum dollar amount that needs to be spent on promoted items in order to qualify for the promotion's discount.

Valid values for the associated minAmount.value field:
  5, 10, 15, 20, 25, 30, 35, 40, 45, 49,
  50, 55, 59, 60, 65, 69, 70, 75, 79, 80,
  85, 89, 90, 95, 99, 100, 110, 120,
  125, 149, 150, 175, 199, 200, 249, 250, 299,
  300, 350, 399, 400, 450, 499, 500
*/ + /** @description Known as the "threshold amount", the minimum dollar amount that needs to be spent on discounted items in order to qualify for the discount.

Valid values for the associated minAmount.value field:
  5, 10, 15, 20, 25, 30, 35, 40, 45, 49,
  50, 55, 59, 60, 65, 69, 70, 75, 79, 80,
  85, 89, 90, 95, 99, 100, 110, 120,
  125, 149, 150, 175, 199, 200, 249, 250, 299,
  300, 350, 399, 400, 450, 499, 500
*/ minAmount?: components["schemas"]["Amount"]; /** * Format: int32 - * @description The minimum quantity of promoted items that needs to be bought in order to qualify for the promotion's discount.

Valid values:
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
  12, 13, 14, 15, 16, 17, 18, 19
  20, 25, 50, 75, 100
+ * @description The minimum quantity of discounted items that needs to be bought in order to qualify for the discount.

Valid values:
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
  12, 13, 14, 15, 16, 17, 18, 19
  20, 25, 50, 75, 100
*/ minQuantity?: number; /** * Format: int32 - * @description Use this field to configure "Buy One Get One" (or BOGO) promotions.

You must couple this field with forEachQuantity and an amountOffItem or percentOffItem field to configure your BOGO promotion. This field is not valid with order-based promotions.

The value of this field represents the number of items to be discounted when other promotion criteria is met. For example, when the buyer adds the number of items identified by the forEachQuantity value to their cart, they are then eligible to receive the stated discount from an additional number of like items (the number of which is identified by this field) when they add those items to their cart. To receive the discount, the buyer must purchase the number of items indicated by forEachQuantity plus the number indicated by this field.

Valid values:
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10 + * @description Use this field to configure "Buy One Get One" (or BOGO) discounts.

You must couple this field with forEachQuantity and an amountOffItem or percentOffItem field to configure your BOGO discount. This field is not valid with order-based discounts.

The value of this field represents the number of items to be discounted when other discount criteria is met. For example, when the buyer adds the number of items identified by the forEachQuantity value to their cart, they are then eligible to receive the stated discount from an additional number of like items (the number of which is identified by this field) when they add those items to their cart. To receive the discount, the buyer must purchase the number of items indicated by forEachQuantity plus the number indicated by this field.

Valid values:
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10 */ numberOfDiscountedItems?: number; }; - /** @description A type that defines the ad rate details for a Promoted Listings Standard (PLS) ad campaign. */ + /** @description A type that defines the ad rate details for a general strategy ad campaign. */ DynamicAdRatePreference: { /** @description The percentage above or below (-) the eBay suggested ad rate that a seller is willing to pay.

This specifies the maximum and minimum values to which an ad rate can be dynamically adjusted. */ adRateAdjustmentPercent?: string; @@ -1823,11 +1864,15 @@ export interface components { }; /** @description This type defines how the Promoted Listings fee is calculated for a Promoted Listings ad campaign. */ FundingStrategy: { - /** @description The ad rate strategy that shall be applied to the campaign. For implementation help, refer to eBay API documentation */ + /** @description This field is used to set the ad rate strategy for a Cost Per Sale (CPS) campaign.

The default value for this field is FIXED. If this field is omitted, the default value will be used.

Note: This field is not applicable for Cost Per Click (CPC) or offsite campaigns. For implementation help, refer to eBay API documentation */ adRateStrategy?: string; - /** @description The user-defined bid percentage (also known as the ad rate) sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.

The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee.

The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign.

The bidPercentage is a single precision value that is guided by the following rules: This is the default bid percentage for the campaigns using the Cost Per Sale (CPS) funding model, and this value will be overridden by any ads in the campaign that have their own set bid percentages.

If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.

Note:This field is only relevant for campaigns that use the CPS funding model and a fixed ad rate. It is not used for campaigns that use the Cost Per Click (CPC) funding model and should not be provided when the selected adRateStrategy for the campaign is dynamic.
Minimum value: 2.0
Maximum value: 100.0 */ + /** @description Indicates the bidding strategy for an onsite Cost Per Click (CPC) campaign that uses manual targeting.

Note: This field is not applicable for smart targeting campaigns.
Valid values are:
Default value: FIXED For implementation help, refer to eBay API documentation */ + biddingStrategy?: string; + /** @description The user-defined bid percentage (also known as the ad rate) sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.

The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee.

The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign.

The bidPercentage is a single precision value that is guided by the following rules: This is the default bid percentage for the campaigns using the Cost Per Sale (CPS) funding model, and this value will be overridden by any ads in the campaign that have their own set bid percentages.

If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.

Note:This field is only relevant for campaigns that use the CPS funding model and a fixed ad rate. It is not used for campaigns that use the Cost Per Click (CPC) funding model and should not be provided when the selected adRateStrategy for the campaign is dynamic.

Note: This field has a minimum value of 2.0 and a maximum value of 100.0. */ bidPercentage?: string; - /** @description A field that indicates whether a single, user-defined bid percentage (also known as the ad rate) should be used, or whether eBay should automatically adjust listings to maintain the daily suggested bid percentage.

Note: Dynamic adjustment is only applicable when the adRateStrategy is set to DYNAMIC.
Default: FIXED */ + /** @description This container indicates the bidding preferences of the campaign, such as the maximum CPC amount.

Note: This container is only applicable for smart targeting campaigns.
This container is required if the user wants to create a Smart Targeting campaign. */ + bidPreferences?: components["schemas"]["BidPreference"][]; + /** @description A field that indicates whether a single, user-defined bid percentage (also known as the ad rate) should be used, or whether eBay should automatically adjust listings to maintain the daily suggested bid percentage.

Note: Dynamic adjustment is only applicable when the adRateStrategy is set to DYNAMIC This field is not applicable for offsite campaigns.
Default: FIXED */ dynamicAdRatePreferences?: components["schemas"]["DynamicAdRatePreference"][]; /** @description Indicates the model that eBay uses to calculate the Promoted Listings fee.

For a description of the funding model types, refer to FundingModelTypeEnum. For implementation help, refer to eBay API documentation */ fundingModel?: string; @@ -1884,9 +1929,9 @@ export interface components { personalizedMessage?: string; /** @description The price range and currency set within the email campaign. This container will only return if a price range was set. */ priceRange?: components["schemas"]["PriceRange"]; - /** @description The ID of the promotion that was assigned to the email campaign. */ + /** @description The ID of the discount that was assigned to the email campaign. */ promotionId?: string; - /** @description Indicates whether the listings that the promotion was applied to were selected manually or automatically.

This field will only return if a promotion was applied. For implementation help, refer to eBay API documentation */ + /** @description Indicates whether the listings that the discount was applied to were selected manually or automatically.

This field will only return if a discount was applied. For implementation help, refer to eBay API documentation */ promotionSelectMode?: string; /** @description The date and time that the email campaign newsletter is scheduled to send, given in UTC format. This field is only returned if the seller set the start of the email campaign to a date in the future. */ scheduleDate?: string; @@ -1944,27 +1989,27 @@ export interface components { /** @description A seller's total sale amount for the time range specified by the query. */ totalSales?: components["schemas"]["Amount"]; }; - /** @description This type defines either the selections rules or the list of listing IDs for the promotion. The "listing IDs" are are either the seller's item IDs or the eBay listing IDs. */ + /** @description This type defines either the selections rules or the list of listing IDs for the discount. The "listing IDs" are are either the seller's item IDs or the eBay listing IDs. */ InventoryCriterion: { - /** @description Indicates how the items to include in the promotion are selected. You can include inventory by ID, using rules, or globally include all your inventory. For implementation help, refer to eBay API documentation */ + /** @description Indicates how the items to be discounted are selected. You can include inventory by ID, using rules, or globally include all your inventory. For implementation help, refer to eBay API documentation */ inventoryCriterionType?: string; - /** @description An array of containers for the seller's inventory reference IDs (also known as an "SKU" or "custom label") to be added to the promotion.

Note: The request can have either inventoryItems or listingIds, but not both.



Required: All listings in a promotion must offer an electronic payment method.
Maximum: 500 parent items
Maximum SKU or custom label length: 50 characters

Required if InventoryCriterionType is set to INVENTORY_BY_VALUE, you must specify either inventoryItems or listingIds. */ + /** @description An array of containers for the seller's inventory reference IDs (also known as an "SKU" or "custom label") to be added to the discount.

Note: The request can have either inventoryItems or listingIds, but not both.


Maximum: 2000 parent items

Maximum SKU or custom label length: 50 characters

Required if InventoryCriterionType is set to INVENTORY_BY_VALUE, you must specify either inventoryItems or listingIds. */ inventoryItems?: components["schemas"]["InventoryItem"][]; - /** @description An array of eBay listing IDs to be added to the promotion.

Note: The request can have either inventoryItems or listingIds, but not both.



Required: All listings in a promotion must offer an electronic payment method.
Maximum: 500 parent items
Maximum SKU or custom label length: 50 characters

Required if InventoryCriterionType is set to INVENTORY_BY_VALUE, you must specify either inventoryItems or listingIds. */ + /** @description An array of eBay listing IDs to be discounted.

Note: The request can have either inventoryItems or listingIds, but not both.


Required: All listings being discounted must offer an electronic payment method.

Maximum: 2000 parent items

Maximum SKU or custom label length: 50 characters

Required if InventoryCriterionType is set to INVENTORY_BY_VALUE, you must specify either inventoryItems or listingIds. */ listingIds?: string[]; - /** @description This container defines a set of inventory selection rules for a promotion.

When defining rule criteria, you must limit item exclusions to 100 IDs when you choose from live inventory.

Required if InventoryCriterionEnum is set to INVENTORY_BY_RULE or INVENTORY_ANY. */ + /** @description This container defines a set of inventory selection rules for a discount.

When defining rule criteria, you must limit item exclusions to 100 IDs when you choose from live inventory.

Required if InventoryCriterionEnum is set to INVENTORY_BY_RULE or INVENTORY_ANY. */ ruleCriteria?: components["schemas"]["RuleCriteria"]; }; /** @description This type defines the fields for the seller inventory reference IDs (also known as an "SKU" or "custom label"). */ InventoryItem: { - /** @description The seller's inventory reference ID for a listing. Also known as the "SKU" or "custom label," an inventory reference ID is either the ID of the listing or, if the listing has variations (such as a shirt that's available in multiple sizes and colors), the ID of the parent listing. */ + /** @description The unique identifier of a single-item listing or a multi-variation listing.

To create an ad for a single-item listing, set the inventoryReferenceType value to INVENTORY_ITEM and specify and item ID or a SKU (if the SKU is defined in the listing)

To create an ad for a multi-variation listing, set the inventoryReferenceType value to INVENTORY_ITEM_GROUP and specify the item ID for the multi-variation listing or the inventoryitemGroupKey value as defined in the Inventory API. */ inventoryReferenceId?: string; }; /** @description This complex type is used to identify an item that is managed by the Inventory API. The type defines the fields contained in an inventory reference ID. */ InventoryReference: { - /** @description The seller's inventory reference ID for an item that is managed with the Inventory API.

An inventory reference is either the ID of a single listing or the ID of the parent of an item group listing (a multi-variation listing, such as a shirt that is available in multiple sizes and colors).

Required if if you supply an inventoryReferenceType. */ + /** @description The unique identifier of a single-item listing or a multi-variation listing.

To create an ad for a single-item listing, set the inventoryReferenceType value to INVENTORY_ITEM and specify an item ID or a SKU (if the SKU is defined in the listing).

To create an ad for a multi-variation listing, set the inventoryReferenceType value to INVENTORY_ITEM_GROUP and specify the item ID for the multi-variation listing or the inventoryitemGroupKey value as defined in the Inventory API.

Required if if you supply an inventoryReferenceType. */ inventoryReferenceId?: string; - /** @description Indicates the type of item indicated by the inventoryReferenceId.

This value can be set to either INVENTORY_ITEM or INVENTORY_ITEM_GROUP (if the ID points to a multi-variation listing).

Required if if you supply an inventoryReferenceId. For implementation help, refer to eBay API documentation */ + /** @description Indicates the type of item indicated by the inventoryReferenceId.

This value can be set to either INVENTORY_ITEM or INVENTORY_ITEM_GROUP.

Required if if you supply an inventoryReferenceId. For implementation help, refer to eBay API documentation */ inventoryReferenceType?: string; }; /** @description A container for details regarding the basis for an item. */ @@ -1977,107 +2022,107 @@ export interface components { /** @description The basis of the statistics. For implementation help, refer to eBay API documentation */ metric?: string; }; - /** @description This type defines the status of a markdown promotion. */ + /** @description This type defines the status of a markdown discount. */ ItemMarkdownStatus: { - /** @description Indicates the state assigned to the markdown promotion using one of the status values. For implementation help, refer to eBay API documentation */ + /** @description Indicates the state assigned to the markdown discount using one of the status values. For implementation help, refer to eBay API documentation */ listingMarkdownStatus?: string; - /** @description Identifies the date the last time the state of the promotion changed. Both both markdown and markup events can trigger a status change. */ + /** @description Identifies the date the last time the state of the discount changed. Both both markdown and markup events can trigger a status change. */ statusChangedDate?: string; - /** @description An eBay-assigned text string that describes the status of the promotion. */ + /** @description An eBay-assigned text string that describes the status of the discount. */ statusMessage?: string; }; - /** @description This type defines the fields used to describe an item price markdown promotion. */ + /** @description This type defines the fields used to describe an item price markdown discount. */ ItemPriceMarkdown: { - /** @description If set to true, free shipping is applied to the first shipping service specified for the item. The first domestic shipping option is set to "free shipping," regardless if the shipping optionType for that service is set to FLAT_RATE, CALCULATED, or NOT_SPECIFIED (freight). This flag essentially adds free shipping as a promotional bonus.

Default: false */ + /** @description If set to true, free shipping is applied to the first shipping service specified for the item. The first domestic shipping option is set to "free shipping," regardless if the shipping optionType for that service is set to FLAT_RATE, CALCULATED, or NOT_SPECIFIED (freight). This flag essentially adds free shipping as a part of the discount.

Default: false */ applyFreeShipping?: boolean; - /** @description If set to true, eBay will automatically add inventory items to the markdown promotion if they meet the selectedInventoryDiscounts criteria specified for the markdown promotion.

Default: false */ + /** @description If set to true, eBay will automatically add inventory items to the markdown discount if they meet the selectedInventoryDiscounts criteria specified for the markdown discount.

Default: false */ autoSelectFutureInventory?: boolean; - /** @description If set to true, price increases (including removing the free shipping flag) are blocked and an error message is returned if a seller attempts to adjust the price of an item that's partaking in this markdown promotion. If set to false, an item is dropped from the markdown promotion if the seller adjusts the price.

Default: false */ + /** @description If set to true, price increases (including removing the free shipping flag) are blocked and an error message is returned if a seller attempts to adjust the price of an item that's partaking in this markdown discount. If set to false, an item is dropped from the markdown discount if the seller adjusts the price.

Default: false */ blockPriceIncreaseInItemRevision?: boolean; - /** @description This field is required if you are configuring an MARKDOWN_SALE promotion.

This is the seller-defined "tag line" for the offer, such as "Save on designer shoes." A tag line appears under the "offer-type text" that is generated for the promotion. The text is displayed on the offer tile that is shown on the seller's All Offers page and on the event page for the promotion.

Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. This text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "20% off".


Maximum length: 50 */ + /** @description This field is required if you are configuring an MARKDOWN_SALE discount.

This is the seller-defined "tag line" for the offer, such as "Save on designer shoes." A tag line appears under the "offer-type text" that is generated for the discount. The text is displayed on the offer tile that is shown on the seller's All Offers page and on the event page for the discount.

Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. This text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "20% off".


Maximum length: 50 */ description?: string; - /** @description The date and time the promotion ends, in UTC format (yyyy-MM-ddThh:mm:ssZ). The value supplied for endDate must be at least 24 hours after the value supplied for the startDate of the markdown promotion.

For display purposes, convert this time into the local time of the seller.

Max value: */ + /** @description The date and time the discount ends, in UTC format (yyyy-MM-ddThh:mm:ssZ). The value supplied for endDate must be at least 24 hours after the value supplied for the startDate of the markdown discount.

For display purposes, convert this time into the local time of the seller.

Max value: */ endDate?: string; - /** @description The eBay marketplace ID of the site where the markdown promotion is hosted. Markdown promotions are supported on all eBay marketplaces. For implementation help, refer to eBay API documentation */ + /** @description The eBay marketplace ID of the site where the markdown discount is hosted. Markdown discounts are supported on all eBay marketplaces. For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description The seller-defined name or 'title' of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows.

Maximum length: 90 */ + /** @description The seller-defined name or 'title' of the discount that the seller can use to identify a discount. This label is not displayed in end-user flows.

Maximum length: 90 */ name?: string; - /** @description This field is ignored in markdown promotions. For implementation help, refer to eBay API documentation */ + /** @description This field is ignored in markdown discounts. For implementation help, refer to eBay API documentation */ priority?: string; - /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, populate this field with a URL that points to an image to be used with the promotion. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. */ + /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT discounts, populate this field with a URL that points to an image to be used with the discount. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. */ promotionImageUrl?: string; - /** @description The current status of the promotion. When creating a new promotion, you must set this value to either DRAFT or SCHEDULED.

Note that you must set this value to SCHEDULED when you update a RUNNING promotion. For implementation help, refer to eBay API documentation */ + /** @description The current status of the discount. When creating a new discount, you must set this value to either DRAFT or SCHEDULED.

Note that you must set this value to SCHEDULED when you update a RUNNING discount. For implementation help, refer to eBay API documentation */ promotionStatus?: string; - /** @description A list that defines the sets of selected items for the markdown promotion and the discount specified for promotion. */ + /** @description A list that defines the sets of selected items for the markdown discount. */ selectedInventoryDiscounts?: components["schemas"]["SelectedInventoryDiscount"][]; - /** @description The date and time the promotion starts in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ + /** @description The date and time the discount starts in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ startDate?: string; }; - /** @description This type defines the fields that describe a threshold promotion and includes the promotional discount, the items included in the promotion, and the rules that specify when the promotion is applied. */ + /** @description Note: As of July 8th 2024, promotions are now being referred to as discounts on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.
This type defines the fields that describe a threshold discount and includes the discount, the items being discounted, and the rules that specify when the discount is applied. */ ItemPromotion: { - /** @description This flag is relevant in only when promotionType is set to VOLUME_DISCOUNT. For details on volume pricing promotions, see Configuring volume pricing discounts.

If set to true, the discount is applied only when the buyer purchases multiple quantities of a single item in the promotion. Otherwise, the promotional discount applies to multiple quantities of any items in the promotion. Different variations of a multi-variation item are considered to be the same item. Note that this flag is not relevant if the inventoryCriterion container identifies a single listing ID for the promotion. */ + /** @description This flag is relevant in only when promotionType is set to VOLUME_DISCOUNT. For details on volume pricing discounts, see Configuring volume pricing discounts.

If set to true, the discount is applied only when the buyer purchases multiple quantities of a single item that is being discounted. Otherwise, the discount applies to multiple quantities of any the items being discounted. Different variations of a multi-variation item are considered to be the same item. Note that this flag is not relevant if the inventoryCriterion container identifies a single listing ID for the discount. */ applyDiscountToSingleItemOnly?: boolean; - /** @description This sets the budget for the CODED_COUPON promotion type. Supported values range from 100-1000000. Supported currency codes include USD, GBP, EUR, and AUD.

Note: The budget value for an active or paused promotion can not be decreased.

Note: The Currency Code for 'budget' must be the same as the Currency Code for 'maxDiscountAmount'.

*/ + /** @description This sets the budget for the CODED_COUPON discount type. Supported values range from 100-1000000. Supported currency codes include USD, GBP, EUR, and AUD.

Note: The budget value for an active or paused discount can not be decreased.

Note: The Currency Code for 'budget' must be the same as the Currency Code for 'maxDiscountAmount'.

*/ budget?: components["schemas"]["Amount"]; - /** @description The configuration of a coded coupon promotion. */ + /** @description The configuration of a coded coupon discount. */ couponConfiguration?: components["schemas"]["CouponConfiguration"]; - /** @description This is the seller-defined "tag line" for the offer, such as "Save on designer shoes."

The tag line appears under the "offer-type text" that is generated for the promotion and is displayed on the offer tile that's shown on the seller's All Offers page, and on the event page for the promotion.

Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. The offer-type text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "Extra 20% off when you buy 3+".


Maximum length: 50

Required if you are configuring CODED_COUPON, ORDER_DISCOUNT, or MARKDOWN_SALE promotions (and not valid for VOLUME_DISCOUNT promotions). */ + /** @description This is the seller-defined "tag line" for the offer, such as "Save on designer shoes."

The tag line appears under the "offer-type text" that is generated for the discount and is displayed on the offer tile that's shown on the seller's All Offers page, and on the event page for the discount.

Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. The offer-type text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "Extra 20% off when you buy 3+".


Maximum length: 50

Required if you are configuring CODED_COUPON, ORDER_DISCOUNT, or MARKDOWN_SALE discounts (and not valid for VOLUME_DISCOUNT discounts). */ description?: string; - /** @description This container defines a promotion using the following two required fields:

Note: For volume pricing, you must specify at least two and not more than four discountBenefit/discountSpecification pairs. In addition, you must define each set of rules with a ruleOrder value that corresponds with the order of volume discounts you present.

Tip: Refer to Specifying item promotion discounts for information and examples on how to combine discountBenefit and discountSpecification to create different types of promotions.

*/ + /** @description This container defines a discount using the following two required fields:

Note: For volume pricing, you must specify at least two and not more than four discountBenefit/discountSpecification pairs. In addition, you must define each set of rules with a ruleOrder value that corresponds with the order of volume discounts you present.

Tip: Refer to Specifying item discounts for information and examples on how to combine discountBenefit and discountSpecification to create different types of discounts.

*/ discountRules?: components["schemas"]["DiscountRule"][]; - /** @description The date and time the promotion ends in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ + /** @description The date and time the discount ends in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ endDate?: string; - /** @description A container that defines either the listing IDs or the selection rules that specify the items to include in the promotion. Listing IDs can be either eBay listing IDs or a list of the seller's inventory reference IDs (know as SKUs or custom labels). See the selectionRules container for the rule criteria you can use to select inventory.

Note: All listings in Promotions Manager promotions must support an electronic payment method.

*/ + /** @description A container that defines either the listing IDs or the selection rules that specify the items to be discounted. Listing IDs can be either eBay listing IDs or a list of the seller's inventory reference IDs (know as SKUs or custom labels). See the selectionRules container for the rule criteria you can use to select inventory.

Note: All listings in Discounts Manager discounts must support an electronic payment method.

*/ inventoryCriterion?: components["schemas"]["InventoryCriterion"]; - /** @description The eBay marketplace ID of the site where the threshold promotion is hosted. Threshold promotions are currently supported on a limited number of eBay marketplaces.

Valid values:

For implementation help, refer to eBay API documentation */ + /** @description The eBay marketplace ID of the site where the threshold discount is hosted. Threshold discounts are currently supported on a limited number of eBay marketplaces.

Valid values:

For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description The seller-defined name or "title" of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows.

Maximum length: 90 */ + /** @description The seller-defined name or "title" of the discount that the seller can use to identify a discounts. This label is not displayed in end-user flows.

Maximum length: 90 */ name?: string; - /** @description Applicable for only ORDER_DISCOUNT promotions, this field indicates the precedence of the promotion, which is used to determine the position of a promotion on the seller's All Offers page. If an item is associated with multiple promotions, the promotion with the higher priority takes precedence. For implementation help, refer to eBay API documentation */ + /** @description Applicable for only ORDER_DISCOUNT discounts, this field indicates the precedence of the discounts, which is used to determine the position of a discount on the seller's All Offers page. If an item is associated with multiple discounts, the discount with the higher priority takes precedence. For implementation help, refer to eBay API documentation */ priority?: string; - /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, and not valid for VOLUME_DISCOUNT promotions.

Populate this field with a URL that points to an image to be used with the promotion. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. */ + /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT discounts, and not valid for VOLUME_DISCOUNT discounts.

Populate this field with a URL that points to an image to be used with the discount. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. */ promotionImageUrl?: string; - /** @description The current status of the promotion. When creating a new promotion, this value must be set to either DRAFT or SCHEDULED.

Note that you must set this value to SCHEDULED when you update a RUNNING promotion. For implementation help, refer to eBay API documentation */ + /** @description The current status of the discount. When creating a new discount, this value must be set to either DRAFT or SCHEDULED.

Note that you must set this value to SCHEDULED when you update a RUNNING discount. For implementation help, refer to eBay API documentation */ promotionStatus?: string; - /** @description Use this field to specify the type of the promotion you are creating.

The supported types are:

See the Promotions Manager documentation for details.

Required if you are creating a volume pricing promotion (VOLUME_DISCOUNT).

For implementation help, refer to eBay API documentation */ + /** @description Use this field to specify the type of the discount you are creating.

The supported types are:

See the Discounts Manager documentation for details.

Required if you are creating a volume pricing discount (VOLUME_DISCOUNT).

For implementation help, refer to eBay API documentation */ promotionType?: string; - /** @description The date and time the promotion starts in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ + /** @description The date and time the discount starts in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ startDate?: string; }; - /** @description This complex type defines the fields returned for an item (threshold) promotion. */ + /** @description Note: As of July 8th 2024, promotions are now being referred to as discounts on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.
This complex type defines the fields returned for an item (threshold) discount. */ ItemPromotionResponse: { - /** @description If set to true, the discount is applied only when the buyer purchases multiple quantities of a single item in the promotion. Otherwise, the promotional discount applies to multiple quantities of any items in the promotion. Different variations of a multi-variation item are considered to be the same item. Note that this flag is not relevant if the inventoryCriterion container identifies a single listing ID for the promotion. */ + /** @description If set to true, the discount is applied only when the buyer purchases multiple quantities of a single item being discounted. Otherwise, the discount applies to multiple quantities of any items being discounted. Different variations of a multi-variation item are considered to be the same item. Note that this flag is not relevant if the inventoryCriterion container identifies a single listing ID for the discount. */ applyDiscountToSingleItemOnly?: boolean; - /** @description This sets the budget for the CODED_COUPON promotion type. Supported values range from 100-1000000. Supported currency codes include USD, GBP, EUR, and AUD.

Note: The budget value for an active or paused promotion can not be decreased.

Note: The Currency Code for 'budget' must be the same as the Currency Code for 'maxDiscountAmount'.

*/ + /** @description This sets the budget for the CODED_COUPON discount type. Supported values range from 100-1000000. Supported currency codes include USD, GBP, EUR, and AUD.

Note: The budget value for an active or paused discount can not be decreased.

Note: The Currency Code for 'budget' must be the same as the Currency Code for 'maxDiscountAmount'.

*/ budget?: components["schemas"]["Amount"]; - /** @description The configuration of a coded coupon promotion. */ + /** @description The configuration of a coded coupon discount. */ couponConfiguration?: components["schemas"]["CouponConfiguration"]; - /** @description Required for CODED_COUPON promotions, this is the seller-defined "tag line" for the offer, such as "Save on designer shoes." The tag line appears under the "offer-type text" that is generated for the promotion and is displayed under the offer tile that is shown on the seller's All Offers page and on the event page for the promotion. This tag line is not used with volume pricing promotions.

Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. This text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "Extra 20% off when you buy 3+".


Maximum length: 50 */ + /** @description Required for CODED_COUPON discounts, this is the seller-defined "tag line" for the offer, such as "Save on designer shoes." The tag line appears under the "offer-type text" that is generated for the discount and is displayed under the offer tile that is shown on the seller's All Offers page and on the event page for the discount. This tag line is not used with volume pricing discounts.

Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. This text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "Extra 20% off when you buy 3+".


Maximum length: 50 */ description?: string; - /** @description A list containing the promotion benefits (discountRule) and the rules that define when the benefit is applied (discountSpecification). */ + /** @description A list containing the discount benefits (discountRule) and the rules that define when the benefit is applied (discountSpecification). */ discountRules?: components["schemas"]["DiscountRule"][]; - /** @description The date and time the promotion ends in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ + /** @description The date and time the discount ends in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ endDate?: string; - /** @description Returns either an array of listing IDs or the selection rules used to specify the items included in the promotion. Listing IDs can be either eBay listing IDs or an array of seller's inventory reference IDs (know as SKUs or custom labels). See the selectionRules container for the rule criteria you can use to select inventory. */ + /** @description Returns either an array of listing IDs or the selection rules used to specify the items being discounted. Listing IDs can be either eBay listing IDs or an array of seller's inventory reference IDs (know as SKUs or custom labels). See the selectionRules container for the rule criteria you can use to select inventory. */ inventoryCriterion?: components["schemas"]["InventoryCriterion"]; - /** @description The eBay marketplace ID of the site where the threshold promotion is hosted. Threshold promotions are currently supported on a limited number of eBay marketplaces.

Valid values:

For implementation help, refer to eBay API documentation */ + /** @description The eBay marketplace ID of the site where the threshold discount is hosted. Threshold discounts are currently supported on a limited number of eBay marketplaces.

Valid values:

For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description The seller-defined name or "title" of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows.

Maximum length: 90 */ + /** @description The seller-defined name or "title" of the discount that the seller can use to identify a discount. This label is not displayed in end-user flows.

Maximum length: 90 */ name?: string; - /** @description Applicable for only ORDER_DISCOUNT promotions, this field indicates the precedence of the promotion, which eBay uses to determine the position of a promotion on the seller's All Offers page. If an item is associated with multiple promotions, the promotion with the higher priority takes precedence. For implementation help, refer to eBay API documentation */ + /** @description Applicable for only ORDER_DISCOUNT discounts, this field indicates the precedence of the discount, which eBay uses to determine the position of a discount on the seller's All Offers page. If an item is associated with multiple discounts, the discount with the higher priority takes precedence. For implementation help, refer to eBay API documentation */ priority?: string; - /** @description A unique eBay-assigned ID for the promotion that's generated when the promotion is created. */ + /** @description A unique eBay-assigned ID for the discount that's generated when the discount is created. */ promotionId?: string; - /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, and not applicable for VOLUME_DISCOUNT promotions, this field is a URL that points to an image for the promotion. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. */ + /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT discounts, and not applicable for VOLUME_DISCOUNT discounts, this field is a URL that points to an image for the discount. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. */ promotionImageUrl?: string; - /** @description The current status of the promotion. When creating a new promotion, this value must be set to either DRAFT or SCHEDULED. For implementation help, refer to eBay API documentation */ + /** @description The current status of the discount. When creating a new discount, this value must be set to either DRAFT or SCHEDULED. For implementation help, refer to eBay API documentation */ promotionStatus?: string; - /** @description Indicates the type of the promotion, either CODED_COUPON, MARKDOWN_SALE, ORDER_DISCOUNT, or VOLUME_DISCOUNT. For implementation help, refer to eBay API documentation */ + /** @description Indicates the type of the discount, either CODED_COUPON, MARKDOWN_SALE, ORDER_DISCOUNT, or VOLUME_DISCOUNT. For implementation help, refer to eBay API documentation */ promotionType?: string; - /** @description The date and time the promotion starts in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ + /** @description The date and time the discount starts in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ startDate?: string; }; - /** @description This type defines the fields for a paginated result set of promotions. The response consists of 0 or more sequenced pages that are returned from the complete result set, where each page consists of 0 or more items. */ + /** @description This type defines the fields for a paginated result set of discounts. The response consists of 0 or more sequenced pages that are returned from the complete result set, where each page consists of 0 or more items. */ ItemsPagedCollection: { /** @description The URI of the current page of results from the result set. */ href?: string; @@ -2086,7 +2131,7 @@ export interface components { * @description The number of items returned on a single page from the result set. This value can be set in the request with the limit query parameter. */ limit?: number; - /** @description An array of the listings associated with a promotion. */ + /** @description An array of the listings associated with a discount. */ listings?: components["schemas"]["ListingDetail"][]; /** @description The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set.

Max length: 2048 */ next?: string; @@ -2148,7 +2193,7 @@ export interface components { }; /** @description A type that defines the fields used by the Keyword method. */ KeywordRequest: { - /** @description The text of the keyword. Keywords are not case sensitive and compound words can be used without additional encoding (for example, tennis ball).

Maximum number of characters: 100

Maximum number of words: 10 */ + /** @description The text of the keyword. Keywords are not case sensitive and compound words can be used without additional encoding (for example, tennis ball).

You can use the getKeywords method to retrieve keyword values currently associated with the specified ad group.

Maximum number of characters: 100

Maximum number of words: 10 */ keywordText?: string; /** @description A field that defines the match type for the keyword.

Valid Values: For implementation help, refer to eBay API documentation */ matchType?: string; @@ -2172,8 +2217,10 @@ export interface components { * @description An HTTP status code is returned for each keyword to indicate the success or failure of adding that keyword to the ad group. */ statusCode?: number; + /** @description List of warnings associated with this operation */ + warnings?: components["schemas"]["Error"][]; }; - /** @description This type defines the fields that describe a listing that is in a promotion. */ + /** @description This type defines the fields that describe a listing that is in a discount. */ ListingDetail: { /** @description The container that returns the current price of the listing. */ currentPrice?: components["schemas"]["Amount"]; @@ -2203,6 +2250,10 @@ export interface components { /** @description The seller-defined title of the listing that a seller can use to identify the item. This label is not displayed in end-user flows. */ title?: string; }; + MaxCpc: { + /** @description The allocated maximum CPC amount for a smart targeting campaign.

Both the currency and amount must be specified when allocating the Max CPC. */ + amount?: components["schemas"]["Amount"]; + }; /** @description This type defines the name and data type of a metric. */ MetricMetadata: { /** @description The data type of the returned metric value. For implementation help, refer to eBay API documentation */ @@ -2212,7 +2263,7 @@ export interface components { }; /** @description A type that defines the fields for a negative keyword. */ NegativeKeyword: { - /** @description An ad group ID that is generated when an ad group is first created and associated with a campaign.

Note: You can call the getAdGroups method to retrieve the ad group IDs for a seller. */ + /** @description An ad group ID that is generated when an ad group is first created and associated with a campaign.

Note: You can call the getAdGroups method to retrieve the ad group IDs for a seller. */ adGroupId?: string; /** @description A unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created. */ campaignId?: string; @@ -2282,75 +2333,75 @@ export interface components { /** @description The listings selected will be less than or equal to this value. The value entered must be given in number format, such as 100.00.

Either gte, lte, or both must contain a value if the seller wishes to use a price range. */ lte?: number; }; - /** @description This type defines the fields that describe a promotion. This includes all the information about a promotion except for the listings that are a part of the promotion. */ + /** @description Note: As of July 8th 2024, promotions are now being referred to as discounts on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.
This type defines the fields that describe a discount. This includes all the information about a discount except for the listings that are a part of the discount. */ PromotionDetail: { /** @description A unique code that buyers can use during checkout to receive a discount. The code must be unique across eBay. */ couponCode?: string; - /** @description This is the seller-defined "tag line" for the offer, such as "Save on designer shoes." Tag lines appear under the "offer-type text" that is generated for a promotion and displayed under the offer tile that is shown on the seller's All Offers page and on the promotion's event page.

Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. This text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "Extra 20% off when you buy 3+".


Maximum length: 50

Required if you are configuring ORDER_DISCOUNT or MARKDOWN_SALE promotions (and not valid for VOLUME_DISCOUNT promotions). */ + /** @description This is the seller-defined "tag line" for the offer, such as "Save on designer shoes." Tag lines appear under the "offer-type text" that is generated for a discount and displayed under the offer tile that is shown on the seller's All Offers page and on the discount's event page.

Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. This text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "Extra 20% off when you buy 3+".


Maximum length: 50

Required if you are configuring ORDER_DISCOUNT or MARKDOWN_SALE discoutns (and not valid for VOLUME_DISCOUNT discounts). */ description?: string; - /** @description The date and time the promotion ends in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ + /** @description The date and time the discount ends in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ endDate?: string; - /** @description The eBay marketplace ID of the site where the promotion is hosted. Threshold promotions are supported on a select set of marketplaces while markdown promotions are supported on all eBay marketplaces.

Valid values for threshold promotions are as follows:

For implementation help, refer to eBay API documentation */ + /** @description The eBay marketplace ID of the site where the discount is hosted. Threshold discounts are supported on a select set of marketplaces while markdown discounts are supported on all eBay marketplaces.

Valid values for threshold discounts are as follows:

For implementation help, refer to eBay API documentation */ marketplaceId?: string; - /** @description The seller-defined name or "title" of the promotion, such as "Buy 1 Get 1", that the seller can use to identify a promotion. This label is not displayed in end-user flows.

Maximum length: 90 */ + /** @description The seller-defined name or "title" of the discount, such as "Buy 1 Get 1", that the seller can use to identify a discount. This label is not displayed in end-user flows.

Maximum length: 90 */ name?: string; - /** @description Applicable for only ORDER_DISCOUNT promotions, this field indicates the precedence of the promotion, which is used to determine the position of a promotion on the seller's All Offers page. If an item is associated with multiple promotions, the promotion with the higher priority takes precedence. For implementation help, refer to eBay API documentation */ + /** @description Applicable for only ORDER_DISCOUNT discount, this field indicates the precedence of the discount, which is used to determine the position of a discount on the seller's All Offers page. If an item is associated with multiple discounts, the discount with the higher priority takes precedence. For implementation help, refer to eBay API documentation */ priority?: string; - /** @description The URI of the promotion details. */ + /** @description The URI of the discount details. */ promotionHref?: string; - /** @description A unique eBay-assigned ID for the promotion that's generated when the promotion is created. */ + /** @description A unique eBay-assigned ID for the discount that's generated when the discount is created. */ promotionId?: string; - /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, and not applicable for VOLUME_DISCOUNT promotions, this field is a URL that points to an image for the promotion. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. */ + /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT discount, and not applicable for VOLUME_DISCOUNT discounts, this field is a URL that points to an image for the discount. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. */ promotionImageUrl?: string; - /** @description The current status of the promotion. When creating a new promotion, you must set this value to either DRAFT or SCHEDULED. For implementation help, refer to eBay API documentation */ + /** @description The current status of the discount. When creating a new discount, you must set this value to either DRAFT or SCHEDULED. For implementation help, refer to eBay API documentation */ promotionStatus?: string; - /** @description Indicates type of the promotion, either CODED_COUPON, MARKDOWN_SALE, ORDER_DISCOUNT, or VOLUME_DISCOUNT. For implementation help, refer to eBay API documentation */ + /** @description Indicates type of the discount, either CODED_COUPON, MARKDOWN_SALE, ORDER_DISCOUNT, or VOLUME_DISCOUNT. For implementation help, refer to eBay API documentation */ promotionType?: string; - /** @description The date and time the promotion starts in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ + /** @description The date and time the discount starts in UTC format (yyyy-MM-ddThh:mm:ssZ). For display purposes, convert this time into the local time of the seller. */ startDate?: string; }; - /** @description This type defines the fields in a promotion-level report. */ + /** @description Note: As of July 8th 2024, promotions are now being referred to as discounts on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.
This type defines the fields in a discount-level report. */ PromotionReportDetail: { - /** @description The average item discount is the average discount that has been applied to each item in a promotion. This value is calculated as follows:

totalDiscount / itemsSoldQuantity = averageItemDiscount */ + /** @description The average item discount is the average discount that has been applied to each item being discounted. This value is calculated as follows:

totalDiscount / itemsSoldQuantity = averageItemDiscount */ averageItemDiscount?: components["schemas"]["Amount"]; - /** @description The average item revenue is the average revenue that has been received for each item in a promotion. This value is calculated as follows:

totalSales / itemsSoldQuantity = averageItemRevenue */ + /** @description The average item revenue is the average revenue that has been received for each item being discounted.. This value is calculated as follows:

totalSales / itemsSoldQuantity = averageItemRevenue */ averageItemRevenue?: components["schemas"]["Amount"]; - /** @description The average order discount is the average discount that has been applied to each order in a promotion. This value is calculated as follows:

totalDiscount / numberOfOrdersSold = averageOrderDiscount */ + /** @description The average order discount is the average discount that has been applied to each order that has an active discount. This value is calculated as follows:

totalDiscount / numberOfOrdersSold = averageOrderDiscount */ averageOrderDiscount?: components["schemas"]["Amount"]; - /** @description The average order revenue is the average revenue that has been received for each order in a promotion. This value is calculated as follows:

totalSales / numberOfOrdersSold = averageOrderRevenue */ + /** @description The average order revenue is the average revenue that has been received for each order that has an active discount. This value is calculated as follows:

totalSales / numberOfOrdersSold = averageOrderRevenue */ averageOrderRevenue?: components["schemas"]["Amount"]; - /** @description The average order size is the average number of items that each order contained in a promotion. This value is calculated as follows:

itemsSoldQuantity / numberOfOrdersSold = averageOrderSize */ + /** @description The average order size is the average number of items that each order contained that have an active discount. This value is calculated as follows:

itemsSoldQuantity / numberOfOrdersSold = averageOrderSize */ averageOrderSize?: string; - /** @description This is the monetary amount of items purchased in a promotion where the threshold wasn't met, so the discount was not applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" promotion on $5 socks. One buyer purchased only one pair of socks, so they pay the full price of $5. Here, your baseSale amount would be $5. */ + /** @description This is the monetary amount of items purchased that have been discounted where the threshold wasn't met, so the discount was not applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" discount on $5 socks. One buyer purchased only one pair of socks, so they pay the full price of $5. Here, your baseSale amount would be $5. */ baseSale?: components["schemas"]["Amount"]; /** * Format: int32 - * @description This is the quantity of items purchased in a threshold promotion where the threshold has been met and the discount was applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" promotion on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your number of items sold (itemsSoldQuantity) would be 2 and you number of orders sold (numberOfOrdersSold) would be 1. + * @description This is the quantity of items purchased in a threshold discount where the threshold has been met and the discount was applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" discount on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your number of items sold (itemsSoldQuantity) would be 2 and you number of orders sold (numberOfOrdersSold) would be 1. */ itemsSoldQuantity?: number; /** * Format: int32 - * @description This is the number of orders sold in a threshold promotion where the threshold has been met and the discount was applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" promotion on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your numberOfOrdersSold would be 1 and your itemsSoldQuantity would be 2. + * @description This is the number of orders sold in a threshold discount where the threshold has been met and the discount was applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" discount on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your numberOfOrdersSold would be 1 and your itemsSoldQuantity would be 2. */ numberOfOrdersSold?: number; - /** @description The percentage sales lift is the total dollar amount gained due to promotions. This value is calculated as follows:

promotionSale / totalSale = percentageSalesLift */ + /** @description The percentage sales lift is the total dollar amount gained due to discounts. This value is calculated as follows:

promotionSale / totalSale = percentageSalesLift */ percentageSalesLift?: string; - /** @description The URI of the promotion report. */ + /** @description The URI of the discount report. */ promotionHref?: string; - /** @description A unique eBay-assigned ID for the promotion that's generated when the promotion is created. */ + /** @description A unique eBay-assigned ID for the discount that's generated when the discount is created. */ promotionId?: string; - /** @description The unique eBay-assigned ID of the promotion report that is generated when the report is created. */ + /** @description The unique eBay-assigned ID of the discount report that is generated when the report is created. */ promotionReportId?: string; - /** @description This is the monetary amount of the items sold in a threshold promotion where the threshold has been met and the discount was applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" promotion on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your promotionSale amount would be $7.50. */ + /** @description This is the monetary amount of the items sold in a threshold discount where the threshold has been met and the discount was applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" discount on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your promotionSale amount would be $7.50. */ promotionSale?: components["schemas"]["Amount"]; - /** @description Indicates the type of the promotion, either CODED_COUPON, MARKDOWN_SALE, ORDER_DISCOUNT, or VOLUME_DISCOUNT. For implementation help, refer to eBay API documentation */ + /** @description Indicates the type of the discount, either CODED_COUPON, MARKDOWN_SALE, ORDER_DISCOUNT, or VOLUME_DISCOUNT. For implementation help, refer to eBay API documentation */ promotionType?: string; - /** @description This is the monetary discount amount applied to the sale of items in a threshold promotion where the threshold has been met and the discount was applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" promotion on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your totalDiscount amount would be $2.50. */ + /** @description This is the monetary discount amount applied to the sale of items in a threshold discount where the threshold has been met and the discount was applied.

For example, suppose you're running a "Buy 1, get 1 at 50%" discount on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your totalDiscount amount would be $2.50. */ totalDiscount?: components["schemas"]["Amount"]; - /** @description This is the total monetary sales amount of all items sold in a promotion.

For example, suppose you're running a "Buy 1, get 1 at 50%" promotion on $5 socks. You make one sale where the buyer purchases only one pair of socks and they pay the full price of $5 (baseSale). You make a second sale where the buyer purchases two pairs of socks and they pay $7.50, for both pairs (promotionSale). Your totalSale would be $12.50. This value is calculated as follows:

baseSale + promotionSale = totalSale */ + /** @description This is the total monetary sales amount of all items sold that were discounted.

For example, suppose you're running a "Buy 1, get 1 at 50%" discount on $5 socks. You make one sale where the buyer purchases only one pair of socks and they pay the full price of $5 (baseSale). You make a second sale where the buyer purchases two pairs of socks and they pay $7.50, for both pairs (promotionSale). Your totalSale would be $12.50. This value is calculated as follows:

baseSale + promotionSale = totalSale */ totalSale?: components["schemas"]["Amount"]; }; - /** @description This type defines the fields in a paginated result set of seller promotions. The response consists of 0 or more sequenced pages that are returned from the complete result set, where each page consists of 0 or more items. */ + /** @description Note: As of July 8th 2024, promotions are now being referred to as discounts on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.
This type defines the fields in a paginated result set of seller discounts. The response consists of 0 or more sequenced pages that are returned from the complete result set, where each page consists of 0 or more items. */ PromotionsPagedCollection: { /** @description The URI of the current page of results from the result set. */ href?: string; @@ -2368,7 +2419,7 @@ export interface components { offset?: number; /** @description The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set.

Max length: 2048 */ prev?: string; - /** @description A list containing the details of each returned promotion. This includes all the information about the promotions except for the listings that are part of the promotions. */ + /** @description A list containing the details of each returned discount. This includes all the information about the discounts except for the listings that are discounted. */ promotions?: components["schemas"]["PromotionDetail"][]; /** * Format: int32 @@ -2376,7 +2427,7 @@ export interface components { */ total?: number; }; - /** @description This type defines the fields in a paginated result set of promotion-level reports. The response consists of 0 or more sequenced pages that are returned from the complete result set, where each page consists of 0 or more items. */ + /** @description Note: As of July 8th 2024, promotions are now being referred to as discounts on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.
This type defines the fields in a paginated result set of discount-level reports. The response consists of 0 or more sequenced pages that are returned from the complete result set, where each page consists of 0 or more items. */ PromotionsReportPagedCollection: { /** @description The URI of the current page of results from the result set. */ href?: string; @@ -2413,21 +2464,6 @@ export interface components { /** @description The value of the proposed bid. */ value?: string; }; - /** @description This type defines the fields needed to create a quick setup PLA campaign. To create a quick setup campaign, a seller must specify the name, start date, and marketplace of the campaign. The seller must also specify the listing Ids of the items they want associated with the campaign. */ - QuickSetupRequest: { - /** @description The allocated daily budget for a Promoted Listings campaign that uses the Cost Per Click (CPC) funding model. */ - budget?: components["schemas"]["CampaignBudgetRequest"]; - /** @description The seller-defined name for the campaign. This value must be unique for the seller.

You can use any alphanumeric characters in the name, except for the less than (<) and greater than (>) characters.

Max Length: 80 characters */ - campaignName?: string; - /** @description The date and time the campaign is scheduled to end, in UTC format (yyyy-MM-ddThh:mm:ss.sssZ).

If this field is omitted, the campaign will have no defined end date, and will not end until the seller ends the campaign using the endCampaign method, or if they update the campaign to include an end date using the updateCampaignIdentification method. This date must be further in the future than the startDate. */ - endDate?: string; - /** @description This array includes the listing Ids of the items that are to be associated with the PLA campaign. eBay will create ad groups and keywords for these listings and add them to the campaign.

Each value must be delimited by a comma. A maximum of 1000 listing Ids can be added to a campaign created using the setupQuickCampaign method. */ - listingIds?: string[]; - /** @description The Id of the marketplace where the campaign is hosted. See the MarkeplaceIdEnum type for more details. For implementation help, refer to eBay API documentation */ - marketplaceId?: string; - /** @description The date and time the campaign is scheduled to start, in UTC format (yyyy-MM-ddThh:mm:ss.sssZ).

On the specified date, the service derives the keywords for each listing in the campaign, creates an ad for each listing, and associates each new ad with the campaign. The campaign starts once this process is completed. The amount of time it takes the service to start the campaign depends on the number of listings in the campaign.

Note: If the startDate has passed by the time the seller launches a campaign, the campaign will be updated to RUNNING status. If the seller launches a campaign before the startDate, the campaign will be updated to SCHEDULED status and will change to RUNNING status at the time of the specified startDate. */ - startDate?: string; - }; /** @description This type defines the fields included in the report. */ ReportMetadata: { /** @description A list containing the metadata for the dimension used in the report. */ @@ -2442,6 +2478,8 @@ export interface components { * @description The maximum number of metrics that can be requested for the specified report type. */ maxNumberOfMetricsToRequest?: number; + /** @description This field indicates whether a COST_PER_CLICK report type is related to an ON_SITE or OFF_SITE Promoted Listings campaign. This field is not returned for COST_PER_SALE report types since COST_PER_SALE campaigns are only available ON_SITE. For implementation help, refer to eBay API documentation */ + channel?: string; /** @description A list containing the metadata for the metrics in the report. */ metricMetadata?: components["schemas"]["MetricMetadata"][]; /** @description The report_type, as specified in the request to create the report task.

Note: INVENTORY_PERFORMANCE_REPORT is not currently available; availability date is pending. For implementation help, refer to eBay API documentation */ @@ -2456,6 +2494,8 @@ export interface components { ReportTask: { /** @description A list of IDs for the campaigns that are included in the report. A campaign ID is a unique eBay-assigned identifier of the campaign that's generated when the campaign is created.

Call getCampaigns to return the current campaign IDs for a seller. */ campaignIds?: string[]; + /** @description The channel for the advertising campaign that will be included in the report task. This value indicates whether the data included in the report task is for an Onsite or Offsite advertising campaign. */ + channels?: string[]; /** @description The date defining the start of the timespan covered by the report, formatted as an ISO 8601 timestamp. */ dateFrom?: string; /** @description The date defining the end of the timespan covered by the report, formatted as an ISO 8601 timestamp. */ @@ -2525,46 +2565,65 @@ export interface components { }; /** @description This type defines the fields for a set of inventory selection rules.

Required: When inventoryCriterionType is set to INVENTORY_BY_RULE or INVENTORY_ANY. */ RuleCriteria: { - /** @description A list of seller inventory reference IDs to exclude from the promotion.

Note: The request can have either excludeInventoryItems or excludeListingIds but not both.

Maximum: 100 parent items
Maximum SKU or custom label length: 50 characters */ + /** @description A list of seller inventory reference IDs to exclude from the discount.

Note: The request can have either excludeInventoryItems or excludeListingIds but not both.

Maximum: 100 parent items

Maximum SKU or custom label length: 50 characters */ excludeInventoryItems?: components["schemas"]["InventoryItem"][]; - /** @description A list of eBay listing IDs to exclude from the promotion.

Note: The request can have either excludeInventoryItems or excludeListingIds but not both.

Maximum: 100 parent items
Maximum SKU or custom label length: 50 characters */ + /** @description A list of eBay listing IDs to exclude from the discount.

Note: The request can have either excludeInventoryItems or excludeListingIds but not both.

Maximum: 100 parent items
Maximum SKU or custom label length: 50 characters */ excludeListingIds?: string[]; - /** @description A list of SKUs to remove from a markdown promotion. The listed SKUs are 'marked up' to their standard price after being part of the markdown promotion. */ + /** @description A list of SKUs to remove from a markdown discount. The listed SKUs are 'marked up' to their standard price after being part of the markdown discount. */ markupInventoryItems?: components["schemas"]["InventoryItem"][]; - /** @description A list of listing IDs to remove from a markdown promotion. The listed items are 'marked up' to their standard price after being part of the markdown promotion. */ + /** @description A list of listing IDs to remove from a markdown discount. The listed items are 'marked up' to their standard price after being part of the markdown discount. */ markupListingIds?: string[]; - /** @description The container for the rules that select the items to include in a promotion.

Required if inventoryCriterionType is set to INVENTORY_BY_RULE.

For information on using the contained fields, see Item promotions. */ + /** @description The container for the rules that select the items to be discounted.

Required if inventoryCriterionType is set to INVENTORY_BY_RULE.

For information on using the contained fields, see Item discounts. */ selectionRules?: components["schemas"]["SelectionRule"][]; }; /** @description This type defines the fields that describe the discounts applied to a set of inventory items and the order in which the selection rules are applied. */ SelectedInventoryDiscount: { - /** @description This container defines the promotional discount as either a monetary amount or a percentage applied to the sales price. */ + /** @description This container defines the discount as either a monetary amount or a percentage applied to the sales price. */ discountBenefit?: components["schemas"]["DiscountBenefit"]; /** @description A unique, eBay-generated ID that you can use to identify the discount. This field is ignored in POST and PUT operations. */ discountId?: string; - /** @description A container that defines either the listing IDs or the selection rules that specify the items to include in the promotion. Listing IDs can be either eBay listing IDs or a list of the seller's inventory reference IDs (know as SKUs or custom labels). See the selectionRules container for the rule criteria you can use to select inventory.

Note: All listings in Promotions Manager promotions must support an electronic payment method.

*/ + /** @description A container that defines either the listing IDs or the selection rules that specify the items to include in the discount. Listing IDs can be either eBay listing IDs or a list of the seller's inventory reference IDs (know as SKUs or custom labels). See the selectionRules container for the rule criteria you can use to select inventory.

Note: All listings in Discounts Manager discounts must support an electronic payment method.

*/ inventoryCriterion?: components["schemas"]["InventoryCriterion"]; /** * Format: int32 - * @description For markdown promotions, this field is reserved for future use. + * @description For markdown discounts, this field is reserved for future use. */ ruleOrder?: number; }; - /** @description This type defines all rules/inclusion filters used to add listings to campaigns or promotions. Use of the specific fields is different for campaigns or promotions. See Using the selectionRules container. */ + /** @description This type defines all rules/inclusion filters used to add listings to campaigns or discounts. Use of the specific fields is different for campaigns or discounts. See Using the selectionRules container. */ SelectionRule: { /** @description An array of product brands. For more details, see Using the selectionRules container. */ brands?: string[]; - /** @description This field contains an array of the associated category ID(s).

For Item promotions, a single-item array containing the category ID associated with the promotion. Required when used in an Item promotion and either specifying a selectionRules container or when inventoryCriterionType is set to INVENTORY_BY_RULE.

For Promoted Listing campaigns, an array of category ID(s) associated with the campaign.

For information on how to get category IDs, see eBay Marketplace category IDs and Seller store category IDs */ + /** @description This field contains an array of the associated category ID(s).

For Item discounts, a single-item array containing the category ID associated with the discounts. Required when used in an Item discount and either specifying a selectionRules container or when inventoryCriterionType is set to INVENTORY_BY_RULE.

For Promoted Listing campaigns, an array of category ID(s) associated with the campaign.

For information on how to get category IDs, see eBay Marketplace category IDs and Seller store category IDs */ categoryIds?: string[]; - /** @description This enumerated value indicates if the category ID for the item is an identifier for eBay categories or for a seller's eBay store categories.

For Promoted Listing campaigns, this field includes the type of the category ID for the item(s) to be included in the campaign.

For Item promotions, this field identifies the scope for the corresponding array as eBay categories or for a seller's eBay store categories. Required when used in an Item promotion and inventoryCriterionType is set to INVENTORY_BY_RULE. For implementation help, refer to eBay API documentation */ + /** @description This enumerated value indicates if the category ID for the item is an identifier for eBay categories or for a seller's eBay store categories.

For Promoted Listing campaigns, this field includes the type of the category ID for the item(s) to be included in the campaign.

For Item discounts, this field identifies the scope for the corresponding array as eBay categories or for a seller's eBay store categories. Required when used in an Item discount and inventoryCriterionType is set to INVENTORY_BY_RULE. For implementation help, refer to eBay API documentation */ categoryScope?: string; - /** @description A comma-separated list of unique identifiers for the conditions of listings to be included

For Promoted Listing campaigns, refer to Add items to the PLS campaign. Up to four IDs can be specified.

For Item promotions, refer to Item condition ID and name values. */ + /** @description A comma-separated list of unique identifiers for the conditions of listings to be included

For Promoted Listing campaigns, refer to Add items to the campaign. Up to four IDs can be specified.

For Item discounts, refer to Item condition ID and name values. */ listingConditionIds?: string[]; /** @description This container sets the maximum price threshold. For more details, see Using the selectionRules container. */ maxPrice?: components["schemas"]["Amount"]; /** @description This container sets the minimum price threshold. For more details, see Using the selectionRules container. */ minPrice?: components["schemas"]["Amount"]; }; + /** @description This type defines the fields used in the suggestBudget response. */ + SuggestBudgetResponse: { + /** @description The suggested allocated daily budget for an offsite campaign. */ + suggestedBudget?: components["schemas"]["BudgetRecommendationResponse"][]; + }; + /** @description This type defines the fields used in the suggestMaxCpc request. To retrieve the suggested maxCpc value for a smart targeting campaign, a seller must specify the listings associated with the campaign, as well as the marketplace on which the campaign is hosted. */ + SuggestMaxCpcRequest: { + /** @description A comma delimited array of listing Ids the seller plans to associate with the smart targeting campaign for which the maxCpc will be suggested. */ + listingIds?: string[]; + /** @description The unique identifier of the marketplace where the listings are hosted. See MarketplaceIdEnum for supported values. For implementation help, refer to eBay API documentation */ + marketplaceId?: string; + }; + /** @description This type defines the fields used in the suggestMaxCpc response. */ + SuggestMaxCpcResponse: { + /** @description The suggested maxCpc amount for the smart targeting campaign. */ + amount?: components["schemas"]["Amount"]; + /** @description The unique identifier of the marketplace where the listings are hosted. For implementation help, refer to eBay API documentation */ + marketplaceId?: string; + }; /** @description The suggested bid rate for the item. */ SuggestedBids: { /** @description The text for the keyword. */ @@ -2583,15 +2642,15 @@ export interface components { /** @description A field that defines the match type for the keyword.

Valid Values: For implementation help, refer to eBay API documentation */ matchType?: string; }; - /** @description This type defines the fields in an Promotions Manager Summary report. Reports are formatted in JSON. For more details, see Reading item promotion Summary reports. */ + /** @description This type defines the fields in an Discounts Manager Summary report. Reports are formatted in JSON. For more details, see Reading item discount Summary reports. */ SummaryReportResponse: { - /** @description The total revenue from all the purchased items that were part of a promotion but did not trigger a discount during the promotion period. */ + /** @description The total revenue from all the purchased items that were part of a discount but did not trigger a discount during the discount period. */ baseSale?: components["schemas"]["Amount"]; /** @description The date the report was generated. */ lastUpdated?: string; - /** @description The percentage of the total dollar amount gained due to promotions. This value is calculated as follows:

precentageSalesLift = promotionSale / (baseSale + promotionSale) */ + /** @description The percentage of the total dollar amount gained due to discounts. This value is calculated as follows:

precentageSalesLift = promotionSale / (baseSale + promotionSale) */ percentageSalesLift?: string; - /** @description The total revenue from all the purchased items that were part of a promotion and their purchase did trigger a discount during the promotion period. */ + /** @description The total revenue from all the purchased items that were part of a discount and their purchase did trigger a discount during the discount period. */ promotionSale?: components["schemas"]["Amount"]; /** @description Total dollar sales amount of all the seller's listings, current to the date the report was generated. */ totalSale?: components["schemas"]["Amount"]; @@ -2624,7 +2683,7 @@ export interface components { }; /** @description A type that defines the targeted bid. */ TargetedBidRequest: { - /** @description A list of keywords in the paginated collection.

Maximum number of keywords: 500 */ + /** @description An array of keywords for which bids will be required.

Maximum number of keywords: 500 */ keywords?: components["schemas"]["KeywordRequest"][]; }; /** @description A type that defines the keywords of the paged collection. */ @@ -2634,11 +2693,11 @@ export interface components { }; /** @description A type that provides details for the targeted keywords. */ TargetedKeywordRequest: { - /** @description A field used to indicate whether additional information and insight data shall be provided for suggested keywords.

Valid Value: KEYWORD_INSIGHTS */ + /** @description A field used to indicate whether additional information and insight data shall be provided for suggested keywords.

Use this array to retrieve keyword insights, including active seller count and search volume.

Valid Value: KEYWORD_INSIGHTS */ additionalInfo?: string[]; /** @description A field used to indicate that the keywords already selected by sellers for the specified listing IDs should be filtered out of the response, and only new and unique keyword recommendations shall be returned.

Valid Value: ADOPTED_KEYWORDS */ exclusions?: string[]; - /** @description A set of comma-separated listing IDs in the paginated collection.

Maximum number of listings requested: 300 */ + /** @description A set of comma-separated listing IDs for the specific listings you wish to retrieve suggested keywords.

Maximum number of listings requested: 300 */ listingIds?: string[]; /** @description A field that defines the match type for the keyword.

Valid Values: For implementation help, refer to eBay API documentation */ matchType?: string; @@ -2666,25 +2725,25 @@ export interface components { }; /** @description A type that contains the fields for the UpdateAdStatusByListingId request. */ UpdateAdStatusByListingIdRequest: { - /** @description A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model.

Note: You can call the getAdGroups method to retrieve the ad group IDs for a seller. */ + /** @description A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model.

Use the getAdGroups method to retrieve the ad group IDs for a seller. */ adGroupId?: string; /** @description An enumeration value representing the current status of the ad.

Valid Values: For implementation help, refer to eBay API documentation */ adStatus?: string; - /** @description A unique eBay-assigned ID for a listing that is generated when the listing is created.

Note: This field accepts both listing IDs (as generated by the Inventory API), and item IDs (as used in the eBay Traditional API set, such as the Trading and Finding APIs). */ + /** @description A unique eBay-assigned identifier for a listing that is generated when the listing is created.

Note: This field accepts both listing IDs (as generated by the Inventory API), and item IDs (as used in the eBay Traditional API set, such as the Trading and Finding APIs). */ listingId?: string; }; /** @description A type that contains the fields for the UpdateAdStatus request. */ UpdateAdStatusRequest: { - /** @description A unique eBay-assigned ID that is generated when the ad is created. */ + /** @description A unique eBay-assigned identifier for an ad that belongs to the specified campaign.

Use the getAds method to retrieve ad IDs. */ adId?: string; - /** @description An enumeration value representing the current status of the ad.

Valid Values: For implementation help, refer to eBay API documentation */ + /** @description An enumeration value representing the status you wish to update the specified ad to.

Valid Values: For implementation help, refer to eBay API documentation */ adStatus?: string; }; /** @description A type that defines the request fields used to update the ad rate strategy for a Promoted Listings ad campaign. */ UpdateAdrateStrategyRequest: { - /** @description The ad rate strategy that shall be applied to the campaign. For implementation help, refer to eBay API documentation */ + /** @description This field is used to change the current ad rate strategy for a Cost Per Sale (CPS) campaign. It is not needed if the ad rate strategy is not being changed for the campaign.

Note: This field is not applicable for offsite campaigns. For implementation help, refer to eBay API documentation */ adRateStrategy?: string; - /** @description The user-defined bid percentage (also known as the ad rate) sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.

The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee.

The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign.

The bidPercentage is a single precision value that is guided by the following rules: This is the default bid percentage for the campaigns using the Cost Per Sale (CPS) funding model, and this value will be overridden by any ads in the campaign that have their own set bid percentages.

If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.

Minimum value: 2.0
Maximum value: 100.0 */ + /** @description The user-defined bid percentage (also known as the ad rate) sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.

The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee.

The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign.

The bidPercentage is a single precision value that is guided by the following rules: This is the default bid percentage for the campaigns using the Cost Per Sale (CPS) funding model, and this value will be overridden by any ads in the campaign that have their own set bid percentages.

If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.

Note: This field has a minimum value of 2.0 and a maximum value of 100.0. */ bidPercentage?: string; /** @description A field that indicates whether a single, user-defined bid percentage (also known as the ad rate) should be used, or whether eBay should automatically adjust listings to maintain the daily suggested bid percentage.

Note: Dynamic adjustment is only applicable when the adRateStrategy is set to DYNAMIC.
Default: FIXED */ dynamicAdRatePreferences?: components["schemas"]["DynamicAdRatePreference"][]; @@ -2707,9 +2766,16 @@ export interface components { }; /** @description This type specifies the bid percentage for an ad campaign. */ UpdateBidPercentageRequest: { - /** @description The user-defined bid percentage (also known as the ad rate) sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.

The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee.

The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign.

The bidPercentage is a single precision value that is guided by the following rules: This is default bid percentage for the campaigns using the Cost Per Sale (CPS) funding model, and this value will be overridden by any ads in the campaign that have their own set bid percentages.

If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.

Minimum value: 2.0
Maximum value: 100.0 */ + /** @description The updated bid percentage value for the specified ad in the specified campaign. The bid percentage (also known as the ad rate) is a user-defined value which sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.

The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee.

The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign.

The bidPercentage is a single precision value that is guided by the following rules:
Note: This field has a minimum value of 2.0 and a maximum value of 100.0. */ bidPercentage?: string; }; + /** @description This type defines the fields used in the updatedBiddingStrategy request. */ + UpdateBiddingStrategyRequest: { + /** @description The new bidding strategy for the specified Cost Per Click (CPC) campaign. For implementation help, refer to eBay API documentation */ + biddingStrategy?: string; + /** @description This container indicates the bidding preferences of the campaign, such as the maximum CPC amount.

Note: This container is only applicable for smart targeting campaigns.
This container is required if the user wants to create a Smart Targeting campaign. */ + bidPreferences?: components["schemas"]["BidPreference"][]; + }; /** @description A type that contains the fields for the UpdateCampaignBudget request. */ UpdateCampaignBudgetRequest: { /** @description The daily budget limit for the Cost Per Click (CPC) Promoted Listings campaign. This will be a dollar value. All clicks using the keywords defined for the campaign will go towards expending the daily budget. Once the daily budget is exceeded for the campaign, all Promoted Listings under the campaign will be turned off until the next day.

Valid Values: */ @@ -2728,7 +2794,7 @@ export interface components { UpdateCampaignRequest: { /** @description An array of audience codes for the audiences of the email campaign. At least one audience code is required. There is no limit to the number of audience codes that may be entered.

Example: if the current email campaign contains "audienceCodes": "code1", "code2" and the user wishes to add an audience code code3, set the audienceCodes value to "audienceCodes": "code1", "code2", "code3".

To retrieve seller audiences, call getAudiences. Use the code values in the response to populate audienceCodes. */ audienceCodes?: string[]; - /** @description The unique identifier of either an eBay category or a store category.

This field is used if a seller wants to apply an email campaign to a specific eBay category or store category. The categoryType determines whether the categoryId value is an eBay category or store category.

To retrieve eBay categories, use the getCategories or Taxonomy API. To retrieve seller store categories, use the getStore call. Use the categoryId value of the desired category from the results as the value in the request.

itemSelectMode must be set to AUTO in order to use a category ID. */ + /** @description The unique identifier of either an eBay category or a store category.

This field is used if a seller wants to apply an email campaign to a specific eBay category or store category. The categoryType determines whether the categoryId value is an eBay category or store category.

Use the Taxonomy API to retrieve eBay categories. To retrieve seller store categories, use the getStore call. Use the categoryId value of the desired category from the results as the value in the request.

itemSelectMode must be set to AUTO in order to use a category ID. */ categoryId?: string; /** @description This field must be set when applying an email campaign to a specific eBay category or store category. The enumeration value used indicates which type of category the categoryId belongs to. For implementation help, refer to eBay API documentation */ categoryType?: string; @@ -2740,9 +2806,9 @@ export interface components { personalizedMessage?: string; /** @description This container is used if the seller wants to apply the email campaign to listings based on a price range.

The priceRange container consists of the currency, gte, and lte fields.

"gte" stands for "greater than or equal to" and "lte" stands for "less than or equal to". Either gte, lte, or both must be used if the seller wishes to include a price range.

Note: Use this object when the itemSelectMode is set to AUTO. */ priceRange?: components["schemas"]["PriceRange"]; - /** @description The ID of the promotion used for an email campaign if the emailCampaignType is set to COUPON, SALE_EVENT, or ORDER_DISCOUNT, and promotionSelectModeEnum is set to MANUAL.

To find a promotion, call getPromotions to retrieve a list of the seller's promotions. Use the promotionId from an individual PromotionDetail result for the request. */ + /** @description The ID of the discount used for an email campaign if the emailCampaignType is set to COUPON, SALE_EVENT, or ORDER_DISCOUNT, and promotionSelectModeEnum is set to MANUAL.

To find a discount, call getPromotions to retrieve a list of the seller's discounts. Use the promotionId from an individual PromotionDetail result for the request. */ promotionId?: string; - /** @description The selection mode for the promotion used. If set to AUTO, eBay will choose the promotion to include in the email campaign. If set to MANUAL, the seller must specify the promotion in the promotionId field.

This field is required if the emailCampaignType is set to COUPON, SALE_EVENT, or ORDER_DISCOUNT. For implementation help, refer to eBay API documentation */ + /** @description The selection mode for the discount used. If set to AUTO, eBay will choose the discount to include in the email campaign. If set to MANUAL, the seller must specify the discount in the promotionId field.

This field is required if the emailCampaignType is set to COUPON, SALE_EVENT, or ORDER_DISCOUNT. For implementation help, refer to eBay API documentation */ promotionSelectModeEnum?: string; /** @description The date and time that the email campaign newsletter will be sent, given in UTC format. Example: 2023-05-20T03:13:35Z

This field should be used if the seller wishes to send the email campaign on a future date. If no scheduleDate is set, the email campaign will send once it is created or updated. */ scheduleDate?: string; @@ -2784,12 +2850,14 @@ export interface components { * @description An HTTP status code is returned for each keyword to indicate the success or failure of updating that keyword. */ statusCode?: number; + /** @description List of warnings associated with this operation */ + warnings?: components["schemas"]["Error"][]; }; /** @description A type that defines the fields used to update a negative keyword. */ UpdateNegativeKeywordIdRequest: { - /** @description A unique eBay-assigned ID for a negative keyword. This keyword ID will be generated for each successfully created negative keyword. */ + /** @description A unique eBay-assigned ID for a negative keyword. This keyword ID will be generated for each successfully created negative keyword.

Use the getNegativeKeywords method to retrieve negative keyword IDs. */ negativeKeywordId?: string; - /** @description A field that defines the status of the negative keyword. For implementation help, refer to eBay API documentation */ + /** @description A field that defines the status of the negative keyword.

See NegativeKeywordStatusEnum for supported values. For implementation help, refer to eBay API documentation */ negativeKeywordStatus?: string; }; /** @description A type that contains the fields for the UpdateNegativeKeyword request. */ @@ -2826,7 +2894,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to associated the ads being created.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -2852,35 +2920,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2892,7 +2970,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to associated the ads being created.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -2918,35 +2996,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -2958,7 +3046,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to delete a set of ads.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -2984,35 +3072,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3024,7 +3122,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. */ + /** @description This path parameter specifies the eBay-assigned identifier of the ad campaign for which to delete a set of ads.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3050,35 +3148,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3090,7 +3198,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to update the bid percentage for a set of ads.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3116,35 +3224,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3156,7 +3274,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to update the bid percentage for a set of ads.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3182,35 +3300,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3222,7 +3350,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad statuses being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3248,35 +3376,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3288,7 +3426,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ads being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3314,55 +3452,65 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getAds: { parameters: { query?: { - /** @description A comma-separated list of ad group IDs. The results will be filtered to only include active ads for these ad groups. Call getAdGroups to retrieve the ad group ID for the ad group.

Note: This field only applies to the Cost Per Click (CPC) funding model; it does not apply to the Cost Per Sale (CPS) funding model. */ + /** @description A comma-separated list of ad group IDs. The results will be filtered to only include active ads for these ad groups.

Use the getAdGroups method to retrieve the ad group ID for the ad group.

Note: This field only applies to the Cost Per Click (CPC) funding model; it does not apply to the Cost Per Sale (CPS) funding model. */ ad_group_ids?: string; - /** @description A comma-separated list of ad statuses. The results will be filtered to only include the given statuses of the ad. If none are provided, all ads are returned. */ + /** @description A comma-separated list of ad statuses. The results will be filtered to only include the given statuses of the ad. If none are provided, all ads are returned.

See AdStatusEnum for supported values. */ ad_status?: string; - /** @description Specifies the maximum number of ads to return on a page in the paginated response.

Default: 10
Maximum: 500

*/ + /** @description Specifies the maximum number of ads to return on a page in the paginated response.

Default: 10

Maximum: 500 */ limit?: string; - /** @description A comma-separated list of listing IDs. The response includes only active ads (ads associated with a RUNNING campaign). The results do not include listing IDs that are excluded by other conditions. */ + /** @description A comma-separated list of listing IDs.

Note: The response includes only active ads. The results do not include listing IDs that are excluded by other conditions. */ listing_ids?: string; /** @description Specifies the number of ads to skip in the result set before returning the first ad in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ offset?: string; }; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ads being retrieved.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3383,28 +3531,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3416,7 +3572,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to associate the newly created ad.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3443,28 +3599,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3476,7 +3640,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to associate the newly created ads.

Use the getCampaigns method to retrieve campaign IDs */ campaign_id: string; }; cookie?: never; @@ -3502,28 +3666,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3532,9 +3704,9 @@ export interface operations { query?: never; header?: never; path: { - /** @description A unique identifier for an ad. This ID is generated when the ad is created. */ + /** @description This path parameter specifies the unique identifier of the ad being retrieved.

Use the getAds method to retrieve ad IDs. */ ad_id: string; - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad being retrieved.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3555,28 +3727,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Business error */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3585,9 +3765,9 @@ export interface operations { query?: never; header?: never; path: { - /** @description Identifier of an ad. This ID was generated when the ad was created. */ + /** @description This path parameter specifies the unique identifier of the ad being deleted.

Use the getAds method to retrieve ad IDs. */ ad_id: string; - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad being deleted.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3599,35 +3779,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3639,7 +3829,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ads being deleted.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3665,42 +3855,50 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getAdsByInventoryReference: { parameters: { query: { - /** @description The inventory reference ID associated with the ad you want returned. A seller's inventory reference ID is the ID of either a listing or the ID of an inventory item group (the parent of a multi-variation listing, such as a shirt that is available in multiple sizes and colors). You must always supply in both an inventory_reference_id and an inventory_reference_type. */ + /** @description This query parameter specifies the unique identifier of a single-item listing or a multi-variation listing.

To retrieve an ad for a single-item listing, set the inventoryReferenceType value to INVENTORY_ITEM and specify an item ID or a SKU (if the SKU is defined in the listing).

To retrieve an ad for a multi-variation listing, set the inventoryReferenceType value to INVENTORY_ITEM_GROUP and specify the item ID for the multi-variation listing or the inventoryitemGroupKey value as defined in the Inventory API. */ inventory_reference_id: string; - /** @description The type of the inventory reference ID. Set this value to either INVENTORY_ITEM (a single listing) or INVENTORY_ITEM_GROUP (a multi-variation listing). You must always pass in both an inventory_reference_id and an inventory_reference_type. */ + /** @description This query parameter specifies the type of the item the inventory_reference_id references.

See InventoryReferenceType for supported values. */ inventory_reference_type: string; }; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ads being retrieved.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3721,28 +3919,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3754,9 +3960,9 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad that's generated when an ad is created. */ + /** @description This path parameter specifies the unique identifier of the ad for which the bid percentage is being updated.

Use the getAds method to retrieve ad IDs. */ ad_id: string; - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3773,42 +3979,52 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getAdGroups: { parameters: { query?: { - /** @description A comma-separated list of ad group statuses. The results will be filtered to only include the given statuses of the ad group.

The results might not include these ad groups if other search conditions exclude them. */ + /** @description A comma-separated list of ad group statuses. The results will be filtered to only include the given statuses of the ad group.

See AdGroupStatusEnum for supported values. */ ad_group_status?: string; /** @description The number of results, from the current result set, to be returned in a single page. */ limit?: string; @@ -3817,7 +4033,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad groups being retrieved.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3838,28 +4054,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3871,7 +4095,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign to associate with the ad group being created.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3898,28 +4122,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3928,9 +4160,9 @@ export interface operations { query?: never; header?: never; path: { - /** @description The ID of the ad group that shall be retrieved. */ + /** @description This path parameter specifies the unique identifier of the ad group being retrieved.

Use the getAdGroups method to retrieve ad group IDs. */ ad_group_id: string; - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad group being retrieved.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -3951,28 +4183,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -3984,9 +4224,9 @@ export interface operations { "Content-Type": string; }; path: { - /** @description The ID of the ad group that shall be updated. */ + /** @description This path parameter specifies the unique identifier of the ad group that is being updated.

Use the getAdGroups method to retrieve ad group IDs. */ ad_group_id: string; - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which the ad group is being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4003,35 +4243,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -4043,9 +4293,9 @@ export interface operations { "Content-Type": string; }; path: { - /** @description The ID of the ad group containing the keywords for which the bid suggestions will be provided. */ + /** @description This path parameter specifies the unique identifier of the ad group containing the keywords for which the bid suggestions will be provided.

Use the getAdGroups method to retrieve ad group IDs. */ ad_group_id: string; - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the keywords for which bid suggestions will be provided.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4071,28 +4321,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -4104,9 +4362,9 @@ export interface operations { "Content-Type": string; }; path: { - /** @description The ID of the ad group for which the keyword suggestions will be provided. */ + /** @description This path parameter specifies the unique identifier of the ad group for which the keyword suggestions will be provided.

Use the getAdGroups method to retrieve ad group IDs. */ ad_group_id: string; - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which keyword suggestions will be provided.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4132,28 +4390,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -4165,7 +4431,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. This ID is the campaign ID of the campaign being cloned.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign being cloned.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4192,47 +4458,59 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getCampaigns: { parameters: { query?: { - /** @description Specifies the campaign name. The results are filtered to include only the campaign by the specified name.

Note: The results might be null if other filters exclude the campaign with this name.

Maximum: 1 campaign name */ + /** @description This query parameter specifies the name of the campaign being retrieved. The results are filtered to include only the campaign by the specified name.

Use the getCampaigns method to retrieve a list of a seller's campaign names.

Note: The results might be null if other filters exclude the campaign with this name.

Maximum: 1 campaign name */ campaign_name?: string; - /** @description Include this filter and input a specific campaign status to retrieve campaigns currently in that state.

Note: The results might not include all the campaigns with this status if other filters exclude them.

Valid values: See CampaignStatusEnum

Maximum: 1 status */ + /** @description This query parameter specifies the status of the campaign(s) being retrieved.

Note: The results might not include all the campaigns with this status if other filters exclude them.
Valid values: See CampaignStatusEnum

Maximum: 1 status */ campaign_status?: string; - /** @description Specifies the range of a campaign's end date. The results are filtered to include only campaigns with an end date that is within specified range.

Valid format (UTC):

Note: The results might not include all the campaigns ending on this date if other filters exclude them. */ + /** @description This query parameter specifies the targeting type of the campaign(s) to be retrieved.

The results will be filtered to only include campaigns with the specified targeting type. If not specified, all campaigns matching other filter parameters will be returned. The results might not include these campaigns if other search conditions exclude them.

Valid values: See CampaignTargetingTypeEnum */ + campaign_targeting_types?: string; + /** @description This query parameter specifies the channel for the campaign(s) being retrieved.

The results will be filtered to only include campaigns with the specified channel. If not specified, all campaigns matching other filter parameters will be returned. The results might not include these campaigns if other search conditions exclude them.

Valid Values: See ChannelEnum */ + channels?: string; + /** @description This query parameter specifies the range of a campaign's end date. The results are filtered to include only campaigns with an end date that is within specified range.

Valid format (UTC):
Note:The results might not include all the campaigns ending on this date if other filters exclude them. */ end_date_range?: string; - /** @description Specifies the funding strategy for the campaign.

The results will be filtered to only include campaigns with the specified funding model. If not specified, all campaigns matching the other filter parameters will be returned. The results might not include these campaigns if other search conditions exclude them.

Valid Values: */ + /** @description This query parameter specifies the funding strategy for the campaign(s) being retrieved.

The results will be filtered to only include campaigns with the specified funding model. If not specified, all campaigns matching the other filter parameters will be returned. The results might not include these campaigns if other search conditions exclude them.

Valid Values: See FundingModelEnum */ funding_strategy?: string; - /** @description

Specifies the maximum number of campaigns to return on a page in the paginated response.

Default: 10
Maximum: 500 */ + /** @description

This query parameter specifies the maximum number of campaigns to return on a page in the paginated response.

Default: 10

Maximum: 500 */ limit?: string; - /** @description Specifies the number of campaigns to skip in the result set before returning the first report in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ + /** @description This query parameter specifies the number of campaigns to skip in the result set before returning the first report in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0 */ offset?: string; - /** @description Specifies the range of a campaign's start date in which to filter the results. The results are filtered to include only campaigns with a start date that is equal to this date or is within specified range.

Valid format (UTC):

Note: The results might not include all the campaigns with this start date if other filters exclude them. */ + /** @description This query parameter specifies the range of a campaign's start date in which to filter the results. The results are filtered to include only campaigns with a start date that is equal to this date or is within specified range.

Valid format (UTC):
Note: The results might not include all the campaigns with this start date if other filters exclude them. */ start_date_range?: string; }; header?: never; @@ -4255,21 +4533,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -4305,21 +4589,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -4328,7 +4618,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign being retrieved.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4349,28 +4639,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Business error */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -4379,7 +4677,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign being deleted.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4391,35 +4689,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -4428,7 +4736,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the RUNNING or PAUSED ad campaign that is being ended.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4440,46 +4748,56 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; findCampaignByAdReference: { parameters: { query?: { - /** @description The seller's inventory reference ID of the listing to be used to find the campaign in which it is associated. This will either be a seller-defined SKU value or inventory item group ID, depending on the reference type specified. You must always pass in both inventory_reference_id and inventory_reference_type. */ + /** @description This query parameter specifies the unique identifier of a single-item listing or a multi-variation listing associated with the campaign being retrieved.

To retrieve an campaign for a single-item listing, set the inventoryReferenceType value to INVENTORY_ITEM and specify an item ID or a SKU (if the SKU is defined in the listing).

To retrieve an campaign for a multi-variation listing, set the inventoryReferenceType value to INVENTORY_ITEM_GROUP and specify the item ID for the multi-variation listing or the inventoryitemGroupKey value as defined in the Inventory API.

Note: You must always pass in both inventory_reference_id and inventory_reference_type. */ inventory_reference_id?: string; - /** @description The type of the seller's inventory reference ID, which is a listing or group of items. You must always pass in both inventory_reference_id and inventory_reference_type. */ + /** @description This query parameter specifies the type of the seller's inventory reference ID, which is a listing or group of items.

See InventoryReferenceTypeEnum for supported values.

Note: You must always pass in both inventory_reference_id and inventory_reference_type. */ inventory_reference_type?: string; - /** @description Identifier of the eBay listing associated with the ad. */ + /** @description This query parameter specifies the unique identifier of the eBay listing associated with the ad being used to retrieve the campaign.

eBay listing IDs are generated by either the Trading API or the Inventory API when you create a listing. */ listing_id?: string; }; header?: never; @@ -4502,35 +4820,43 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Business error */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getCampaignByName: { parameters: { query: { - /** @description The name of the campaign. */ + /** @description This query parameter specifies name of the campaign being retrieved.

Use the getCampaigns method to retrieve a list of a seller's campaign names. */ campaign_name: string; }; header?: never; @@ -4553,37 +4879,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Business error */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; - launchCampaign: { + pauseCampaign: { parameters: { query?: never; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign.

Note: The campaign ID value used here must be for a PLA campaign in DRAFT status. For PLA campaigns created with the setupQuickCampaign method, the getCampaign URI for that campaign is returned in the Location response header. That URI will include the campaign_id value, which you will pass in as a path parameter in the launchCampaign method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the RUNNING ad campaign being paused.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4595,130 +4929,233 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; - pauseCampaign: { + resumeCampaign: { parameters: { query?: never; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the paused ad campaign that is being resumed.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description No Content */ + /** @description No content */ 204: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; - resumeCampaign: { + suggestBudget: { parameters: { query?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

Note: If a marketplace ID value is not provided, the default value of EBAY_US is used.
See MarketplaceIdEnum for supported values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + }; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SuggestBudgetResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Internal Server error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + }; + }; + suggestItems: { + parameters: { + query?: { + /** @description Specifies the category ID that is used to limit the results. This refers to an exact leaf category (the lowest level in that category and has no children). This field can have one category ID, or a comma-separated list of IDs. To return all category IDs, set to null.

Use the getCategorySuggestions method to retrieve category IDs.

Maximum: 10 */ + category_ids?: string; + /** @description Specifies the maximum number of campaigns to return on a page in the paginated response. If no value is specified, the default value is used.

Default: 10

Minimum: 1

Maximum: 1000 */ + limit?: string; + /** @description Specifies the number of campaigns to skip in the result set before returning the first report in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0 */ + offset?: string; + }; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which suggestions are being provided.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description No content */ - 204: { + /** @description Success */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["TargetedAdsPagedCollection"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; - setupQuickCampaign: { + suggestMaxCpc: { parameters: { query?: never; header: { @@ -4728,21 +5165,20 @@ export interface operations { path?: never; cookie?: never; }; - /** @description This type defines the fields to create a quick setup Promoted Listings Advanced (PLA) campaign. */ + /** @description This type defines the fields used in the suggestMaxCpc request. */ requestBody: { content: { - "application/json": components["schemas"]["QuickSetupRequest"]; + "application/json": components["schemas"]["SuggestMaxCpcRequest"]; }; }; responses: { - /** @description Created */ - 201: { + /** @description Success */ + 200: { headers: { - Location?: string; [name: string]: unknown; }; content: { - "application/json": Record; + "application/json": components["schemas"]["SuggestMaxCpcResponse"]; }; }; /** @description Bad Request */ @@ -4750,50 +5186,66 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; - suggestItems: { + updateAdRateStrategy: { parameters: { - query?: { - /** @description Specifies the category ID that is used to limit the results. This refers to an exact leaf category (the lowest level in that category and has no children). This field can have one category ID, or a comma-separated list of IDs. To return all category IDs, set to null.

Maximum: 10 */ - category_ids?: string; - /** @description Specifies the maximum number of campaigns to return on a page in the paginated response. If no value is specified, the default value is used.

Default: 10

Minimum: 1

Maximum: 1000 */ - limit?: string; - /** @description Specifies the number of campaigns to skip in the result set before returning the first report in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ - offset?: string; + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; - header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which the ad rate strategy is being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; }; - requestBody?: never; + /** @description This type defines the request fields for the ad rate strategy that shall be updated. */ + requestBody: { + content: { + "application/json": components["schemas"]["UpdateAdrateStrategyRequest"]; + }; + }; responses: { - /** @description Success */ - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["TargetedAdsPagedCollection"]; + "application/json": components["schemas"]["Error"]; }; }; /** @description Bad Request */ @@ -4801,32 +5253,40 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; - updateAdRateStrategy: { + updateBiddingStrategy: { parameters: { query?: never; header: { @@ -4834,15 +5294,15 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which the keyword bidding strategy is being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; }; - /** @description This type defines the request fields for the ad rate strategy that shall be updated. */ + /** @description This type specifies the new value for the bidding strategy. */ requestBody: { content: { - "application/json": components["schemas"]["UpdateAdrateStrategyRequest"]; + "application/json": components["schemas"]["UpdateBiddingStrategyRequest"]; }; }; responses: { @@ -4851,35 +5311,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -4891,7 +5361,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which the budget is being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4903,40 +5373,59 @@ export interface operations { }; }; responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": Record; + }; + }; /** @description No content */ 204: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -4948,7 +5437,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -4965,35 +5454,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5005,7 +5504,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which a set of keywords is being created.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -5031,35 +5530,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5071,7 +5580,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which a set of keywords is being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -5097,44 +5606,54 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getKeywords: { parameters: { query?: { - /** @description A comma-separated list of ad group IDs. This query parameter is used if the seller wants to retrieve keywords from one or more specific ad groups. If this query parameter is not used, all keywords that are part of the CPC campaign are returned.Note:You can call the getAdGroups method to retrieve the ad group IDs for a seller. */ + /** @description A comma-separated list of ad group IDs. This query parameter is used if the seller wants to retrieve keywords from one or more specific ad groups. If this query parameter is not used, all keywords that are part of the CPC campaign are returned.

Use the getAdGroups method to retrieve the ad group IDs for a seller. */ ad_group_ids?: string; - /** @description A comma-separated list of keyword statuses. The results will be filtered to only include the given statuses of the keyword. If none are provided, all keywords are returned. */ + /** @description A comma-separated list of keyword statuses. The results will be filtered to only include the given statuses of the keyword. If none are provided, all keywords are returned.

See KeywordStatusEnum for supported values. */ keyword_status?: string; /** @description

Specifies the maximum number of results to return on a page in the paginated response.

Default: 10
Maximum: 500 */ limit?: string; @@ -5143,7 +5662,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the keyword(s) being retrieved.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -5164,28 +5683,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5197,7 +5724,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which a keyword is being created.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; }; cookie?: never; @@ -5224,28 +5751,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5254,9 +5789,9 @@ export interface operations { query?: never; header?: never; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the keyword being retrieved.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; - /** @description This path parameter is used to identify the keyword to retrieve. */ + /** @description This path parameter specifies the unique identifier of the keyword being retrieved.

Use the getKeywords method to retrieve keyword IDs. */ keyword_id: string; }; cookie?: never; @@ -5277,28 +5812,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5310,9 +5853,9 @@ export interface operations { "Content-Type": string; }; path: { - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the keyword being updated.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_id: string; - /** @description A unique eBay-assigned ID that is generated when a keyword is created. */ + /** @description This path parameter specifies the unique identifier of the keyword being updated.

Use the getKeywords method to retrieve keyword IDs. */ keyword_id: string; }; cookie?: never; @@ -5325,39 +5868,58 @@ export interface operations { }; responses: { /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["UpdateKeywordResponse"]; + }; + }; + /** @description No content */ 204: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5392,35 +5954,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5455,48 +6027,58 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getNegativeKeywords: { parameters: { query?: { - /** @description A comma-separated list of ad group IDs.

This query parameter is used if the seller wants to retrieve the negative keywords from one or more specific ad groups. The results might not include these ad group IDs if other search conditions exclude them.

Note:You can call the getAdGroups method to retrieve the ad group IDs for a seller.

Required if the search results must be filtered to include negative keywords created at the ad group level. */ + /** @description A comma-separated list of ad group IDs.

This query parameter is used if the seller wants to retrieve the negative keywords from one or more specific ad groups. The results might not include these ad group IDs if other search conditions exclude them.

Use the getAdGroups method to retrieve the ad group IDs for a seller.

Required if the search results must be filtered to include negative keywords created at the ad group level. */ ad_group_ids?: string; - /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.

This query parameter is used if the seller wants to retrieve the negative keywords from a specific campaign. The results might not include these campaign IDs if other search conditions exclude them.

Note: Currently, only one campaign ID value is supported for each request. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the negative keywords being retrieved.

This query parameter is used if the seller wants to retrieve the negative keywords from a specific campaign. The results might not include these campaign IDs if other search conditions exclude them.

Note: Currently, only one campaign ID value is supported for each request.

Use the getCampaigns method to retrieve campaign IDs. */ campaign_ids?: string; /** @description The number of results, from the current result set, to be returned in a single page. */ limit?: string; - /** @description A comma-separated list of negative keyword statuses.

This query parameter is used if the seller wants to filter the search results based on one or more negative keyword statuses. */ + /** @description A comma-separated list of negative keyword statuses.

This query parameter is used if the seller wants to filter the search results based on one or more negative keyword statuses.

See NegativeKeywordStatusEnum for supported values. */ negative_keyword_status?: string; /** @description The number of results that will be skipped in the result set. This is used with the limit field to control the pagination of the output.

For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. */ offset?: string; @@ -5521,35 +6103,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5585,28 +6177,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5615,7 +6215,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The unique identifier for the negative keyword.

This value is returned in the Location response header from the createNegativeKeyword method. */ + /** @description This path parameter specifies the unique identifier for the negative keyword being retrieved.

Use the getNegativeKeywords method to retrieve negative keyword IDs. */ negative_keyword_id: string; }; cookie?: never; @@ -5636,35 +6236,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5693,42 +6303,54 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5737,7 +6359,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The unique ID of the Promoted Listings report you want to get.

This ID is generated by eBay when you run a report task with a call to createReportTask. Get all the seller's report IDs by calling getReportTasks.

*/ + /** @description This path parameter specifies the unique ID of the Promoted Listings report being retrieved.

Use the getReportTasks method to retrieve report IDs. */ report_id: string; }; cookie?: never; @@ -5758,27 +6380,38 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getReportMetadata: { parameters: { - query?: never; + query?: { + /** @description This query parameter is used only if the user wants to see report metadata for a specific funding model. Refer to the FundingModelEnum type for supported values. */ + funding_model?: string; + /** @description This query parameter is used only if the user wants to see COST_PER_CLICK report metadata for a specific channel. Refer to the ChannelEnum type for supported values.

Note: The channel parameter is only applicable for COST_PER_CLICK funding model. */ + channel?: string; + }; header?: never; path?: never; cookie?: never; @@ -5794,21 +6427,37 @@ export interface operations { "application/json": components["schemas"]["ReportMetadatas"]; }; }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Error"]; + }; + }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getReportMetadataForReportType: { parameters: { - query?: never; + query?: { + /** @description The funding model used in the report. The funding model must be compatible with the report type specified in the path parameter. Refer to the FundingModelEnum type for supported values. */ + funding_model?: string; + /** @description The channel used in the report. The channel must be compatible with the report type specified in the path parameter. Refer to the ChannelEnum type for supported values.

Note: The channel parameter is only applicable for COST_PER_CLICK funding model. */ + channel?: string; + }; header?: never; path: { - /** @description The name of the report type whose metadata you want to retrieve.

Tip: For details about available report types and their descriptions, refer to the ReportTypeEnum. */ + /** @description This path parameter specifies the name of the report type whose metadata you want to retrieve.

For details about available report types and their descriptions, refer to the ReportTypeEnum. */ report_type: string; }; cookie?: never; @@ -5829,39 +6478,47 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getReportTasks: { parameters: { query?: { - /** @description Specifies the maximum number of report tasks to return on a page in the paginated response.

Default: 10
Maximum: 500

*/ + /** @description Specifies the maximum number of report tasks to return on a page in the paginated response.

Default: 10
Maximum: 500 */ limit?: string; /** @description Specifies the number of report tasks to skip in the result set before returning the first report in the paginated response.

Combine offset with the limit query parameter to control the reports returned in the response. For example, if you supply an offset of 0 and a limit of 10, the response contains the first 10 reports from the complete list of report tasks retrieved by the call. If offset is 10 and limit is 10, the first page of the response contains reports 11-20 from the complete result set.

Default: 0 */ offset?: string; - /** @description This parameter filters the returned report tasks by their status. Supply a comma-separated list of the report statuses you want returned. The results are filtered to include only the report statuses you specify.

Note: The results might not include some report tasks if other search conditions exclude them.

Valid values:
   PENDING
   SUCCESS
   FAILED */ + /** @description This query parameter filters the returned report tasks by their status. Supply a comma-separated list of the report statuses you want returned. The results are filtered to include only the report statuses you specify.

Note: The results might not include some report tasks if other search conditions exclude them.
See TaskStatusEnum for supported values. */ report_task_statuses?: string; }; header?: never; @@ -5884,14 +6541,18 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5917,35 +6578,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5954,7 +6625,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description A unique eBay-assigned ID for the report task that's generated when the report task is created by a call to createReportTask. */ + /** @description This path parameter specifies the unique identifier of the report task being retrieved.

Use the getReportTasks method to retrieve report task Ids. */ report_task_id: string; }; cookie?: never; @@ -5975,21 +6646,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -5998,7 +6675,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description A unique eBay-assigned ID for the report task that's generated when the report task is created by a call to createReportTask. */ + /** @description This path parameter specifies the unique identifier of the report task being deleted.

Use the getReportTasks method to retrieve report task Ids. */ report_task_id: string; }; cookie?: never; @@ -6010,35 +6687,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Internal Server Error */ + /** @description Internal Server error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6052,7 +6739,7 @@ export interface operations { path?: never; cookie?: never; }; - /** @description This type defines the fields that describe an item price markdown promotion. */ + /** @description This type defines the fields that describe an item price markdown discount. */ requestBody?: { content: { "application/json": components["schemas"]["ItemPriceMarkdown"]; @@ -6074,21 +6761,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business Error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6097,7 +6790,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter takes a concatenation of the ID of the promotion you want to get plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.

Example: 1********5@EBAY_US */ + /** @description This path parameter takes a concatenation of the ID of the discount you want to retrieve plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the discount (promotionId) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discoun is hosted.

Use the getPromotions method to retrieve promotion Ids. See MarketplaceIdEnum for supported Marketplace ID values.

Example: 1********5@EBAY_US */ promotion_id: string; }; cookie?: never; @@ -6118,21 +6811,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6144,12 +6843,12 @@ export interface operations { "Content-Type": string; }; path: { - /** @description This path parameter takes a concatenation of the ID of the promotion you want to update plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.

Example: 1********5@EBAY_US */ + /** @description This path parameter takes a concatenation of the ID of the discount you want to update plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the discount (promotionId) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.

Use the getPromotions method to retrieve promotion Ids. See MarketplaceIdEnum for supported Marketplace ID values.

Example: 1********5@EBAY_US */ promotion_id: string; }; cookie?: never; }; - /** @description This type defines the fields that describe an item price markdown promotion. */ + /** @description This type defines the fields that describe an item price markdown discount. */ requestBody?: { content: { "application/json": components["schemas"]["ItemPriceMarkdown"]; @@ -6170,35 +6869,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business Error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6207,7 +6916,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter takes a concatenation of the ID of the promotion you want to delete plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.

Example: 1********5@EBAY_US */ + /** @description This path parameter takes a concatenation of the ID of the discount you want to delete plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the discount (promotionId) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.

Use the getPromotions method to retrieve promotion Ids. See MarketplaceIdEnum for supported Marketplace ID values.

Example: 1********5@EBAY_US */ promotion_id: string; }; cookie?: never; @@ -6219,28 +6928,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6254,7 +6971,7 @@ export interface operations { path?: never; cookie?: never; }; - /** @description This type defines the fields that describe an item promotion. */ + /** @description This type defines the fields that describe an item discount. */ requestBody?: { content: { "application/json": components["schemas"]["ItemPromotion"]; @@ -6276,21 +6993,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6299,7 +7022,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter takes a concatenation of the ID of the promotion you want to retrieve plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.

Example: 1********5@EBAY_US */ + /** @description This path parameter takes a concatenation of the ID of the discount you want to retrieve plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the discount (promotionId) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.

Use the getPromotions method to retrieve promotion Ids. See MarketplaceIdEnum for supported Marketplace ID values.

Example: 1********5@EBAY_US */ promotion_id: string; }; cookie?: never; @@ -6320,21 +7043,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6346,12 +7075,12 @@ export interface operations { "Content-Type": string; }; path: { - /** @description This path parameter takes a concatenation of the ID of the promotion you want to update plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.

Example: 1********5@EBAY_US */ + /** @description This path parameter takes a concatenation of the ID of the discount you want to update plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the discount (promotionId) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discouint is hosted.

Use the getPromotions method to retrieve promotion Ids. See MarketplaceIdEnum for supported Marketplace ID values.

Example: 1********5@EBAY_US */ promotion_id: string; }; cookie?: never; }; - /** @description This type defines the fields that describe an item promotion. */ + /** @description This type defines the fields that describe an item discount. */ requestBody?: { content: { "application/json": components["schemas"]["ItemPromotion"]; @@ -6372,35 +7101,45 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; - /** @description Business Error */ + /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6409,7 +7148,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter takes a concatenation of the ID of the promotion you want to delete plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.

Example: 1********5@EBAY_US */ + /** @description This path parameter takes a concatenation of the ID of the discount you want to delete plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the discount (promotionId) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.

Use the getPromotions method to retrieve promotion Ids. See MarketplaceIdEnum for supported Marketplace ID values.

Example: 1********5@EBAY_US */ promotion_id: string; }; cookie?: never; @@ -6421,48 +7160,56 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getListingSet: { parameters: { query?: { - /** @description Specifies the maximum number of promotions returned on a page from the result set.

Default: 200
Maximum: 200 */ + /** @description Specifies the maximum number of discounts returned on a page from the result set.

Default: 200
Maximum: 200 */ limit?: string; - /** @description Specifies the number of promotions to skip in the result set before returning the first promotion in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ + /** @description Specifies the number of discounts to skip in the result set before returning the first discount in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ offset?: string; /** @description Reserved for future use. */ q?: string; /** @description Specifies the order in which to sort the associated listings in the response. If you precede the supplied value with a dash, the response is sorted in reverse order.

Example:
   sort=PRICE - Sorts the associated listings by their current price in ascending order
   sort=-TITLE - Sorts the associated listings by their title in descending alphabetical order (Z-Az-a)

Valid values:
  • AVAILABLE
  • PRICE
  • TITLE
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/marketing/types/csb:SortField */ sort?: string; - /** @description This query parameter applies only to markdown promotions. It filters the response based on the indicated status of the promotion. Currently, the only supported value for this parameter is MARKED_DOWN, which indicates active markdown promotions. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/marketing/types/sme:ItemMarkdownStatusEnum */ + /** @description This query parameter applies only to markdown discounts. It filters the response based on the indicated status of the discount.

Note: Currently, the only supported value for this parameter is MARKED_DOWN, which indicates active markdown discounts. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/marketing/types/sme:ItemMarkdownStatusEnum */ status?: string; }; header?: never; path: { - /** @description This path parameter takes a concatenation of the ID of the promotion you want to get plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.

Example: 1********5@EBAY_US */ + /** @description This path parameter takes a concatenation of the ID of the discount associated with the listing set plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the discount (promotionId) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.

Use the getPromotions method to retrieve promotion Ids. See MarketplaceIdEnum for supported Marketplace ID values.

Example: 1********5@EBAY_US */ promotion_id: string; }; cookie?: never; @@ -6483,40 +7230,46 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getPromotions: { parameters: { query: { - /** @description Specifies the maximum number of promotions returned on a page from the result set.

Default: 200
Maximum: 200 */ + /** @description Specifies the maximum number of discounts returned on a page from the result set.

Default: 200
Maximum: 200 */ limit?: string; - /** @description The eBay marketplace ID of the site where the promotion is hosted.

Valid values:

  • EBAY_AU = Australia
  • EBAY_DE = Germany
  • EBAY_ES = Spain
  • EBAY_FR = France
  • EBAY_GB = Great Britain
  • EBAY_IT = Italy
  • EBAY_US = United States
*/ + /** @description This parameter specifies eBay marketplace ID of the site where the discount is hosted.

See MarketplaceIdEnum for supported Marketplace ID values. */ marketplace_id: string; - /** @description Specifies the number of promotions to skip in the result set before returning the first promotion in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ + /** @description Specifies the number of discounts to skip in the result set before returning the first discount in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ offset?: string; - /** @description Specifies the promotion state by which you want to filter the results. The response contains only those promotions that match the state you specify.

Valid values:
  • DRAFT
  • SCHEDULED
  • RUNNING
  • PAUSED
  • ENDED
Maximum number of input values: 1 */ + /** @description This parameter specifies the discount state by which you want to filter the results. The response contains only those discounts that match the state you specify.

See PromotionStatusEnum for supported values.

Maximum number of input values: 1 */ promotion_status?: string; - /** @description Filters the returned promotions based on their campaign promotion type. Specify one of the following values to indicate the promotion type you want returned:
  • CODED_COUPON – A coupon code promotion set with createItemPromotion.
  • MARKDOWN_SALE – A markdown promotion set with createItemPriceMarkdownPromotion.
  • ORDER_DISCOUNT – A threshold promotion set with createItemPromotion.
  • VOLUME_DISCOUNT – A volume pricing promotion set with createItemPromotion.
*/ + /** @description This parameter specifies the campaign discounts type by which you want to filter the results.

See PromotionTypeEnum for supported values. */ promotion_type?: string; - /** @description A string consisting of one or more keywords. eBay filters the response by returning only the promotions that contain the supplied keywords in the promotion title.

Example: "iPhone" or "Harry Potter."

Commas that separate keywords are ignored. For example, a keyword string of "iPhone, iPad" equals "iPhone iPad", and each results in a response that contains promotions with both "iPhone" and "iPad" in the title. */ + /** @description A string consisting of one or more keywords. eBay filters the response by returning only the discounts that contain the supplied keywords in the title.

Example: "iPhone" or "Harry Potter."

Commas that separate keywords are ignored. For example, a keyword string of "iPhone, iPad" equals "iPhone iPad", and each results in a response that contains discounts with both "iPhone" and "iPad" in the title. */ q?: string; - /** @description Specifies the order for how to sort the response. If you precede the supplied value with a dash, the response is sorted in reverse order.

Example:
   sort=END_DATE   Sorts the promotions in the response by their end dates in ascending order
   sort=-PROMOTION_NAME   Sorts the promotions by their promotion name in descending alphabetical order (Z-Az-a)

Valid values:
  • START_DATE
  • END_DATE
  • PROMOTION_NAME
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/marketing/types/csb:SortField */ + /** @description Specifies the order for how to sort the response. If you precede the supplied value with a dash, the response is sorted in reverse order.

Example:
   sort=END_DATE   Sorts the discounts in the response by their end dates in ascending order
   sort=-PROMOTION_NAME   Sorts the discounts by their name in descending alphabetical order (Z-Az-a)

Valid values:
  • START_DATE
  • END_DATE
  • PROMOTION_NAME
For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/marketing/types/csb:SortField */ sort?: string; }; header?: never; @@ -6539,14 +7292,18 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6555,7 +7312,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter takes a concatenation of the ID of the promotion you want to pause plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.

Example: 1********5@EBAY_US */ + /** @description This path parameter takes a concatenation of the ID of the active discount being paused plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the discount (promotionId) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.

Use the getPromotions method to retrieve promotion Ids. See MarketplaceIdEnum for supported Marketplace ID values.

Example: 1********5@EBAY_US */ promotion_id: string; }; cookie?: never; @@ -6567,28 +7324,36 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6597,7 +7362,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description This path parameter takes a concatenation of the ID of the promotion you want to resume plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.

Example: 1********5@EBAY_US */ + /** @description This path parameter takes a concatenation of the ID of the paused discount being resumed with the listing set plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an "at sign" (@).

The ID of the discount (promotionId) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.

Use the getPromotions method to retrieve promotion Ids. See MarketplaceIdEnum for supported Marketplace ID values.

Example: 1********5@EBAY_US */ promotion_id: string; }; cookie?: never; @@ -6609,45 +7374,53 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Bad Request */ 400: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getPromotionReports: { parameters: { query: { - /** @description Specifies the maximum number of promotions returned on a page from the result set.

Default: 200
Maximum: 200 */ + /** @description Specifies the maximum number of discounts returned on a page from the result set.

Default: 200
Maximum: 200 */ limit?: string; - /** @description The eBay marketplace ID of the site for which you want the promotions report.

Valid values:

  • EBAY_AU = Australia
  • EBAY_DE = Germany
  • EBAY_ES = Spain
  • EBAY_FR = France
  • EBAY_GB = Great Britain
  • EBAY_IT = Italy
  • EBAY_US = United States
*/ + /** @description This parameter specifies the eBay marketplace ID of the site for which you want the discounts report.

See MarketplaceIdEnum for supported Marketplace ID values. */ marketplace_id: string; - /** @description Specifies the number of promotions to skip in the result set before returning the first promotion in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ + /** @description Specifies the number of discounts to skip in the result set before returning the first discount in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ offset?: string; - /** @description Limits the results to the promotions that are in the state specified by this query parameter.

Valid values:
  • DRAFT
  • SCHEDULED
  • RUNNING
  • PAUSED
  • ENDED
Maximum number of values supported: 1 */ + /** @description This parameter specifies the discount state by which you want to filter the results.

See PromotionStatusEnum for supported values.

Maximum number of input values: 1 */ promotion_status?: string; - /** @description Filters the returned promotions in the report based on their campaign promotion type. Specify one of the following values to indicate the promotion type you want returned in the report:
  • CODED_COUPON – A coupon code promotion set with createItemPromotion.
  • MARKDOWN_SALE – A markdown promotion set with createItemPriceMarkdownPromotion.
  • ORDER_DISCOUNT – A threshold promotion set with createItemPromotion.
  • VOLUME_DISCOUNT – A volume pricing promotion set with createItemPromotion.
*/ + /** @description This parameter specifies the campaign discount type by which you want to filter the results.

See PromotionTypeEnum for supported values. */ promotion_type?: string; - /** @description A string consisting of one or more keywords. eBay filters the response by returning only the promotions that contain the supplied keywords in the promotion title.

Example: "iPhone" or "Harry Potter."

Commas that separate keywords are ignored. For example, a keyword string of "iPhone, iPad" equals "iPhone iPad", and each results in a response that contains promotions with both "iPhone" and "iPad" in the title. */ + /** @description A string consisting of one or more keywords. eBay filters the response by returning only the discounts that contain the supplied keywords in the discount title.

Example: "iPhone" or "Harry Potter."

Commas that separate keywords are ignored. For example, a keyword string of "iPhone, iPad" equals "iPhone iPad", and each results in a response that contains discounts with both "iPhone" and "iPad" in the title. */ q?: string; }; header?: never; @@ -6670,21 +7443,25 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getPromotionSummaryReport: { parameters: { query: { - /** @description The eBay marketplace ID of the site you for which you want a promotion summary report.

Valid values:

  • EBAY_AU = Australia
  • EBAY_DE = Germany
  • EBAY_ES = Spain
  • EBAY_FR = France
  • EBAY_GB = Great Britain
  • EBAY_IT = Italy
  • EBAY_US = United States
*/ + /** @description This parameter specifies the eBay marketplace ID of the site for which you want a discount summary report.

See MarketplaceIdEnum for supported Marketplace ID values. */ marketplace_id: string; }; header?: never; @@ -6707,21 +7484,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Not Found */ 404: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6732,7 +7515,7 @@ export interface operations { limit?: string; /** @description The number of results to skip in a pagination query. This value cannot be less than zero.

Default value: 0 */ offset?: string; - /** @description This field contains filter criteria for the results returned. Filter by email campaign type, email campaign status, and marketplace ID.

For example, setting q=campaignType:WELCOME,ITEM_SHOWCASE;status:ACTIVE will return only active Welcome and Item Showcase email campaigns.

If no filter is set up through the q query parameter, all of the seller's campaigns will be returned in the results set. */ + /** @description This field contains filter criteria for the results returned. Filter by email campaign type, email campaign status, and marketplace ID.

For example, setting q=campaignType:WELCOME,ITEM_SHOWCASE will return only Welcome and Item Showcase email campaigns.

Note: At least one campaignType value must be set through the q query parameter. If no other filters are set, all email campaigns for the specified campaign type(s) will be returned in the results set. */ q?: string; /** @description The criteria for sorting email campaign results. See ItemSortEnum for sorting options and their enum values.

Default: NEWLY_LISTED */ sort?: string; @@ -6757,21 +7540,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6779,7 +7568,7 @@ export interface operations { parameters: { query?: never; header: { - /** @description The eBay marketplace that the email campaign interfaces with.

eBay marketplaces correspond to geographical regions or large submarkets of regions. For example, EBAY-US corresponds to the United States market.

See the full list of marketplace IDs. */ + /** @description The eBay marketplace that the email campaign interfaces with.

eBay marketplaces correspond to geographical regions or large submarkets of regions. For example, EBAY-US corresponds to the United States market.

See MarketplaceIdEnum for supported values. */ "X-EBAY-C-MARKETPLACE-ID": string; /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ "Content-Type": string; @@ -6808,21 +7597,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6831,7 +7626,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The unique eBay-assigned ID of the email campaign.

Call getEmailCampaigns to retrieve a list of email campaign IDs for a seller. Use the emailCampaignId value of the desired email campaign. */ + /** @description This path parameter specifies the unique eBay-assigned identifier of the email campaign being retrieved.

Use the getEmailCampaigns method to retrieve a list of email campaign IDs for a seller. */ email_campaign_id: string; }; cookie?: never; @@ -6852,21 +7647,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6878,7 +7679,7 @@ export interface operations { "Content-Type": string; }; path: { - /** @description The email campaign id assigned by the system when the email campaign is created. Call getEmailCampaigns to retrieve a list of email campaign IDs for a seller. */ + /** @description This path parameter specifies the unique eBay assigned identifier for the email campaign being updated.

Use the getEmailCampaigns method to retrieve a list of email campaign IDs for a seller. */ email_campaign_id: string; }; cookie?: never; @@ -6904,21 +7705,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -6927,7 +7734,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description A unique eBay-assigned ID for an email campaign that is generated when an email campaign is created.

Note: You can retrieve the email campaign IDs for a specified seller using the getEmailCampaigns method. */ + /** @description This path parameter specifies the unique eBay-assigned identifier for the email campaign being deleted.

You can retrieve the email campaign IDs for a specified seller using the getEmailCampaigns method. */ email_campaign_id: string; }; cookie?: never; @@ -6948,28 +7755,34 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; getAudiences: { parameters: { query: { - /** @description The email campaign type to search against. See CampaignTypeEnum for the full list of available email campaign types and associated enum values. */ + /** @description The email campaign type to search against.

See CampaignTypeEnum for the full list of available email campaign types and associated enum values. */ emailCampaignType: string; /** @description The maximum number of audience groups returned per page in the results set.

Min value: 1

Max value: 200

Default value: 100 */ limit?: string; @@ -6996,21 +7809,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -7019,7 +7838,7 @@ export interface operations { query?: never; header?: never; path: { - /** @description The email campaign id assigned by the system when the email campaign is created. Call getEmailCampaigns to retrieve a list of email campaign IDs for a seller. */ + /** @description This path parameter specifies the unique eBay assigned identifier for the email campaign associated with the preview being retrieved.

Use the getEmailCampaigns method to retrieve a list of email campaign IDs for a seller. */ email_campaign_id: string; }; cookie?: never; @@ -7040,21 +7859,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; @@ -7086,21 +7911,27 @@ export interface operations { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Conflict */ 409: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; /** @description Internal Server Error */ 500: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Error"]; + }; }; }; }; diff --git a/src/types/restful/specs/sell_metadata_v1_oas3.ts b/src/types/restful/specs/sell_metadata_v1_oas3.ts index fa989ecc..662c0286 100644 --- a/src/types/restful/specs/sell_metadata_v1_oas3.ts +++ b/src/types/restful/specs/sell_metadata_v1_oas3.ts @@ -21,6 +21,57 @@ export interface paths { patch?: never; trace?: never; }; + "/marketplace/{marketplace_id}/get_category_policies": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns eBay category policy metadata for all leaf categories on the specified marketplace.

By default, this method returns metadata on all leaf categories. You can limit the size of the result set by using the filter query parameter to specify only the leaf category IDs you want to review.

If you specify a valid marketplace ID but that marketplace does not contain policy information, or if you filter out all results, a successful call returns a 204 No content status code with an empty response body.

*/ + get: operations["getCategoryPolicies"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/marketplace/{marketplace_id}/get_classified_ad_policies": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns eBay classified ad policy metadata for all leaf categories on the specified marketplace.

By default, this method returns metadata on all leaf categories. You can limit the size of the result set by using the filter query parameter to specify only the leaf category IDs you want to review.

If you specify a valid marketplace ID but that marketplace does not contain policy information, or if you filter out all results, a successful call returns a 204 No content status code with an empty response body.

Note: This method does not support classified ads for eBay US Motors categories (EBAY_MOTORS_US). For eBay Motors Pro users, use getMotorsListingPolicies.

*/ + get: operations["getClassifiedAdPolicies"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/marketplace/{marketplace_id}/get_currencies": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns the default currency used by the eBay marketplace specified in the request. This is the currency that the seller should use when providing price data for this marketplace through listing APIs. */ + get: operations["getCurrencies"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/marketplace/{marketplace_id}/get_extended_producer_responsibility_policies": { parameters: { query?: never; @@ -45,7 +96,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method returns hazardous materials label information for the specified eBay marketplace. The information includes IDs, descriptions, and URLs (as applicable) for the available signal words, statements, and pictograms. The returned statements are localized for the default langauge of the marketplace. If a marketplace does not support hazardous materials label information, an error is returned.

This information is used by the seller to add hazardous materials label related information to their listings (see Specifying hazardous material related information).

*/ + /** @description This method returns hazardous materials label information for the specified eBay marketplace. The information includes IDs, descriptions, and URLs (as applicable) for the available signal words, statements, and pictograms. The returned statements are localized for the default language of the marketplace. If a marketplace does not support hazardous materials label information, no response payload is returned, but only a 204 No content status code.

This information is used by the seller to add hazardous materials label related information to their listings (see Specifying hazardous material related information).

*/ get: operations["getHazardousMaterialsLabels"]; put?: never; post?: never; @@ -62,7 +113,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method returns item condition metadata on one, multiple, or all eBay categories on an eBay marketplace. This metadata consists of the different item conditions (with IDs) that an eBay category supports, and a boolean to indicate if an eBay category requires an item condition.

If applicable, this metadata also shows the different condition descriptors (with IDs) that an eBay category supports.

Note: Currently, condition grading is only applicable to the following trading card categories:
  • Non-Sport Trading Card Singles
  • CCG Individual Cards
  • Sports Trading Cards Singles

The identifier of the eBay marketplace is passed in as a path parameter, and unless one or more eBay category IDs are passed in through the filter query parameter, this method will return metadata on every single category for the specified marketplace. If you only want to view item condition metadata for one eBay category or a select group of eBay categories, you can pass in up to 50 eBay category ID through the filter query parameter.

Important: Certified - Refurbished-eligible sellers, and sellers who are eligible to list with the new values (EXCELLENT_REFURBISHED, VERY_GOOD_REFURBISHED, and GOOD_REFURBISHED) must use an OAuth token created with the authorization code grant flow and https://api.ebay.com/oauth/api_scope/sell.inventory scope in order to retrieve the refurbished conditions for the relevant categories.

See the eBay Refurbished Program - Category and marketplace support topic for the categories and marketplaces that support these refurbished conditions

These restricted item conditions will not be returned if an OAuth token created with the client credentials grant flow and https://api.ebay.com/oauth/api_scope scope is used, or if any seller is not eligible to list with that item condition.

See the Specifying OAuth scopes topic for more information about specifying scopes.


Tip: This method can potentially return a very large response payload. eBay recommends that the response payload be compressed by passing in the Accept-Encoding request header and setting the value to gzip. */ + /** @description This method returns item condition metadata on one, multiple, or all eBay categories on an eBay marketplace. This metadata consists of the different item conditions (with IDs) that an eBay category supports, and a boolean to indicate if an eBay category requires an item condition.

If applicable, this metadata also shows the different condition descriptors (with IDs) that an eBay category supports.

Note: Currently, condition grading is only applicable to the following trading card categories:
  • Non-Sport Trading Card Singles
  • CCG Individual Cards
  • Sports Trading Cards Singles

The identifier of the eBay marketplace is passed in as a path parameter, and unless one or more eBay category IDs are passed in through the filter query parameter, this method will return metadata on every single category for the specified marketplace. If you only want to view item condition metadata for one eBay category or a select group of eBay categories, you can pass in up to 50 eBay category ID through the filter query parameter.

Important: Certified - Refurbished-eligible sellers, and sellers who are eligible to list with the new values (EXCELLENT_REFURBISHED, VERY_GOOD_REFURBISHED, and GOOD_REFURBISHED) must use an OAuth token created with the authorization code grant flow and https://api.ebay.com/oauth/api_scope/sell.inventory scope in order to retrieve the refurbished conditions for the relevant categories.

Refurbished item conditions are only supported in the Australia, Canada, French Canada, Germany, France, Italy, UK, and US marketplaces. See the eBay Refurbished Program page in help center for the categories that support refurbished conditions.

These restricted item conditions will not be returned if an OAuth token created with the client credentials grant flow and https://api.ebay.com/oauth/api_scope scope is used, or if any seller is not eligible to list with that item condition.

See the Specifying OAuth scopes topic for more information about specifying scopes.


Tip: This method can potentially return a very large response payload. eBay recommends that the response payload be compressed by passing in the Accept-Encoding request header and setting the value to gzip. */ get: operations["getItemConditionPolicies"]; put?: never; post?: never; @@ -89,6 +140,40 @@ export interface paths { patch?: never; trace?: never; }; + "/marketplace/{marketplace_id}/get_listing_type_policies": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns eBay listing type policy metadata for all leaf categories on the specified marketplace.

By default, this method returns metadata on all leaf categories. You can limit the size of the result set by using the filter query parameter to specify only the leaf category IDs you want to review.

If you specify a valid marketplace ID but that marketplace does not contain policy information, or if you filter out all results, a successful call returns a 204 No content status code with an empty response body.

*/ + get: operations["getListingTypePolicies"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/marketplace/{marketplace_id}/get_motors_listing_policies": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns eBay Motors policy metadata for all leaf categories on the specified marketplace.

By default, this method returns metadata on all leaf categories. You can limit the size of the result set by using the filter query parameter to specify only the leaf category IDs you want to review.

If you specify a valid marketplace ID but that marketplace does not contain policy information, or if you filter out all results, a successful call returns a 204 No content status code with an empty response body.

Note: To return policy information for eBay US Motors categories, specify marketplace_id as EBAY_MOTORS_US.

*/ + get: operations["getMotorsListingPolicies"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/marketplace/{marketplace_id}/get_negotiated_price_policies": { parameters: { query?: never; @@ -106,6 +191,40 @@ export interface paths { patch?: never; trace?: never; }; + "/marketplace/{marketplace_id}/get_product_safety_labels": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns product safety label information for the specified eBay marketplace. The information includes IDs, descriptions, and URLs (as applicable) for the available statements and pictograms. The returned statements are localized for the default language of the marketplace. If a marketplace does not support product safety label information, no response payload is returned, but only a 204 No content status code.

This information is used by the seller to add product safety label related information to their listings. The getRegulatoryPolicies method can be used to see which categories recommend or require product safety labels.

*/ + get: operations["getProductSafetyLabels"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/marketplace/{marketplace_id}/get_regulatory_policies": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method returns regulatory policies for one, multiple, or all eBay categories in an eBay marketplace. The identifier of the eBay marketplace is passed in as a path parameter, and unless one or more eBay category IDs are passed in through the filter query parameter, this method will return metadata for every listing category in the specified marketplace.

Tip: This method can potentially return a very large response payload. eBay recommends that the response payload be compressed by passing in the Accept-Encoding request header and setting the value to gzip.

*/ + get: operations["getRegulatoryPolicies"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/marketplace/{marketplace_id}/get_return_policies": { parameters: { query?: never; @@ -123,15 +242,15 @@ export interface paths { patch?: never; trace?: never; }; - "/country/{countryCode}/sales_tax_jurisdiction": { + "/marketplace/{marketplace_id}/get_shipping_policies": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** @description This method retrieves all sales-tax jurisdictions for the country specified in the countryCode path parameter. Countries with valid sales-tax jurisdictions are Canada and the US.

The response from this call tells you the jurisdictions for which a seller can configure tax tables. Although setting up tax tables is optional, you can use the createOrReplaceSalesTax method in the Account API call to configure the tax tables for the jurisdictions into which you sell.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

  • American Samoa (AS)
  • Guam (GU)
  • Northern Mariana Islands (MP)
  • Palau (PW)
  • US Virgin Islands (VI)
For additional information, refer to Taxes and import charges.

*/ - get: operations["getSalesTaxJurisdictions"]; + /** @description This method returns eBay shipping policy metadata for all leaf categories on the specified marketplace.

By default, this method returns metadata on all leaf categories. You can limit the size of the result set by using the filter query parameter to specify only the leaf category IDs you want to review.

If you specify a valid marketplace ID but that marketplace does not contain policy information, or if you filter out all results, a successful call returns a 204 No content status code with an empty response body. */ + get: operations["getShippingPolicies"]; put?: never; post?: never; delete?: never; @@ -140,93 +259,431 @@ export interface paths { patch?: never; trace?: never; }; -} -export type webhooks = Record; -export interface components { - schemas: { - AutomotivePartsCompatibilityPolicy: { - /** @description The category ID to which the automotive-parts-compatibility policies apply. */ - categoryId?: string; - /** @description A value that indicates the root node of the category tree used for the response set. Each marketplace is based on a category tree whose root node is indicated by this unique category ID value. All category policy information returned by this call pertains to the categories included below this root node of the tree.

A category tree is a hierarchical framework of eBay categories that begins at the root node of the tree and extends to include all the child nodes in the tree. Each child node in the tree is an eBay category that is represented by a unique categoryId value. Within a category tree, the root node has no parent node and leaf nodes are nodes that have no child nodes. */ - categoryTreeId?: string; - /** @description Indicates whether the category supports parts compatibility by either ASSEMBLY or by SPECIFICATION. For implementation help, refer to eBay API documentation */ - compatibilityBasedOn?: string; - /** @description Indicates the compatibility classification of the part based on high-level vehicle types. */ - compatibleVehicleTypes?: string[]; - /** - * Format: int32 - * @description Specifies the maximum number of compatible vehicle-applications allowed per item. - */ - maxNumberOfCompatibleVehicles?: number; + "/marketplace/{marketplace_id}/get_site_visibility_policies": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - AutomotivePartsCompatibilityPolicyResponse: { - /** @description A list of category IDs and the automotive-parts-compatibility policies for each of the listed categories. */ - automotivePartsCompatibilityPolicies?: components["schemas"]["AutomotivePartsCompatibilityPolicy"][]; - /** @description A list of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ - warnings?: components["schemas"]["Error"][]; + /** @description This method returns eBay international site visibility policy metadata for all leaf categories on the specified marketplace.

By default, this method returns metadata on all leaf categories. You can limit the size of the result set by using the filter query parameter to specify only the leaf category IDs you want to review.

If you specify a valid marketplace ID but that marketplace does not contain policy information, or if you filter out all results, a successful call returns a 204 No content status code with an empty response body. */ + get: operations["getSiteVisibilityPolicies"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/compatibilities/get_compatibilities_by_specification": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** @description A container that defines the elements of error and warning messages. */ - Error: { - /** @description The category type for this error or warning. It takes an ErrorCategory object which can have one of three values:

  • Application: Indicates an exception or error occurred in the application code or at runtime. Examples include catching an exception in a service's business logic, system failures, or request errors from a dependency.
  • Business: Used when your service or a dependent service refused to continue processing on the resource because of a business rule violation such as "Seller does not ship item to Antarctica" or "Buyer ineligible to purchase an alcoholic item". Business errors are not syntactical input errors.
  • Request: Used when there is anything wrong with the request, such as authentication, syntactical errors, rate limiting or missing headers, bad HTTP header values, and so on.
*/ - category?: string; - /** @description Name of the domain containing the service or application. */ - domain?: string; - /** - * Format: int32 - * @description A positive integer that uniquely identifies the specific error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms. - */ - errorId?: number; - /** @description Identifies specific request elements associated with the error, if any. inputRefId's response is format specific. For JSON, use JSONPath notation. */ - inputRefIds?: string[]; - /** @description An expanded version of message that should be around 100-200 characters long, but is not required to be such. */ - longMessage?: string; - /** @description An end user and app developer friendly device agnostic message. It explains what the error or warning is, and how to fix it (in a general sense). Its value is at most 50 characters long. If applicable, the value is localized in the end user's requested locale. */ - message?: string; - /** @description Identifies specific response elements associated with the error, if any. Path format is the same as inputRefId. */ - outputRefIds?: string[]; - /** @description This optional complex field type contains a list of one or more context-specific ErrorParameter objects, with each item in the list entry being a parameter (or input field name) that caused an error condition. Each ErrorParameter object consists of two fields, a name and a value. */ - parameters?: components["schemas"]["ErrorParameter"][]; - /** @description Name of the domain's subsystem or subdivision. For example, checkout is a subdomain in the buying domain. */ - subdomain?: string; + get?: never; + put?: never; + /** @description This method is used to retrieve all compatible application name-value pairs for a part based on the provided specification(s).

The part's relevant dimensions and/or characteristics can be provided through the specifications container. For example, when retrieving compatible application name-value pairs for a tire, the tire's dimensions (such as the section width or rim diameter) should be provided.

By default, all compatible application name-value pairs for the specifications are returned. You can limit the size of the result set by using the compatibilityPropertyFilters array to specify the properties (such as make, model, year, or trim) you wish to be included in the response.

Note: The getCompatibilityPropertyNames and getCompatibilityPropertyValues methods can be used to retrieve valid property names and values that can be used as the name-value pairs to define specifications. */ + post: operations["getCompatibilitiesBySpecification"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/compatibilities/get_compatibility_property_names": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** @description Container for a error parameter. */ - ErrorParameter: { - /** @description Name of the entity that threw the error. */ - name?: string; - /** @description A description of the error. */ - value?: string; + get?: never; + put?: never; + /** @description This method is used to retrieve product compatibility property names for the specified compatibility-enabled category.

Compatibility property names can be used alongside the corresponding compatibility property value (retrieved using the getCompatibilityPropertyValues method) to describe the assembly for which an item is compatible.

The categoryId of the compatibility-enabled category for which to retrieve compatibility property names is required in the request body.

By default, all property names within the compatibility category of the specified compatibility-enable category are returned. You can limit the size of the result set by using the dataset array to specify the types of properties you want returned. */ + post: operations["getCompatibilityPropertyNames"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/compatibilities/get_compatibility_property_values": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** @description A type that defines the attributes of an Extended Producer Responsibility policy. */ - ExtendedProducerResponsibility: { - /** @description An indication of whether the attribute can be enabled for listing variations.

If the value is true, the attribute may be specified at the variation level. */ - enabledForVariations?: boolean; - /** @description The name of the attribute included in the policy. For implementation help, refer to eBay API documentation */ - name?: string; - /** @description The usage guidelines for the attribute, in the specified marketplace. For implementation help, refer to eBay API documentation */ - usage?: string; + get?: never; + put?: never; + /** @description This method is used to retrieve product compatibility property values associated with a single property name, in the specified category.

Compatibility property values can be used alongside the corresponding compatibility property name (retrieved using the getCompatibilityPropertyNames method) to describe the assembly for which an item is compatible.

The categoryId of the compatibility-enabled category for which to retrieve compatibility property values is required in the request body, as well as the propertyName for which you wish to retrieve associated values.

By default, all property values associated with the specified propertyName are returned. You can limit the size of the result set by using the propertyFilter array. Only property values associated with the specified name-value pairs will be returned. */ + post: operations["getCompatibilityPropertyValues"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/compatibilities/get_multi_compatibility_property_values": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** @description A type that defines the Extended Producer Responsibility policy. */ - ExtendedProducerResponsibilityPolicy: { - /** @description The unique identifier for the category under which the policy applies. */ - categoryId?: string; - /** @description The unique identifier for the category tree under which the policy applies. */ - categoryTreeId?: string; - /** @description The details regarding the attributes included in the policy, such as their usage guidelines and whether they can be specified at the listing variation level. */ - supportedAttributes?: components["schemas"]["ExtendedProducerResponsibility"][]; + get?: never; + put?: never; + /** @description This method is used to retrieve product compatibility property values associated with multiple property names, in the specified category.

Compatibility property values can be used alongside the corresponding compatibility property name (retrieved using the getCompatibilityPropertyNames method) to describe the assembly for which an item is compatible.

The categoryId of the compatibility-enabled category for which to retrieve compatibility property values is required in the request body, as well as the propertyNames for which you wish to retrieve associated property values. The propertyFilter array is also required to constrain the output. Only property values associated with the specified name-value pairs will be returned. */ + post: operations["getMultiCompatibilityPropertyValues"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/compatibilities/get_product_compatibilities": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** @description A type that defines the response fields for the getExtendedProducerResponsibilityPolicies method. */ - ExtendedProducerResponsibilityPolicyResponse: { - /** @description An array of response fields detailing the Extended Producer Responsibility policies supported for the specified marketplace. */ - extendedProducerResponsibilities?: components["schemas"]["ExtendedProducerResponsibilityPolicy"][]; - /** @description A collection of warnings generated for the request. */ - warnings?: components["schemas"]["Error"][]; + get?: never; + put?: never; + /** @description This method is used to retrieve all available item compatibility details for the specified product.

Item compatibility details can be used to see the properties for which an item is compatible. For example, if you are searching for a part for a specific vehicle, you can use this method to see the years, engine, and/or trim for which the part is compatible. Item compatibility details are returned as name-value pairs.

The product for which to retrieve item compatibility details must be provided through the productIdentifier field. This value can be either an eBay specific identifier (such as an ePID) or an external identifier (such as a UPC).

By default, all available item compatibility details for the specified product are returned. You can limit the size of the result set using the dataset or datasetPropertyName fields to specify the types of properties you want returned in the response. The applicationPropertyFilter array can also be used so that only parts compatible with the specified name-value pairs are returned. */ + post: operations["getProductCompatibilities"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/shipping/marketplace/{marketplace_id}/get_exclude_shipping_locations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** @description A type that describes hazard statements for hazardous materials labels */ - HazardStatement: { - /** @description The identifier of the statement. For sample values, see Hazard statement sample values. */ - statementId?: string; - /** @description The description of the statement localized to the default language of the marketplace. For sample values, see Hazard statement sample values. */ - statementDescription?: string; + /** @description This method retrieves a list of locations that the seller can use as excluded shipping locations within their listings or in their fulfillment business policies for the specified marketplace. These are locations that a seller designates as areas where they will not ship items.

Excluded shipping locations and ship-to locations are used in tandem at the listing level and in fulfillment business policies. Excluded shipping locations and ship-to locations share a lot of the same values and they should not contradict each other.

Manage excluded shipping locations using business policies through the fulfillment_policy resource of the Account v1 API.

*/ + get: operations["getExcludeShippingLocations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/shipping/marketplace/{marketplace_id}/get_handling_times": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves a list of supported handling times for the specified marketplace. The handling time returned specifies the maximum number of business days the eBay site allows for shipping an item to domestic buyers after receiving a cleared payment. Handling times apply to both domestic and international orders. If the handling time is 1 day, the seller commits to dropping the item off for shipment one business day after payment clears.

Manage handing times using business policies through the fulfillment_policy resource of the Account v1 API.

*/ + get: operations["getHandlingTimes"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/shipping/marketplace/{marketplace_id}/get_shipping_carriers": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves a list of supported shipping carriers for the specified marketplace. It provides essential information for sellers to understand which shipping carriers are available for use when listing items on that eBay marketplace. Knowing the supported carriers can help sellers optimize their shipping options and ensure efficient delivery to buyers.

The value returned in the shippingCarrier field is the enumerated value required when providing shipment tracking information for that carrier.

Tip: Use the getShippingServices method to explore available shipping services for each carrier.

Manage shipping carriers using business policies through the fulfillment_policy resource of the Account v1 API.

*/ + get: operations["getShippingCarriers"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/shipping/marketplace/{marketplace_id}/get_shipping_locations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves a list of supported shipping locations for the specified marketplace. It provides sellers with information on where they can ship their items. Sellers can use this information to configure their shipping settings.

Tip: Use the getExcludeShippingLocations method to return locations where the seller does not ship.

Manage shipping locations using business policies through the fulfillment_policy resource of the Account v1 API.

*/ + get: operations["getShippingLocations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/shipping/marketplace/{marketplace_id}/get_shipping_services": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves a list of shipping services supported for the specified marketplace, including valid shipping services, shipping times, and package constraints such as size and weight.

Manage shipping services using business policies through the fulfillment_policy resource of the Account v1 API.

*/ + get: operations["getShippingServices"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/country/{countryCode}/sales_tax_jurisdiction": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves all sales-tax jurisdictions for the country specified in the countryCode path parameter. Countries with valid sales-tax jurisdictions are Canada and the US.

The response from this call tells you the jurisdictions for which a seller can configure tax tables. Although setting up tax tables is optional, you can use the createOrReplaceSalesTax method in the Account API call to configure the tax tables for the jurisdictions into which you sell.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.

Important! In the US, eBay now calculates, collects, and remits sales tax to the proper taxing authorities in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories:

  • American Samoa (AS)
  • Guam (GU)
  • Northern Mariana Islands (MP)
  • Palau (PW)
  • US Virgin Islands (VI)
For additional information, refer to Taxes and import charges.

*/ + get: operations["getSalesTaxJurisdictions"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; +} +export type webhooks = Record; +export interface components { + schemas: { + /** @description The type that defines the fields for the currency and a monetary amount. */ + Amount: { + /** @description The three-letter ISO 4217 code representing the currency of the amount in the value field.

Restriction: Only the currency of the marketplace is supported. For example, on the US marketplace the only currency supported is USD. For implementation help, refer to eBay API documentation */ + currency?: string; + /** @description The monetary amount, in the currency specified by the currency field. */ + value?: string; + }; + AutomotivePartsCompatibilityPolicy: { + /** @description The category ID to which the automotive parts compatibility policies apply. */ + categoryId?: string; + /** @description A value that indicates the root node of the category tree used for the response set. Each marketplace is based on a category tree whose root node is indicated by this unique category ID value. All category policy information returned by this call pertains to the categories included below this root node of the tree.

A category tree is a hierarchical framework of eBay categories that begins at the root node of the tree and extends to include all the child nodes in the tree. Each child node in the tree is an eBay category that is represented by a unique categoryId value. Within a category tree, the root node has no parent node and leaf nodes are nodes that have no child nodes. */ + categoryTreeId?: string; + /** @description Indicates whether the category supports parts compatibility by either ASSEMBLY or by SPECIFICATION. For implementation help, refer to eBay API documentation */ + compatibilityBasedOn?: string; + /** @description Indicates the compatibility classification of the part based on high-level vehicle types. */ + compatibleVehicleTypes?: string[]; + /** + * Format: int32 + * @description Specifies the maximum number of compatible vehicle-applications allowed per item. + */ + maxNumberOfCompatibleVehicles?: number; + }; + AutomotivePartsCompatibilityPolicyResponse: { + /** @description A list of category IDs and the automotive parts compatibility policies for each of the listed categories. */ + automotivePartsCompatibilityPolicies?: components["schemas"]["AutomotivePartsCompatibilityPolicy"][]; + /** @description A list of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ + warnings?: components["schemas"]["Error"][]; + }; + /** @description This type contains applicable policy metadata for the leaf categories returned for the marketplace. */ + CategoryPolicy: { + /** @description If this field is returned as true, the corresponding category supports immediate payment for listings. The immediate payment feature is applicable to fixed-price listings, to auction listings with the 'Buy It Now' option enabled, and for a motor vehicle listing that requires an initial deposit. If the immediate payment feature is enabled for a listing, the buyer must pay immediately after clicking the 'Buy it Now' button.

This field is only returned when true (not returned when false).

*/ + autoPayEnabled?: boolean; + /** @description If this field is returned as true, the corresponding category supports business-to-business (B2B) VAT listings. If this field is not present, the category does not have B2B VAT listings. This feature is applicable to the eBay Germany (DE), Austria (AT), and Switzerland (CH) sites only.

This field is only returned when true (not returned when false).

*/ + b2bVatEnabled?: boolean; + /** @description The unique identifier of the eBay leaf category for which metadata is being returned. */ + categoryId?: string; + /** @description The unique identifier of the category tree. */ + categoryTreeId?: string; + /** @description This enumerated value indicates whether or not European Article Numbers (EANs) are supported/required when listing products in the category. For implementation help, refer to eBay API documentation */ + eanSupport?: string; + /** @description If this field is returned as true, the corresponding category is no longer a valid eBay category on the site, and items may not be listed in this category. You can use the getExpiredCategories method (of the Taxonomy API) to find the leaf category that replaced the expired category.

This field is only returned when true (not returned when false).

*/ + expired?: boolean; + /** @description If this field is returned as true, the category supports the listing of intangible goods or services. */ + intangibleEnabled?: boolean; + /** @description This enumerated value indicates whether or not International Standard Book Numbers (ISBNs) are supported/required when listing products in the specified category. For implementation help, refer to eBay API documentation */ + isbnSupport?: string; + /** @description If this field (Lot Size Disabled) is returned as true, the corresponding category does not support lot listings. A lot listing is a listing that features multiple related items that must be purchased by one buyer in one transaction.

This field is only returned when true (not returned when false).

*/ + lsd?: boolean; + /** @description Indicates the Minimum Reserve Price for an auction listing in this category. If there is no Minimum Reserve Price, a value of 0.0 is returned in this field. */ + minimumReservePrice?: number; + /** @description This field (Override Reserve Price Allowed) is returned as true if the eBay marketplace's default policy is to allow reserve prices for auction listings, but the corresponding category does not allow a reserve price.

Note: This field is not returned if the marketplace does not permit reserve prices.

*/ + orpa?: boolean; + /** @description If this field (Override Reduce Reserve Allowed) is returned as true, the seller can reduce or remove a reserve price that had already been reduced for an active auction listing. */ + orra?: boolean; + /** @description An array that indicates the acceptable offline payment methods that can be used when listing an item for sale in the corresponding category. */ + paymentMethods?: string[]; + /** @description If this field (Reduce Reserve Allowed) is true, the corresponding leaf category allows the seller to reduce an item's reserve price. If false, this field is not returned in the response and the corresponding leaf category on the site do not normally allow sellers to reduce an item's reserve price.

This field is only returned when true (not returned when false).

*/ + reduceReserveAllowed?: boolean; + /** @description This field indicates whether reserve prices are allowed for auction listings in this category. This field returns as true when the category supports reserve prices, or false if the eBay marketplace does not permit reserve prices or the category override blocks reserve prices (orpa is true). */ + reservePriceAllowed?: boolean; + /** @description This enumerated value indicates whether or not the category on the specified eBay site supports the use of Universal Product Codes (UPCs) to help create a listing. For implementation help, refer to eBay API documentation */ + upcSupport?: string; + /** @description When returned as true, this boolean indicates that the leaf category for the specified site is designated by eBay as a value category. Value categories can be used as a secondary category for a listing at no extra charge. */ + valueCategory?: boolean; + /** @description If this field is returned as true, the corresponding category is an eBay virtual category, a category in which items may not be listed.

This field is only returned when true (not returned when false).

*/ + virtual?: boolean; + }; + /** @description This type contains applicable policy metadata for the leaf categories returned for the marketplace. */ + CategoryPolicyResponse: { + /** @description This array contains applicable policy metadata for the leaf categories returned for the marketplace specified in the path parameter marketplace_id and optionally limited by only those leaf category IDs specified in the query parameter filter. */ + categoryPolicies?: components["schemas"]["CategoryPolicy"][]; + /** @description An array of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ + warnings?: components["schemas"]["Error"][]; + }; + /** @description This type provides fields that contains applicable Classified Ad policy metadata for the leaf categories returned for the marketplace. */ + ClassifiedAdPolicy: { + /** @description This enumerated value indicates the type or status of available Classified Ad formats for this category. For implementation help, refer to eBay API documentation */ + adFormatEnabled?: string; + /** @description The unique identifier of the eBay leaf category for which metadata is being returned. */ + categoryId?: string; + /** @description The unique identifier of the category tree. */ + categoryTreeId?: string; + /** @description Indicates whether the category supports the Best Offer Automatic Accept feature for Classified Ad listings. */ + classifiedAdAutoAcceptEnabled?: boolean; + /** @description Indicates whether the category supports the Best Offer Automatic Reject feature for Classified Ad listings. */ + classifiedAdAutoDeclineEnabled?: boolean; + /** @description This enumerated value indicates if Best Offer is enabled, disabled, or required for Classified Ad listings in this category. For implementation help, refer to eBay API documentation */ + classifiedAdBestOfferEnabled?: string; + /** @description Indicates whether this category supports including a company name in the seller's contact information. This element is for For Sale By Owner listings. */ + classifiedAdCompanyNameEnabled?: boolean; + /** @description Indicates whether this category supports including an address in the seller's contact information. This element is for For Sale By Owner listings. */ + classifiedAdContactByAddressEnabled?: boolean; + /** @description Indicates whether most categories support including an email address in the seller's contact information. */ + classifiedAdContactByEmailEnabled?: boolean; + /** @description Indicates whether most categories support including a phone number in the seller's contact information. */ + classifiedAdContactByPhoneEnabled?: boolean; + /** @description Indicates whether counter offers are allowed on Best offers for the category. */ + classifiedAdCounterOfferEnabled?: boolean; + /** @description This enumerated value indicates support for the payment method being displayed to the user for the category. Even if enabled, checkout may or may not be enabled. For implementation help, refer to eBay API documentation */ + classifiedAdPaymentMethodEnabled?: string; + /** + * Format: int32 + * @description Indicates how many contact phone numbers can be specified in contact information for the category. This element is for For Sale By Owner listings. + */ + classifiedAdPhoneCount?: number; + /** @description Indicates if shipping methods can be specified and displayed in the View Item page for the category. */ + classifiedAdShippingMethodEnabled?: boolean; + /** + * Format: int32 + * @description Indicates how many street addresses can be specified in contact information for the category. This element is for For Sale By Owner listings. + */ + classifiedAdStreetCount?: number; + /** @description Indicates whether this category supports seller-level contact information for Classified Ad listings. */ + sellerContactDetailsEnabled?: boolean; + }; + /** @description This type contains applicable policy metadata for the leaf categories returned for the marketplace. */ + ClassifiedAdPolicyResponse: { + /** @description This array contains applicable policy metadata for the leaf categories returned for the marketplace specified in the path parameter marketplace_id and optionally limited by only those leaf category IDs specified in the query parameter filter. */ + classifiedAdPolicies?: components["schemas"]["ClassifiedAdPolicy"][]; + /** @description An array of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ + warnings?: components["schemas"]["Error"][]; + }; + /** @description This type defines the property names and values that are compatible with the property name values specified in the request. */ + Compatibility: { + /** @description This array returns a list of compatibility details associated with the specified property name(s). */ + compatibilityDetails?: components["schemas"]["CompatibilityDetails"][]; + }; + /** @description This type defines the compatible property names and values associated with the product. */ + CompatibilityDetails: { + /** @description The name of the property being described. */ + propertyName?: string; + /** @description The value for the property specified in the propertyName field. */ + propertyValue?: string; + }; + /** @description The type defining valid currencies for the marketplace. */ + Currency: { + /** @description The three-letter ISO 4217 code returned.

Restriction: Only the currency of the marketplace is supported. Examples: on the US marketplace, the only currency supported is the United States dollar, USD; on the Canadian marketplace, the only currency supported is the Canadian dollar, CAD. For implementation help, refer to eBay API documentation */ + code?: string; + /** @description The description of the returned three-letter code. For example, if the code is USD, the description returned would be US Dollar. */ + description?: string; + }; + /** @description This type defines the booleans used to determine if a product is excluded from eBay selling and/or review. */ + DisabledProductFilter: { + /** @description Specifies whether to filter out products excluded for eBay reviews.

If set to true, items excluded from eBay reviews are not returned. */ + excludeForEbayReviews?: boolean; + /** @description Specifies whether to filter out products excluded for eBay selling.

If set to true, items excluded from eBay selling are not returned. */ + excludeForEbaySelling?: boolean; + }; + /** @description A container that defines the elements of error and warning messages. */ + Error: { + /** @description The category type for this error or warning. It takes an ErrorCategory object which can have one of three values:
  • Application: Indicates an exception or error occurred in the application code or at runtime. Examples include catching an exception in a service's business logic, system failures, or request errors from a dependency.
  • Business: Used when your service or a dependent service refused to continue processing on the resource because of a business rule violation such as "Seller does not ship item to Antarctica" or "Buyer ineligible to purchase an alcoholic item". Business errors are not syntactical input errors.
  • Request: Used when there is anything wrong with the request, such as authentication, syntactical errors, rate limiting or missing headers, bad HTTP header values, and so on.
*/ + category?: string; + /** @description Name of the domain containing the service or application. */ + domain?: string; + /** + * Format: int32 + * @description A positive integer that uniquely identifies the specific error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms. + */ + errorId?: number; + /** @description Identifies specific request elements associated with the error, if any. inputRefId's response is format specific. For JSON, use JSONPath notation. */ + inputRefIds?: string[]; + /** @description An expanded version of message that should be around 100-200 characters long, but is not required to be such. */ + longMessage?: string; + /** @description An end user and app developer friendly device agnostic message. It explains what the error or warning is, and how to fix it (in a general sense). Its value is at most 50 characters long. If applicable, the value is localized in the end user's requested locale. */ + message?: string; + /** @description Identifies specific response elements associated with the error, if any. Path format is the same as inputRefId. */ + outputRefIds?: string[]; + /** @description This optional complex field type contains a list of one or more context-specific ErrorParameter objects, with each item in the list entry being a parameter (or input field name) that caused an error condition. Each ErrorParameter object consists of two fields, a name and a value. */ + parameters?: components["schemas"]["ErrorParameter"][]; + /** @description Name of the domain's subsystem or subdivision. For example, checkout is a subdomain in the buying domain. */ + subdomain?: string; + }; + /** @description Container for an error parameter. */ + ErrorParameter: { + /** @description Name of the entity that threw the error. */ + name?: string; + /** @description A description of the error. */ + value?: string; + }; + /** @description A type that defines the attributes of an Extended Producer Responsibility policy. */ + ExtendedProducerResponsibility: { + /** @description An indication of whether the attribute can be enabled for listing variations.

If the value is true, the attribute may be specified at the variation level. */ + enabledForVariations?: boolean; + /** @description The name of the attribute included in the policy. For implementation help, refer to eBay API documentation */ + name?: string; + /** @description The usage guidelines for the attribute, in the specified marketplace. For implementation help, refer to eBay API documentation */ + usage?: string; + }; + /** @description A type that defines the Extended Producer Responsibility policy. */ + ExtendedProducerResponsibilityPolicy: { + /** @description The unique identifier for the category under which the policy applies. */ + categoryId?: string; + /** @description The unique identifier for the category tree under which the policy applies. */ + categoryTreeId?: string; + /** @description The details regarding the attributes included in the policy, such as their usage guidelines and whether they can be specified at the listing variation level. */ + supportedAttributes?: components["schemas"]["ExtendedProducerResponsibility"][]; + }; + /** @description A type that defines the response fields for the getExtendedProducerResponsibilityPolicies method. */ + ExtendedProducerResponsibilityPolicyResponse: { + /** @description An array of response fields detailing the Extended Producer Responsibility policies supported for the specified marketplace. */ + extendedProducerResponsibilities?: components["schemas"]["ExtendedProducerResponsibilityPolicy"][]; + /** @description A collection of warnings generated for the request. */ + warnings?: components["schemas"]["Error"][]; + }; + /** @description This type defines the response fields specifying the default currency for the marketplace. */ + GetCurrenciesResponse: { + /** @description This field specifies the default currency used by the marketplace. */ + defaultCurrency?: components["schemas"]["Currency"]; + /** @description The ID of the eBay marketplace to which the default currency applies. For implementation help, refer to eBay API documentation */ + marketplaceId?: string; + }; + /** @description A type that describes hazard statements for hazardous materials labels */ + HazardStatement: { + /** @description The identifier of the statement. For sample values, see Hazard statement sample values. */ + statementId?: string; + /** @description The description of the statement localized to the default language of the marketplace. For sample values, see Hazard statement sample values. */ + statementDescription?: string; }; /** @description A type that defines the response fields for the getHazardousMaterialsLabels method. */ HazardousMaterialDetailsResponse: { @@ -234,7 +691,7 @@ export interface components { signalWords?: components["schemas"]["SignalWord"][]; /** @description This array contains available hazardous materials hazard statements for the specified marketplace. */ statements?: components["schemas"]["HazardStatement"][]; - /** @description This array contains of available hazardous materials hazard pictograms for the specified marketplace. */ + /** @description This array contains available hazardous materials hazard pictograms for the specified marketplace. */ pictograms?: components["schemas"]["Pictogram"][]; }; /** @description Note: In all eBay marketplaces, Condition ID 2000 now maps to an item condition of 'Certified Refurbished', and not 'Manufacturer Refurbished'. To list an item as 'Certified Refurbished', a seller must be pre-qualified by eBay for this feature. Any seller who is not eligible for this feature will be blocked if they try to create a new listing or revise an existing listing with this item condition. Any active listings on any eBay marketplace that had 'Manufacturer Refurbished' as the item condition should have been automatically updated by eBay to the 'Seller Refurbished' item condition (Condition ID 2500).

Any seller that is interested in eligibility requirements to list with 'Certified Refurbished' should see the Certified refurbished program page in Seller Center.
*/ @@ -308,7 +765,7 @@ export interface components { categoryTreeId?: string; /** @description This flag denotes whether or not you must list the item condition in a listing for the specified category. If set to true, you must specify an item condition for the associated category. */ itemConditionRequired?: boolean; - /** @description The item-condition values allowed in the category.

Note: The Ć¢ā‚¬ĖœSeller Refurbished’ item condition (condition ID 2500) has been replaced by the 'Excellent - Refurbished', 'Very Good - Refurbished', and 'Good - Refurbished' item conditions in a select number of eBay marketplaces and categories. See the eBay Refurbished Program - Category and marketplace support topic for more details.

Similar to the Ć¢ā‚¬ĖœCertified Refurbished’ item condition (condition ID 2000), a seller’s OAuth user token will have to be used instead of an OAuth application token, since each seller must go through an application and qualification process before using any of these new refurbished item conditions in supported categories. If a seller is not qualified to use the new refurbished item conditions, these item condition values will not be returned by getItemConditionPolicies.
*/ + /** @description The item-condition values allowed in the category.

Note: The ā€˜Seller Refurbished’ item condition (condition ID 2500) has been replaced by the 'Excellent - Refurbished', 'Very Good - Refurbished', and 'Good - Refurbished' item conditions in a select number of eBay marketplaces and categories.

Similar to the ā€˜Certified Refurbished’ item condition (condition ID 2000), a seller’s OAuth user token will have to be used instead of an OAuth application token, since each seller must go through an application and qualification process before using any of these new refurbished item conditions in supported categories. If a seller is not qualified to use the new refurbished item conditions, these item condition values will not be returned by getItemConditionPolicies.
*/ itemConditions?: components["schemas"]["ItemCondition"][]; }; ItemConditionPolicyResponse: { @@ -317,6 +774,13 @@ export interface components { /** @description A list of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ warnings?: components["schemas"]["Error"][]; }; + /** @description This type identifies the kind of listing and its duration periods. */ + ListingDuration: { + /** @description This array defines the supported time duration options available for the listing type. */ + durationValues?: string[]; + /** @description The enumerated value returned in this field indicates the listing type for the duration value(s). For implementation help, refer to eBay API documentation */ + listingType?: string; + }; ListingStructurePolicy: { /** @description The category ID to which the listing-structure policy applies. */ categoryId?: string; @@ -331,6 +795,174 @@ export interface components { /** @description A list of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ warnings?: components["schemas"]["Error"][]; }; + /** @description This type contains the selling formats for eBay listings. */ + ListingTypePoliciesResponse: { + /** @description This array contains applicable policy metadata for the leaf categories returned for the marketplace specified in the path parameter marketplace_id and optionally limited by only those leaf category IDs specified in the query parameter filter. */ + listingTypePolicies?: components["schemas"]["ListingTypePolicy"][]; + /** @description An array of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ + warnings?: components["schemas"]["Error"][]; + }; + /** @description This type contains the policies governing the listing type by category. */ + ListingTypePolicy: { + /** @description The unique identifier of the eBay leaf category for which metadata is being returned. */ + categoryId?: string; + /** @description The unique identifier of the category tree. */ + categoryTreeId?: string; + /** @description A true value in this field indicates that the leaf category supports the listing of items (such as gift cards) that can be delivered electronically via a download link or sent to a buyer's email address. */ + digitalGoodDeliveryEnabled?: boolean; + /** @description An array of eBay listing types and the supported durations for the corresponding leaf category. If a specific eBay listing type does not appear for a leaf category, it indicates that the category does not support that listing type. */ + listingDurations?: components["schemas"]["ListingDuration"][]; + /** @description A true value in this field indicates that items listed in the category (specified in the listingTypePolicies.categoryId field) may be enabled with the 'Click and Collect' feature. With the 'Click and Collect' feature, a buyer can purchase certain items on an eBay site and collect them at a local store. Buyers are notified by eBay once their items are available. A false value in this field indicates that items listed in the category are not eligible for the 'Click and Collect' feature. */ + pickupDropOffEnabled?: boolean; + }; + /** @description This type contains the kind of distance and radius of the selling area for Local Market Vehicle listings. */ + LocalListingDistance: { + /** @description This array indicates the radius (in miles) of the selling area for Local Market Vehicle listings. */ + distances?: number[]; + /** @description This enumerated value indicates the type of local listing distances, such as non-subscription or regular, for items listed by sellers. For implementation help, refer to eBay API documentation */ + distanceType?: string; + }; + MotorsListingPoliciesResponse: { + /** @description This array contains applicable policy metadata for the leaf categories returned for the marketplace specified in the path parameter marketplace_id and optionally limited by only those leaf category IDs specified in the query parameter filter. */ + motorsListingPolicies?: components["schemas"]["MotorsListingPolicy"][]; + /** @description An array of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ + warnings?: components["schemas"]["Error"][]; + }; + MotorsListingPolicy: { + /** @description The unique identifier of the eBay leaf category for which metadata is being returned. */ + categoryId?: string; + /** @description The unique identifier of the category tree. */ + categoryTreeId?: string; + /** @description This field is returned as true if the corresponding category supports the use of a deposit/down payment on a motor vehicle listing. In an AddItem call, the seller can configure a down payment for a motor vehicle listing using the PaymentDetails container. */ + depositSupported?: boolean; + /** @description Indicates whether or not eBay Motors Pro sellers can use classified ads in this category to sell their vehicles. This element is applicable for eBay Motors Pro users. For implementation help, refer to eBay API documentation */ + ebayMotorsProAdFormatEnabled?: string; + /** @description Indicates whether or not the category supports the Best Offer Auto Accept feature for eBay Motors Pro listings. This element is for eBay Motors Pro users. */ + ebayMotorsProAutoAcceptEnabled?: boolean; + /** @description Indicates whether or not the category allows auto-decline for Best Offers for eBay Motors Classified Ad listings. This element is for eBay Motors Pro users. */ + ebayMotorsProAutoDeclineEnabled?: boolean; + /** @description This enumerated value indicates whether or not Best Offer features are supported for eBay Motors Classified Ad listings in this category. This element is for eBay Motors Pro users. For implementation help, refer to eBay API documentation */ + ebayMotorsProBestOfferEnabled?: string; + /** @description Indicates whether this category supports including the company name in the seller's contact information. This element is for eBay Motors Pro users. */ + ebayMotorsProCompanyNameEnabled?: boolean; + /** @description Indicates whether this category supports including the address in the seller's contact information. This element is for eBay Motors Pro users. */ + ebayMotorsProContactByAddressEnabled?: boolean; + /** @description Indicates whether this category supports including an email address in the seller's contact information. This element is for eBay Motors Pro users. */ + ebayMotorsProContactByEmailEnabled?: boolean; + /** @description Indicates whether this category supports including the telephone in the seller's contact information. This element is for eBay Motors Pro users. */ + ebayMotorsProContactByPhoneEnabled?: boolean; + /** @description Indicates whether counter offers are allowed on Best Offers for this category in an eBay Motors Classified Ad listing. This element is for eBay Motors Pro users. */ + ebayMotorsProCounterOfferEnabled?: boolean; + /** @description This enumerated value indicates whether this category supports that the payment method should be displayed to the user for this category in an eBay Motors Classified Ad listing. Even if enabled, checkout may or may not be enabled. This element is for eBay Motors Pro users. For implementation help, refer to eBay API documentation */ + ebayMotorsProPaymentMethodCheckOutEnabled?: string; + /** + * Format: int32 + * @description Indicates the number of phone numbers that can be included through contact information for this category. This element is for eBay Motors Pro users. + */ + ebayMotorsProPhoneCount?: number; + /** @description Indicates whether this category allows seller-level contact information for eBay Motors Classified Ad listings. A value of true means seller-level contact information is available for Classified Ad listings. This element is for eBay Motors Pro users. */ + ebayMotorsProSellerContactDetailsEnabled?: boolean; + /** @description Indicates if shipping options should be displayed to the user for this category in an eBay Motors Classified Ad listing. This element is for eBay Motors Pro users. */ + ebayMotorsProShippingMethodEnabled?: boolean; + /** + * Format: int32 + * @description This field indicates the number of street addresses allowed in contact information for this category. This element is for eBay Motors Pro users. + */ + ebayMotorsProStreetCount?: number; + /** @description If returned as true, this indicates the category supports the use of an eBay Product ID (e.g. ePID) to identify which motorcycles and/or scooters are compatible with a motor vehicle part or accessory. ePIDs can only be used to identify motorcycles and scooters on the Germany and UK sites. */ + epidSupported?: boolean; + /** @description This field indicates whether or not the category supports the use of a K type to identify the cars and trucks compatible with a motor vehicle part or accessory. Only the AU, DE, ES, FR, IT, and UK marketplaces support the use of K types. See Compatibility by K type for more information */ + kTypeSupported?: boolean; + /** @description This array shows the supported distances (in miles) for different types of Local Market subscription types in this category. Motor vehicle listings will be shown to buyers located within these proximities of the vehicle's location. */ + localListingDistances?: components["schemas"]["LocalListingDistance"][]; + /** @description Specifies whether this category supports Motor Local Market Classified Ad listings. For implementation help, refer to eBay API documentation */ + localMarketAdFormatEnabled?: string; + /** @description Specifies whether this category supports auto-accept for Best Offers for Motors Local Market Classified Ads. */ + localMarketAutoAcceptEnabled?: boolean; + /** @description Specifies whether this category supports auto-decline for Best Offers for Motors Local Market Classified Ads. */ + localMarketAutoDeclineEnabled?: boolean; + /** @description Indicates if Best Offer is enabled/required for Motors Local Market Classified Ad listings in this category. For implementation help, refer to eBay API documentation */ + localMarketBestOfferEnabled?: string; + /** @description Indicates whether the category supports the seller's company name being specified when using Motors Local Market classified ads. */ + localMarketCompanyNameEnabled?: boolean; + /** @description Indicates whether this category supports including the address in the seller's contact information. */ + localMarketContactByAddressEnabled?: boolean; + /** @description Indicates whether the category supports including an email address in the seller's contact information. */ + localMarketContactByEmailEnabled?: boolean; + /** @description Indicates whether this category supports including the telephone in the seller's contact information. */ + localMarketContactByPhoneEnabled?: boolean; + /** @description Indicates whether counter offers are allowed on Best Offers for this category for Motors Local Market Classified Ad listings. */ + localMarketCounterOfferEnabled?: boolean; + /** @description Indicates whether the category supports a seller creating a Motors Local Market listing without a subscription. This feature is only available to licensed vehicle dealers. */ + localMarketNonSubscription?: boolean; + /** @description Indicates if the payment method should be displayed to the user for this category in an Motors Local Market Classified Ad listing. Even if enabled, checkout may or may not be enabled. For implementation help, refer to eBay API documentation */ + localMarketPaymentMethodCheckOutEnabled?: string; + /** + * Format: int32 + * @description Indicates the number of phone numbers that can be included through contact information for this category. + */ + localMarketPhoneCount?: number; + /** @description Indicates whether the category supports the Premium level subscription Motors Local Market listings. This feature is only available to licensed vehicle dealers. */ + localMarketPremiumSubscription?: boolean; + /** @description Indicates whether the category supports the Regular level subscription to Motors Local Market listings. This feature is only available to licensed vehicle dealers. */ + localMarketRegularSubscription?: boolean; + /** @description Specifies the whether this category allows seller-level contact information for Motors Local Market Classified Ad listings. */ + localMarketSellerContactDetailsEnabled?: boolean; + /** @description Indicates if shipping methods should be displayed to the user for this category in an Motors Local Market Classified Ad listing. Even if enabled, checkout may or may not be enabled. */ + localMarketShippingMethodEnabled?: boolean; + /** @description Indicates whether the category supports the Speciality level subscription to Motors Local Market listings. This feature is only available to licensed vehicle dealers. */ + localMarketSpecialitySubscription?: boolean; + /** + * Format: int32 + * @description Indicates which address option is enabled for the seller's contact information. + */ + localMarketStreetCount?: number; + /** + * Format: int32 + * @description Indicates the maximum number of compatible applications allowed per item when adding or revising items with compatibilities provided at the most detailed granularity. For example, in Car and Truck Parts on the US site, the most granular application would include Year, Make, Model, Trim, and Engine. + */ + maxGranularFitmentCount?: number; + /** + * Format: int32 + * @description Indicates the maximum number of compatible applications allowed per item when adding or revising items. This is relevant for specifying parts compatibility by application manually only. See Specify parts compatibility manually and Managing product compatibility for more information. + */ + maxItemCompatibility?: number; + /** + * Format: int32 + * @description Indicates the minimum number of required compatible applications for listing items. A value of 0 indicates it is not mandatory to specify parts compatibilities when listing. + */ + minItemCompatibility?: number; + /** @description The value in this field indicates whether the category supports Motors Local Market listings if the seller does not have a vehicle subscription. For implementation help, refer to eBay API documentation */ + nonSubscription?: string; + /** @description The value in this field indicates whether the category supports Motors Local Market listings if the seller has a Premium vehicle subscription. For implementation help, refer to eBay API documentation */ + premiumSubscription?: string; + /** @description The value in this field indicates whether the category supports Motors Local Market listings if the seller has a Regular vehicle subscription. For implementation help, refer to eBay API documentation */ + regularSubscription?: string; + /** @description This field is returned as true if the corresponding category supports the use of a seller-provided title for a motor vehicle listing on the US or Canada Motors marketplaces. A seller-provided title is a descriptive title, given by the seller, that appears below eBay's pre-filled listing title for the motor vehicle. Visually, the seller-provided title is similar to a subtitle on other types of eBay listings (non-vehicle). A seller-provided title can assist in helping buyers discover the vehicle. */ + sellerProvidedTitleSupported?: boolean; + /** @description The value in this field indicates whether the category supports Motors Local Market listings if the seller has a Specialty vehicle subscription. For implementation help, refer to eBay API documentation */ + specialitySubscription?: string; + /** @description Indicates if Vehicle Identification Number is supported. */ + vinSupported?: boolean; + /** @description Indicates if Vehicle Registration Mark is supported. */ + vrmSupported?: boolean; + }; + /** @description This type defines the request fields used in the getMultiCompatibilityPropertyValues method. */ + MultiCompatibilityPropertyValuesRequest: { + /** @description The unique identifier of the eBay leaf category for which to retrieve property values.

Use the getAutomotivePartsCompatibilityPolicies method to retrieve a list of categories that support parts compatibility. */ + categoryId?: string; + /** @description This array can be used to specify the compatibility properties used to limit the result set. Only values associated with the specified name-value pairs will be returned in the response.

For example, if the propertyName is set to Year and the propertyValue is set to 2022, only compatible vehicles from 2022 will be returned.

At least one property name-value pair must be used. */ + propertyFilters?: components["schemas"]["PropertyFilterInner"][]; + /** @description This comma-delimited array specifies the names of the properties for which to retrieve associated property values.

For example, typical vehicle property names are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category. */ + propertyNames?: string[]; + }; + /** @description This type defines the response fields for the getMultiCompatibilityPropertyValues method. */ + MultiCompatibilityPropertyValuesResponse: { + /** @description This container defines the compatibility details associated with the specified property name value(s). */ + compatibilities?: components["schemas"]["Compatibility"][]; + /** @description The version number of the metadata. This version is upticked whenever there are compatibility name changes for the specified marketplace. */ + metadataVersion?: string; + }; NegotiatedPricePolicy: { /** @description This flag denotes whether or not the category supports the setting of a price at which best offers are automatically accepted. If set to true, the category does support the setting of an automatic price for best-offers. */ bestOfferAutoAcceptEnabled?: boolean; @@ -349,6 +981,69 @@ export interface components { /** @description A list of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ warnings?: components["schemas"]["Error"][]; }; + /** @description The packageLimits field is used to specify the physical constraints and measurement units of packages, ensuring compliance with various shipping requirements. */ + PackageLimits: { + /** @description Unit of dimensional measurement, for example INCH or CENTIMETER. */ + dimensionUnit?: string; + /** @description The maximum girth allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit. */ + maxGirth?: number; + /** @description The maximum height allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit. */ + maxHeight?: number; + /** @description The maximum length allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit. */ + maxLength?: number; + /** @description The maximum weight allowed for a package shipped through the corresponding shipping service, as measured in units of weightUnit. */ + maxWeight?: number; + /** @description The maximum width allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit. */ + maxWidth?: number; + /** @description The minimum girth allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit. */ + minGirth?: number; + /** @description The minimum height allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit. */ + minHeight?: number; + /** @description The minimum length allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit. */ + minLength?: number; + /** @description The minimum weight allowed for a package shipped through the corresponding shipping service, as measured in units of weightUnit. */ + minWeight?: number; + /** @description The minimum width allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit. */ + minWidth?: number; + /** @description Unit of weight measurement, for example KILOGRAM or OUNCE. */ + weightUnit?: string; + }; + /** @description This type defines the pagination settings for a result set. */ + Pagination: { + /** + * Format: int32 + * @description The number of results showing on the current page of results. + */ + count?: number; + /** + * Format: int32 + * @description The max number of entries that can be returned on a single page. + */ + limit?: number; + /** + * Format: int32 + * @description The number of items that will be skipped in the result set before returning the first item in the paginated response. + */ + offset?: number; + /** + * Format: int32 + * @description The total number of results in a result set. + */ + total?: number; + }; + /** @description This type defines the fields used to control the pagination of the result set. */ + PaginationInput: { + /** + * Format: int32 + * @description The max number of items, from the current result set, returned on a single page.

Note: For getProductCompatibilities, the max value is 100. If no limit is specified, this field defaults to the max value. + */ + limit?: number; + /** + * Format: int32 + * @description The number of items that will be skipped in the result set before returning the first item in the paginated response.

Combine offset with limit to control the items returned in the response. For example, if you supply an offset of 10 and a limit of 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0 + */ + offset?: number; + }; /** @description A type that describes pictograms for hazardous materials labels. */ Pictogram: { /** @description The identifier of the pictogram. For sample values, see Pictogram sample values. */ @@ -358,31 +1053,197 @@ export interface components { /** @description The URL of the pictogram. */ pictogramUrl?: string; }; - ReturnPolicy: { - /** @description The category ID to which the return policies apply. */ - categoryId?: string; - /** @description A value that indicates the root node of the category tree used for the response set. Each marketplace is based on a category tree whose root node is indicated by this unique category ID value. All category policy information returned by this call pertains to the categories included below this root node of the tree.

A category tree is a hierarchical framework of eBay categories that begins at the root node of the tree and extends to include all the child nodes in the tree. Each child node in the tree is an eBay category that is represented by a unique categoryId value. Within a category tree, the root node has no parent node and leaf nodes are nodes that have no child nodes. */ - categoryTreeId?: string; - /** @description This complex type defines the category policies related to domestic item returns. */ - domestic?: components["schemas"]["ReturnPolicyDetails"]; - /** @description This complex type defines the category policies related to international item returns. */ - international?: components["schemas"]["ReturnPolicyDetails"]; - /** @description If set to true, this flag indicates that you must specify a return policy for items listed in the associated category.

Note that not accepting returns (setting returnsAcceptedEnabled to false) is a valid return policy. */ + /** @description This type defines the supported product identifiers. */ + ProductIdentifier: { + /** @description The EAN of the item, if applicable. EAN is the European Article Number, a barcode standard for retail product labeling primarily used outside of North America. */ + ean?: string; + /** @description The ePID (eBay Product Identifier) of the item, if applicable. ePID is a unique identifier used by eBay to track products in its catalog.

Use the getProduct method of the Catalog API to retrieve the ePID of an item. */ + epid?: string; + /** @description The ISBN of the item, if applicable. ISBN is the International Standard Book Number, a unique identifier for books. */ + isbn?: string; + /** @description The product ID of the item, if applicable. The product ID is a general term for a unique identifier assigned to a product. */ + productId?: string; + /** @description The UPC of the item, if applicable. UPC stands for Universal Product Code, a unique identifier for products, primarily in North America. */ + upc?: string; + }; + /** @description This type defines the request fields for the getProductCompatibilities method. */ + ProductRequest: { + /** @description This array is used to filter the properties of an application, such as a vehicle's make or model, that will be returned in the response.

Application property filters are specified as name-value pairs. Only products compatible with these name-value pairs will be returned. */ + applicationPropertyFilters?: components["schemas"]["PropertyFilterInner"][]; + /** @description This array defines the type of properties that are returned for the catalog-enabled category.

For example, if you specify Searchable, the compatibility details will contain properties that can be used to search for products, such as make or model.

Note: This field cannot be used alongside dataPropertyName. If both are used, an error will occur.
Valid values:
  • DisplayableProductDetails: Properties for use in a user interface to describe products.
  • DisplayableSearchResults: Properties for use in results for product searches.
  • Searchable: Properties for use in searches.
  • Sortable: Properties that are suitable for sorting.

Default: DisplayableSearchResults */ + dataset?: string[]; + /** @description This comma-delimted array can be used to define the specific property name(s) that will be returned in the response.

For example, if you specify Engine, the result set will only contain engines that are compatible with the input criteria.

Note: This array cannot be used alongside dataset. If both are used, an error will occur. */ + datasetPropertyName?: string[]; + /** @description This container can be used to specify whether or not to filter out products which are disabled for selling on eBay and/or disabled for product review. */ + disabledProductFilter?: components["schemas"]["DisabledProductFilter"]; + /** @description This container controls the pagination of the result set. */ + paginationInput?: components["schemas"]["PaginationInput"]; + /** @description This container is used to provide unique identifier for the product. The product identifier consists of an identifier type and value, and are unique across all sites. */ + productIdentifier?: components["schemas"]["ProductIdentifier"]; + /** @description This array controls the sort order of compatibility properties. */ + sortOrders?: components["schemas"]["SortOrderInner"][]; + }; + /** @description This type defines the response fields for the getProductCompatibilities method. */ + ProductResponse: { + /** @description This container provides compatibility details for the specified product. */ + compatibilityDetails?: components["schemas"]["ProductResponseCompatibilityDetails"][]; + /** @description This container returns the pagination settings for the result set. */ + pagination?: components["schemas"]["Pagination"]; + }; + /** @description This type defines the compatibility details for a product. */ + ProductResponseCompatibilityDetails: { + /** @description This array returns additional comments about the corresponding product in the form of name-value pairs. */ + noteDetails?: components["schemas"]["PropertyFilterInner"][]; + /** @description This array returns details about the product in the form of name-value pairs. */ + productDetails?: components["schemas"]["PropertyValues"][]; + }; + /** @description A type that describes pictograms for product safety labels. */ + ProductSafetyLabelPictogram: { + /** @description The description of the pictogram localized to the default language of the marketplace. */ + pictogramDescription?: string; + /** @description The identifier of the pictogram. */ + pictogramId?: string; + /** @description The URL of the pictogram. */ + pictogramUrl?: string; + }; + /** @description A type that describes statements for product safety labels. */ + ProductSafetyLabelStatement: { + /** @description The description of the statement localized to the default language of the marketplace. */ + statementDescription?: string; + /** @description The identifier of the statement. */ + statementId?: string; + }; + /** @description A type that defines the response fields for the getProductSafetyLabels method. */ + ProductSafetyLabelsResponse: { + /** @description This array contains a list of pictograms of product safety labels for the specified marketplace. */ + pictograms?: components["schemas"]["ProductSafetyLabelPictogram"][]; + /** @description This array contains available product safety labels statements for the specified marketplace. */ + statements?: components["schemas"]["ProductSafetyLabelStatement"][]; + }; + /** @description This type is used to define the available compatibility property filters. */ + PropertyFilterInner: { + /** @description The name of the property being described.

For example, typical vehicle property names are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category. Use the getCompatibilityPropertyNames method to retrieve valid property names for a specified category. */ + propertyName?: string; + /** @description The value for the property specified in the properyName field.

For example, if the propertyName is Make, then the propertyValue will be the specific make of the vehicle, such as Toyota. Use the getCompatibilityPropertyValues to retreive valid property values associated with a specified property name. */ + propertyValue?: string; + /** @description The unit of measurement of the property being described, if applicable. */ + unitOfMeasurement?: string; + /** @description The URL associated with the property being described, if applicable. */ + url?: string; + }; + /** @description This type defines the request fields for the getCompatibilityPropertyNames method. */ + PropertyNamesRequest: { + /** @description The unique identifier of the eBay leaf category for which to retrieve compatibility property names. This category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility.

Use the getAutomotivePartsCompatibilityPolicies method to retrieve a list of categories that support parts compatibility. */ + categoryId?: string; + /** @description This array defines the properties that will be returned for the compatibility-enabled category.

For example, if you specify Searchable, the compatibility details will contain properties that can be used to search for products, such as make or model.

Valid values:
  • DisplayableProductDetails: Properties for use in a user interface to describe products.
  • DisplayableSearchResults: Properties for use in results for product searches.
  • Searchable: Properties for use in searches.
  • Sortable: Properties that are suitable for sorting.
Default: DisplayableSearchResults */ + dataset?: string[]; + }; + /** @description This type defines the fields returned in the getCompatibilityPropertyNames method. */ + PropertyNamesResponse: { + /** @description The unique identifier of the eBay category specified in the request. */ + categoryId?: string; + /** @description This array contains all of the properties for the specified category. */ + properties?: components["schemas"]["PropertyNamesResponseProperties"][]; + }; + /** @description This type defines the properties and dataset for a specified category. */ + PropertyNamesResponseProperties: { + /** @description This field defines the types of properties are returned for the specified catalog-enabled category.

Valid values:
  • DisplayableProductDetails: Properties for use in a user interface to describe products.
  • DisplayableSearchResults: Properties for use in results for product searches.
  • Searchable: Properties for use in searches.
  • Sortable: Properties that are suitable for sorting.
*/ + dataset?: string; + /** @description This array specifies the names of the properties associated with the specified category in the specified marketplace.

For example, typical vehicle property names are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category. */ + propertyNames?: components["schemas"]["PropertyNamesResponsePropertyNames"][]; + }; + /** @description This type defines the property name metadata. */ + PropertyNamesResponsePropertyNameMetadata: { + /** + * Format: int32 + * @description The numeric value indicating the ordering position of the property. + */ + displaySequence?: number; + }; + /** @description This type defines the fields associated with a property name. */ + PropertyNamesResponsePropertyNames: { + /** @description The display name of a property. This is the localized name of the compatible property. */ + propertyDisplayName?: string; + /** @description The canonical name of a property. This value is used as part of the name-value pairs used to specify compatibility. */ + propertyName?: string; + /** @description The metadata for a property. */ + propertyNameMetadata?: components["schemas"]["PropertyNamesResponsePropertyNameMetadata"]; + }; + /** @description This type defines the name-value pair associated with a property value. */ + PropertyValues: { + /** @description The name of the property.

For example, typical vehicle property names are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category. */ + propertyName?: string; + /** @description The value for the property specified in the properyName field.

For example, if the propertyName is make, then the propertyValue will be the specific make of the vehicle, such as Toyota. */ + propertyValue?: string; + }; + /** @description This type defines the request fields used in the getCompatibilityPropertyValues method. */ + PropertyValuesRequest: { + /** @description The unique identifier of the eBay leaf category for which to retrieve compatibility property values. This category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility.

Use the getAutomotivePartsCompatibilityPolicies method to retrieve a list of categories that support parts compatibility. */ + categoryId?: string; + /** @description This array can be used to specify the compatibility properties used limit the result set. Only values associated with the specified name-value pairs will be returned in the response.

For example, if the propertyName is set to Make and the propertyValue is set to Honda, only compatible Honda vehicles will be returned. */ + propertyFilters?: components["schemas"]["PropertyFilterInner"][]; + /** @description This field specifies the name of the property for which to retrieve associated property values.

For example, typical vehicle property names are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category. Use the getCompatibilityPropertyNames method to retrieve valid property names for a specified category. */ + propertyName?: string; + /** @description This field specifies the sort order for the property values in the result set.

Valid values:
  • Ascending
  • Descending
Note: If no search order is specified, values are sorted in ascending order. */ + sortOrder?: string; + }; + /** @description This type defines the response fields used in the getCompatibilityPropertyValues method. */ + PropertyValuesResponse: { + /** @description The version number of the metadata. This version is upticked whenever there are compatibility name changes for the specified marketplace. */ + metadataVersion?: string; + /** @description The name of the property specified in the request. */ + propertyName?: string; + /** @description This array specifies the property values associated with the specified propertyName, in the specified category. */ + propertyValues?: string[]; + }; + /** @description A type that defines the attributes of a regulatory policy. */ + RegulatoryAttribute: { + /** @description A unique value identifying a specific regulatory attribute. For implementation help, refer to eBay API documentation */ + name?: string; + /** @description The enumeration value in this field indicates whether the corresponding attribute is recommended or required for the corresponding leaf category. For implementation help, refer to eBay API documentation */ + usage?: string; + }; + /** @description A type that defines the regulatory policy. */ + RegulatoryPolicy: { + /** @description The unique identifier of the leaf category to which the corresponding policies pertain. */ + categoryId?: string; + /** @description The unique identifier of the category tree, which reflects the specified marketplace. */ + categoryTreeId?: string; + /** @description A list of supported regulatory attributes for this marketplace. */ + supportedAttributes?: components["schemas"]["RegulatoryAttribute"][]; + }; + /** @description A type that defines the response fields for the getRegulatoryPolicies method. */ + RegulatoryPolicyResponse: { + /** @description A list of eBay policies that define whether or not you must include required regulatory information for leaf categories on the given marketplace. */ + regulatoryPolicies?: components["schemas"]["RegulatoryPolicy"][]; + /** @description A list of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ + warnings?: components["schemas"]["Error"][]; + }; + ReturnPolicy: { + /** @description The category ID to which the return policies apply. */ + categoryId?: string; + /** @description A value that indicates the root node of the category tree used for the response set. Each marketplace is based on a category tree whose root node is indicated by this unique category ID value. All category policy information returned by this call pertains to the categories included below this root node of the tree.

A category tree is a hierarchical framework of eBay categories that begins at the root node of the tree and extends to include all the child nodes in the tree. Each child node in the tree is an eBay category that is represented by a unique categoryId value. Within a category tree, the root node has no parent node and leaf nodes are nodes that have no child nodes. */ + categoryTreeId?: string; + /** @description This complex type defines the category policies related to domestic item returns. */ + domestic?: components["schemas"]["ReturnPolicyDetails"]; + /** @description This complex type defines the category policies related to international item returns. */ + international?: components["schemas"]["ReturnPolicyDetails"]; + /** @description If set to true, this flag indicates that you must specify a return policy for items listed in the associated category.

Note that not accepting returns (setting returnsAcceptedEnabled to false) is a valid return policy. */ required?: boolean; }; /** @description This container defines the category policies that relate to domestic and international return policies (the return shipping is made via a domestic or an international shipping service, respectively). */ ReturnPolicyDetails: { - /** @description If set to true, this flag indicates you can supply a detailed return policy description within your return policy (for example, by populating the returnInstructions field in the Account API's createReturnPolicy). User-supplied return policy details are allowed only in the DE, ES, FR, and IT marketplaces. */ + /** @description If set to true, this flag indicates you can supply a detailed return policy description within your return policy (for example, by populating the returnInstructions field in the Account API's createReturnPolicy). User-supplied return policy details are allowed only in the DE, ES, FR, and IT marketplaces.

Note: Depending on the API used to setup your return policy, return instructions are defined differently. */ policyDescriptionEnabled?: boolean; - /** @description A list of refund methods allowed for the associated category. */ + /** @description A list of refund methods allowed for the associated category.

Note: Depending on the API used to setup your return policy, available refund methods are defined differently. */ refundMethods?: string[]; - /** @description A list of return methods allowed for the associated category. */ + /** @description A list of return methods allowed for the associated category.

Note: Depending on the API used to setup your return policy, available return methods are defined differently. */ returnMethods?: string[]; - /** @description A list of return periods allowed for the associated category.

Note that different APIs require you to enter the return period in different ways. For example, the Account API uses the complex TimeDuration type, which takes two values (a unit and a value), whereas the Trading API takes a single value (such as Days_30). */ + /** @description A list of return periods allowed for the associated category.

Note: Depending on the API used to setup your return policy, return periods are defined differently. */ returnPeriods?: components["schemas"]["TimeDuration"][]; - /** @description If set to true, this flag indicates the seller can configure how they handle domestic returns. */ + /** @description A value of true in this field indicates that return policies are applicable to the corresponding leaf category.

Note: Depending on the API used to setup your return policy, whether or not you accept returns is configured as follows: */ returnsAcceptanceEnabled?: boolean; - /** @description A list of allowed values for who pays for the return shipping cost.

Note that for SNAD returns, the seller is always responsible for the return shipping cost. */ + /** @description A list of allowed values for who pays for the return shipping cost.

Note that for SNAD returns, the seller is always responsible for the return shipping cost.

Note: Depending on the API used to setup your return policy, specifiying that the buyer or seller is responsible for paying for return shipping costs is defined differently. */ returnShippingCostPayers?: string[]; }; ReturnPolicyResponse: { @@ -401,6 +1262,122 @@ export interface components { /** @description A list of sales-tax jurisdictions. */ salesTaxJurisdictions?: components["schemas"]["SalesTaxJurisdiction"][]; }; + /** @description This type provides applicable shipping carrier metadata for the marketplace. */ + ShippingCarrier: { + /** @description The localized description of the shipping carrier, such as UPS, FedEx, and USPS. */ + description?: string; + /** @description An enumerated value describing the shipping carrier returned, for example, UPS, FedEx, and USPS. These values are needed when providing shipment tracking information for each specific shipping carrier. */ + shippingCarrier?: string; + }; + /** @description This type provides applicable shipping carrier metadata for returned for the marketplace. */ + ShippingCarrierResponse: { + /** @description A list of shipping carriers available for the marketplace. */ + shippingCarriers?: components["schemas"]["ShippingCarrier"][]; + }; + /** @description This type provides applicable locations or region codes to be excluded set by the seller. */ + ShippingExcludeLocation: { + /** @description The localized location name. */ + description?: string; + /** @description The location or region to be excluded. Countries are returned through ISO 3166 codes. This field may also include continents and other larger geographical regions (for example, the Middle East, Southeast Asia), as well as domestic/special locations (like APO/FPO, PO Box, Alaska/Hawaii). The values returned in this field are used in fulfillment business policies (such as in regionName) or through the ExcludeShipToLocation field in an AddItem call. */ + location?: string; + /** @description The region of the excluded shipping area specified, such as:
  • Africa
  • Americas
  • Asia
  • Central America and Caribbean
  • Europe
  • Middle East
  • North America
  • Oceania
  • South America
  • Southeast Asia
*/ + region?: string; + }; + /** @description This type provides applicable locations or region codes to be excluded. */ + ShippingExcludeLocationResponse: { + /** @description The complete list of geographical regions, countries, domestic areas, and special locations for the specified eBay marketplace that the seller has designated as excluded shipping locations. */ + excludeShippingLocations?: components["schemas"]["ShippingExcludeLocation"][]; + }; + /** @description This type provides applicable shipping handling time metadata. */ + ShippingHandlingTime: { + /** @description The localized description of the maximum handling time. */ + description?: string; + /** @description This field is only returned if its value is true. If returned, it indicates that the corresponding handling time is considered extended handling for the marketplace. Extended handling times may be used for freight shipping, but should generally be avoided if possible, as they might adversely affect the buying decisions of potential customers. */ + extendedHandling?: boolean; + /** + * Format: int32 + * @description The integer value returned in this field indicates the maximum number of business days that the eBay site allows as a seller's handling time measured from when the buyer pays for the order. For example, if the maxHandlingTime value is set to 1 and a buyer pays for the order on a Wednesday, the seller would have to ship the item by the next day (Thursday).

A maxHandlingTime value of 0 indicates same day handling for an item. In this case, the seller's handling time commitment depends on the order cut off time set in the seller's user preferences. This defaults to 2:00 PM local time on most eBay sites. For orders placed (and cleared payment received) before the local order cut off time, the item must be shipped by the end of the current day. For orders completed on or after the order cut off time, the item must be shipped by the end of the following day (excluding weekends and local holidays). + */ + maxHandlingTime?: number; + }; + /** @description This type provides applicable shipping handling times returned for the specified marketplace. */ + ShippingHandlingTimeResponse: { + /** @description A list of supported handling times for the marketplace. */ + handlingTimes?: components["schemas"]["ShippingHandlingTime"][]; + }; + /** @description This type provides applicable shipping location metadata. */ + ShippingLocation: { + /** @description The localized location name. */ + description?: string; + /** @description The name or abbreviation of the shipping location or region. Countries are returned through ISO 3166 codes. This field may also include continents and other larger geographical regions (for example, the Middle East, Southeast Asia), as well as domestic/special locations (like APO/FPO, PO Box, Alaska/Hawaii). The values returned in this field are used in fulfillment business policies (such as in regionName) or through the ExcludeShipToLocation field in an AddItem call. */ + shippingLocation?: string; + }; + /** @description This type provides applicable shipping location metadata returned. */ + ShippingLocationResponse: { + /** @description The complete list of geographical regions, countries, domestic areas, and special locations for the specified eBay marketplace that can be set as shipping locations. */ + shippingLocations?: components["schemas"]["ShippingLocation"][]; + }; + /** @description This type provides fields applicable for shipping policy metadata for the leaf categories returned for the marketplace. */ + ShippingPoliciesResponse: { + /** @description This array contains applicable policy metadata for the leaf categories returned for the marketplace specified in the path parameter marketplace_id and optionally limited by only those leaf category IDs specified in the query parameter filter. */ + shippingPolicies?: components["schemas"]["ShippingPolicy"][]; + /** @description An array of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ + warnings?: components["schemas"]["Error"][]; + }; + ShippingPolicy: { + /** @description The unique identifier of the eBay leaf category for which metadata is being returned. */ + categoryId?: string; + /** @description The unique identifier of the category tree. */ + categoryTreeId?: string; + /** @description Indicates if the Global Shipping Program (GSP) is supported for the category.

Note: GSP is only supported by the eBay UK marketplace (EBAY_GB).

*/ + globalShippingEnabled?: boolean; + /** @description Returns the applicable max cap per shipping cost for shipping service group1. */ + group1MaxFlatShippingCost?: components["schemas"]["Amount"]; + /** @description Returns the applicable max cap per shipping cost for shipping service group2. */ + group2MaxFlatShippingCost?: components["schemas"]["Amount"]; + /** @description Returns the applicable max cap per shipping cost for shipping service group3. */ + group3MaxFlatShippingCost?: components["schemas"]["Amount"]; + /** @description Indicates if a seller's stated handling time is enabled for a category. A handling time is generally needed for items that are shipped to the buyer, but not necessarily applicable to freight shipping or local pickup. */ + handlingTimeEnabled?: boolean; + /** @description The maximum cost the seller can charge for the first domestic flat-rate shipping service. Mutually exclusive with the GroupNMaxFlatShippingCost elements. */ + maxFlatShippingCost?: components["schemas"]["Amount"]; + /** @description Indicates whether the category requires sellers to specify shipping details at listing time. */ + shippingTermsRequired?: boolean; + }; + /** @description This type provides applicable shipping service metadata. */ + ShippingService: { + /** @description This field returns the localized name of the shipping service. */ + description?: string; + /** @description A value of true indicates that the shipping service is international. An international shipping service option is required if an item is being shipped from one country (origin) to another (destination). */ + internationalService?: boolean; + /** + * Format: int32 + * @description This value indicates the maximum number of business days that it takes the shippingCarrier to ship an item using the corresponding shippingService. + */ + maxShippingTime?: number; + /** + * Format: int32 + * @description This value indicates the minimum number of business days that it takes the shippingCarrier to ship an item using the corresponding shippingService. + */ + minShippingTime?: number; + /** @description This container provides name-value pairs that specify physical constraints and measurement units of packages for the shippingCarrier and the corresponding shippingService. An empty container is returned if the shipping service does not have any package limits defined. */ + packageLimits?: components["schemas"]["PackageLimits"]; + /** @description The code for the shipping carrier returned, for example, UPS, FedEx, and USPS. */ + shippingCarrier?: string; + /** @description The shipping category of the shipping service including: ECONOMY, STANDARD, EXPEDITED, ONE_DAY, PICKUP, and other similar categories. */ + shippingCategory?: string; + /** @description A list of shipping cost types that this shipping service option supports. For example, FLAT_RATE, CALCULATED, and FREIGHT. */ + shippingCostTypes?: string[]; + /** @description The name of the shipping service. The shipping service named here can only be used in listings or in business policies if validForSellingFlow is true. The value returned in this field is used in listing APIs and business policies to set the shipping service. */ + shippingService?: string; + /** @description A value of true indicates that the shippingService can be set as an available shipping service in the listing or through the fulfillment business policy. */ + validForSellingFlow?: boolean; + }; + /** @description This type provides applicable shipping service metadata returned. */ + ShippingServiceResponse: { + /** @description A complete list of shipping service options that can be used on the marketplace for shipping items. */ + shippingServices?: components["schemas"]["ShippingService"][]; + }; /** @description A type that describes signal words for hazardous materials labels. */ SignalWord: { /** @description The identifier of the signal word. For more information, see Signal word information. */ @@ -408,6 +1385,66 @@ export interface components { /** @description The description of the signal word localized to the default language of the marketplace. For more information, see Signal word information. */ signalWordDescription?: string; }; + /** @description A type that contains eBay international site visibility policy metadata fields. */ + SiteVisibilityPoliciesResponse: { + /** @description This array contains applicable policy metadata for the leaf categories returned for the marketplace specified in the path parameter marketplace_id and optionally limited by only those leaf category IDs specified in the query parameter filter. */ + siteVisibilityPolicies?: components["schemas"]["SiteVisibilityPolicy"][]; + /** @description An array of the warnings that were generated as a result of the request. This field is not returned if no warnings were generated by the request. */ + warnings?: components["schemas"]["Error"][]; + }; + /** @description A type that contains eBay international cross border trade policy metadata fields. */ + SiteVisibilityPolicy: { + /** @description The unique identifier of the eBay leaf category for which metadata is being returned. */ + categoryId?: string; + /** @description The unique identifier of the category tree. */ + categoryTreeId?: string; + /** @description If true, the category supports specifying that listings of a seller on the UK marketplace can pass in Australia as a value in a field to expose that item on the eBay Australia site (ebay.com.au). For more information, see Cross-border trading. */ + crossBorderTradeAustraliaEnabled?: boolean; + /** @description If true, the category supports specifying that listings of a seller on the US or Canada merketplaces can pass in UK as a value in a field to expose that item on the eBay UK (ebay.co.uk) and eBay IE (ebay.ie) sites. For more information, see Cross-border trading. */ + crossBorderTradeGBEnabled?: boolean; + /** @description If true, the category supports specifying that listings of a seller on the US or Canada merketplaces can pass in North America as a value in a field to expose that item on the eBay US (ebay.com) and eBay Canada (ebay.ca) sites (English). For more information, see Cross-border trading. */ + crossBorderTradeNorthAmericaEnabled?: boolean; + }; + /** @description This type is used to provide the sort order of compatibility properties returned in the response. */ + SortOrderInner: { + /** @description This container is used to define the property to be used in the sorting. */ + sortOrder?: components["schemas"]["SortOrderProperties"]; + /** @description The priority of the specified sort order provided.

For example, when a property is assigned Sort1, its values are sorted first. Values for the property assigned Sort2 are sorted second, and so on.

Valid values:
  • Sort1
  • Sort2
  • Sort3
  • Sort4
  • Sort5
*/ + sortPriority?: string; + }; + /** @description This type is used to define the property to be used in sorting. */ + SortOrderProperties: { + /** @description Defines the order of the sort.

Valid values:
  • Ascending
  • Descending
*/ + order?: string; + /** @description The name of the searchable property to be used for sorting.

For example, typical vehicle property names are 'Make', 'Model', 'Year', 'Engine', and 'Trim', but will vary based on the eBay marketplace and the eBay category. */ + propertyName?: string; + }; + /** @description This type provides the properties and specifications to use to search for compatibilities. */ + SpecificationRequest: { + /** @description The unique identifier of the eBay leaf category for which compatibility details are being retrieved. This category must be a valid eBay category on the specified eBay marketplace, and the category must support parts compatibility for cars, trucks, or motorcycles.

Use the getAutomotivePartsCompatibilityPolicies method to retrieve a list of categories that support parts compatibility by specification. For the categories in the response that support compatibility by specification, you’ll see SPECIFICATIONS as the value for the compatibilityBasedOn field */ + categoryId?: string; + /** @description This comma-delimited array can be used to restrict the number of compatible application name-value pairs returned in the response by specifying the properties that the seller wishes to be included in the response.

Only compatible applications with the specified properties will be returned. Properties that can be specified here include make, model, year, and trim. */ + compatibilityPropertyFilters?: components["schemas"]["PropertyFilterInner"][]; + /** @description This field can be used to define the type of properties that will be returned in the response.

For example, if you specify Searchable, the compatibility details will contain properties that can be used to search for products, such as make or model.

Note: This field cannot be used alongside dataPropertyName. If both are used, an error will occur.
Valid values:
  • DisplayableProductDetails: Properties for use in a user interface to describe products.
  • DisplayableSearchResults: Properties for use in results for product searches.
  • Searchable: Properties for use in searches.
  • Sortable: Properties that are suitable for sorting.
Default value: DisplayableSearchResults */ + dataset?: string; + /** @description This comma-delimited array can be used to define the specific property name(s) that will be returned in the response.

For example, if you specify Engine, the result set will only contain engines that are compatible with the input criteria.

Note: This array cannot be used alongside dataset. If both are used, an error will occur. */ + datasetPropertyName?: string[]; + /** @description This boolean can be used to specify that the compatibilities returned in the response are to be defined by an exact match on the input value of specification properties.

By default, an expanded compatibility match is done when it applies, such as for Load Index, where a compatible vehicle is one that has a load index requirement that is less than or equal to the input. By specifying this field as true, only exact matches are returned. */ + exactMatch?: boolean; + /** @description

Important! Pagination is not yet supported by this method. If this container is included in the request, it will be ignored.

*/ + paginationInput?: components["schemas"]["PaginationInput"]; + /** @description This array specifies the sorting order of the compatibility properties. Any of the searchable properties can be used to specify search order. Up to 5 levels of sort order may be specified.

Note: If no sort order is specified through this field, the default sort order of popularity descending is applied. */ + sortOrders?: components["schemas"]["SortOrderInner"][]; + /** @description This array defines the specifications of the part, in the form of name-value pairs, for which compatible applications will be retrieved. */ + specifications?: components["schemas"]["PropertyFilterInner"][]; + }; + /** @description This type defines the fields used in the getCompatibilitiesBySpecification response. */ + SpecificationResponse: { + /** @description This container returns the list of all compatible application name-value pairs for the given filter criteria. */ + compatibilityDetails?: components["schemas"]["Compatibility"][]; + /** @description

Important! Not currently returned. For future use.

*/ + pagination?: components["schemas"]["Pagination"]; + }; /** @description A complex type that specifies a period of time using a specified time-measurement unit. */ TimeDuration: { /** @description A time-measurement unit that specifies a singular period of time.

A span of time is defined when you apply the value specified in the value field to the value specified for unit.

Time-measurement units can be YEAR, MONTH, DAY, and so on. See TimeDurationUnitEnum for a complete list of possible time-measurement units. For implementation help, refer to eBay API documentation */ @@ -419,26 +1456,879 @@ export interface components { value?: number; }; }; - responses: never; - parameters: never; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export interface operations { - getAutomotivePartsCompatibilityPolicies: { + responses: never; + parameters: never; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; +export interface operations { + getAutomotivePartsCompatibilityPolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned. Use the Taxonomy API to retrieve category ID values.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{183521|183523|183524}

Note: URL-encoding of the parameter list is no longer required. */ + filter?: string; + }; + header?: { + /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ + "Accept-Encoding"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

Note: Only the following eBay marketplaces support automotive parts compatibility:
  • EBAY_MOTORS_US
  • EBAY_AU
  • EBAY_CA
  • EBAY_DE
  • EBAY_ES
  • EBAY_FR
  • EBAY_GB
  • EBAY_IT
*/ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["AutomotivePartsCompatibilityPolicyResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getCategoryPolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by only returning metadata for the specified leaf categories. Supply the categoryId for one or more leaf categories. You can verify if a category is a leaf category by using the Taxonomy API and looking for a "leafCategory": true tag.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{3767|171784} */ + filter?: string; + }; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CategoryPolicyResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getClassifiedAdPolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by only returning metadata for the specified leaf categories. Supply the categoryId for one or more leaf categories. You can verify if a category is a leaf category by using the Taxonomy API and looking for a "leafCategory": true tag.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example:filter=categoryIds:{3767|171784} */ + filter?: string; + }; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See MarketplaceIdEnum for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ClassifiedAdPolicyResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getCurrencies: { + parameters: { + query?: never; + header?: { + /** @description This header is required to retrieve metadata for the French Canada and French Belgium marketplaces.

Follow the instructions below to retrieve metadata for these marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.

    Note: If EBAY_BE is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the Dutch Belgium marketplace.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA and include the Accept-Language header with a value of fr-CA.
  • Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace.
*/ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which currency information is retrieved.

See the MarketplaceIdEnum type for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GetCurrenciesResponse"]; + }; + }; + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getExtendedProducerResponsibilityPolicies: { + parameters: { + query?: { + /** @description A query parameter that can be used to limit the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree that should be returned.

When a categoryId value is specified, the returned category tree includes the policies for that parent node, as well as the policies for any child nodes below that parent node.

Pass in the categoryId values using a URL-encoded, pipe-separated ('|') list. For example:

filter=categoryIds%3A%7B100%7C101%7C102%7D

Maximum: 50 */ + filter?: string; + }; + header?: { + /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ + "Accept-Encoding"?: string; + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information shall be retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ExtendedProducerResponsibilityPolicyResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getHazardousMaterialsLabels: { + parameters: { + query?: never; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which hazardous materials label information shall be retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["HazardousMaterialDetailsResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getItemConditionPolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned.

When you specify a categoryId value, the returned category tree includes the policies for that parent node, plus the policies for any leaf nodes below that parent node.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{100|101|102}

Note that you must URL-encode the parameter list, which results in the following filter for the above example:

  filter=categoryIds%3A%7B100%7C101%7C102%7D */ + filter?: string; + }; + header?: { + /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ + "Accept-Encoding"?: string; + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ItemConditionPolicyResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getListingStructurePolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned.

When you specify a categoryId value, the returned category tree includes the policies for that parent node, plus the policies for any leaf nodes below that parent node.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{100|101|102}

Note that you must URL-encode the parameter list, which results in the following filter for the above example:

  filter=categoryIds%3A%7B100%7C101%7C102%7D */ + filter?: string; + }; + header?: { + /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ + "Accept-Encoding"?: string; + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ListingStructurePolicyResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getListingTypePolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by only returning metadata for the specified leaf categories. Supply the categoryId for one or more leaf categories. You can verify if a category is a leaf category by using the Taxonomy API and looking for a "leafCategory": true tag.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{3767|171784} */ + filter?: string; + }; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ListingTypePoliciesResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getMotorsListingPolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by only returning metadata for the specified leaf categories. Supply the categoryId for one or more leaf categories. You can verify if a category is a leaf category by using the Taxonomy API and looking for a "leafCategory": true tag.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{3767|171784} */ + filter?: string; + }; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["MotorsListingPoliciesResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getNegotiatedPricePolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned.

When you specify a categoryId value, the returned category tree includes the policies for that parent node, plus the policies for any leaf nodes below that parent node.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{100|101|102}

Note that you must URL-encode the parameter list, which results in the following filter for the above example:

  filter=categoryIds%3A%7B100%7C101%7C102%7D */ + filter?: string; + }; + header?: { + /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ + "Accept-Encoding"?: string; + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["NegotiatedPricePolicyResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getProductSafetyLabels: { + parameters: { + query?: never; + header?: never; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. See the following note for exceptions.Note: This method is not supported in the EBAY_HK, EBAY_MY, EBAY_TW, or EBAY_PH marketplaces. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProductSafetyLabelsResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getRegulatoryPolicies: { + parameters: { + query?: { + /** @description A query parameter that can be used to limit the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree that should be returned.

Pass in the categoryId values using a URL-encoded, pipe-separated ('|') list. For example:

filter=categoryIds%3A%7B100%7C101%7C102%7D

Maximum: 50 */ + filter?: string; + }; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information shall be retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values.Note: This method is not supported in the EBAY_HK, EBAY_MY, EBAY_TW, or EBAY_PH marketplaces. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RegulatoryPolicyResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getReturnPolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned.

When you specify a categoryId value, the returned category tree includes the policies for that parent node, plus the policies for any leaf nodes below that parent node.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{100|101|102}

Note that you must URL-encode the parameter list, which results in the following filter for the above example:

  filter=categoryIds%3A%7B100%7C101%7C102%7D */ + filter?: string; + }; + header?: { + /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ + "Accept-Encoding"?: string; + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ReturnPolicyResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getShippingPolicies: { + parameters: { + query?: { + /** @description This query parameter limits the response by only returning metadata for the specified leaf categories. Supply the categoryId for one or more leaf categories. You can verify if a category is a leaf category by using the Taxonomy API and looking for a "leafCategory": true tag.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{3767|171784} */ + filter?: string; + }; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ShippingPoliciesResponse"]; + }; + }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getSiteVisibilityPolicies: { parameters: { query?: { - /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned. Use the Taxonomy API to retrieve category ID values.

When you specify a categoryId value, the returned category tree includes the policies for that parent node, plus the policies for any leaf nodes below the at parent node.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{183521|183523|183524}

Note: URL-encoding of the parameter list is no longer required. */ + /** @description This query parameter limits the response by only returning metadata for the specified leaf categories. Supply the categoryId for one or more leaf categories. You can verify if a category is a leaf category by using the Taxonomy API and looking for a "leafCategory": true tag.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example:filter=categoryIds:{3767|171784} */ filter?: string; }; header?: { - /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ - "Accept-Encoding"?: string; + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; }; path: { - /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

Note: Only the following eBay marketplaces support automotive parts compatibility:
  • EBAY_MOTORS_US
  • EBAY_AU
  • EBAY_CA
  • EBAY_DE
  • EBAY_ES
  • EBAY_FR
  • EBAY_GB
  • EBAY_IT
*/ + /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ marketplace_id: string; }; cookie?: never; @@ -451,7 +2341,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["AutomotivePartsCompatibilityPolicyResponse"]; + "application/json": components["schemas"]["SiteVisibilityPoliciesResponse"]; }; }; /** @description No content */ @@ -484,23 +2374,24 @@ export interface operations { }; }; }; - getExtendedProducerResponsibilityPolicies: { + getCompatibilitiesBySpecification: { parameters: { - query?: { - /** @description A query parameter that can be used to limit the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree that should be returned.

When a categoryId value is specified, the returned category tree includes the policies for that parent node, as well as the policies for any child nodes below that parent node.

Pass in the categoryId values using a URL-encoded, pipe-separated ('|') list. For example:

filter=categoryIds%3A%7B100%7C101%7C102%7D

Maximum: 50 */ - filter?: string; - }; - header?: { - /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ - "Accept-Encoding"?: string; - }; - path: { - /** @description This path parameter specifies the eBay marketplace for which policy information shall be retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ - marketplace_id: string; + query?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See Metadata API requirements and restrictions for supported values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client.

Its value should be set to application/json.

For more information, refer to HTTP request headers in the Using eBay RESTful APIs guide. */ + "Content-Type": string; }; + path?: never; cookie?: never; }; - requestBody?: never; + /** @description This type defines the properties and specifications to use to search for compatibilities. */ + requestBody?: { + content: { + "application/json": components["schemas"]["SpecificationRequest"]; + }; + }; responses: { /** @description Success */ 200: { @@ -508,10 +2399,10 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["ExtendedProducerResponsibilityPolicyResponse"]; + "application/json": components["schemas"]["SpecificationResponse"]; }; }; - /** @description No content */ + /** @description No Content */ 204: { headers: { [name: string]: unknown; @@ -525,8 +2416,8 @@ export interface operations { }; content?: never; }; - /** @description Not found */ - 404: { + /** @description Unauthorized */ + 401: { headers: { [name: string]: unknown; }; @@ -541,17 +2432,24 @@ export interface operations { }; }; }; - getHazardousMaterialsLabels: { + getCompatibilityPropertyNames: { parameters: { query?: never; - header?: never; - path: { - /** @description This path parameter specifies the eBay marketplace for which hazardous materials label information shall be retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ - marketplace_id: string; + header: { + /** @description This header identifies the seller's eBay marketplace.

See Metadata API requirements and restrictions for supported values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client.

Its value should be set to application/json.

For more information, refer to HTTP request headers in the Using eBay RESTful APIs guide. */ + "Content-Type": string; }; + path?: never; cookie?: never; }; - requestBody?: never; + /** @description This type defines the properties used to retrieve compatibility property names. */ + requestBody?: { + content: { + "application/json": components["schemas"]["PropertyNamesRequest"]; + }; + }; responses: { /** @description Success */ 200: { @@ -559,8 +2457,15 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["HazardousMaterialDetailsResponse"]; + "application/json": components["schemas"]["PropertyNamesResponse"]; + }; + }; + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; }; + content?: never; }; /** @description Bad Request */ 400: { @@ -569,8 +2474,8 @@ export interface operations { }; content?: never; }; - /** @description Not found */ - 404: { + /** @description Unauthorized */ + 401: { headers: { [name: string]: unknown; }; @@ -585,23 +2490,24 @@ export interface operations { }; }; }; - getItemConditionPolicies: { + getCompatibilityPropertyValues: { parameters: { - query?: { - /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned.

When you specify a categoryId value, the returned category tree includes the policies for that parent node, plus the policies for any leaf nodes below that parent node.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{100|101|102}

Note that you must URL-encode the parameter list, which results in the following filter for the above example:

  filter=categoryIds%3A%7B100%7C101%7C102%7D */ - filter?: string; - }; - header?: { - /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ - "Accept-Encoding"?: string; - }; - path: { - /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ - marketplace_id: string; + query?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See Metadata API requirements and restrictions for supported values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client.

Its value should be set to application/json.

For more information, refer to HTTP request headers in the Using eBay RESTful APIs guide. */ + "Content-Type": string; }; + path?: never; cookie?: never; }; - requestBody?: never; + /** @description This type defines the category ID and property name for which to retrieve values. */ + requestBody?: { + content: { + "application/json": components["schemas"]["PropertyValuesRequest"]; + }; + }; responses: { /** @description Success */ 200: { @@ -609,10 +2515,10 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["ItemConditionPolicyResponse"]; + "application/json": components["schemas"]["PropertyValuesResponse"]; }; }; - /** @description No content */ + /** @description No Content */ 204: { headers: { [name: string]: unknown; @@ -626,8 +2532,8 @@ export interface operations { }; content?: never; }; - /** @description Not found */ - 404: { + /** @description Unauthorized */ + 401: { headers: { [name: string]: unknown; }; @@ -642,23 +2548,82 @@ export interface operations { }; }; }; - getListingStructurePolicies: { + getMultiCompatibilityPropertyValues: { parameters: { - query?: { - /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned.

When you specify a categoryId value, the returned category tree includes the policies for that parent node, plus the policies for any leaf nodes below that parent node.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{100|101|102}

Note that you must URL-encode the parameter list, which results in the following filter for the above example:

  filter=categoryIds%3A%7B100%7C101%7C102%7D */ - filter?: string; + query?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See Metadata API requirements and restrictions for supported values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client.

Its value should be set to application/json.

For more information, refer to HTTP request headers in the Using eBay RESTful APIs guide. */ + "Content-Type": string; }; - header?: { - /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ - "Accept-Encoding"?: string; + path?: never; + cookie?: never; + }; + /** @description This type defines the category ID and property names for which to retrieve values. */ + requestBody?: { + content: { + "application/json": components["schemas"]["MultiCompatibilityPropertyValuesRequest"]; }; - path: { - /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ - marketplace_id: string; + }; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["MultiCompatibilityPropertyValuesResponse"]; + }; + }; + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getProductCompatibilities: { + parameters: { + query?: never; + header: { + /** @description This header identifies the seller's eBay marketplace.

See Metadata API requirements and restrictions for supported values. */ + "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client.

Its value should be set to application/json.

For more information, refer to HTTP request headers in the Using eBay RESTful APIs guide. */ + "Content-Type": string; }; + path?: never; cookie?: never; }; - requestBody?: never; + /** @description This type defines properties for which to find compatibilities. */ + requestBody?: { + content: { + "application/json": components["schemas"]["ProductRequest"]; + }; + }; responses: { /** @description Success */ 200: { @@ -666,10 +2631,10 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["ListingStructurePolicyResponse"]; + "application/json": components["schemas"]["ProductResponse"]; }; }; - /** @description No content */ + /** @description No Content */ 204: { headers: { [name: string]: unknown; @@ -683,8 +2648,8 @@ export interface operations { }; content?: never; }; - /** @description Not found */ - 404: { + /** @description Unauthorized */ + 401: { headers: { [name: string]: unknown; }; @@ -699,18 +2664,15 @@ export interface operations { }; }; }; - getNegotiatedPricePolicies: { + getExcludeShippingLocations: { parameters: { - query?: { - /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned.

When you specify a categoryId value, the returned category tree includes the policies for that parent node, plus the policies for any leaf nodes below that parent node.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{100|101|102}

Note that you must URL-encode the parameter list, which results in the following filter for the above example:

  filter=categoryIds%3A%7B100%7C101%7C102%7D */ - filter?: string; - }; + query?: never; header?: { - /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ - "Accept-Encoding"?: string; + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; }; path: { - /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + /** @description This path parameter specifies the eBay marketplace for which excluded shipping locations information is retrieved.

See MarketplaceIdEnum for supported eBay marketplace ID values.

Note: When listing the items on the French Canada, French Belgium, and Dutch Belgium marketplaces, also set the Accept-Language header as needed.

*/ marketplace_id: string; }; cookie?: never; @@ -723,25 +2685,51 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["NegotiatedPricePolicyResponse"]; + "application/json": components["schemas"]["ShippingExcludeLocationResponse"]; }; }; - /** @description No content */ - 204: { + /** @description Bad Request */ + 400: { headers: { [name: string]: unknown; }; content?: never; }; - /** @description Bad Request */ - 400: { + /** @description Internal Server Error */ + 500: { headers: { [name: string]: unknown; }; content?: never; }; - /** @description Not found */ - 404: { + }; + }; + getHandlingTimes: { + parameters: { + query?: never; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which handling times information is retrieved.

See MarketplaceIdEnum for supported eBay marketplace ID values.

Note: When listing the items on the French Canada, French Belgium, and Dutch Belgium marketplaces, also set the Accept-Language header as needed.

*/ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ShippingHandlingTimeResponse"]; + }; + }; + /** @description Bad Request */ + 400: { headers: { [name: string]: unknown; }; @@ -756,18 +2744,15 @@ export interface operations { }; }; }; - getReturnPolicies: { + getShippingCarriers: { parameters: { - query?: { - /** @description This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned.

When you specify a categoryId value, the returned category tree includes the policies for that parent node, plus the policies for any leaf nodes below that parent node.

The parameter takes a list of categoryId values and you can specify up to 50 separate category IDs. Separate multiple values with a pipe character ('|'). If you specify more than 50 categoryId values, eBay returns the policies for the first 50 IDs and a warning that not all categories were returned.

Example: filter=categoryIds:{100|101|102}

Note that you must URL-encode the parameter list, which results in the following filter for the above example:

  filter=categoryIds%3A%7B100%7C101%7C102%7D */ - filter?: string; - }; + query?: never; header?: { - /** @description This header indicates the compression-encoding algorithms the client accepts for the response. This value should be set to gzip.

For more information, refer to HTTP request headers. */ - "Accept-Encoding"?: string; + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; }; path: { - /** @description This path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ + /** @description This path parameter specifies the eBay marketplace for which shipping carriers information is retrieved.

See MarketplaceIdEnum for supported eBay marketplace ID values.

Note: When listing the items on the French Canada, French Belgium, and Dutch Belgium marketplaces, also set the Accept-Language header as needed.

*/ marketplace_id: string; }; cookie?: never; @@ -780,16 +2765,49 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["ReturnPolicyResponse"]; + "application/json": components["schemas"]["ShippingCarrierResponse"]; }; }; - /** @description No content */ - 204: { + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { headers: { [name: string]: unknown; }; content?: never; }; + }; + }; + getShippingLocations: { + parameters: { + query?: never; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which shipping locations information is retrieved.

See MarketplaceIdEnum for supported eBay marketplace ID values.

Note: When listing the items on the French Canada, French Belgium, and Dutch Belgium marketplaces, also set the Accept-Language header as needed.

*/ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ShippingLocationResponse"]; + }; + }; /** @description Bad Request */ 400: { headers: { @@ -797,8 +2815,41 @@ export interface operations { }; content?: never; }; - /** @description Not found */ - 404: { + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getShippingServices: { + parameters: { + query?: never; + header?: { + /** @description This header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace. */ + "Accept-Language"?: string; + }; + path: { + /** @description This path parameter specifies the eBay marketplace for which shipping services information is retrieved.

See MarketplaceIdEnum for supported eBay marketplace ID values.

Note: When listing the items on the French Canada, French Belgium, and Dutch Belgium marketplaces, also set the Accept-Language header as needed.

*/ + marketplace_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ShippingServiceResponse"]; + }; + }; + /** @description Bad Request */ + 400: { headers: { [name: string]: unknown; }; diff --git a/src/types/restful/specs/sell_negotiation_v1_oas3.ts b/src/types/restful/specs/sell_negotiation_v1_oas3.ts index b9e58712..e7cc495a 100644 --- a/src/types/restful/specs/sell_negotiation_v1_oas3.ts +++ b/src/types/restful/specs/sell_negotiation_v1_oas3.ts @@ -11,7 +11,7 @@ export interface paths { path?: never; cookie?: never; }; - /** @description This method evaluates a seller's current listings and returns the set of IDs that are eligible for a seller-initiated discount offer to a buyer. A listing ID is returned only when one or more buyers have shown an "interest" in the listing. If any buyers have shown interest in a listing, the seller can initiate a "negotiation" with them by calling sendOfferToInterestedBuyers, which sends all interested buyers a message that offers the listing at a discount. For details about how to create seller offers to buyers, see Sending offers to buyers. */ + /** @description This method evaluates a seller's current listings and returns the set of IDs that are eligible for a seller-initiated discount offer to a buyer.

A listing ID is returned only when one or more buyers have shown an "interest" in the listing.

If any buyers have shown interest in a listing, the seller can initiate a "negotiation" with them by calling sendOfferToInterestedBuyers, which sends all interested buyers a message that offers the listing at a discount.

For details about how to create seller offers to buyers, see Sending offers to buyers. */ get: operations["findEligibleItems"]; put?: never; post?: never; @@ -30,7 +30,7 @@ export interface paths { }; get?: never; put?: never; - /** @description This method sends eligible buyers offers to purchase items in a listing at a discount. When a buyer has shown interest in a listing, they become "eligible" to receive a seller-initiated offer to purchase the item(s). Sellers use findEligibleItems to get the set of listings that have interested buyers. If a listing has interested buyers, sellers can use this method (sendOfferToInterestedBuyers) to send an offer to the buyers who are interested in the listing. The offer gives buyers the ability to purchase the associated listings at a discounted price. For details about how to create seller offers to buyers, see Sending offers to buyers. */ + /** @description This method sends eligible buyers offers to purchase items in a listing at a discount.

When a buyer has shown interest in a listing, they become "eligible" to receive a seller-initiated offer to purchase the item(s).

Sellers use findEligibleItems to get the set of listings that have interested buyers. If a listing has interested buyers, sellers can use this method (sendOfferToInterestedBuyers) to send an offer to the buyers who are interested in the listing. The offer gives buyers the ability to purchase the associated listings at a discounted price.

For details about how to create seller offers to buyers, see Sending offers to buyers. */ post: operations["sendOfferToInterestedBuyers"]; delete?: never; options?: never; @@ -44,25 +44,25 @@ export interface components { schemas: { /** @description A complex type that describes the value of a monetary amount as represented by a global currency. */ Amount: { - /** @description The base currency applied to the value field to establish a monetary amount. The currency is represented as a 3-letter ISO4217 currency code. For example, the code for the Canadian Dollar is CAD. Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation */ + /** @description The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO4217 currency code. For example, the code for the Canadian Dollar is CAD.

Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation */ currency?: string; - /** @description The monetary amount in the specified currency. */ + /** @description The monetary amount in the specified currency. */ value?: string; }; /** @description This complex type contains the fields needed to create an offer to a buyer that is initiated by the seller. */ CreateOffersRequest: { - /** @description If set to true, the buyer is allowed to make a counter-offer to the seller's offer. Note: Currently, you must set this field to false; counter-offers are not supported in this release. Default: false */ + /** @description If set to true, the buyer is allowed to make a counter-offer to the seller's offer.

Note: Currently, you must set this field to false; counter-offers are not supported in this release.

Default: false */ allowCounterOffer?: boolean; - /** @description A seller-defined message related to the offer being made. This message is sent to the list of "interested" buyers. To increase the conversion rate of the offers a seller makes to buyers, eBay recommends you always add a customized message to your offers. Maximum length: 2,000 characters */ + /** @description A seller-defined message related to the offer being made.

This message is sent to the list of "interested" buyers.

To increase the conversion rate of the offers a seller makes to buyers, eBay recommends you always add a customized message to your offers.

Maximum length: 2,000 characters */ message?: string; - /** @description The length of time the offer is valid from when it is created. The duration of the offer begins at the date and time denoted by creationDate. When the span of time specified by offerDuration passes beyond the creationDate, the offer expires. Note: offerDuration currently defaults to 2 days and you cannot set it to any other value (if specified, the unit and value fields in TimeDuration must be set to DAY and 2, respectively). Default: 2 Days */ + /** @description The length of time the offer is valid from when it is created.

The duration of the offer begins at the date and time denoted by creationDate. When the span of time specified by offerDuration passes beyond the creationDate, the offer expires.

Note: offerDuration currently defaults to 2 days and you cannot set it to any other value (if specified, the unit and value fields in TimeDuration must be set to DAY and 2, respectively).

Default: 2 Days */ offerDuration?: components["schemas"]["TimeDuration"]; - /** @description An array of objects where each object contains the details of an offer and the ID of the listing on which the offer is being made. Note that the service does not currently support the creation of multiple offers with a single call to sendOfferToInterestedBuyer. With this, each request can target only one listing at a time and you must populate this array with a single element that contains the details of one offer. */ + /** @description An array of objects where each object contains the details of an offer and the ID of the listing on which the offer is being made.

Note that the service does not currently support the creation of multiple offers with a single call to sendOfferToInterestedBuyer. With this, each request can target only one listing at a time and you must populate this array with a single element that contains the details of one offer. */ offeredItems?: components["schemas"]["OfferedItem"][]; }; - /** @description A listing that is eligible for a seller-initiated offer to a buyer. Listings are identified by a listingId value that is generated and assigned by eBay when a seller lists an item using the Trading API. Note: The Negotiation API does not currently support listings that are managed with the Inventory API. */ + /** @description A listing that is eligible for a seller-initiated offer to a buyer.

Listings are identified by a listingId value that is generated and assigned by eBay when a seller lists an item using the Trading API.

Note: The Negotiation API does not currently support listings that are managed with the Inventory API. */ EligibleItem: { - /** @description The unique eBay-assigned ID for an eBay listing. A listingId is assigned by eBay when a seller creates a listing with the Trading API. */ + /** @description The unique eBay-assigned ID for an eBay listing.

A listingId is assigned by eBay when a seller creates a listing with the Trading API. */ listingId?: string; }; /** @description This type defines the fields that can be returned in an error. */ @@ -97,89 +97,89 @@ export interface components { }; /** @description A complex type that defines an offer that a seller makes to eligible buyers. */ Offer: { - /** @description If set to true, the buyer is allowed to make a counter-offer to the seller's offer. */ + /** @description If set to true, the buyer is allowed to make a counter-offer to the seller's offer. */ allowCounterOffer?: boolean; /** @description The buyer who has been sent the offer. */ buyer?: components["schemas"]["User"]; - /** @description The date and time when the seller's offer was created. The returned timestamp is formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z Example: 2018-08-20T07:09:00.000Z */ + /** @description The date and time when the seller's offer was created.

The returned timestamp is formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2018-08-20T07:09:00.000Z */ creationDate?: string; - /** @description The eBay UserName of the user (seller) who initiated the offer. */ + /** @description The eBay UserName of the user (seller) who initiated the offer. */ initiatedBy?: string; - /** @description The date and time when the offer was last modified. The returned timestamp is formatted as an ISO 8601 string. */ + /** @description The date and time when the offer was last modified.

The returned timestamp is formatted as an ISO 8601 string. */ lastModifiedDate?: string; - /** @description A seller-defined message related to the offer being made. This message is sent to the list of "interested" buyers along with the offer message from eBay. */ + /** @description A seller-defined message related to the offer being made. This message is sent to the list of "interested" buyers along with the offer message from eBay. */ message?: string; - /** @description The length of time that the offer is valid. The duration of the offer begins at the date and time denoted by creationDate. When the span of time specified by offerDuration passes beyond the creationDate, the offer expires. */ + /** @description The length of time that the offer is valid.

The duration of the offer begins at the date and time denoted by creationDate. When the span of time specified by offerDuration passes beyond the creationDate, the offer expires. */ offerDuration?: components["schemas"]["TimeDuration"]; - /** @description The list of items associated with the offer. Currently, the offer list is restricted to a single offer. */ + /** @description The list of items associated with the offer.

Currently, the offer list is restricted to a single offer. */ offeredItems?: components["schemas"]["OfferedItem"][]; /** @description A unique eBay-assigned identifier for the offer. */ offerId?: string; - /** @description The current state, or status, of an offer. Status states include PENDING, COUNTERED, ACCEPTED, and DECLINED. For implementation help, refer to eBay API documentation */ + /** @description The current state, or status, of an offer.

Status states include PENDING, COUNTERED, ACCEPTED, and DECLINED. For implementation help, refer to eBay API documentation */ offerStatus?: string; /** @description The type of offer being made. For implementation help, refer to eBay API documentation */ offerType?: string; /** @description A unique, eBay-assigned ID for the revision of the offer. */ revision?: string; }; - /** @description A complex type that defines the offer being made to an "interested" buyer. */ + /** @description A complex type that defines the offer being made to an "interested" buyer. */ OfferedItem: { - /** @description This value denotes the percentage that the listing in the offer will be discounted from its original listed price. The seller can specify either the exact price of the discounted items with the price field or they can use this field to specify the percentage that the listing will be discounted, but not both. Minimum: 5 Required if you do not specify a price value. */ + /** @description This value denotes the percentage that the listing in the offer will be discounted from its original listed price.

The seller can specify either the exact price of the discounted items with the price field or they can use this field to specify the percentage that the listing will be discounted, but not both.

Minimum: 5

Required if you do not specify a price value. */ discountPercentage?: string; - /** @description This value is a unique eBay-assigned ID that identifies the listing to which the offer pertains. A listingId value is generated by eBay when you list an item with the Trading API. */ + /** @description This value is a unique eBay-assigned ID that identifies the listing to which the offer pertains.

A listingId value is generated by eBay when you list an item with the Trading API. */ listingId?: string; - /** @description This value denotes the final discounted price of the listing in the offer being made to the buyer. This value must be lower than the original price of the item as stated in the original listing. The seller can use either this field to specify the exact discounted price of the listing or they can use the discountPercentage field to specify the percentage that the listing will be discounted, but not both. Required if you do not specify a discountPercentage value. */ + /** @description This value denotes the final discounted price of the listing in the offer being made to the buyer. This value must be lower than the original price of the item as stated in the original listing.

The seller can use either this field to specify the exact discounted price of the listing or they can use the discountPercentage field to specify the percentage that the listing will be discounted, but not both.

Required if you do not specify a discountPercentage value. */ price?: components["schemas"]["Amount"]; /** * Format: int32 - * @description This integer value indicates the number of items in the eBay listing for which the offer is being made. The offer being made by the seller is an "all or nothing" offer, meaning the buyer must purchase the indicated quantity of items in order to receive the discount on the transaction. Default: 1 + * @description This integer value indicates the number of items in the eBay listing for which the offer is being made.

The offer being made by the seller is an "all or nothing" offer, meaning the buyer must purchase the indicated quantity of items in order to receive the discount on the transaction.

Default: 1 */ quantity?: number; }; /** @description This complex type defines a collection of listings that are eligible for an offer to a buyer. */ PagedEligibleItemCollection: { - /** @description A list of items that are eligible for a seller-initiated offer to a buyer. Each element in the list contains the listing ID of a listed item. These IDs represent the listings for which buyers have shown an interest. */ + /** @description A list of items that are eligible for a seller-initiated offer to a buyer.

Each element in the list contains the listing ID of a listed item. These IDs represent the listings for which buyers have shown an interest. */ eligibleItems?: components["schemas"]["EligibleItem"][]; /** @description The URI of the current page of results from the result set. */ href?: string; /** * Format: int32 - * @description The number of items returned on a single page from the result set. This value can be set in the request with the limit query parameter. + * @description The number of items returned on a single page from the result set. This value can be set in the request with the limit query parameter. */ limit?: number; - /** @description The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set. Max length: 2048 */ + /** @description The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set.

Max length: 2048 */ next?: string; /** * Format: int32 - * @description The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the offset query parameter. Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0. + * @description The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.

*/ offset?: number; - /** @description The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set. Max length: 2048 */ + /** @description The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set.

Max length: 2048 */ prev?: string; /** * Format: int32 - * @description The total number of items retrieved in the result set. If no items match the search criteria, the server returns the HTTP status code 204 No Content. + * @description The total number of items retrieved in the result set.

If no items match the search criteria, the server returns the HTTP status code
204 No Content. */ total?: number; }; - /** @description The response object returned from a SendOfferToInterestedBuyers request. */ + /** @description The response object returned from a SendOfferToInterestedBuyers request. */ SendOfferToInterestedBuyersCollectionResponse: { - /** @description The offers container returns a list of the offers sent to buyers who have shown an interest in listings included in the offer. */ + /** @description The offers container returns a list of the offers sent to buyers who have shown an interest in listings included in the offer. */ offers?: components["schemas"]["Offer"][]; }; /** @description A complex type that specifies a period of time using a specified time-measurement unit. */ TimeDuration: { - /** @description A time-measurement unit that specifies a singular period of time. A span of time is defined when you apply the value specified in the value field to the value specified for unit. Time-measurement units can be YEAR, MONTH, DAY, and so on. See TimeDurationUnitEnum for a complete list of possible time-measurement units. For implementation help, refer to eBay API documentation */ + /** @description A time-measurement unit that specifies a singular period of time.

A span of time is defined when you apply the value specified in the value field to the value specified for unit.

Time-measurement units can be YEAR, MONTH, DAY, and so on. See TimeDurationUnitEnum for a complete list of possible time-measurement units. For implementation help, refer to eBay API documentation */ unit?: string; /** * Format: int32 - * @description An integer that represents an amount of time, as measured by the time-measurement unit specified in the unit field. + * @description An integer that represents an amount of time, as measured by the time-measurement unit specified in the unit field. */ value?: number; }; - /** @description This complex type identifies an eBay user. */ + /** @description This complex type identifies an eBay user. */ User: { - /** @description The masked user name is a user name that has certain characters hidden for privacy of the user. */ + /** @description The masked user name is a user name that has certain characters hidden for privacy of the user. */ maskedUsername?: string; }; }; @@ -194,13 +194,13 @@ export interface operations { findEligibleItems: { parameters: { query?: { - /** @description This query parameter specifies the maximum number of items to return from the result set on a page in the paginated response. Minimum: 1    Maximum: 200 Default: 10 */ + /** @description This query parameter specifies the maximum number of items to return from the result set on a page in the paginated response.

Minimum: 1

Maximum: 200

Default: 10 */ limit?: string; - /** @description This query parameter specifies the number of results to skip in the result set before returning the first result in the paginated response. Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 results from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. Default: 0 */ + /** @description This query parameter specifies the number of results to skip in the result set before returning the first result in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 results from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0 */ offset?: string; }; header: { - /** @description The eBay marketplace on which you want to search for eligible listings. For a complete list of supported marketplaces, see Negotiation API requirements and restrictions. */ + /** @description The eBay marketplace on which you want to search for eligible listings.

For a complete list of supported marketplaces, see Negotiation API requirements and restrictions. */ "X-EBAY-C-MARKETPLACE-ID": string; }; path?: never; @@ -244,8 +244,10 @@ export interface operations { parameters: { query?: never; header: { - /** @description The eBay marketplace on which your listings with "eligible" buyers appear. For a complete list of supported marketplaces, see Negotiation API requirements and restrictions. */ + /** @description The eBay marketplace on which your listings with "eligible" buyers appear.

For a complete list of supported marketplaces, see Negotiation API requirements and restrictions. */ "X-EBAY-C-MARKETPLACE-ID": string; + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; }; path?: never; cookie?: never; diff --git a/src/types/restful/specs/sell_recommendation_v1_oas3.ts b/src/types/restful/specs/sell_recommendation_v1_oas3.ts index 3de9fbdd..42d30aae 100644 --- a/src/types/restful/specs/sell_recommendation_v1_oas3.ts +++ b/src/types/restful/specs/sell_recommendation_v1_oas3.ts @@ -13,7 +13,7 @@ export interface paths { }; get?: never; put?: never; - /** @description The find method currently returns information for a single recommendation type (AD) which contains information that sellers can use to configure Promoted Listings ad campaigns. The response from this method includes an array of the seller's listing IDs, where each element in the array contains recommendations related to the associated listing ID. For details on how to use this method, see Using the Recommendation API to help configure campaigns. The AD recommendation type The AD type contains two sets of information: The promoteWithAd indicator The promoteWithAd response field indicates whether or not eBay recommends you place the associated listing in a Promoted Listings ad campaign. The returned value is set to either RECOMMENDED or UNDETERMINED, where RECOMMENDED identifies the listings that will benefit the most from having them included in an ad campaign. The bid percentage Also known as the "ad rate," the bidPercentage field provides the current trending bid percentage of similarly promoted items in the marketplace. The ad rate is a user-specified value that indicates the level of promotion that eBay applies to the campaign across the marketplace. The value is also used to calculate the Promotion Listings fee, which is assessed to the seller if a Promoted Listings action results in the sale of an item. Configuring the request You can configure a request to review all of a seller's currently active listings, or just a subset of them. All active listings – If you leave the request body empty, the request targets all the items currently listed by the seller. Here, the response is filtered to contain only the items where promoteWithAd equals RECOMMENDED. In this case, eBay recommends that all the returned listings should be included in a Promoted Listings ad campaign. Selected listing IDs – If you populate the request body with a set of listingIds, the response contains data for all the specified listing IDs. In this scenario, the response provides you with information on listings where the promoteWithAd can be either RECOMMENDED or UNDETERMINED. The paginated response Because the response can contain many listing IDs, the findListingRecommendations method paginates the response set. You can control size of the returned pages, as well as an offset that dictates where to start the pagination, using query parameters in the request. */ + /** @description The find method currently returns information for a single recommendation type (AD) which contains information that sellers can use to configure Promoted Listings ad campaigns.

The response from this method includes an array of the seller's listing IDs, where each element in the array contains recommendations related to the associated listing ID. For details on how to use this method, see Using the Recommendation API to help configure campaigns.

The AD recommendation type

The AD type contains two sets of information:

  • The promoteWithAd indicator
    The promoteWithAd response field indicates whether or not eBay recommends you place the associated listing in a Promoted Listings ad campaign.

    The returned value is set to either RECOMMENDED or UNDETERMINED, where RECOMMENDED identifies the listings that will benefit the most from having them included in an ad campaign.

  • The bid percentage
    Also known as the "ad rate," the bidPercentage field provides the current trending bid percentage of similarly promoted items in the marketplace.

    The ad rate is a user-specified value that indicates the level of promotion that eBay applies to the campaign across the marketplace. The value is also used to calculate the Promotion Listings fee, which is assessed to the seller if a Promoted Listings action results in the sale of an item.

Configuring the request

You can configure a request to review all of a seller's currently active listings, or just a subset of them.

  • All active listings – If you leave the request body empty, the request targets all the items currently listed by the seller.

    Here, the response is filtered to contain only the items where promoteWithAd equals RECOMMENDED. In this case, eBay recommends that all the returned listings should be included in a Promoted Listings ad campaign.

  • Selected listing IDs – If you populate the request body with a set of listingIds, the response contains data for all the specified listing IDs.

    In this scenario, the response provides you with information on listings where the promoteWithAd can be either RECOMMENDED or UNDETERMINED.

The paginated response

Because the response can contain many listing IDs, the findListingRecommendations method paginates the response set.

You can control size of the returned pages, as well as an offset that dictates where to start the pagination, using query parameters in the request. */ post: operations["findListingRecommendations"]; delete?: never; options?: never; @@ -27,16 +27,16 @@ export interface components { schemas: { /** @description A complex type that contains recommendations and information on how to configure Promoted Listings ad campaigns. */ Ad: { - /** @description This field returns information that you can use to configure the bidPercentage field in a Promoted Listings campaign. Note: Currently, ITEM and TRENDING are the only supported bid percentage types. The ITEM suggested bid percentages are tailored to each of your items and are designed to help you stay competitive while finding an optimal balance between performance and cost. The recommendations are calculated based on a variety of factors that may include item attributes, seasonality, past performance, and current competition for each of your listings. The TRENDING suggested bid percentages are calculated by reviewing the category level average ad rates in the marketplace. Setting the bidPercentage of your ad campaign based on these rate recommendations will help the items in the campaign be competitive with other items in the marketplace by improving their chances of being displayed more often in the marketplace. */ + /** @description This field returns information that you can use to configure the bidPercentage field in a Promoted Listings campaign.

Note: Currently, ITEM and TRENDING are the only supported bid percentage types.

The ITEM suggested bid percentages are tailored to each of your items and are designed to help you stay competitive while finding an optimal balance between performance and cost. The recommendations are calculated based on a variety of factors that may include item attributes, seasonality, past performance, and current competition for each of your listings.

The TRENDING suggested bid percentages are calculated by reviewing the category level average ad rates in the marketplace.

Setting the bidPercentage of your ad campaign based on these rate recommendations will help the items in the campaign be competitive with other items in the marketplace by improving their chances of being displayed more often in the marketplace. */ bidPercentages?: components["schemas"]["BidPercentages"][]; - /** @description An enum whose values describe whether or not eBay recommends you place the associated listing in a Promoted Listings ad campaign. IDs deemed RECOMMENDED by eBay are the listings with the highest potential of benefiting from being promoted. The recommendation calculation is based on marketplace trends, like buyer demand and the competition in the item’s category. Note: A promoteWithAd value cannot be calculated for listings that are part of Promoted Listings campaigns. Because of this, if you call findListingRecommendations with a specific set of listing IDs, the promoteWithAd field is not returned for any of the listings that are involved in a promotion. However, as long as they are eligible, the trending bidPercentage is returned for all specified listings, even if they are part of an ad campaign. For implementation help, refer to eBay API documentation */ + /** @description An enum whose values describe whether or not eBay recommends you place the associated listing in a Promoted Listings ad campaign.

IDs deemed RECOMMENDED by eBay are the listings with the highest potential of benefiting from being promoted. The recommendation calculation is based on marketplace trends, like buyer demand and the competition in the item’s category.

Note: A promoteWithAd value cannot be calculated for listings that are part of Promoted Listings campaigns.

Because of this, if you call findListingRecommendations with a specific set of listing IDs, the promoteWithAd field is not returned for any of the listings that are involved in a promotion. However, as long as they are eligible, the trending bidPercentage is returned for all specified listings, even if they are part of an ad campaign.

For implementation help, refer to eBay API documentation */ promoteWithAd?: string; }; /** @description A complex type that returns data related to Promoted Listings bid percentages. */ BidPercentages: { - /** @description The basis by which the ad rate is calculated. Valid Values: ITEM and TRENDING For implementation help, refer to eBay API documentation */ + /** @description The basis by which the ad rate is calculated.

Valid Values: ITEM and TRENDING For implementation help, refer to eBay API documentation */ basis?: string; - /** @description The bid percentage data is a single precision value, as calculated by the associated basis. In Promoted listings ad campaigns, the bid percentage (also known as the ad rate) is a user-defined value that sets the level that eBay raises the visibility of the listing in the marketplace. It is also the rate that is used to calculate the Promoted Listings fee. Minimum value: 1.0   Maximum value: 100.0 */ + /** @description The bid percentage data is a single precision value, as calculated by the associated basis.

In Promoted listings ad campaigns, the bid percentage (also known as the ad rate) is a user-defined value that sets the level that eBay raises the visibility of the listing in the marketplace. It is also the rate that is used to calculate the Promoted Listings fee.

Minimum value: 1.0   Maximum value: 100.0

*/ value?: string; }; /** @description This type defines the fields that can be returned in an error. */ @@ -71,17 +71,17 @@ export interface components { }; /** @description An list of listing ID values for which you want Promoted Listings ad configuration information. */ FindListingRecommendationRequest: { - /** @description A comma-separated list of listing IDs for which you want Promoted Listings ad configuration information. Currently, this method accepts only listingId values from the Trading API. Max: 500 listing IDs */ + /** @description A comma-separated list of listing IDs for which you want Promoted Listings ad configuration information.

Currently, this method accepts only listingId values from the Trading API.

Max: 500 listing IDs

*/ listingIds?: string[]; }; /** @description A complex type that contains the ID of an actively listed item and a set of related listing recommendations. The recommendations contain information the seller can use to optimize their listing configurations. */ ListingRecommendation: { /** @description An ID that identifies the active listing associated with the eBay recommendations. */ listingId?: string; - /** @description This return object provides the eBay recommendations and information related to the associated listing ID. The container currently returns the AD recommendation type, which contains information that sellers can use to configure Promoted Listings ad campaigns. This container is returned with each ListingRecommendation object, except when: The listing ID is not eligible for Promoted Listings The listing ID is currently in a Promoted Listings campaign The listing ID is invalid */ + /** @description This return object provides the eBay recommendations and information related to the associated listing ID.

The container currently returns the AD recommendation type, which contains information that sellers can use to configure Promoted Listings ad campaigns.

This container is returned with each ListingRecommendation object, except when:
  • The listing ID is not eligible for Promoted Listings
  • The listing ID is currently in a Promoted Listings campaign
  • The listing ID is invalid
*/ marketing?: components["schemas"]["MarketingRecommendation"]; }; - /** @description A complex type that contains information about how a seller can improve their listing configurations. The AD object contains Promoted Listings recommendations and information, which the seller can use to improve buyer conversions. The response can also contain an optional message about the returned data. */ + /** @description A complex type that contains information about how a seller can improve their listing configurations. The AD object contains Promoted Listings recommendations and information, which the seller can use to improve buyer conversions. The response can also contain an optional message about the returned data. */ MarketingRecommendation: { /** @description An object that contains Promoted Listings recommendations and information related to the associated listing ID. */ ad?: components["schemas"]["Ad"]; @@ -94,23 +94,23 @@ export interface components { href?: string; /** * Format: int32 - * @description The number of items returned on a single page from the result set. This value can be set in the request with the limit query parameter. + * @description The number of items returned on a single page from the result set. This value can be set in the request with the limit query parameter. */ limit?: number; - /** @description Returns a list of listingRecommendations, where each element in the list offers recommendations for the associated listingId. Which elements are returned depend on how you structure the request. For example, if you request recommendations for all of a sellers listings (by leaving the request payload empty), ad recommendations are returned only for those listings where promoteWithAd is set to RECOMMENDED. */ + /** @description Returns a list of listingRecommendations, where each element in the list offers recommendations for the associated listingId.

Which elements are returned depend on how you structure the request. For example, if you request recommendations for all of a sellers listings (by leaving the request payload empty), ad recommendations are returned only for those listings where promoteWithAd is set to RECOMMENDED. */ listingRecommendations?: components["schemas"]["ListingRecommendation"][]; - /** @description The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set. Max length: 2048 */ + /** @description The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set.

Max length: 2048 */ next?: string; /** * Format: int32 - * @description The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the offset query parameter. Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0. + * @description The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.

*/ offset?: number; - /** @description The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set. Max length: 2048 */ + /** @description The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set.

Max length: 2048 */ prev?: string; /** * Format: int32 - * @description The total number of items retrieved in the result set. If no items are found, this field is returned with a value of 0. + * @description The total number of items retrieved in the result set.

If no items are found, this field is returned with a value of 0. */ total?: number; }; @@ -126,15 +126,15 @@ export interface operations { findListingRecommendations: { parameters: { query?: { - /** @description Provide a list of key-value pairs to specify the criteria you want to use to filter the response. In the list, separate each filter key from its associated value with a colon (":"). Currently, the only supported filter value is recommendationTypes and it supports only the ("AD") type. Follow the recommendationTypes specifier with the filter type(s) enclosed in curly braces ("{ }"), and separate multiple types with commas. Example: filter=recommendationTypes:{AD} Default: recommendationTypes:{AD} */ + /** @description Provide a list of key-value pairs to specify the criteria you want to use to filter the response.

In the list, separate each filter key from its associated value with a colon (":").

Currently, the only supported filter value is recommendationTypes and it supports only the ("AD") type. Follow the recommendationTypes specifier with the filter type(s) enclosed in curly braces ("{ }"), and separate multiple types with commas.

Example: filter=recommendationTypes:{AD}

Default: recommendationTypes:{AD} */ filter?: string; - /** @description Use this query parameter to set the maximum number of ads to return on a page from the paginated response. Default: 10 Maximum: 500 */ + /** @description Use this query parameter to set the maximum number of ads to return on a page from the paginated response.

Default: 10
Maximum: 500 */ limit?: string; - /** @description Specifies the number of ads to skip in the result set before returning the first ad in the paginated response. Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. Default: 0 */ + /** @description Specifies the number of ads to skip in the result set before returning the first ad in the paginated response.

Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set.

Default: 0

*/ offset?: string; }; header: { - /** @description Use this header to specify the eBay marketplace where you list the items for which you want to get recommendations. */ + /** @description This header specifies the eBay marketplace where you list the items for which you want to get recommendations.

See HTTP Request Headers for a list of supported eBay marketplace ID values. */ "X-EBAY-C-MARKETPLACE-ID": string; }; path?: never; diff --git a/src/types/restful/specs/sell_stores_v1_oas3.ts b/src/types/restful/specs/sell_stores_v1_oas3.ts new file mode 100644 index 00000000..83d6ecff --- /dev/null +++ b/src/types/restful/specs/sell_stores_v1_oas3.ts @@ -0,0 +1,549 @@ +/** + * This file was auto-generated by openapi-typescript. + * Do not make direct changes to the file. + */ + +export interface paths { + "/store/categories": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method is used to retrieve the category hierarchy for an eBay user's store.

Note: Three levels of store categories are supported. */ + get: operations["getStoreCategories"]; + put?: never; + /** @description This method is used to add a single new custom category to a user's eBay store through an asynchronous request. A successful call returns the getStoreTask URI in the Location response header. Call getStoreTask (or getStoreTasks) method to retrieve the status of the add category operation.

Note: Three levels of store categories are supported.

Important! If you initiate a category change, you cannot make additional category changes until the previous change request has completed. Use getStoreTask (or getStoreTasks) method to get latest status of your last request.

*/ + post: operations["addStoreCategory"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/store/categories/{category_id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** @description This method is used to rename the single category of a user's eBay store through an asynchronous request. A successful call returns the getStoreTask URI in the Location response header. The user calls getStoreTask to retrieve the status of the rename category operation.

Important! If you initiate a category change, you cannot make additional category changes until the previous change request has completed. Use getStoreTask (or getStoreTasks) method to get latest status of your last request.

*/ + put: operations["renameStoreCategory"]; + post?: never; + /** @description This method is used to delete one custom category of a user's eBay store through an asynchronous request. A successful call returns the getStoreTask URI in the Location response header. Call getStoreTask (or getStoreTasks) method to retrieve the status of the delete category operation.

Important! If you initiate a category change, you cannot make additional category changes until the previous change request has completed. Use getStoreTask (or getStoreTasks) method to get latest status of your last request.

*/ + delete: operations["deleteStoreCategory"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/store": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method is used to retrieve information for an eBay user's store such as store name, store URL, and description. */ + get: operations["getStore"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/store/tasks/{task_id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves the current status of a recent store operation. The unique identifier of the task is passed in as a path parameter. */ + get: operations["getStoreTask"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/store/tasks": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description This method retrieves the status of all async store tasks for a store. Every task is set as FAILED or COMPLETED once it's execution time reaches 24 hours. */ + get: operations["getStoreTasks"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/store/categories/move_category": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** @description This method is used to move an existing user's eBay store custom category through an asynchronous request. A successful call returns the getStoreTask URI in the Location response header. The user calls getStoreTask to retrieve the status of the move category operation.

Important! If you initiate a category change, you cannot make additional category changes until the previous change request has completed. Use getStoreTask (or getStoreTasks) method to get latest status of your last request.

*/ + post: operations["moveStoreCategory"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; +} +export type webhooks = Record; +export interface components { + schemas: { + /** @description The base request type of the addStoreCategory method. It is used to provide the name and location for the new category. */ + AddStoreCategoryRequestType: { + /** @description The seller-specified name of the custom category.

Max Length: 35 */ + categoryName?: string; + /** @description This field is used to specify the parent category to which the new category belongs. To specify the new category as a top-level category, set the value of this field to -999, or just omit this field, as the default value is -999.
The getStoreCategories method can be used to retrieve store category IDs.

Default: ROOT category ID(-999) if it's null. */ + destinationParentCategoryId?: string; + /** @description If the store category specified as the destinationParentCategoryId is a leaf category with active listings, those listings are moved to the store category identified through this listingDestinationCategoryId. If this field is omitted, the new store category being added under the parent category inherits those listings.
The getStoreCategories method can be used to retrieve store category IDs.

Default: Newly added category ID if it's null. */ + listingDestinationCategoryId?: string; + }; + /** @description The base request type of the deleteStoreCategory method. It is used to provide a new category home for the listings that are currently in the store category to be deleted. */ + DeleteStoreCategoryRequestType: { + /** @description This field is only needed if the category to be deleted or any of its children categories have one or more active listings. The operation will fail otherwise. All active listings in or under the category to be deleted will be moved to the store category specified in this field.
The getStoreCategories method can be used to retrieve store category IDs.

Default: OTHER category ID (1) if it's null. */ + listingDestinationCategoryId?: string; + }; + /** @description This type defines the fields that can be returned in an error. */ + Error: { + /** @description Identifies the type of erro. */ + category?: string; + /** @description Name for the primary system where the error occurred. This is relevant for application errors. */ + domain?: string; + /** + * Format: int32 + * @description A unique number to identify the error. + */ + errorId?: number; + /** @description An array of request elements most closely associated to the error. */ + inputRefIds?: string[]; + /** @description A more detailed explanation of the error. */ + longMessage?: string; + /** @description Information on how to correct the problem, in the end user's terms and language where applicable. */ + message?: string; + /** @description An array of request elements most closely associated to the error. */ + outputRefIds?: string[]; + /** @description An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned. */ + parameters?: components["schemas"]["ErrorParameter"][]; + /** @description Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc. */ + subdomain?: string; + }; + ErrorParameter: { + /** @description The object of the error. */ + name?: string; + /** @description The value of the object. */ + value?: string; + }; + /** @description The base response type of the getStoreCategories method. This type provides the entire category hierarchy for the store. */ + GetStoreCategoriesResponseType: { + /** @description An array of top-level categories defined for the eBay store. A childrenCategories array is used for second and third-level categories, if defined for the store. */ + storeCategories?: components["schemas"]["StoreCategoryType"][]; + }; + /** @description The base response type of the getStore method. It is used to describe a seller's eBay store, and includes the eBay Store name, the description of the store, the URL to the eBay Store. */ + GetStoreResponseType: { + /** @description The seller-provided description of the eBay Store.

Max length: 300 */ + description?: string; + /** @description Indicates the time the store was last opened or reopened. */ + lastOpenedTime?: string; + /** @description This container provides information about a Store logo. */ + logo?: components["schemas"]["StoreLogoType"]; + /** @description The name of the eBay Store. The name is shown at the top of the Store page.

Max length: 35 */ + name?: string; + /** @description The complete URL of the user's store. */ + url?: string; + /** @description The relative URL path of the Store.

Max length: 58 */ + urlPath?: string; + }; + /** @description The base response type of the getStoreTask method. */ + GetStoreTaskResponseType: { + /** @description This container provides detailed information about the status of the store task. */ + task?: components["schemas"]["StoreTaskType"]; + }; + /** @description The base response type of the getStoreTasks method. */ + GetStoreTasksResponseType: { + /** @description This array provides detailed information about the status of one or more store tasks. */ + task?: components["schemas"]["StoreTaskType"][]; + }; + /** @description The base request type of the moveStoreCategory method. It is used to provide the name of the category to be moved and its new location. */ + MoveStoreCategoryRequestType: { + /** @description The unique identifier of an eBay Store's custom category. eBay auto-generates this identifier when a seller establishes a custom store category. This category ID should not be confused with an eBay category ID. This is the category that is moved. */ + categoryId?: string; + /** @description The new parent category of the category to be moved is specified in this field. If the category is being moved to level 1 category, set this value to -999. */ + destinationParentCategoryId?: string; + /** @description This field is only needed if the category to be moved is a leaf category with listings, but a category that becomes a non-leaf category after the move. The listings of the category to be moved are moved to the category specified in this field. */ + listingDestinationCategoryId?: string; + }; + /** @description The base request type of the renameStoreCategory method. It is used to rename a customized eBay Store category. */ + RenameStoreCategoryRequestType: { + /** @description The seller-specified name of the custom category. This is the new name of the category specified through path parameter.

Max Length: 35 */ + categoryName?: string; + }; + /** @description This type is used to provide details about a customized eBay Store category. */ + StoreCategoryType: { + /** @description Unique identifier of an eBay Store's custom category. eBay auto-generates this identifier when a seller establishes a custom store category. This category ID should not be confused with an eBay category ID. */ + categoryId?: string; + /** @description The seller-specified name of the custom category. */ + categoryName?: string; + /** @description This array is returned to show second and third-level store categories. eBay Stores support up to three category levels. */ + childrenCategories?: components["schemas"]["StoreCategoryType"][]; + /** + * Format: int32 + * @description The level indicates the category level of the category tree.
Note: Three levels of store categories are supported. All categories belonging to the same parent should have the same level. + */ + level?: number; + /** + * Format: int32 + * @description The order in which the custom store category appears in the list of store categories when the eBay store is visited. + */ + order?: number; + }; + /** @description This type is used to provide url of the seller's store logo. */ + StoreLogoType: { + /** @description The URL of the seller's store logo. */ + url?: string; + }; + /** @description This type is used to provide details about the status of the Store Task. */ + StoreTaskType: { + /** @description The unique identifier of an eBay Store task. */ + id?: string; + /** @description This field provides a textual description on the status of the task, and could help user troubleshoot any issues if there is an issue with eBay creating the task. */ + message?: string; + /** @description The enumeration value here indicates the processing status of the task. See the StoreTaskStatusEnum type for more information on supported status values. For implementation help, refer to eBay API documentation */ + status?: string; + /** @description The enumeration value indicates the task type. For implementation help, refer to eBay API documentation */ + type?: string; + }; + }; + responses: never; + parameters: never; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; +export interface operations { + getStoreCategories: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GetStoreCategoriesResponseType"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + addStoreCategory: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + /** @description This call is used to add single new category of a user's eBay store. */ + requestBody?: { + content: { + "application/json": components["schemas"]["AddStoreCategoryRequestType"]; + }; + }; + responses: { + /** @description The request is accepted, user should get the location url in response to retrieve async task status. */ + 202: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + renameStoreCategory: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path: { + /** @description The unique identifier of an eBay Store's custom category. eBay auto-generates this identifier when a seller establishes a custom store category. This category ID should not be confused with an eBay category ID. This is the category that is to be renamed. */ + category_id: string; + }; + cookie?: never; + }; + /** @description This call is used to rename the single category of a user's eBay store. */ + requestBody?: { + content: { + "application/json": components["schemas"]["RenameStoreCategoryRequestType"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + deleteStoreCategory: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The unique identifier of an eBay Store's custom category. eBay auto-generates this identifier when a seller establishes a custom store category. This category ID should not be confused with an eBay category ID.
The getStoreCategories method can be used to retrieve store category IDs. */ + category_id: string; + }; + cookie?: never; + }; + /** @description This call is used to delete one category of a user's eBay store. */ + requestBody?: { + content: { + "application/json": components["schemas"]["DeleteStoreCategoryRequestType"]; + }; + }; + responses: { + /** @description The request is accepted, user should get the location url in response to retrieve async task status. */ + 202: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getStore: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GetStoreResponseType"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getStoreTask: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The unique identifier of an eBay Store async task. A taskId value is returned in the response of other successful calls. (e.g.addStoreCategory, moveStoreCategory, deleteStoreCategory). */ + task_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GetStoreTaskResponseType"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + getStoreTasks: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GetStoreTasksResponseType"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; + moveStoreCategory: { + parameters: { + query?: never; + header: { + /** @description This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, refer to HTTP request headers. */ + "Content-Type": string; + }; + path?: never; + cookie?: never; + }; + /** @description This method is used to move one category of a user's eBay store. This operation is an asynchronous request. A successful call returns the getStoreTask URI in the Location response header. The user calls getStoreTask to retrieve the status of the add category operation. */ + requestBody: { + content: { + "application/json": components["schemas"]["MoveStoreCategoryRequestType"]; + }; + }; + responses: { + /** @description The request is accepted, user should get the location url in response to retrieve async task status. */ + 202: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Internal Server Error */ + 500: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; +} diff --git a/src/types/restfulTypes.ts b/src/types/restfulTypes.ts index 4d7b9859..85a22e32 100644 --- a/src/types/restfulTypes.ts +++ b/src/types/restfulTypes.ts @@ -21,7 +21,7 @@ import { import {components as buyBrowse, operations as buyBrowseOperations} from './restful/specs/buy_browse_v1_oas3.js'; import {operations as buyMarketingOperations} from './restful/specs/buy_marketing_v1_beta_oas3.js'; import {components as buyOffer} from './restful/specs/buy_offer_v1_beta_oas3.js'; -import {components as buyOrder} from './restful/specs/buy_order_v1_beta_oas3.js'; +import {components as buyOrder} from './restful/specs/buy_order_v2_oas3.js'; import {operations as commerceCatalogOperations} from './restful/specs/commerce_catalog_v1_beta_oas3.js'; import {components as commerceMedia} from './restful/specs/commerce_media_v1_beta_oas3.js'; import {components as commerceNotification} from './restful/specs/commerce_notification_v1_oas3.js'; @@ -31,12 +31,16 @@ import {components as commerceFeedback} from './restful/specs/commerce_feedback_ import {components as sellAccountV1} from './restful/specs/sell_account_v1_oas3.js'; import {components as sellAccountV2} from './restful/specs/sell_account_v2_oas3.js'; -import {components as sellCompliance} from './restful/specs/sell_compliance_v1_oas3.js'; - +import {components as sellFeed} from './restful/specs/sell_feed_v1_oas3.js'; import {components as sellFulfillment} from './restful/specs/sell_fulfillment_v1_oas3.js'; import {components as sellInventory} from './restful/specs/sell_inventory_v1_oas3.js'; +import {components as sellListing} from './restful/specs/sell_listing_v1_beta_oas3.js'; +import {components as sellLogistics} from './restful/specs/sell_logistics_v1_oas3.js'; import {components as sellMarketing} from './restful/specs/sell_marketing_v1_oas3.js'; +import {components as sellMetadata} from './restful/specs/sell_metadata_v1_oas3.js'; +import {components as sellNegotiation} from './restful/specs/sell_negotiation_v1_oas3.js'; import {components as sellRecommendation} from './restful/specs/sell_recommendation_v1_oas3.js'; +import {components as sellStores} from './restful/specs/sell_stores_v1_oas3.js'; export type BrowseSearchParams = { aspect_filter?: string, @@ -130,11 +134,6 @@ export type DateTime = { value: string }; -export type ConfirmRefundRequest = { - refundDate?: DateTime, - unpaidOrder?: boolean -}; - export type LineItem = { itemId: number, quantity: number, @@ -158,11 +157,6 @@ export type AppealRequest = { comments: Text }; -export type BuyerCloseCaseRequest = { - closeReason: boolean, - comments?: Text -}; - export type CaseSearchParams = { case_creation_date_range_from: string; case_creation_date_range_to: string; @@ -193,13 +187,6 @@ export type Address = { worldRegion?: string }; -export type ReturnAddressRequest = { - firstName?: string; - lastName?: string; - returnAddress?: Address - RMA?: string -}; - export type Text = { content: string, language?: string, @@ -209,26 +196,6 @@ export type Text = { export type Token = string; // A string with normalized whitespace (e.g., dropped leading and trailing spaces). -export type BuyerCloseInquiryRequest = { - closeReason?: Token, - comments?: Text -}; - -export type CheckInquiryEligibilityRequest = { - itemId: string, - transactionId: string -}; - - -export type CreateInquiryRequest = { - claimQuantity?: number, - comments?: Text; - desiredOutcome?: Token, - itemId: string, - transactionId: string -}; - - export type EscalateInquiryRequest = { comments?: Text, escalateInquiryReason: Token @@ -238,10 +205,6 @@ export type InquiryVoluntaryRefundRequest = { comments?: Text }; -export type SellerProvideRefundInfoRequest = { - message: Text -}; - export type ShipmentInfoRequest = { proofOfShipmentUploaded?: boolean; sellerComments?: Text; @@ -268,19 +231,6 @@ export type SendMessageRequest = { message: Text }; -export type CheckEligibilityRequest = { - checkTypes: Token[]; - itemId: string; - reason: Token; - returnQuantity?: number; - transactionId: string; -}; - -export type CloseReturnRequest = { - buyerCloseReason?: Token, - comments?: Text -}; - export type ReturnRequestType = { carrier?: ShippingCarrier | `${ShippingCarrier}`; comments?: Text; @@ -289,7 +239,7 @@ export type ReturnRequestType = { requestType: RequestType | `${RequestType}`; returnQuantity?: number; transactionId: string; - type?: ReturnType | `${ReturnType}` + type?: ReturnType | `${ReturnType}`; }; export type CreateReturnRequest = { @@ -318,26 +268,10 @@ export type EscalateRequest = { reason: EscalateReason | `${EscalateReason}` }; -export type GetEstimateRequest = { - itemId: string, - reason?: ReturnReason | `${ReturnReason}`, - returnQuantity?: number; - transactionId: string; -}; - export type MarkAsReceivedRequest = { comments?: Text }; -export type MarkAsShippedRequest = { - carrierEnum?: ShippingCarrier | `${ShippingCarrier}`; - carrierName?: string; - carrierUsed?: string; - comments?: Text; - shippedDate?: DateTime; - trackingNumber: string; -}; - export type ItemizedRefundDetailType = { refundAmount: Amount; refundFeeType: Token @@ -348,12 +282,6 @@ export type RefundDetailType = { totalAmount: Amount }; -export type MarkRefundSentRequest = { - comments?: Text; - partialRefundAmount?: Amount; - refundDetail: RefundDetailType; -}; - export type Comments = { content: string, language?: string, @@ -406,30 +334,12 @@ export type SearchReturnParams = { transaction_id?: string }; -export type SetReturnCreationSessionRequest = { - returnRequest: ReturnRequestType -}; - -export type UpdateTrackingRequest = { - newCarrierEnum?: ShippingCarrier | `${ShippingCarrier}`; - newCarrierName?: string; - newTrackingNumber?: string; - usedCarrierEnum?: ShippingCarrier | `${ShippingCarrier}`; - usedCarrierName?: string; - usedTrackingNumber?: string; -}; - export type UploadFileRequest = { data: any, fileName?: string; filePurpose: FilePurpose | `${FilePurpose}` }; -export type VoidLabelRequest = { - comments?: Text; - labelId: string -}; - // OpenApi export type CreateSubscriptionRequest = commerceNotification['schemas']['CreateSubscriptionRequest'] export type UpdateSubscriptionRequest = commerceNotification['schemas']['UpdateSubscriptionRequest'] @@ -441,7 +351,6 @@ export type TranslateRequest = commerceTranslation['schemas']['TranslateRequest' export type CommerceCatalogSearchParams = commerceCatalogOperations['search']['parameters']['query'] export type CreateVideoRequest = commerceMedia['schemas']['CreateVideoRequest']; -export type InputStream = commerceMedia['schemas']['InputStream']; export type UpdateConversationRequest = commerceMessage['schemas']['UpdateConversationRequest']; export type BulkUpdateConversationRequest = commerceMessage['schemas']['BulkUpdateConversationsRequest']; @@ -452,9 +361,6 @@ export type RespondToFeedbackRequest = commerceFeedback['schemas']['RespondToFee export type AttributeNameValue = buyBrowse['schemas']['AttributeNameValue'] export type CompatibilityPayload = buyBrowse['schemas']['CompatibilityPayload'] -export type AddCartItemInput = buyBrowse['schemas']['AddCartItemInput'] -export type RemoveCartItemInput = buyBrowse['schemas']['RemoveCartItemInput'] -export type UpdateCartItemInput = buyBrowse['schemas']['UpdateCartItemInput'] export type PlaceProxyBidRequest = buyOffer['schemas']['PlaceProxyBidRequest'] export type SearchByImageRequest = buyBrowse['schemas']['SearchByImageRequest'] @@ -463,23 +369,17 @@ export type BuyBrowseSearchByImageParams = buyBrowseOperations['searchByImage'][ export type BuyBrowseGetItemsParams = buyBrowseOperations['getItems']['parameters']['query']; export type BuyBrowseItemByLegacyIdParams = buyBrowseOperations['getItemByLegacyId']['parameters']['query']; -export type BuyMarketingGetAlsoBoughtByProductParams = buyMarketingOperations['getAlsoBoughtByProduct']['parameters']['query']; -export type BuyMarketingGetAlsoViewedByProductParams = buyMarketingOperations['getAlsoViewedByProduct']['parameters']['query']; export type BuyMarketingGetMerchandisedProductsParams = buyMarketingOperations['getMerchandisedProducts']['parameters']['query']; -export type CreateGuestCheckoutSessionRequest = buyOrder['schemas']['CreateGuestCheckoutSessionRequest'] -export type CheckoutSessionRequestWithoutPayment = buyOrder['schemas']['CheckoutSessionRequestWithoutPayment'] +// Buy Order API migrated to v2, which only exposes the guest checkout flow. +// The member checkout session, proxy-guest session, payment-info, initiate-payment +// and place-order operations (and their request types) were removed by eBay in v2. +export type CreateGuestCheckoutSessionRequest = buyOrder['schemas']['CreateGuestCheckoutSessionRequestV2'] export type CouponRequest = buyOrder['schemas']['CouponRequest'] -export type CreateSignInCheckoutSessionRequest = buyOrder['schemas']['CreateSignInCheckoutSessionRequest'] -export type GuestPlaceOrderRequest = buyOrder['schemas']['GuestPlaceOrderRequest'] -export type InitiatePaymentRequest = buyOrder['schemas']['InitiatePaymentRequest'] export type ShippingAddressImpl = buyOrder['schemas']['ShippingAddressImpl'] -export type UpdatePaymentInformation = buyOrder['schemas']['UpdatePaymentInformation'] export type UpdateQuantity = buyOrder['schemas']['UpdateQuantity'] export type UpdateShippingOption = buyOrder['schemas']['UpdateShippingOption'] -export type SuppressViolationRequest = sellCompliance['schemas']['SuppressViolationRequest']; - export type CustomPolicyCreateRequest = sellAccountV1['schemas']['CustomPolicyCreateRequest']; export type CustomPolicyRequest = sellAccountV1['schemas']['CustomPolicyRequest']; export type FulfillmentPolicyRequest = sellAccountV1['schemas']['FulfillmentPolicyRequest']; @@ -487,9 +387,18 @@ export type FulfillmentSellAccountProgram = sellAccountV1['schemas']['Program']; export type PaymentPolicyRequest = sellAccountV1['schemas']['PaymentPolicyRequest']; export type ReturnPolicyRequest = sellAccountV1['schemas']['ReturnPolicyRequest']; export type SalesTaxBase = sellAccountV1['schemas']['SalesTaxBase']; +export type BulkSalesTaxInput = sellAccountV1['schemas']['BulkSalesTaxInput']; export type RateTableUpdate = sellAccountV2['schemas']['RateTableUpdate']; export type UpdatePayoutPercentageRequest = sellAccountV2['schemas']['UpdatePayoutPercentageRequest']; +export type CreateCalculatedShippingRulesRequest = sellAccountV2['schemas']['CreateCalculatedShippingRulesRequest']; +export type CreateFlatShippingRulesRequest = sellAccountV2['schemas']['CreateFlatShippingRulesRequest']; +export type CreatePromotionalShippingRuleRequest = sellAccountV2['schemas']['CreatePromotionalShippingRuleRequest']; +export type UpdateCalculatedShippingRulesRequest = sellAccountV2['schemas']['UpdateCalculatedShippingRulesRequest']; +export type UpdateCombinedPaymentsRequest = sellAccountV2['schemas']['UpdateCombinedPaymentsRequest']; +export type UpdateFlatShippingRulesRequest = sellAccountV2['schemas']['UpdateFlatShippingRulesRequest']; +export type UpdatePromotionalShippingRuleRequest = sellAccountV2['schemas']['UpdatePromotionalShippingRuleRequest']; +export type SetUserPreferencesRequest = sellAccountV2['schemas']['SetUserPreferencesRequest']; export type LineItemReference = sellFulfillment['schemas']['LineItemReference']; export type UpdateEvidencePaymentDisputeRequest = sellFulfillment['schemas']['UpdateEvidencePaymentDisputeRequest']; @@ -548,8 +457,49 @@ export type UpdateKeywordRequest = sellMarketing['schemas']['UpdateKeywordReques export type UpdateNegativeKeywordRequest = sellMarketing['schemas']['UpdateNegativeKeywordRequest'] export type CreateEmailCampaignRequest = sellMarketing['schemas']['CreateEmailCampaignRequest'] export type UpdateCampaignRequest = sellMarketing['schemas']['UpdateCampaignRequest'] -export type QuickSetupRequest = sellMarketing['schemas']['QuickSetupRequest'] export type FindListingRecommendationRequest = sellRecommendation['schemas']['FindListingRecommendationRequest'] +// Commerce Media API types +export type CreateImageFromUrlRequest = commerceMedia['schemas']['CreateImageFromUrlRequest'] +export type CreateDocumentRequest = commerceMedia['schemas']['CreateDocumentRequest'] +export type CreateDocumentFromUrlRequest = commerceMedia['schemas']['CreateDocumentFromUrlRequest'] + +// Commerce Notification API types +export type CreateSubscriptionFilterRequest = commerceNotification['schemas']['CreateSubscriptionFilterRequest'] + +// Sell Feed API types +export type CreateOrderTaskRequest = sellFeed['schemas']['CreateOrderTaskRequest'] +export type CreateInventoryTaskRequest = sellFeed['schemas']['CreateInventoryTaskRequest'] +export type CreateUserScheduleRequest = sellFeed['schemas']['CreateUserScheduleRequest'] +export type UpdateUserScheduleRequest = sellFeed['schemas']['UpdateUserScheduleRequest'] +export type CreateTaskRequest = sellFeed['schemas']['CreateTaskRequest'] +export type CreateServiceMetricsTaskRequest = sellFeed['schemas']['CreateServiceMetricsTaskRequest'] + +// Sell Listing API types +export type ItemDraft = sellListing['schemas']['ItemDraft'] + +// Sell Logistics API types +export type ShippingQuoteRequest = sellLogistics['schemas']['ShippingQuoteRequest'] +export type CreateShipmentFromQuoteRequest = sellLogistics['schemas']['CreateShipmentFromQuoteRequest'] + +// Sell Marketing API types +export type SuggestMaxCpcRequest = sellMarketing['schemas']['SuggestMaxCpcRequest'] +export type UpdateBiddingStrategyRequest = sellMarketing['schemas']['UpdateBiddingStrategyRequest'] + +// Sell Metadata API types +export type SpecificationRequest = sellMetadata['schemas']['SpecificationRequest'] +export type PropertyNamesRequest = sellMetadata['schemas']['PropertyNamesRequest'] +export type PropertyValuesRequest = sellMetadata['schemas']['PropertyValuesRequest'] +export type MultiCompatibilityPropertyValuesRequest = sellMetadata['schemas']['MultiCompatibilityPropertyValuesRequest'] +export type ProductRequest = sellMetadata['schemas']['ProductRequest'] + +// Sell Negotiation API types +export type CreateOffersRequest = sellNegotiation['schemas']['CreateOffersRequest'] + +// Sell Stores API types +export type AddStoreCategoryRequest = sellStores['schemas']['AddStoreCategoryRequestType'] +export type RenameStoreCategoryRequest = sellStores['schemas']['RenameStoreCategoryRequestType'] +export type DeleteStoreCategoryRequest = sellStores['schemas']['DeleteStoreCategoryRequestType'] +export type MoveStoreCategoryRequest = sellStores['schemas']['MoveStoreCategoryRequestType'] diff --git a/src/types/traditonalTypes.ts b/src/types/traditonalTypes.ts index e077f85c..26bfd74d 100644 --- a/src/types/traditonalTypes.ts +++ b/src/types/traditonalTypes.ts @@ -1,6 +1,5 @@ import ClientAlertsCalls from '../api/traditional/clientAlerts/index.js'; import {Fields} from '../api/traditional/fields.js'; -import FindingCalls from '../api/traditional/finding/index.js'; import MerchandisingCalls from '../api/traditional/merchandising/index.js'; import ShoppingCalls from '../api/traditional/shopping/index.js'; import TradingCalls from '../api/traditional/trading/index.js'; @@ -91,10 +90,6 @@ export type Shopping = { [key in keyof typeof ShoppingCalls]: XMLApiCall; }; -export type Finding = { - [key in keyof typeof FindingCalls]: XMLApiCall; -}; - export type ClientAlerts = { [key in keyof typeof ClientAlertsCalls]: (fields?: object, options?: TraditionalApiConfig) => Promise; }; @@ -112,6 +107,6 @@ export type TraditionalApi = { endpoint: Endpoint, xmlns: string, path: string, - calls: typeof TradingCalls | typeof ShoppingCalls | typeof FindingCalls | typeof ClientAlertsCalls | typeof MerchandisingCalls, + calls: typeof TradingCalls | typeof ShoppingCalls | typeof ClientAlertsCalls | typeof MerchandisingCalls, headers: (callName: string, accessToken?: string | null) => object }; diff --git a/src/utils/params.ts b/src/utils/params.ts new file mode 100644 index 00000000..4a32b9d1 --- /dev/null +++ b/src/utils/params.ts @@ -0,0 +1,10 @@ +/** + * eBay declares its "filter" query parameters as a single comma-separated string, never as an array. + * Axios is configured with `paramsSerializer: {indexes: null}`, so handing it an array would emit + * the parameter repeatedly (`?filter=a&filter=b`) instead of once. Join here so callers can pass + * either shape. + * + * @param filter A single filter string, or a list of criteria to be joined. + */ +export const toFilter = (filter?: string | string[]) => + Array.isArray(filter) ? filter.join(',') : filter; diff --git a/test/api/authNAuth.spec.ts b/test/api/authNAuth.spec.ts index e7e62c0c..6beac1ac 100644 --- a/test/api/authNAuth.spec.ts +++ b/test/api/authNAuth.spec.ts @@ -12,6 +12,7 @@ describe('AuthNAuth', () => { get: sinon.stub().returns(Promise.resolve({data: {}})), delete: sinon.stub().returns(Promise.resolve({data: {}})), put: sinon.stub().returns(Promise.resolve({data: {}})), + patch: sinon.stub().returns(Promise.resolve({data: {}})), post: sinon.stub().returns(Promise.resolve({data: {}})), postForm: sinon.stub().returns(Promise.resolve({ data: { diff --git a/test/api/factory.spec.ts b/test/api/factory.spec.ts index 0ab0cd75..29f5a00b 100644 --- a/test/api/factory.spec.ts +++ b/test/api/factory.spec.ts @@ -12,6 +12,7 @@ describe('FactoryTest', () => { get: sinon.stub(), delete: sinon.stub(), put: sinon.stub(), + patch: sinon.stub(), post: sinon.stub(), postForm: sinon.stub(), instance: sinon.stub() diff --git a/test/api/oAuth2.spec.ts b/test/api/oAuth2.spec.ts index 6a56cb23..dfcc1027 100644 --- a/test/api/oAuth2.spec.ts +++ b/test/api/oAuth2.spec.ts @@ -20,6 +20,7 @@ describe('OAuth2', () => { get: sinon.stub(Promise.resolve({})), delete: sinon.stub(Promise.resolve({})), put: sinon.stub(Promise.resolve({})), + patch: sinon.stub(Promise.resolve({})), post: sinon.stub(Promise.resolve({})), postForm: sinon.stub().returns(Promise.resolve({ data: { diff --git a/test/api/restful/buy/index.ts b/test/api/restful/buy/index.ts index 4c75279e..d8ee9ece 100644 --- a/test/api/restful/buy/index.ts +++ b/test/api/restful/buy/index.ts @@ -14,7 +14,7 @@ tests.set(Browse, readSpecs('buy_browse_v1_oas3.json', import.meta.url)); tests.set(Feed, readSpecs('buy_feed_v1_beta_oas3.json', import.meta.url)); tests.set(Marketing, readSpecs('buy_marketing_v1_beta_oas3.json', import.meta.url)); tests.set(Offer, readSpecs('buy_offer_v1_beta_oas3.json', import.meta.url)); -tests.set(Order, readSpecs('buy_order_v1_beta_oas3.json', import.meta.url)); +tests.set(Order, readSpecs('buy_order_v2_oas3.json', import.meta.url)); tests.set(Deal, readSpecs('buy_deal_v1_oas3.json', import.meta.url)); tests.set(MarketplaceInsights, readSpecs('buy_marketplace_insights_v1_beta_oas3.json', import.meta.url)); diff --git a/test/api/restful/oas.spec.ts b/test/api/restful/oas.spec.ts index 7a2056cd..86643e56 100644 --- a/test/api/restful/oas.spec.ts +++ b/test/api/restful/oas.spec.ts @@ -2,6 +2,7 @@ import {expect} from 'chai'; import 'mocha'; // @ts-ignore import sinon from 'sinon'; +import Restful from '../../../src/api/restful/index.js'; import Auth from '../../../src/auth/index.js'; import type {IEBayApiRequest} from '../../../src/request.js'; @@ -26,12 +27,33 @@ function createReq(): IEBayApiRequest { get: sinon.stub().returns(Promise.resolve({data: {}})), delete: sinon.stub().returns(Promise.resolve({data: {}})), put: sinon.stub().returns(Promise.resolve({data: {}})), + patch: sinon.stub().returns(Promise.resolve({data: {}})), post: sinon.stub().returns(Promise.resolve({data: {}})), postForm: sinon.stub().returns(Promise.resolve({data: {}})), instance: sinon.stub().returns(Promise.resolve({data: {}})) }; } +/** + * Method names declared on the Restful base class. These are infrastructure, not eBay operations, + * so they are never expected to appear in a spec. + */ +const inheritedMembers = new Set(Object.getOwnPropertyNames(Restful.prototype)); + +/** + * The public methods an API class declares itself, ignoring getters such as `basePath`. + */ +function declaredMethods(RestfulApi: any): string[] { + const {prototype} = RestfulApi; + return Object.getOwnPropertyNames(prototype).filter(name => { + if (name === 'constructor' || inheritedMembers.has(name)) { + return false; + } + const descriptor = Object.getOwnPropertyDescriptor(prototype, name); + return typeof descriptor?.value === 'function'; + }); +} + const request = createReq(); const auth = new Auth(appConfig, request); @@ -65,6 +87,25 @@ describe('Open API Tests', () => { }); } + it(`"${name}:${RestfulApi.name}" should not implement methods that are absent from the spec`, () => { + const operationIds = new Set(); + Object.values(Oas.paths).forEach((endpoint: any) => { + Object.values(endpoint).forEach((call: any) => { + if (call && call.operationId) { + operationIds.add(call.operationId); + } + }); + }); + + const orphaned = declaredMethods(RestfulApi).filter(method => !operationIds.has(method)); + + expect(orphaned).to.eql( + [], + `AssertionError: "${RestfulApi.name}" implements [${orphaned.join(', ')}], which eBay no longer ` + + 'publishes. Remove the method, or restore the operation to the spec if it is still supported.' + ); + }); + Object.keys(Oas.paths).forEach((path: any) => { Object.keys(Oas.paths[path]).forEach(method => { const endpoint = Oas.paths[path]; diff --git a/test/api/restful/restful.spec.ts b/test/api/restful/restful.spec.ts index a64feab8..e4584d41 100644 --- a/test/api/restful/restful.spec.ts +++ b/test/api/restful/restful.spec.ts @@ -16,6 +16,10 @@ class TestApi extends Restful { } }); } + + deleteThing(body: any) { + return this.delete('/things', {data: body}); + } } describe('Restful API', () => { @@ -41,6 +45,7 @@ describe('Restful API', () => { get: sinon.stub(), delete: sinon.stub(), put: sinon.stub(), + patch: sinon.stub(), post: sinon.stub(), postForm: sinon.stub().returns(Promise.resolve({ data: {access_token: 'new_access_token'} @@ -112,6 +117,81 @@ describe('Restful API', () => { }); }); + it('lets a per-request header override the default Content-Type', async () => { + // @ts-ignore + const api = new TestApi(config, req, { + getHeaderAuthorization: sinon.stub().returns({'Authorization': 'Authorization'}) + }); + + const {headers} = await api.enrichRequestConfig({ + method: 'post', + path: '/', + config: { + headers: { + 'Content-Type': 'multipart/form-data' + } + } + }); + + expect(headers['Content-Type']).to.equal('multipart/form-data'); + }); + + it('lets a per-request header override the app config headers', async () => { + // @ts-ignore + const api = new TestApi(config, req, { + getHeaderAuthorization: sinon.stub().returns({'Authorization': 'Authorization'}) + }, {headers: {'Content-Type': 'application/json'}}); + + const {headers} = await api.enrichRequestConfig({ + method: 'post', + path: '/', + config: { + headers: { + 'Content-Type': 'application/octet-stream' + } + } + }); + + expect(headers['Content-Type']).to.equal('application/octet-stream'); + }); + + it('signs the body of a delete request', async () => { + const del = sinon.stub().returns({data: {}}); + const api = new TestApi(config, {...req, delete: del}).api({sign: true}); + api.auth.OAuth2.setCredentials(cred); + const getDigitalSignatureHeaders = sinon.stub().returns({}); + // @ts-ignore + api.getDigitalSignatureHeaders = getDigitalSignatureHeaders; + + const body = {moveToCategoryId: '42'}; + await api.deleteThing(body); + + // second argument is the payload the signature is computed over + expect(getDigitalSignatureHeaders.args[0][1]).to.eql(body); + expect(del.args[0][1].data).to.eql(body); + }); + + it('keeps non-header request config alongside the merged headers', async () => { + // @ts-ignore + const api = new TestApi(config, req, { + getHeaderAuthorization: sinon.stub().returns({'Authorization': 'Authorization'}) + }); + + expect(await api.enrichRequestConfig({ + method: 'get', + path: '/', + config: { + responseType: 'arraybuffer' + } + })).to.eql({ + responseType: 'arraybuffer', + headers: { + ...defaultApiHeaders, + 'Authorization': 'Authorization' + } + }); + }); + describe('restful response test', () => { it('returns data', async () => { const post = sinon.stub().returns({data: {item: '1'}}); diff --git a/test/api/restful/sell/index.ts b/test/api/restful/sell/index.ts index fc0f80f8..8b1e9457 100644 --- a/test/api/restful/sell/index.ts +++ b/test/api/restful/sell/index.ts @@ -2,7 +2,6 @@ import { AccountV1, AccountV2, Analytics, - Compliance, Feed, Finances, Fulfillment, @@ -12,7 +11,8 @@ import { Marketing, Metadata, Negotiation, - Recommendation + Recommendation, + Stores } from '../../../../src/api/restful/sell/index.js'; import {readSpecs} from '../../jsonfile.js'; @@ -20,7 +20,6 @@ const tests = new Map(); tests.set(AccountV1, readSpecs( 'sell_account_v1_oas3.json', import.meta.url)); tests.set(AccountV2, readSpecs( 'sell_account_v2_oas3.json', import.meta.url)); tests.set(Analytics, readSpecs( 'sell_analytics_v1_oas3.json', import.meta.url)); -tests.set(Compliance, readSpecs( 'sell_compliance_v1_oas3.json', import.meta.url)); tests.set(Fulfillment, readSpecs( 'sell_fulfillment_v1_oas3.json', import.meta.url)); tests.set(Inventory, readSpecs( 'sell_inventory_v1_oas3.json', import.meta.url)); tests.set(Marketing, readSpecs( 'sell_marketing_v1_oas3.json', import.meta.url)); @@ -31,5 +30,6 @@ tests.set(Feed, readSpecs( 'sell_feed_v1_oas3.json', import.meta.url)); tests.set(Logistics, readSpecs( 'sell_logistics_v1_oas3.json', import.meta.url)); tests.set(Negotiation, readSpecs( 'sell_negotiation_v1_oas3.json', import.meta.url)); tests.set(Listing, readSpecs( 'sell_listing_v1_beta_oas3.json', import.meta.url)); +tests.set(Stores, readSpecs( 'sell_stores_v1_oas3.json', import.meta.url)); export default tests; diff --git a/test/api/traditional/traditional.spec.ts b/test/api/traditional/traditional.spec.ts index 77d5854d..cdefc387 100644 --- a/test/api/traditional/traditional.spec.ts +++ b/test/api/traditional/traditional.spec.ts @@ -21,6 +21,7 @@ describe('Traditional', () => { get: sinon.stub(), delete: sinon.stub(), put: sinon.stub(), + patch: sinon.stub(), post: sinon.stub(), postForm: sinon.stub(), instance: sinon.stub() @@ -43,6 +44,7 @@ describe('Traditional', () => { get: sinon.stub(), delete: sinon.stub(), put: sinon.stub(), + patch: sinon.stub(), post, postForm: sinon.stub(), instance: sinon.stub() @@ -67,6 +69,7 @@ describe('Traditional', () => { get: sinon.stub(), delete: sinon.stub(), put: sinon.stub(), + patch: sinon.stub(), post, postForm: sinon.stub(), instance: sinon.stub() @@ -98,6 +101,7 @@ describe('Traditional', () => { get: sinon.stub(), delete: sinon.stub(), put: sinon.stub(), + patch: sinon.stub(), post, postForm: sinon.stub(), instance: sinon.stub() @@ -130,6 +134,7 @@ describe('Traditional', () => { get: sinon.stub(), delete: sinon.stub(), put: sinon.stub(), + patch: sinon.stub(), post, postForm: sinon.stub(), instance: sinon.stub() @@ -154,6 +159,7 @@ describe('Traditional', () => { get: sinon.stub(), delete: sinon.stub(), put: sinon.stub(), + patch: sinon.stub(), post, postForm: sinon.stub(), instance: sinon.stub() diff --git a/test/api/traditional/xmlRequest.spec.ts b/test/api/traditional/xmlRequest.spec.ts index 0960b8f5..9ac7808f 100644 --- a/test/api/traditional/xmlRequest.spec.ts +++ b/test/api/traditional/xmlRequest.spec.ts @@ -11,6 +11,7 @@ function createReq(apiResponse: string): IEBayApiRequest { get: sinon.stub().returns(Promise.resolve({})), delete: sinon.stub().returns(Promise.resolve({})), put: sinon.stub().returns(Promise.resolve({})), + patch: sinon.stub().returns(Promise.resolve({})), post: sinon.stub().returns(Promise.resolve({data: apiResponse})), postForm: sinon.stub().returns(Promise.resolve({})), instance: sinon.stub() diff --git a/tsconfig.check.json b/tsconfig.check.json new file mode 100644 index 00000000..5d837b27 --- /dev/null +++ b/tsconfig.check.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": true + }, + "include": ["src", "test", "examples"] +}