Set where a Google Merchant Center connection lists
const url = 'https://api.crossmart.io/api/v1/workspaces/example/channel-connections/example/google-merchant/listing-setup';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"country":"US","productUrlTemplate":"https://acme.example/products/{handle}"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.crossmart.io/api/v1/workspaces/example/channel-connections/example/google-merchant/listing-setup \ --header 'Content-Type: application/json' \ --data '{ "country": "US", "productUrlTemplate": "https://acme.example/products/{handle}" }'The country listings target (their currency and language follow) and each product’s page address. Saving creates the Merchant Center API data source for a new country.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Where listings sell; their currency and language follow
Each product’s page on the merchant’s website, with {handle} for its handle
Example
https://acme.example/products/{handle}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" ] }}