---
title: "Record a marketing activity"
method: PUT
path: "/v1/commerce/marketing-activities"
tags: ["Commerce"]
---

# Record a marketing activity

`PUT /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`.

## Request body

- object
  - `accountId` string, required
  - `remoteId` string, required
  - `title` string, required
  - `url` string, uri, required
  - `previewImageUrl` string, uri
  - `utm` object
    - `campaign` string, required
    - `source` string, required
    - `medium` string, required
  - `tactic` 'ad' | 'post' | 'message' | 'newsletter' | 'link' | 'affiliate' | 'retargeting' | 'loyalty' | 'seo', required
  - `channel` 'social' | 'search' | 'display' | 'email' | 'referral', required
  - `status` 'active' | 'inactive' | 'paused' | 'scheduled', required
  - `budget` object
    - `type` 'daily' | 'lifetime', required
    - `amount` string, required — Decimal in the store currency.
  - `adSpend` string — Decimal in the store currency.
  - `startedAt` string, date-time
  - `endedAt` string, date-time

## Response `200`

Activity recorded

- object
  - `marketingActivity` object
    - `id` string
    - `remoteId` string

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — The store has not granted this permission, or the token was revoked (code insufficient_permissions). Reconnect the store to grant the latest permissions; GET /v1/commerce/store lists what the current grant allows.
- `404` — Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).
- `429` — Rate limited, either by Zernio or by the platform. Retry later.

## Changes

- **2026-09-30** `16a7b9d5373e` — 1 info
  - removed the `platform` enum value from the `details/budgetScope` response property for the response status `400`
- **2026-09-29** `69bbe3da3a18` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/commerce/marketing-activities/put.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) · [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/16a7b9d5373e?raw)
