Opt an eBay account in to business policies
const url = 'https://api.crossmart.io/api/v1/workspaces/example/channel-connections/example/ebay/business-policies/opt-in';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.crossmart.io/api/v1/workspaces/example/channel-connections/example/ebay/business-policies/opt-inEBay may take a few minutes to enable them; refresh the policies once they are created.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”object
The account on the channel
Why it needs re-auth or failed
What the connection cannot do until the merchant approves the app again
The store’s details, for Shopify connections
object
ISO 4217 code of the store’s currency
The storefront’s public URL
Where Crossmart reads and writes stock
object
The account’s details on its marketplace, for eBay connections
object
ISO 4217 code of the marketplace’s currency
EBay’s immutable id of the user
False when the account has not opted in to business policies on eBay
object
object
object
object
What listings are published with; policies resolve to the only one of a type
object
object
ISO 3166 alpha-2 country code
The inventory location Crossmart created on eBay for location
Whether listings can be published: policies of each type and a ship-from set
The Merchant Center account and its listing setup, for Google connections
object
The website the account claimed; product links must be on it
Whether the account verified and claimed its website
ISO 4217 code of the country’s currency
The language listings are written in
Null until the merchant saves it; publishing needs it
object
The Merchant Center API data source Crossmart publishes into
Whether the listing setup is saved, so products can be listed
Which products the connection lists; null lists every product
object
object
Matches title, handle or SKU
Products with any of these tags
Products of this vendor, ignoring case
How the connection prices variants; null sends catalog prices
object
Markup (positive) or discount (negative), -90 to 500
Added after the percentage; may be negative
object
Never price below cost plus this percentage (0 to 1000)
Store-currency units per catalog-currency unit, used instead of the ECB daily rate. Only applies when the store sells in another currency than the workspace.
Listings in this store whose last sync failed
Whether listings can be published here, and what the store setup lacks
object
True when listings can be published to this store
What to finish before publishing, in order; empty when ready. reconnect alone when the store needs to be connected again. eBay: shipping_policy, payment_policy, return_policy, ship_from_location. Google: listing_setup. account_settings when the account was never read.
Example
{ "channel": "shopify", "externalAccountId": "demo-store.myshopify.com", "displayName": "Demo Store", "status": "CONNECTED", "missingFeatures": [ "storefront_visibility" ], "shopify": { "currencyCode": "USD", "ianaTimezone": "America/New_York", "primaryLocation": { "id": "gid://shopify/Location/1001" } }, "ebay": { "marketplaceId": "EBAY_US", "currencyCode": "USD", "username": "demo_seller", "policies": { "fulfillment": [ { "id": "6000000001", "name": "Free shipping" } ], "payment": [ { "id": "6000000001", "name": "Free shipping" } ], "return": [ { "id": "6000000001", "name": "Free shipping" } ] }, "listingDefaults": { "condition": "NEW", "location": { "postalCode": "95125", "country": "US", "city": "San Jose" } } }, "googleMerchant": { "accountId": "123456789", "accountName": "Acme Goods", "country": "US", "currencyCode": "USD", "contentLanguage": "en", "listingSetup": { "country": "US", "productUrlTemplate": "https://acme.example/products/{handle}" } }, "productSelection": { "filter": { "status": "DRAFT", "gap": "images" } }, "pricing": { "adjustmentPercent": "15", "fixedAmount": "0", "rounding": "none", "floor": { "minMarginPercent": "30" }, "compareAt": "adjust", "fixedExchangeRate": "0.92" }, "publishReadiness": { "missing": [ "shipping_policy", "ship_from_location" ] }}