Create new transaction

Creates new transaction and returns information

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

Path parameters

pidstringRequiredformat: "uuid"
Loyalty Program Id

Request

Transaction Payload
amountdoubleRequired

Transaction amount (must be provided).

balanceDefinitionIdstringRequired

Unique identifier (UUID) of the associated balance definition.

LoyaltySubscriptionIdstringOptional

Unique identifier for the loyalty subscription (required unless contactId is provided).

autoCompletebooleanOptional
Whether the transaction should be automatically completed.
balanceExpiryInMinutesintegerOptional

Optional expiry time for the balance in minutes (must be greater than 0 if provided).

contactIdintegerOptional>=1

Unique identifier of the contact involved in the transaction (required unless LoyaltySubscriptionId is provided).

eventTimestringOptional
Optional timestamp specifying when the transaction occurred.
metamap from strings to anyOptional
Optional metadata associated with the transaction.
ttlintegerOptional

Optional time-to-live for the transaction (must be greater than 0 if provided).

Response

Transaction information
amountdouble or null
The transaction amount.
balanceDefinitionIdstring or null

Unique identifier (UUID) of the associated balance definition.

cancelledAtstring or null

Timestamp when the transaction was canceled (nullable).

completedAtstring or null

Timestamp when the transaction was completed (nullable).

contactIdinteger or null
Unique identifier of the contact associated with the transaction.
createdAtstring or null
Timestamp when the transaction was created.
eventTimestring or null
Optional timestamp indicating when the transaction event occurred.
expirationDatestring or null

Expiry date of the transaction (nullable).

idstring or null

Unique identifier (UUID) of the transaction.

loyaltyProgramIdstring or null

Unique identifier (UUID) of the associated loyalty program.

metamap from strings to any or null
Optional metadata associated with the transaction.
rejectReasonstring or null

Reason for rejection if the transaction was declined (nullable).

rejectedAtstring or null

Timestamp when the transaction was rejected (nullable).

statusstring or null

The current status of the transaction (e.g., pending, completed, rejected).

updatedAtstring or null
Timestamp when the transaction was last updated.

Errors