Campaign Validation Overview

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

  1. Create a campaign's settings under your chosen campaignId — dates, merchants, products, and other rule sections.
  2. Validate receipts against it by sending them with that campaignId — as a file upload or a URL.
  3. List and inspect your campaigns to see what is currently configured.
  4. Update settings as the promotion evolves.
  5. Delete the campaign when it ends, if desired.

Endpoints in This Category

EndpointMethod and pathExample
Create Campaign SettingsPOST /api/validation/v1/campaign/settings/create/{campaignId}Example
Upload FilePOST /api/validation/v1/campaign/receipt-validation/fileExample
URLPOST /api/validation/v1/campaign/receipt-validation/urlExample
List Campaign IDsGET /api/validation/v1/campaign/settings/list
Get Campaign SettingsGET /api/validation/v1/campaign/settings/{campaignId}
Update Campaign SettingsPUT /api/validation/v1/campaign/settings/update/{campaignId}
Delete CampaignDELETE /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

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.

ParameterTypeWhereDescription
apikeyheaderrequired, all endpointsYour API key. See Authentication.
campaignIdstringrequired, ≤50The campaign whose stored rules the receipt is validated against (path parameter on management endpoints).
filefilerequired (file variant)Supported receipt or invoice file per Document Types & File Requirements.
url / headersstring / objectURL variantHTTPS URL of the receipt (+ optional forwarded headers).
languagestringoptionalLanguage hint; leave empty for automatic detection.
nearstringoptionalA location (city, state, country) to help search for the merchant.
ipAddressstringoptional, ≤100End user's IP address, used for GeoIP lookup.
incognitobooleanoptional, default falsePer-request storage opt-out. See Security, Privacy & Data Residency.
userIdstringoptional, ≤50End-user identifier returned with matched receipts, when available.
subAccountIdstringoptional, ≤100Attribute usage to a client or subdivision of your account for reporting.
referenceIdstringoptional, ≤50Caller-supplied identifier. See Duplicate & Similarity Detection.