Schema
Marketing Campaign Configuration
Overview
Properties
name
string
Required
Example
Weekend offers
Min length
1
Max length
255
template_submission_uuid
string
Required
The UUID of a linked, approved marketing submission for this merchant’s connected WhatsApp account.
Format
uuid
audience
oneOf
Required
One of
One of 1
object
Nested properties
type
string
Required
Const
all_eligible
tier_uuids
array
Max items
0
Array items
Items
string
Format
uuid
One of 2
object
Nested properties
type
string
Required
Const
selected_tiers
tier_uuids
array
Required
Complete list of active loyalty tier UUIDs owned by the merchant. UUID comparison ignores case.
Min items
1
Unique items
Yes
Array items
Items
string
Format
uuid
destination
oneOf
Required
One of
One of 1
object
Nested properties
type
string
Required
Const
web_url
web_url
string
Required
Format
uri
Example
https://example.com/offers
Pattern
^[Hh][Tt][Tt][Pp][Ss]://
Max length
2048
message_automation_uuid
null
One of 2
object
Nested properties
type
string
Required
Const
message_automation
web_url
null
message_automation_uuid
string
Required
UUID of an active WhatsApp automation owned by the merchant.
Format
uuid
Used by
Raw YAML
Download source
title: Marketing Campaign Configuration
type: object
required:
- name
- template_submission_uuid
- audience
- destination
properties:
name:
type: string
minLength: 1
maxLength: 255
example: Weekend offers
template_submission_uuid:
type: string
format: uuid
description: The UUID of a linked, approved marketing submission for this merchant’s connected WhatsApp account.
audience:
oneOf:
- type: object
required:
- type
properties:
type:
type: string
const: all_eligible
tier_uuids:
type: array
maxItems: 0
items:
type: string
format: uuid
additionalProperties: false
- type: object
required:
- type
- tier_uuids
properties:
type:
type: string
const: selected_tiers
tier_uuids:
type: array
items:
type: string
format: uuid
uniqueItems: true
description: Complete list of active loyalty tier UUIDs owned by the merchant. UUID comparison ignores case.
minItems: 1
additionalProperties: false
destination:
oneOf:
- type: object
required:
- type
- web_url
properties:
type:
type: string
const: web_url
web_url:
type: string
format: uri
pattern: "^[Hh][Tt][Tt][Pp][Ss]://"
maxLength: 2048
example: https://example.com/offers
message_automation_uuid:
type: "null"
additionalProperties: false
- type: object
required:
- type
- message_automation_uuid
properties:
type:
type: string
const: message_automation
web_url:
type: "null"
message_automation_uuid:
type: string
format: uuid
description: UUID of an active WhatsApp automation owned by the merchant.
additionalProperties: false
x-tags:
- Models