Set export settings
POST
/merchants/{merchantCode}/exportSettings
const url = 'https://catalog.shopgate.io/v1/merchants/example/exportSettings';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"exportSettings":{"googleLocalInventory":{"password":"sftp-pass","username":"sftp-user","productIdentifier":"productCode","productExport":{"status":"active","timeType":"cron","timeValue":"4 5 * * *","productLinkTemplate":"{{product.deeplinkUrl}}?store={store_code}"},"inventoryExport":{"status":"active","timeType":"time","timeValue":"12:00","maxExportQuantity":5},"pickupLinkSubfeed":{"status":"active","timeType":"time","timeValue":"12:00","pickupLinkTemplate":"{{product.deeplinkUrl}}?store={store_code}","mobilePickupLinkTemplate":"https://shop.curbside.shopgate.com/item/{{bin2hex product.code}}","pickupSLA":"same day"}}}}'};
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://catalog.shopgate.io/v1/merchants/example/exportSettings \ --header 'Content-Type: application/json' \ --data '{ "exportSettings": { "googleLocalInventory": { "password": "sftp-pass", "username": "sftp-user", "productIdentifier": "productCode", "productExport": { "status": "active", "timeType": "cron", "timeValue": "4 5 * * *", "productLinkTemplate": "{{product.deeplinkUrl}}?store={store_code}" }, "inventoryExport": { "status": "active", "timeType": "time", "timeValue": "12:00", "maxExportQuantity": 5 }, "pickupLinkSubfeed": { "status": "active", "timeType": "time", "timeValue": "12:00", "pickupLinkTemplate": "{{product.deeplinkUrl}}?store={store_code}", "mobilePickupLinkTemplate": "https://shop.curbside.shopgate.com/item/{{bin2hex product.code}}", "pickupSLA": "same day" } } } }'This endpoint sets exports settings
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”merchantCode
required
string
Query Parameters
Section titled “Query Parameters”catalogCode
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
exportSettings
required
object
googleLocalInventory
object
username
required
string
password
required
string
productIdentifier
string
productExport
required
object
status
required
string
timeType
required
string
timeValue
string | null
productLinkTemplate
string | null
inventoryExport
required
object
status
required
string
timeType
required
string
timeValue
string | null
maxExportQuantity
integer | null
Example
5pickupLinkSubfeed
required
object
status
required
string
timeType
required
string
timeValue
string | null
pickupLinkTemplate
string
mobilePickupLinkTemplate
string
pickupSLA
string
Example
{ "googleLocalInventory": { "password": "sftp-pass", "username": "sftp-user", "productIdentifier": "productCode", "productExport": { "status": "active", "timeType": "cron", "timeValue": "4 5 * * *", "productLinkTemplate": "{{product.deeplinkUrl}}?store={store_code}" }, "inventoryExport": { "status": "active", "timeType": "time", "timeValue": "12:00", "maxExportQuantity": 5 }, "pickupLinkSubfeed": { "status": "active", "timeType": "time", "timeValue": "12:00", "pickupLinkTemplate": "{{product.deeplinkUrl}}?store={store_code}", "mobilePickupLinkTemplate": "https://shop.curbside.shopgate.com/item/{{bin2hex product.code}}", "pickupSLA": "same day" } }}Responses
Section titled “Responses”Set catalog settings.
Media typeapplication/json
Validation error
Media typeapplication/json
object
statusCode
number
message
string
code
string
additionalInfo
object
validationErrors
Array<object>
object
code
number
reason
string
entity
string
entityId
string
subentityPath
Array<string | number>
error
object
paramName
The parameter-field, that failed to validate, like “userId”
string
paramValue
The value, that was sent, like “xxx”
null | string | number | array | object
code
Machine readable error code
string
message
required
Human readable error code
string
results
object
errors
Array<object>
object
code
Machine readable error code
string
message
Human readable error code
string
description
string
path
Array<string>
warnings
array
Example
{ "error": { "code": "SCHEMA_VALIDATION_FAILED", "results": { "errors": [ { "code": "MAX_LENGTH", "message": "Name too long", "description": "Property Name is too long", "path": [ "name" ] } ] } }}Merchant not found
Media typeapplication/json
object
statusCode
number
code
required
string
message
required
string
Example
{ "code": "NotFound", "message": "Merchant not found"}
