Skip to main content
POST
Create transactions in bulk

Authorizations

X-Api-Key
string
header
required

Your Affelios API key. Create one in the dashboard under Settings > API keys.

Body

application/json

The transactions to create.

externalId
string | null

Your unique ID for the transaction. Required for a single Sale; optional in bulk requests.

type
string | null

One of Sale, Adjustment, Payout or SubAffiliate. Use Sale for customer activity and Adjustment to change an affiliate's commission directly.

affiliateId
string | null

The Affelios ID of the affiliate. Used by Adjustment transactions.

clickKey
string | null

The click key the customer arrived with. Use this or externalCustomerId to identify the customer.

externalCustomerId
string | null

Your ID for the customer, as sent when you created them. Use this or clickKey.

externalBrandId
string | null

The External ID of the brand, as set on the brand in Affelios.

externalProductId
string | null

The External ID of the product, if the transaction belongs to one.

transactionDate
string<date-time>

When the activity happened, in UTC.

country
string | null

The customer's country name.

country_code
string | null

The customer's country as an ISO country code, for example GB.

depositAmount
number<double>

Amount deposited.

grossRevenue
number<double>

Gross revenue, such as gross gaming revenue or the sale value. Can be negative.

wageredAmount
number<double>

Amount wagered (turnover).

revShareCommission
number<double>

Revenue share commission to add or remove. Adjustment only.

cpaCommission
number<double>

CPA commission to add or remove. Adjustment only.

fixedCommission
number<double>

Fixed commission to add or remove. Adjustment only.

category
string | null

A category for your own reporting.

label
string | null

A label for your own reporting.

note
string | null

A note, for example the reason for an adjustment.

operatorId
string | null

Not needed when you authenticate with an API key: your program is taken from the key.

Response

The transactions were queued for processing.