Rename, re-point, replace credentials, pause or resume a shop integration
const url = 'https://api.motenya.app/v1/products/example/integrations/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","baseUrl":"example","credentials":"example","replyChannelAddress":"example","paused":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.motenya.app/v1/products/example/integrations/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "baseUrl": "example", "credentials": "example", "replyChannelAddress": "example", "paused": true }'Requires crm:configure.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Replaces the stored ones; checked against the shop first.
Intercom: another email channel, for tickets imported from now on.
True pauses; false resumes, and retries one stopped by an error.
Example generated
{ "name": "example", "baseUrl": "example", "credentials": "example", "replyChannelAddress": "example", "paused": true}Responses
Section titled “Responses”Success
object
error stops syncing until the address or credentials are fixed.
Which credentials are stored, e.g. “accessToken …a1b2”. They are never returned.
The source its records sync under; look them up with GET /sync/{type}/{source}/{externalId}.
Intercom: the email channel imported tickets reply from.
object
object
object
object
Smartbill only: the daily check of the imported invoices still unpaid or partly paid.
object
object
Invoices asked about.
Whose payment status changed.
SmartBill had no such invoice.
object
Invoices asked about.
Whose payment status changed.
SmartBill had no such invoice.
Example
{ "type": "magento2", "status": "active", "historyMode": "none", "phase": "history", "runningEntity": "catalog_item", "counts": [ { "entity": "catalog_item" } ], "lastRecordError": { "entity": "catalog_item" }}Invalid request
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Missing, invalid, revoked or expired API key
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Missing scope, API turned off, published article without publish scope, or account suspended
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Not found, or outside the knowledge bases this key may use
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Slug or translation already exists
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Rejected by validation (e.g. unknown language or category)
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Rate limited; see Retry-After
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Internal error