Additional Information for Subvention Targeting

This guidance applies to all merchants for understanding the use cases of sharing data, for subvention projects.

API information

📘

Endpoint

POST /checkout: see Create Checkout Session for the full API reference.

Parameters

items.sku

case-insensitive, 1 per order, max 128 chars

additional_data.campaign_tags

case-insensitive, max 100 tags, max 255 chars each

Authenticate every request with the API token provided by Tamara in the Authorization header:

Authorization: Bearer <your_api_token>
Content-Type: application/json

Use cases at a glance

To subventPlease sendJSON sample
Specific productsitems[].sku (+ SKU campaign config)
"items": [
    {
      "reference_id": "123",
      "sku": "IPHONE-15-128",
      "name": "iPhone 15",
      "quantity": 1,
      "total_amount": { "amount": 4500, "currency": "SAR" }
    }
  ],
Whole basket / site-wideBasket campaign; no tags requiredNo tags required
Category, store, promo, channel, segment, site code, etc.additional_data.campaign_tags (+ tag allowlist on the campaign)
"additional_data": {
    "campaign_tags": ["electronics", "fashion"]
"additional_data": {
    "campaign_tags": ["app", "online"]
"additional_data": {
    "campaign_tags": ["072", "128"]
Both product and category/siteSKUs and campaign tags together
"items": [
    {
      "reference_id": "123",
      "sku": "IPHONE-15-128",
      "name": "iPhone 15",
      "quantity": 1,
      "total_amount": { "amount": 4500, "currency": "SAR" }
    }
  ],
  "additional_data": {
    "campaign_tags": ["001", "002"]
  }


Examples of campaign tag values

  • Category: ["electronics", "fashion"]
  • Store: ["RUH-STORE-12"]
  • Promo: ["RAMADAN_2027"]
  • Channel: ["app"]
  • Segment: ["marketplace"]
  • Site code: ["DXB01"]

Full JSON sample

{
  "total_amount": {
    "amount": 8000,
    "currency": "AED"
  },
  "shipping_amount": {
    "amount": 20,
    "currency": "AED"
  },
  "tax_amount": {
    "amount": 20,
    "currency": "AED"
  },
  "order_reference_id": "123-Tamara-098",
  "order_number": "123-Tamara",
  "items": [
    {
      "name": "iPhone",
      "quantity": 1,
      "reference_id": "098",
      "type": "Electronics",
      "sku": "AE-098",
      "unit_price": {
        "amount": 8000,
        "currency": "AED"
      },
      "total_amount": {
        "amount": 8000,
        "currency": "AED"
      }
    }
  ],
  "consumer": {
    "email": "[email protected]",
    "first_name": "Lisa",
    "last_name": "John",
    "phone_number": "526433333"
  },
  "country_code": "AE",
  "description": "iphone",
  "merchant_url": {
    "cancel": "https://www.example.com/cancel",
    "failure": "https://www.example.com/failure",
    "success": "https://www.example.com/success"
  },
  "shipping_address": {
    "city": "Dubai",
    "country_code": "AE",
    "first_name": "Lisa",
    "last_name": "John",
    "line1": "123",
    "line2": "ABC",
    "phone_number": "526433333",
    "region": "Academic City"
  },
  "platform": "Web",
  "is_mobile": false,
  "locale": "en_US",
  "risk_assessment": {
    "is_premium_customer": true,
    "account_creation_date": "01-01-2001",
    "total_order_count": 65,
    "date_first_paid": "01-01-2001",
    "date_last_paid": "01-09-2026",
    "order_count_last_24h": 1,
    "account_security": {
      "is_email_verified": true,
      "is_phone_verified": true
    }
  },
  "additional_data": {
    "campaign_tags": [
      "electronics",
      "accessories"
    ]
  }
}

Do's/Don'ts

  • Do agree tag vocabulary with your Tamara Key Account Manager before go-live.
  • Do send the same strings the campaign is configured with.
  • Don’t put SKUs in campaign_tags.
  • Don’t put campaign tags in items[].sku.
  • Don’t assume additional_data.store_code drives subvention, as that field is separate; use campaign_tags for tag-targeted campaigns.


Failure mode callout

If a campaign is tag-targeted and the order omits tags (or sends a tag not on the allowlist), that campaign will not apply.




Did this page help you?