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 |
|
|
Preview the current eligible audience |
|
|
List the message provider's approved templates for an SMS or WhatsApp campaign |
|
|
Build a cart link (products, quantities, optional discount code) |
|
|
Create a draft |
|
|
Update a draft |
|
|
Launch or cancel |
|
|
Delete an eligible campaign |
|
|
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.
// 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.
// 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" }
}
}
Campaign links and cart links#
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.
// 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 |
|---|---|
|
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. |
|
The submission ended with a confirmed failure. |
|
Tringify did not submit the message, for example because consent was no longer active or cancellation stopped a pending recipient. |
|
The provider outcome is not yet known, including a timeout after submission began or a cancellation racing an in-flight attempt. |
|
The orders the campaign brought: |
|
SMS and WhatsApp campaigns only: what the provider app reported after the handoff, as |
Endpoints#
List promotional campaigns
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. |
offset
|
integer |
Result offset. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Preview a campaign audience
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. |
subscriber_source
|
string |
|
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400INVALID_INPUTaudience_group_id is not a UUID, or subscriber_source is not
coming_soonor is combined with audience_group_id. -
400MARKETING_AUDIENCE_NOT_FOUNDThe Customer Group does not exist in this store.
-
403STORE_API_SCOPE_REQUIREDaudience_group_id was supplied without read_customers.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List provider templates
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 |
|
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Create a promotional campaign
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. |
channel
required
|
string |
Campaign channel: |
subject
|
string |
Email subject; required before launching email. |
preheader
|
string |
Email preview text. |
email_document
|
object |
Non-empty email block-editor document; required before launching email. |
message_body
|
string |
Text of an SMS campaign sent as written, with personalization and the automatic opt-out link. |
template_name
|
string |
SMS or WhatsApp: the provider template to send (from GET /marketing-campaigns/templates). Required for WhatsApp. |
template_language
|
string |
The template's language, as listed. |
template_fields
|
object |
Each template field's source: |
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. |
audience_subscriber_source
|
string |
Email only: |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update a promotional campaign
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. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
Merchant-facing campaign name. |
subject
|
string |
Email subject; required before launching email. |
preheader
|
string |
Email preview text. |
email_document
|
object |
Non-empty email block-editor document; required before launching email. |
message_body
|
string |
Text of an SMS campaign sent as written, with personalization and the automatic opt-out link. |
template_name
|
string |
SMS or WhatsApp: the provider template to send (from GET /marketing-campaigns/templates). Required for WhatsApp. |
template_language
|
string |
The template's language, as listed. |
template_fields
|
object |
Each template field's source: |
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. |
audience_subscriber_source
|
string |
Email only: |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Launch a promotional campaign
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. |
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. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Cancel a promotional campaign
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. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete a promotional campaign
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. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Cart links#
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
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: |
discount_code
|
string |
Discount code to apply. |
to
|
string |
|
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Phone marketing consent#
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
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 |
status
|
string |
Filter by |
search
|
string |
Search normalized phone numbers. |
limit
|
integer |
Number of rows to return. |
offset
|
integer |
Result offset. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Record phone marketing consent
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. |
channel
required
|
string |
Exact channel: |
contact
required
|
string |
E.164 phone number. |
consented
required
|
boolean |
True to record affirmative consent; false to withdraw the existing exact-channel consent. |
evidence
|
object |
Required when consented is true. Auditable capture metadata such as disclosure version and form id. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Withdraw phone marketing consent
Withdraw one SMS or WhatsApp consent record.
Withdrawal is immediate.
Path parameters
| Name | Type | Description |
|---|---|---|
consentId
required
|
uuid |
Marketing consent id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.