{ "opencollection": "1.0.0", "info": { "name": "eBay Account Advertising_eligibility Custom_policy API", "version": "v1.9.2" }, "items": [ { "info": { "name": "Custom_policy", "type": "folder" }, "items": [ { "info": { "name": "getCustomPolicies", "type": "http" }, "http": { "method": "GET", "url": "https://api.ebay.com{basePath}/custom_policy/", "params": [ { "name": "policy_types", "value": "", "type": "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.
See the CustomPolicyTypeEnum type for a list of supported values." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", "accessTokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "This method retrieves the list of custom policies specified by the policy_types query parameter.

Note: Custom policies are no longer coupled with a specific eBay marketplace, so the EBAY-C-MARKETPLACE-ID request header is no longer needed or relevant for any of the Custom Policy methods." }, { "info": { "name": "createCustomPolicy", "type": "http" }, "http": { "method": "POST", "url": "https://api.ebay.com{basePath}/custom_policy/", "headers": [ { "name": "Content-Type", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://auth.ebay.com/oauth2/authorize", "accessTokenUrl": "https://api.ebay.com/identity/v1/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "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. Multiple policies may be created as follows: