Create, manage, and validate against campaign settings — the full campaign lifecycle in five endpoints plus receipt validation.
What This Category Covers
Campaign validation checks submitted receipts against a stored rule set — a campaign — and returns pass/fail results with reasons. This category holds the full lifecycle: five endpoints to create and manage campaign settings, plus the validation endpoint that receipts are submitted to. Campaigns suit promotions, loyalty programmes, and cashback offers where the same rules apply to every receipt.
Campaign Lifecycle
- Create a campaign's settings under your chosen
campaignId— dates, merchants, products, and other rule sections. - Validate receipts against it by sending them with that
campaignId— as a file upload or a URL. - List and inspect your campaigns to see what is currently configured.
- Update settings as the promotion evolves.
- Delete the campaign when it ends, if desired.
Endpoints in This Category
| Endpoint | Method and path | Example |
|---|---|---|
| Create Campaign Settings | POST /api/validation/v1/campaign/settings/create/{campaignId} | Example |
| Upload File | POST /api/validation/v1/campaign/receipt-validation/file | Example |
| URL | POST /api/validation/v1/campaign/receipt-validation/url | Example |
| List Campaign IDs | GET /api/validation/v1/campaign/settings/list | — |
| Get Campaign Settings | GET /api/validation/v1/campaign/settings/{campaignId} | — |
| Update Campaign Settings | PUT /api/validation/v1/campaign/settings/update/{campaignId} | — |
| Delete Campaign | DELETE /api/validation/v1/campaign/settings/delete/{campaignId} | — |
Need to validate receipts against rules supplied inline per request, without a stored campaign? See the Receipt Validation (Beta) overview.
Key Concepts
campaignId— the identifier you choose at creation; every validation request and every management call is scoped by it.- Rule sections — a campaign's settings combine sections such as dates, merchant names, product line items, and fraud-detection options. The full catalogue lives in the Campaign Settings Reference.
- Validation results — responses state whether the receipt passed and which rules it failed, so your application can tell the end user why.
Related Guides
- Setting Up Validation Campaigns — build your first campaign.
- Campaign Management — operate campaigns over their lifetime.
- Campaign Settings Reference — every rule section in detail.
- Validating Receipts — the validation flow end to end.
Parameters
All endpoints authenticate with your API key and are scoped by campaignId. The management endpoints take campaignId in the path with the rule sections as the JSON body (Campaign Settings Reference); the parameters below apply to Validate Receipts.
| Parameter | Type | Where | Description |
|---|---|---|---|
apikey | header | required, all endpoints | Your API key. See Authentication. |
campaignId | string | required, ≤50 | The campaign whose stored rules the receipt is validated against (path parameter on management endpoints). |
file | file | required (file variant) | Supported receipt or invoice file per Document Types & File Requirements. |
url / headers | string / object | URL variant | HTTPS URL of the receipt (+ optional forwarded headers). |
language | string | optional | Language hint; leave empty for automatic detection. |
near | string | optional | A location (city, state, country) to help search for the merchant. |
ipAddress | string | optional, ≤100 | End user's IP address, used for GeoIP lookup. |
incognito | boolean | optional, default false | Per-request storage opt-out. See Security, Privacy & Data Residency. |
userId | string | optional, ≤50 | End-user identifier returned with matched receipts, when available. |
subAccountId | string | optional, ≤100 | Attribute usage to a client or subdivision of your account for reporting. |
referenceId | string | optional, ≤50 | Caller-supplied identifier. See Duplicate & Similarity Detection. |