Delete a marketing activity
Deletes the marketing activity you created with PUT /v1/commerce/marketing-activities, identified by the remoteId you gave it. Shopify only. Needs marketing.write.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
The remoteId given when recording it.
Query Parameters
Connected store SocialAccount id.
Response Body
application/json
application/json
application/json
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"}Record a marketing activity
Creates or updates (by `remoteId`) an activity in the store's Marketing section, so the merchant sees a post, ad or message you ran for them, with its link and UTM parameters for attribution. Use your own id (for example the Zernio post or ad id) as `remoteId`.
Report daily engagement
Reports one day's numbers for an activity (UTC day), shown next to it in the store's Marketing section.