Commerce
Record a marketing activity
PUThttps:/ / zernio.com/ api/ v1/ commerce/ marketing-activities
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.
PlatformsShopify
Authentication
AuthorizationBearer tokenRequired
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Body
application/jsonWhat every request needs
accountIdstringRequired
remoteIdstring, max 255Required
titlestringRequired
urlstring (uri)Required
tacticstringRequiredOne of
ad | post | message | newsletter | link | affiliate | retargeting | loyalty | seochannelstringRequiredOne of
social | search | display | email | referralstatusstringRequiredOne of
active | inactive | paused | scheduledOptional parameters6 fields
previewImageUrlstring (uri)
utmobject
campaignstringRequired
sourcestringRequired
mediumstringRequired
budgetobject
typestringRequiredOne of
daily | lifetimeamountstringRequired
Decimal in the store currency.
adSpendstring
Decimal in the store currency.
startedAtstring (date-time)
endedAtstring (date-time)
Responses
Success· the request worked
Errors· the request failed
Delete a URL redirect
Deletes the redirect; the old path answers 404 again. Shopify only. Needs navigation.write.
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.