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.
Parametersitems.skucase-insensitive, 1 per order, max 128 chars
additional_data.campaign_tagscase-insensitive, max 100 tags, max 255 chars each
| Environment | Base URL |
|---|---|
| Sandbox | https://api-sandbox.tamara.co/checkout |
| Production | https://api.tamara.co/checkout |
Authenticate every request with the API token provided by Tamara in the Authorization header:
Authorization: Bearer <your_api_token>
Content-Type: application/jsonUse cases at a glance
| To subvent | Please send | JSON sample |
|---|---|---|
| Specific products | items[].sku (+ SKU campaign config) | |
| Whole basket / site-wide | Basket campaign; no tags required | No tags required |
| Category, store, promo, channel, segment, site code, etc. | additional_data.campaign_tags (+ tag allowlist on the campaign) | |
| Both product and category/site | SKUs and campaign tags together | |
Examples of campaign tag values
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_codedrives subvention, as that field is separate; usecampaign_tagsfor tag-targeted campaigns.
Failure mode callout
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.
Updated about 17 hours ago
Did this page help you?
