Raw schema
{
"type": "object",
"properties": {
"order_id": {
"type": "string",
"minLength": 1,
"maxLength": 190,
"description": "Your unique order id."
},
"customer": {
"type": "object",
"properties": {
"email": {
"type": "string",
"minLength": 3,
"maxLength": 320,
"description": "Email address."
},
"first_name": {
"type": "string",
"maxLength": 190
},
"last_name": {
"type": "string",
"maxLength": 190
},
"fields": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
},
{
"type": "boolean"
}
]
},
"description": "Custom field values keyed by the field's MERGE TAG (see mailbluster_list_fields), e.g. {\"company\": \"Pied Piper\"}."
},
"timezone": {
"type": "string",
"maxLength": 100
},
"ip_address": {
"type": "string",
"maxLength": 64
},
"tags": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"subscribed": {
"type": "boolean",
"description": "Required. true only with the customer's consent to receive email; otherwise false."
}
},
"required": [
"email",
"subscribed"
]
},
"campaign_id": {
"description": "Id of the campaign that led to the order, if any.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "ISO currency code, e.g. USD."
},
"total_price": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Order total, e.g. 10.64."
},
"items": {
"minItems": 1,
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 190,
"description": "Your id of the product (a product record with this id is created in MailBluster if it does not exist)."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 190,
"description": "Product name."
},
"price": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Unit price, e.g. 3.15."
},
"quantity": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000000
}
},
"required": [
"id",
"name",
"price",
"quantity"
]
},
"description": "Ordered products."
}
},
"required": [
"order_id",
"customer",
"currency",
"total_price",
"items"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}