ebay.metadata
Module ebay.metadata
API
Definitions
![](https://bcentral-packageicons.azureedge.net/images/ballerinax_ebay.metadata_1.4.0.png)
ballerinax/ebay.metadata Ballerina library
Overview
This is a generated connector for eBay Metadata API v1.4.1 OpenAPI specification. Ebay Metadata API enables to retrieve eBay category policies and information on sales tax jurisdictions. The Metadata API contains methods in the country & marketplace resources. The methods in these resources let you retrieve configuration details that pertain to the different eBay marketplaces, as well as get information about the areas into which you sell. API Documentation is at https://developer.ebay.com/api-docs/sell/metadata/overview.html
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create an ebay developer account
- Obtain tokens - follow this link
Clients![](/images/permalink.svg)
ebay.metadata: Client![](/images/permalink.svg)
This is a generated connector for eBay Metadata API v1.4.1 OpenAPI specification. 'The Metadata API has operations that retrieve configuration details pertaining to the different eBay marketplaces. In addition to marketplace information, the API also has operations that get information that helps sellers list items on eBay.'
Constructor![](/images/permalink.svg)
Gets invoked to initialize the connector
.
The connector initialization requires setting the API credentials.
Create a developer account and obtain tokens following this guide.
init (ConnectionConfig config, string serviceUrl)
- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://api.ebay.com/sell/metadata/v1" - URL of the target service
getAutomotivePartsCompatibilityPolicies![](/images/permalink.svg)
function getAutomotivePartsCompatibilityPolicies(string marketplaceId, string? filter) returns AutomotivePartsCompatibilityPolicyResponse|error?
This method returns the eBay policies that define how to list automotive-parts-compatibility items in the categories of a specific marketplace. By default, this method returns the entire category tree for the specified marketplace. You can limit the size of the result set by using the filter query parameter to specify only the category IDs you want to review. Tip: This method can return a very large response payload and we strongly recommend you get the results from this call in a GZIP file by including the following HTTP header with your request: Accept-Encoding: application/gzip
Parameters
- marketplaceId string - This path parameter specifies the eBay marketplace for which policy information is retrieved. Note: Only the following eBay marketplaces support automotive parts compatibility: EBAY_US EBAY_AU EBAY_CA EBAY_DE EBAY_ES EBAY_FR EBAY_GB EBAY_IT
- filter string? (default ()) - 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
Return Type
- AutomotivePartsCompatibilityPolicyResponse|error? - Success
getItemConditionPolicies![](/images/permalink.svg)
function getItemConditionPolicies(string marketplaceId, string? filter) returns ItemConditionPolicyResponse|error?
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. 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 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 'Certified Refurbished' condition (condition ID 2000) for the relevant categories. The Certified Refurbished item condition 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: If you retrieve metadata on all eBay categories for a marketplace, the response payload can be quite large. For this reason, we suggest that you consider using the Accept-Encoding request header and set its value to application/gzip. By doing this, the response payload output will be compressed into a GZIP file.
Parameters
- marketplaceId string - This path parameter specifies the eBay marketplace for which policy information is retrieved. See the following page for a list of valid eBay marketplace IDs: Request components.
- filter string? (default ()) - 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
Return Type
- ItemConditionPolicyResponse|error? - Success
getListingStructurePolicies![](/images/permalink.svg)
function getListingStructurePolicies(string marketplaceId, string? filter) returns ListingStructurePolicyResponse|error?
This method returns the eBay policies that define the allowed listing structures for the categories of a specific marketplace. The listing-structure policies currently pertain to whether or not you can list items with variations. By default, this method returns the entire category tree for the specified marketplace. You can limit the size of the result set by using the filter query parameter to specify only the category IDs you want to review. Tip: This method can return a very large response payload and we strongly recommend you get the results from this call in a GZIP file by including the following HTTP header with your request: Accept-Encoding: application/gzip
Parameters
- marketplaceId string - This path parameter specifies the eBay marketplace for which policy information is retrieved. See the following page for a list of valid eBay marketplace IDs: Request components.
- filter string? (default ()) - 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
Return Type
- ListingStructurePolicyResponse|error? - Success
getNegotiatedPricePolicies![](/images/permalink.svg)
function getNegotiatedPricePolicies(string marketplaceId, string? filter) returns NegotiatedPricePolicyResponse|error?
This method returns the eBay policies that define the supported negotiated price features (like "best offer") for the categories of a specific marketplace. By default, this method returns the entire category tree for the specified marketplace. You can limit the size of the result set by using the filter query parameter to specify only the category IDs you want to review. Tip: This method can return a very large response payload and we strongly recommend you get the results from this call in a GZIP file by including the following HTTP header with your request: Accept-Encoding: application/gzip
Parameters
- marketplaceId string - This path parameter specifies the eBay marketplace for which policy information is retrieved. See the following page for a list of valid eBay marketplace IDs: Request components.
- filter string? (default ()) - 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
Return Type
- NegotiatedPricePolicyResponse|error? - Success
getProductAdoptionPolicies![](/images/permalink.svg)
function getProductAdoptionPolicies(string marketplaceId, string? filter) returns ProductAdoptionPolicyResponse|error?
This method retrieves a list of leaf categories for a marketplace and identifies the categories that require items to have an eBay product ID value in order to be listed in those categories. An eBay product ID value (known as an "ePID") is a value that references a specific product in the eBay Catalog. Important: eBay catalog product adoption is not currently required for any product categories. If product adoption requirements change, they will be noted here. Use the marketplace_id path parameter to specify the marketplace you want to review and use the filter query parameter to limit the categories returned in the response. Tip: This method can return a very large response payload and we strongly recommend you get the results from this call in a GZIP file by including the following HTTP header with your request: Accept-Encoding: application/gzip
Parameters
- marketplaceId string - This path parameter specifies the eBay marketplace for which policy information is retrieved. See the following page for a list of valid eBay marketplace IDs: Request components.
- filter string? (default ()) - 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
Return Type
- ProductAdoptionPolicyResponse|error? - Success
getReturnPolicies![](/images/permalink.svg)
function getReturnPolicies(string marketplaceId, string? filter) returns ReturnPolicyResponse|error?
This method returns the eBay policies that define whether or not you must include a return policy for the items you list in the categories of a specific marketplace, plus the guidelines for creating domestic and international return policies in the different eBay categories. By default, this method returns the entire category tree for the specified marketplace. You can limit the size of the result set by using the filter query parameter to specify only the category IDs you want to review. Tip: This method can return a very large response payload and we strongly recommend you get the results from this call in a GZIP file by including the following HTTP header with your request: Accept-Encoding: application/gzip
Parameters
- marketplaceId string - This path parameter specifies the eBay marketplace for which policy information is retrieved. See the following page for a list of valid eBay marketplace IDs: Request components.
- filter string? (default ()) - 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
Return Type
- ReturnPolicyResponse|error? - Success
getSalesTaxJurisdictions![](/images/permalink.svg)
function getSalesTaxJurisdictions(string countryCode) returns SalesTaxJurisdictions|error
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.
Parameters
- countryCode string - 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.
Return Type
- SalesTaxJurisdictions|error - Success
Records![](/images/permalink.svg)
ebay.metadata: AutomotivePartsCompatibilityPolicy![](/images/permalink.svg)
Fields
- categoryId string? - The category ID to which the automotive-parts-compatibility policies apply.
- categoryTreeId string? - 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.
- compatibilityBasedOn string? - Indicates whether the category supports parts compatibility by either ASSEMBLY or by SPECIFICATION. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/metadata/types/sel:CompatibilityTypeEnum'>eBay API documentation</a>
- compatibleVehicleTypes string[]? - Indicates the compatibility classification of the part based on high-level vehicle types.
- maxNumberOfCompatibleVehicles int? - Specifies the maximum number of compatible vehicle-applications allowed per item.
ebay.metadata: AutomotivePartsCompatibilityPolicyResponse![](/images/permalink.svg)
Fields
- automotivePartsCompatibilityPolicies AutomotivePartsCompatibilityPolicy[]? - A list of category IDs and the automotive-parts-compatibility policies for each of the listed categories.
- warnings Error[]? - 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.
ebay.metadata: ClientHttp1Settings![](/images/permalink.svg)
Provides settings related to HTTP/1.x protocol.
Fields
- keepAlive KeepAlive(default http:KEEPALIVE_AUTO) - Specifies whether to reuse a connection for multiple requests
- chunking Chunking(default http:CHUNKING_AUTO) - The chunking behaviour of the request
- proxy ProxyConfig? - Proxy server related options
ebay.metadata: ConnectionConfig![](/images/permalink.svg)
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth OAuth2ClientCredentialsGrantConfig|BearerTokenConfig|OAuth2RefreshTokenGrantConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings? - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings? - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded
/x-forwarded
header
- poolConfig PoolConfiguration? - Configurations associated with request pooling
- cache CacheConfig? - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding
) header
- circuitBreaker CircuitBreakerConfig? - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig RetryConfig? - Configurations associated with retrying
- responseLimits ResponseLimitConfigs? - Configurations associated with inbound response size limits
- secureSocket ClientSecureSocket? - SSL/TLS-related options
- proxy ProxyConfig? - Proxy server related options
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
ebay.metadata: Error![](/images/permalink.svg)
A container that defines the elements of error and warning messages.
Fields
- category string? - 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.
- domain string? - Name of the domain containing the service or application.
- errorId int? - 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.
- inputRefIds string[]? - Identifies specific request elements associated with the error, if any. inputRefId's response is format specific. For JSON, use JSONPath notation.
- longMessage string? - An expanded version of message that should be around 100-200 characters long, but is not required to be such.
- message string? - 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.
- outputRefIds string[]? - Identifies specific response elements associated with the error, if any. Path format is the same as inputRefId.
- parameters ErrorParameter[]? - 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.
- subdomain string? - Name of the domain's subsystem or subdivision. For example, checkout is a subdomain in the buying domain.
ebay.metadata: ErrorParameter![](/images/permalink.svg)
Container for a error parameter.
Fields
- name string? - Name of the entity that threw the error.
- value string? - A description of the error.
ebay.metadata: Exclusion![](/images/permalink.svg)
This type returns a list of properties (and their associated values) that are excluded from requiring an ePID value (from the eBay Catalog) for items that are listed in the associated category.
Fields
- brands string[]? - A list of brands that are excluded from requiring a link to the eBay Catalog for the associated categoryId. If productRequired is set to true, items that are of a brand returned in this field are excluded from the need to specify a value for the ePID field in their item description in order to be listed in the associated category.
ebay.metadata: ItemCondition![](/images/permalink.svg)
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.
Fields
- conditionDescription string? - The human-readable label for the condition (e.g., "New"). This value is typically localized for each site. Note that the display name can vary by category. For example, the description for condition ID 1000 could be called "New: with Tags" in one category and "Brand New" in another. For details on condition IDs and descriptions, see Item condition ID and name values.
- conditionId string? - The ID value of the selected item condition. For information on the supported condition ID values, see Item condition ID and name values.
ebay.metadata: ItemConditionPolicy![](/images/permalink.svg)
Fields
- categoryId string? - The category ID to which the item-condition policy applies.
- categoryTreeId string? - 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.
- itemConditionRequired boolean? - 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.
- itemConditions ItemCondition[]? - The item-condition values allowed in the category. 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.
ebay.metadata: ItemConditionPolicyResponse![](/images/permalink.svg)
Fields
- itemConditionPolicies ItemConditionPolicy[]? - A list of category IDs and the policies for how to indicate an item's condition in each of the listed categories.
- warnings Error[]? - 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.
ebay.metadata: ListingStructurePolicy![](/images/permalink.svg)
Fields
- categoryId string? - The category ID to which the listing-structure policy applies.
- categoryTreeId string? - 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.
- variationsSupported boolean? - This flag denotes whether or not the associated category supports listings with item variations. If set to true, the category does support item variations.
ebay.metadata: ListingStructurePolicyResponse![](/images/permalink.svg)
Fields
- listingStructurePolicies ListingStructurePolicy[]? - Returns a list of category IDs plus a flag indicating whether or not each listed category supports item variations.
- warnings Error[]? - 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.
ebay.metadata: NegotiatedPricePolicy![](/images/permalink.svg)
Fields
- bestOfferAutoAcceptEnabled boolean? - 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.
- bestOfferAutoDeclineEnabled boolean? - This flag denotes whether or not the category supports the setting of an auto-decline price for best offers. If set to true, the category does support the setting of an automatic-decline price for best-offers.
- bestOfferCounterEnabled boolean? - This flag denotes whether or not the category supports the setting for an automatic counter-offer on best offers. If set to true, the category does support the setting of an automatic counter-offer price for best-offers.
- categoryId string? - The category ID to which the negotiated-price policies apply.
- categoryTreeId string? - 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.
ebay.metadata: NegotiatedPricePolicyResponse![](/images/permalink.svg)
Fields
- negotiatedPricePolicies NegotiatedPricePolicy[]? - A list of category IDs and the policies related to negotiated-price items for each of the listed categories.
- warnings Error[]? - 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.
ebay.metadata: OAuth2ClientCredentialsGrantConfig![](/images/permalink.svg)
OAuth2 Client Credentials Grant Configs
Fields
- Fields Included from *OAuth2ClientCredentialsGrantConfig
- tokenUrl string
- clientId string
- clientSecret string
- scopes string[]
- defaultTokenExpTime decimal
- clockSkew decimal
- optionalParams map<string>
- credentialBearer CredentialBearer
- clientConfig ClientConfiguration
- tokenUrl string(default "https://api.ebay.com/identity/v1/oauth2/token") - Token URL
ebay.metadata: OAuth2RefreshTokenGrantConfig![](/images/permalink.svg)
OAuth2 Refresh Token Grant Configs
Fields
- Fields Included from *OAuth2RefreshTokenGrantConfig
- refreshUrl string(default "https://api.ebay.com/identity/v1/oauth2/token") - Refresh URL
ebay.metadata: ProductAdoptionPolicy![](/images/permalink.svg)
This complex type returns a category ID and a flag that indicates whether or not items listed in that category require the declaration of an ePID value, which links the item to the eBay Catalog. The type also lists any items that are excepted from the requirement to included an ePID value.
Fields
- categoryId string? - The category ID to which the listing policies apply.
- categoryTreeId string? - 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.
- exclusion Exclusion? - This type returns a list of properties (and their associated values) that are excluded from requiring an ePID value (from the eBay Catalog) for items that are listed in the associated category.
- productRequired boolean? - If set to true, items must include an ePID value in their item description before they can be listed in the category identified by the associated categoryId. In contrast, a value of false indicates that items listed in the associated category do not require ePID values. Important! It is possible for a productAdoptionPolicies container to not contain this productRequired field. This occurs if the eBay category is not part of the PBSE Phase 1 or Phase 2 mandate. In these scenarios, please treat the response the same as if this field were present and contained a value of false.
ebay.metadata: ProductAdoptionPolicyResponse![](/images/permalink.svg)
This is the response object returned by a call to getProductAdoptionPolicies.
Fields
- productAdoptionPolicies ProductAdoptionPolicy[]? - A list of category IDs from the marketplace specified in the request where each returned element represents a leaf node in the category tree. Each element in the list contains the policies governing whether or not items listed in that category must include an ePID value (which links the item to the eBay Catalog).
- warnings Error[]? - 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.
ebay.metadata: ProxyConfig![](/images/permalink.svg)
Proxy server configurations to be used with the HTTP client endpoint.
Fields
- host string(default "") - Host name of the proxy server
- port int(default 0) - Proxy server port
- userName string(default "") - Proxy server username
- password string(default "") - Proxy server password
ebay.metadata: ReturnPolicy![](/images/permalink.svg)
Fields
- categoryId string? - The category ID to which the return policies apply.
- categoryTreeId string? - 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.
- domestic ReturnPolicyDetails? - 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).
- international ReturnPolicyDetails? - 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).
- required boolean? - 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.
ebay.metadata: ReturnPolicyDetails![](/images/permalink.svg)
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).
Fields
- policyDescriptionEnabled boolean? - 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.
- refundMethods string[]? - A list of refund methods allowed for the associated category.
- returnMethods string[]? - A list of return methods allowed for the associated category.
- returnPeriods TimeDuration[]? - 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).
- returnsAcceptanceEnabled boolean? - If set to true, this flag indicates the seller can configure how they handle domestic returns.
- returnShippingCostPayers string[]? - 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.
ebay.metadata: ReturnPolicyResponse![](/images/permalink.svg)
Fields
- returnPolicies ReturnPolicy[]? - A list of elements, where each contains a category ID and a flag that indicates whether or not listings in that category require a return policy.
- warnings Error[]? - 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.
ebay.metadata: SalesTaxJurisdiction![](/images/permalink.svg)
A unique ID for a sales tax jurisdiction.
Fields
- salesTaxJurisdictionId string? - The unique ID for a sales tax jurisdiction.
ebay.metadata: SalesTaxJurisdictions![](/images/permalink.svg)
This complex type contains a list of sales tax jurisdictions.
Fields
- salesTaxJurisdictions SalesTaxJurisdiction[]? - A list of sales tax jurisdictions.
ebay.metadata: TimeDuration![](/images/permalink.svg)
A complex type that specifies a period of time using a specified time-measurement unit.
Fields
- unit string? - 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 <a href='https://developer.ebay.com/api-docs/sell/metadata/types/ba:TimeDurationUnitEnum'>eBay API documentation</a>
- value int? - An integer that represents an amount of time, as measured by the time-measurement unit specified in the unit field.
Import
import ballerinax/ebay.metadata;
Metadata
Released date: almost 2 years ago
Version: 1.4.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.2.1
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 0
Weekly downloads
Keywords
Commerce/eCommerce
Cost/Freemium
Contributors
Dependencies