OverviewPlatformsAPI ReferenceResources
Commerce

Delete a marketing activity

DELETEhttps://zernio.com/api/v1/commerce/marketing-activities/{remoteId}

Deletes the marketing activity you created with PUT /v1/commerce/marketing-activities, identified by the remoteId you gave it. Shopify only. Needs marketing.write.

PlatformsShopify

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

remoteIdstringRequired

The remoteId given when recording it.

Query parameters

accountIdstringRequired

Connected store SocialAccount id.

Responses

Success· the request worked

Errors· the request failed

DELETE/v1/commerce/marketing-activities/{remoteId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.deleteCommerceMarketingActivity({  path: {    remoteId: 'remote_abc123',  },  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "deleted": true,  "remoteId": "string"}
OpenAPI specification
Was this page helpful?