This API allows Transactions to be created against Accounts within the Cxense Advertising platform.
This API can be accessed by users with the appropriate permissions to manage Accounts. Please see the Parameters section below for details on the types of Transactions which can be created.
Transactions
A new Transaction is created using an HTTP POST call to a URL of the form:
|
Parameters
-
cxadbaseurl the base URL of the Cxense Advertising system
-
accountId the id of the Account on which the transaction is to be made
-
type the transaction type specifier, one of:
Transaction Code
Description
CR
To make a credit transaction
DR
To make a debit transaction
-
code the transaction code specifier, one of:
Transaction Code
Description
ADJUSTMENT_CR
To make a credit adjustment
ADJUSTMENT_DR
To make a debit adjustment
COMMISSION
A debit transaction - indicates that a commission is to be paid by the broker (typically towards a publisher)
COMMISSION_PAYMENT
A credit transaction - to make a commission payment
FEE
A credit transaction - to indicate that a fee is payable to the broker (typically by an advertiser)
FEE_PAYMENT
A debit transaction - to make a fee payment
-
date the transaction date specifier, should be in the form "YYYYmmDDhhmmssSSS", the broker's timezone is assumed.
-
note: the transaction date must be greater than or equal to the creation date of the account, it is invalid to create transactions for an account at a point in time prior to the existence of the account.
-
-
amount the absolute (positive) value of the transaction.
-
amountCurrency the three-letter currency code.
-
externalReference an optional string which can be used to reference the transaction in an external accounting system.
Example command
|
Example response payload
|