Marketing Campaigns

Create email campaigns, select subscriber or Customer Group audiences, and interpret delivery outcomes.

Use Marketing Campaigns to compose one-off promotional emails for active subscribers, and SMS or WhatsApp campaigns for numbers with text marketing consent, sent through the store's active message provider app. Campaign reads require read_marketing; creating, editing, launching, cancelling, and deleting require write_marketing. Customer Group selection also requires customer read access. A campaign can also target the subscribers who signed up on a storefront's Coming Soon page with audience_subscriber_source: "coming_soon". Preview the audience before launch, use the limits and supported channels returned by the API, and preserve ambiguous delivery outcomes during reconciliation.

Choose and preview the audience#

A campaign can target every active email subscriber, one Customer Group or the subscribers of one sign-up source. Omit audience_group_id and audience_subscriber_source, or send them as null, to target all subscribers. Send a Customer Group UUID to target only customers in that group who are also active email subscribers. Send audience_subscriber_source: "coming_soon" to target the active email subscribers who signed up on a storefront's Coming Soon page; it cannot be combined with audience_group_id, and setting one clears the other. Selecting a group requires read_customers in addition to the campaign's marketing scope. When a store first goes live with Coming Soon subscribers, Store Admin and the mobile app offer the merchant a ready-made "We're open" draft with this audience; it is an ordinary draft here.

Task

Endpoint

Required scope

List campaigns, limits and available channels

GET /marketing-campaigns

read_marketing

Preview the current eligible audience

GET /marketing-campaigns/audience

read_marketing; add read_customers when audience_group_id is supplied. Send subscriber_source=coming_soon to preview the Coming Soon subscribers

List the message provider's approved templates for an SMS or WhatsApp campaign

GET /marketing-campaigns/templates?channel=sms|whatsapp

read_marketing

Build a cart link (products, quantities, optional discount code)

POST /cart-links

read_marketing

Create a draft

POST /marketing-campaigns

write_marketing; add read_customers when selecting a group

Update a draft

PUT /marketing-campaigns/{id}

write_marketing; add read_customers when selecting a group

Launch or cancel

POST /marketing-campaigns/{id}/launch / POST /marketing-campaigns/{id}/cancel

write_marketing; launching a group campaign also requires read_customers

Delete an eligible campaign

DELETE /marketing-campaigns/{id}

write_marketing

http
GET /api/2025-01/marketing-campaigns/audience?audience_group_id=58ee109f-64f7-4a51-8d48-b0ca62c4236a

{
  "success": true,
  "data": {
    "group_id": "58ee109f-64f7-4a51-8d48-b0ca62c4236a",
    "group_name": "Recent customers",
    "matching_customers": 148,
    "eligible_email_recipients": 121,
    "ready": true,
    "evaluated_at": "2026-09-12T14:20:00Z",
    "previewed_at": "2026-09-12T14:21:00Z"
  }
}

A preview is a current estimate. matching_customers counts active customer profiles in the selected group, while eligible_email_recipients counts those customers who currently have an active email subscription. For the all-subscribers and subscriber-source audiences, group_id is null and matching_customers is null; subscriber_source echoes the source previewed. If ready is false, wait for the group to refresh and preview it again before launching. A deleted or cross-store group returns MARKETING_AUDIENCE_NOT_FOUND; a group that is still refreshing at launch returns MARKETING_AUDIENCE_REFRESHING.

Create and update a draft#

Create an email campaign with name, channel: "email", subject, preheader, email_document, and an optional audience_group_id; a launch needs the subject and a non-empty email_document. channel (email, sms or whatsapp, listed with API-worded labels in the list response's channel_options) is fixed at creation. The list response also returns email_audience, sms_audience and whatsapp_audience: the active email subscribers and the numbers with active text marketing consent on each channel. Each campaign carries status_display and channel_display, its status and channel worded by the API. Read limits from the list response instead of hard-coding field lengths. Every marketing email receives a platform-owned, visible unsubscribe footer, regardless of the blocks in email_document, including the We’re open starter. It uses the same recipient-specific authenticated URL as the List-Unsubscribe header. That URL is on the store's primary storefront domain (its mytringify.com address only when no domain is connected) and carries the recipient's language. Opening it changes nothing: it shows the store's Email subscription page, where the recipient presses Unsubscribe and can then subscribe again. Marketing emails also carry List-Unsubscribe-Post: List-Unsubscribe=One-Click (RFC 8058), so mailbox providers unsubscribe the recipient with a POST without opening the page. Unsubscribing and subscribing again send subscribers/update. The footer is localized in English, German, Spanish, French and Italian using the frozen campaign language, with English fallback. Render previews and test sends include a safe sample unsubscribe link. Transactional email bodies are unchanged.

json
// POST /api/2025-01/marketing-campaigns
{
  "name": "September customers",
  "channel": "email",
  "subject": "A thank-you for shopping with us",
  "preheader": "Your subscriber offer is inside",
  "email_document": {
    "root": { "type": "EmailLayout", "data": {} }
  },
  "audience_group_id": "58ee109f-64f7-4a51-8d48-b0ca62c4236a"
}

Only drafts can be edited. On update, omitting audience_group_id and audience_subscriber_source preserves the current audience; sending null changes it to all subscribers. The selected audience membership freezes when launch succeeds. The resolved sender and rendered delivery content freeze when processing reaches the first recipient who is still eligible to receive the campaign; subsequent recipients and retries reuse that delivery snapshot. A concurrent draft edit can make launch stale, in which case review the latest draft before retrying.

SMS and WhatsApp campaigns#

SMS and WhatsApp campaigns go to the audience's numbers with active text marketing consent on the campaign's channel (eligible_sms_recipients and eligible_whatsapp_recipients in the audience preview); audience_subscriber_source is for email only. They are sent through the store's active SMS or WhatsApp provider app, so a launch is refused with MESSAGE_CHANNEL_PROVIDER_NOT_CONFIGURED when the channel has none. An SMS campaign sends its message_body, where {{ customer.first_name }}, {{ customer.name }} and {{ shop.name }} are filled in for each recipient (a customer without a name gets their phone number in display format, else their email, as in Store Admin) and an opt-out link is added at the end unless the body places {{ opt_out_url }} itself; or it sends a provider template instead. A WhatsApp campaign always sends a provider template: launching one without template_name returns PROVIDER_MESSAGE_TEMPLATE_REQUIRED. Choose a template from GET /marketing-campaigns/templates?channel=, which lists the provider's approved templates (name, language, body and the fields they need); PROVIDER_TEMPLATES_UNSUPPORTED means the provider app does not list templates. Set template_name, template_language and template_fields, which maps every template field to a source: text (with its value), customer.first_name, customer.name, shop.name or opt_out_url. Tringify charges nothing and sets no sending limit for these campaigns; the provider bills and paces its own messages.

json
// POST /api/2025-01/marketing-campaigns
{
  "name": "Weekend sale",
  "channel": "whatsapp",
  "template_name": "weekend_sale",
  "template_language": "en",
  "template_fields": {
    "1": { "source": "customer.first_name" },
    "2": { "source": "text", "value": "20% off" }
  }
}

Every link in a campaign that points at one of the store's own storefront domains is sent with utm_source=tringify, utm_medium (email, sms or whatsapp), utm_campaign (the campaign name as a slug) and utm_id (the campaign's id). A link that already carries any utm_ parameter is sent exactly as written. The storefront records these parameters in the order's attribution like any landing page's, which is what the campaign's results read, and the Analytics campaign report shows them. POST /cart-links builds a cart link on the store's storefront address: items (up to 25, each product_id, an optional variant_id and a quantity from 1 to 999), an optional discount_code and to (checkout, the default, or cart). Opening the link adds only the quantity each line is missing from the shopper's cart, so opening it twice does not double it; nothing already in the cart is removed. A refused line or code shows its own notice on the cart. Put a cart link in a campaign and it is tagged like any store link.

json
// POST /api/2025-01/cart-links
{
  "items": [
    { "product_id": 1042, "variant_id": 5531, "quantity": 2 },
    { "product_id": 1077, "quantity": 1 }
  ],
  "discount_code": "WEEKEND20"
}

// 200
{ "success": true, "data": { "url": "https://example-store.com/cart/link?items=1042.5531:2,1077:1&discount=WEEKEND20" } }

Interpret delivery outcomes#

Campaign responses return recipient_count, sent_count, failed_count, suppressed_count, and uncertain_count as integer counts. Recipient membership stays frozen after launch. The resolved sender and rendered delivery content use the delivery snapshot described above. Tringify still checks each recipient's current email consent before provider submission, so a recipient who unsubscribes after launch is suppressed instead of sent.

Field

Meaning

sent_count

The email provider accepted the submission, or for SMS and WhatsApp the platform handed the message to the provider app. This does not prove delivery.

failed_count

The submission ended with a confirmed failure.

suppressed_count

Tringify did not submit the message, for example because consent was no longer active or cancellation stopped a pending recipient.

uncertain_count

The provider outcome is not yet known, including a timeout after submission began or a cancellation racing an in-flight attempt.

results

The orders the campaign brought: orders (paid orders, not cancelled or test, whose shopper's last visit before checkout came from one of the campaign's links) and revenue net of refunds in the store's currency (currency_code, formatted_revenue). Counted only for shoppers who allowed marketing cookies, since that is when the storefront records the visit. Null for drafts, and when results could not be read for that response.

delivery

SMS and WhatsApp campaigns only: what the provider app reported after the handoff, as delivered (read included), read (WhatsApp) and failed counts. Null for email and before the audience snapshot.

Endpoints#

List promotional campaigns

GET read_marketing

List the store's promotional campaigns.

Returns campaigns with their delivery counts, the field limits, channel_options (email, sms and whatsapp, each a value with a label worded by the API) and today's reach: email_audience (active email subscribers), sms_audience and whatsapp_audience (numbers with active text marketing consent on each channel). Each campaign carries status_display and channel_display, its status and channel worded by the API. A sent campaign carries results: the paid orders (not cancelled or test) whose shopper's last visit before checkout came from one of its links, and their revenue net of refunds in the store's currency (currency_code, formatted_revenue); counted for shoppers who allowed marketing cookies, null for drafts or when results could not be read. An SMS or WhatsApp campaign also carries delivery: what the provider app reported after the handoff (delivered, read, failed).

Query parameters

Name Type Description
limit integer

Number of campaigns to return.

Example: 50
offset integer

Result offset.

Example: 0

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Preview a campaign audience

GET read_marketing

Count who a campaign would reach today.

Without audience_group_id or subscriber_source the audience is every active email subscriber and every number with active text marketing consent, and group_id and matching_customers are null. With subscriber_source=coming_soon it is the active email subscribers who signed up on a storefront's Coming Soon page (email campaigns only; subscriber_source is echoed and cannot be combined with audience_group_id). With a Customer Group, matching_customers counts the group's active customers, and eligible_email_recipients, eligible_sms_recipients and eligible_whatsapp_recipients count those of them who can be reached on each channel; selecting a group requires read_customers. ready is false while the group is refreshing: preview again before launching. The preview is a current estimate; recipients are fixed at launch.

Query parameters

Name Type Description
audience_group_id uuid

Customer Group to preview; omit for every active email subscriber. Requires read_customers.

Example: 58ee109f-64f7-4a51-8d48-b0ca62c4236a
subscriber_source string

coming_soon to preview the subscribers who signed up on a Coming Soon page. Not with audience_group_id.

Example: coming_soon

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 INVALID_INPUT

    audience_group_id is not a UUID, or subscriber_source is not coming_soon or is combined with audience_group_id.

  • 400 MARKETING_AUDIENCE_NOT_FOUND

    The Customer Group does not exist in this store.

  • 403 STORE_API_SCOPE_REQUIRED

    audience_group_id was supplied without read_customers.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List provider templates

GET read_marketing

List the approved templates of the store's SMS or WhatsApp provider app.

Pass channel=sms or channel=whatsapp. The store's active provider app on that channel answers with its approved templates (at most 500): name, language, body, the fields a campaign must fill, and category, header, footer and buttons for display. MESSAGE_CHANNEL_PROVIDER_NOT_CONFIGURED means the channel has no ready provider; PROVIDER_TEMPLATES_UNSUPPORTED that its app does not list templates; PROVIDER_TEMPLATES_UNAVAILABLE that it could not answer now.

Query parameters

Name Type Description
channel required string

sms or whatsapp.

Example: whatsapp

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Create a promotional campaign

POST write_marketing

Create a draft campaign.

A campaign has exactly one channel, fixed at creation: email, sms or whatsapp. An email campaign needs a subject and a block-editor document before launch. An SMS campaign needs message_body (personalized with {{ customer.first_name }}, {{ customer.name }} and {{ shop.name }}; an opt-out link is added unless the body places {{ opt_out_url }}) or a provider template. A WhatsApp campaign needs a provider template: list them with GET /marketing-campaigns/templates?channel= and set template_name, template_language and template_fields. The audience is every subscriber or consented number on the channel, a Customer Group (audience_group_id, requires read_customers) or, for email, the subscribers of one sign-up source (audience_subscriber_source: coming_soon), never both. When a store first goes live with Coming Soon subscribers, Store Admin offers the merchant a ready-made "We're open" draft with audience_subscriber_source coming_soon; it is an ordinary draft here.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
name required string

Merchant-facing campaign name.

Example: September launch
channel required string

Campaign channel: email, sms or whatsapp. Fixed at creation.

Example: email
subject string

Email subject; required before launching email.

Example: September offers
preheader string

Email preview text.

Example: New arrivals are here
email_document object

Non-empty email block-editor document; required before launching email.

Example: {"root":{"type":"EmailLayout","data":{"childrenIds":["body"]}},"body":{"type":"Text","data":{"props":{"text":"New arrivals are live."}}}}
message_body string

Text of an SMS campaign sent as written, with personalization and the automatic opt-out link.

Example: Hi {{ customer.first_name }}, new arrivals are live.
template_name string

SMS or WhatsApp: the provider template to send (from GET /marketing-campaigns/templates). Required for WhatsApp.

Example: weekend_sale
template_language string

The template's language, as listed.

Example: en
template_fields object

Each template field's source: { "source": "text", "value": "…" }, or a source of customer.first_name, customer.name, shop.name or opt_out_url.

Example: {"1":{"source":"customer.first_name"},"2":{"source":"text","value":"20% off"}}
audience_group_id uuid

Customer Group to target; omit or null for everyone on the channel. On update, omitting it keeps the current audience. Requires read_customers.

Example: 58ee109f-64f7-4a51-8d48-b0ca62c4236a
audience_subscriber_source string

Email only: coming_soon to target the active email subscribers who signed up on a storefront's Coming Soon page; null for none. Not with audience_group_id. On update, omitting it keeps the current audience.

Example: coming_soon

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is invalid or contains an unknown field.

  • 400 INVALID_INPUT

    A field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not coming_soon or is combined with audience_group_id.

  • 400 SMS_PHONE_INVALID

    The marketing contact is not a valid E.164 phone number.

  • 400 MESSAGE_CHANNEL_INVALID

    Channel is not SMS or WhatsApp.

  • 404 NOT_FOUND

    Campaign or consent does not exist in this store.

  • 409 MESSAGE_CHANNEL_NONE_DELIVERABLE

    A selected channel has no ready provider.

  • 409 MARKETING_CAMPAIGN_NOT_EDITABLE

    Campaign state does not allow this action.

  • 409 MARKETING_CONTACT_CONSENT_REQUIRED

    The recipient has no active consent for any requested promotional channel.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Update a promotional campaign

PUT write_marketing

Update an editable draft campaign.

The campaign channel cannot be changed after creation. Scheduled, sending, completed, and cancelled campaign content is immutable. Setting audience_group_id clears audience_subscriber_source and the reverse; send null to return to every active email subscriber.

Path parameters

Name Type Description
campaignId required uuid

Campaign id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
name required string

Merchant-facing campaign name.

Example: September launch
subject string

Email subject; required before launching email.

Example: September offers
preheader string

Email preview text.

Example: New arrivals are here
email_document object

Non-empty email block-editor document; required before launching email.

Example: {"root":{"type":"EmailLayout","data":{"childrenIds":["body"]}},"body":{"type":"Text","data":{"props":{"text":"New arrivals are live."}}}}
message_body string

Text of an SMS campaign sent as written, with personalization and the automatic opt-out link.

Example: Hi {{ customer.first_name }}, new arrivals are live.
template_name string

SMS or WhatsApp: the provider template to send (from GET /marketing-campaigns/templates). Required for WhatsApp.

Example: weekend_sale
template_language string

The template's language, as listed.

Example: en
template_fields object

Each template field's source: { "source": "text", "value": "…" }, or a source of customer.first_name, customer.name, shop.name or opt_out_url.

Example: {"1":{"source":"customer.first_name"},"2":{"source":"text","value":"20% off"}}
audience_group_id uuid

Customer Group to target; omit or null for everyone on the channel. On update, omitting it keeps the current audience. Requires read_customers.

Example: 58ee109f-64f7-4a51-8d48-b0ca62c4236a
audience_subscriber_source string

Email only: coming_soon to target the active email subscribers who signed up on a storefront's Coming Soon page; null for none. Not with audience_group_id. On update, omitting it keeps the current audience.

Example: coming_soon

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is invalid or contains an unknown field.

  • 400 INVALID_INPUT

    A field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not coming_soon or is combined with audience_group_id.

  • 400 SMS_PHONE_INVALID

    The marketing contact is not a valid E.164 phone number.

  • 400 MESSAGE_CHANNEL_INVALID

    Channel is not SMS or WhatsApp.

  • 404 NOT_FOUND

    Campaign or consent does not exist in this store.

  • 409 MESSAGE_CHANNEL_NONE_DELIVERABLE

    A selected channel has no ready provider.

  • 409 MARKETING_CAMPAIGN_NOT_EDITABLE

    Campaign state does not allow this action.

  • 409 MARKETING_CONTACT_CONSENT_REQUIRED

    The recipient has no active consent for any requested promotional channel.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Launch a promotional campaign

POST write_marketing

Send now or schedule an email campaign.

Only drafts launch. An email campaign needs a subject and a block-editor document; an SMS campaign a message_body or a template; a WhatsApp campaign a template (PROVIDER_MESSAGE_TEMPLATE_REQUIRED otherwise). An SMS or WhatsApp launch is refused with MESSAGE_CHANNEL_PROVIDER_NOT_CONFIGURED when the channel has no ready provider app. Launching fixes the recipients (active email subscribers, or numbers with active text marketing consent on the channel, within the Customer Group or the subscriber source when one is selected) even when sending is scheduled for later; consent is checked again before each message and a recipient without it is suppressed. A group campaign also requires read_customers.

Path parameters

Name Type Description
campaignId required uuid

Campaign id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
scheduled_at datetime

RFC3339 send time. Omit to send now.

Example: 2026-09-01T09:00:00Z

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is invalid or contains an unknown field.

  • 400 INVALID_INPUT

    A field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not coming_soon or is combined with audience_group_id.

  • 400 SMS_PHONE_INVALID

    The marketing contact is not a valid E.164 phone number.

  • 400 MESSAGE_CHANNEL_INVALID

    Channel is not SMS or WhatsApp.

  • 404 NOT_FOUND

    Campaign or consent does not exist in this store.

  • 409 MESSAGE_CHANNEL_NONE_DELIVERABLE

    A selected channel has no ready provider.

  • 409 MARKETING_CAMPAIGN_NOT_EDITABLE

    Campaign state does not allow this action.

  • 409 MARKETING_CONTACT_CONSENT_REQUIRED

    The recipient has no active consent for any requested promotional channel.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Cancel a promotional campaign

POST write_marketing

Stop a scheduled or sending campaign.

Only scheduled and sending campaigns can be cancelled. An email the provider already accepted cannot be recalled; recipients not yet sent to are suppressed.

Path parameters

Name Type Description
campaignId required uuid

Campaign id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is invalid or contains an unknown field.

  • 400 INVALID_INPUT

    A field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not coming_soon or is combined with audience_group_id.

  • 400 SMS_PHONE_INVALID

    The marketing contact is not a valid E.164 phone number.

  • 400 MESSAGE_CHANNEL_INVALID

    Channel is not SMS or WhatsApp.

  • 404 NOT_FOUND

    Campaign or consent does not exist in this store.

  • 409 MESSAGE_CHANNEL_NONE_DELIVERABLE

    A selected channel has no ready provider.

  • 409 MARKETING_CAMPAIGN_NOT_EDITABLE

    Campaign state does not allow this action.

  • 409 MARKETING_CONTACT_CONSENT_REQUIRED

    The recipient has no active consent for any requested promotional channel.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Delete a promotional campaign

DELETE write_marketing

Delete a draft, cancelled, or completed campaign.

Scheduled and sending campaigns must be cancelled first. A cancelled campaign with uncertain recipient outcomes cannot be deleted until they resolve.

Path parameters

Name Type Description
campaignId required uuid

Campaign id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is invalid or contains an unknown field.

  • 400 INVALID_INPUT

    A field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not coming_soon or is combined with audience_group_id.

  • 400 SMS_PHONE_INVALID

    The marketing contact is not a valid E.164 phone number.

  • 400 MESSAGE_CHANNEL_INVALID

    Channel is not SMS or WhatsApp.

  • 404 NOT_FOUND

    Campaign or consent does not exist in this store.

  • 409 MESSAGE_CHANNEL_NONE_DELIVERABLE

    A selected channel has no ready provider.

  • 409 MARKETING_CAMPAIGN_NOT_EDITABLE

    Campaign state does not allow this action.

  • 409 MARKETING_CONTACT_CONSENT_REQUIRED

    The recipient has no active consent for any requested promotional channel.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

A cart link fills a shopper's cart and opens checkout; put one in a campaign, an ad or a chat.

Build a cart link

POST read_marketing

Build a storefront link that fills a shopper's cart.

Returns a link on the store's storefront address that adds the items to the shopper's cart, applies the optional discount code and opens checkout (or the cart with to: cart). Opening it adds only what each line is missing, so opening it twice does not double the cart, and nothing already in the cart is removed; a refused line or code is skipped and its reason shown on the cart. Links in a campaign also carry the campaign's UTM parameters.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
items required array<object>

1 to 25 lines: product_id, optional variant_id, quantity 1 to 999.

Example: [{"product_id":1042,"variant_id":5531,"quantity":2}]
discount_code string

Discount code to apply.

Example: WEEKEND20
to string

checkout (default) or cart.

Example: checkout

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

SMS and WhatsApp marketing needs explicit consent for each channel, recorded through /marketing-consents with evidence of how it was captured. Email newsletter consent never authorizes marketing by phone.

List phone marketing consents

GET read_marketing

List explicit SMS and WhatsApp consent records.

Email newsletter consent is not returned here and never authorizes marketing by phone. Each row records the exact channel, normalized contact, source, evidence, and active or withdrawn state.

Query parameters

Name Type Description
channel string

Filter by sms or whatsapp.

Example: sms
status string

Filter by active or withdrawn.

Example: active
search string

Search normalized phone numbers.

Example: +1555
limit integer

Number of rows to return.

Example: 50
offset integer

Result offset.

Example: 0

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is invalid or contains an unknown field.

  • 400 INVALID_INPUT

    A field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not coming_soon or is combined with audience_group_id.

  • 400 SMS_PHONE_INVALID

    The marketing contact is not a valid E.164 phone number.

  • 400 MESSAGE_CHANNEL_INVALID

    Channel is not SMS or WhatsApp.

  • 404 NOT_FOUND

    Campaign or consent does not exist in this store.

  • 409 MESSAGE_CHANNEL_NONE_DELIVERABLE

    A selected channel has no ready provider.

  • 409 MARKETING_CAMPAIGN_NOT_EDITABLE

    Campaign state does not allow this action.

  • 409 MARKETING_CONTACT_CONSENT_REQUIRED

    The recipient has no active consent for any requested promotional channel.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Record phone marketing consent

PUT write_marketing

Record or withdraw exact-channel consent.

Set consented: true only after your app has captured affirmative consent for the exact channel. Evidence is mandatory when activating consent and should identify the disclosure/version and capture context. The API source is recorded by the platform and cannot be spoofed.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
customer_id uuid

Customer to associate with the consent.

Example: 7246225d-79ad-4c48-9d28-70a26b84e1cc
channel required string

Exact channel: sms or whatsapp.

Example: sms
contact required string

E.164 phone number.

Example: +15551234567
consented required boolean

True to record affirmative consent; false to withdraw the existing exact-channel consent.

Example: true
evidence object

Required when consented is true. Auditable capture metadata such as disclosure version and form id.

Example: {"disclosure_version":"sms-v2","form":"checkout"}

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is invalid or contains an unknown field.

  • 400 INVALID_INPUT

    A field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not coming_soon or is combined with audience_group_id.

  • 400 SMS_PHONE_INVALID

    The marketing contact is not a valid E.164 phone number.

  • 400 MESSAGE_CHANNEL_INVALID

    Channel is not SMS or WhatsApp.

  • 404 NOT_FOUND

    Campaign or consent does not exist in this store.

  • 409 MESSAGE_CHANNEL_NONE_DELIVERABLE

    A selected channel has no ready provider.

  • 409 MARKETING_CAMPAIGN_NOT_EDITABLE

    Campaign state does not allow this action.

  • 409 MARKETING_CONTACT_CONSENT_REQUIRED

    The recipient has no active consent for any requested promotional channel.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Withdraw phone marketing consent

DELETE write_marketing

Withdraw one SMS or WhatsApp consent record.

Withdrawal is immediate.

Path parameters

Name Type Description
consentId required uuid

Marketing consent id.

Example: 7bd27e3d-0cb2-4095-8d75-f51baf013bb8

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is invalid or contains an unknown field.

  • 400 INVALID_INPUT

    A field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not coming_soon or is combined with audience_group_id.

  • 400 SMS_PHONE_INVALID

    The marketing contact is not a valid E.164 phone number.

  • 400 MESSAGE_CHANNEL_INVALID

    Channel is not SMS or WhatsApp.

  • 404 NOT_FOUND

    Campaign or consent does not exist in this store.

  • 409 MESSAGE_CHANNEL_NONE_DELIVERABLE

    A selected channel has no ready provider.

  • 409 MARKETING_CAMPAIGN_NOT_EDITABLE

    Campaign state does not allow this action.

  • 409 MARKETING_CONTACT_CONSENT_REQUIRED

    The recipient has no active consent for any requested promotional channel.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.