v1

latestOpenAPI 3.0.32026-07-26208618579.9 KB
Test transactions

Post test transactions to given card

This operation will create a transaction given cardId. Only available in DEMO environment.

post/test-api/card/{cardId}

Path parameters

cardIdstring biginteger required

The card id to post test transaction to

Query parameters

auditUserstring required

The audit user to log the request

Request body

settlementAmountnumber required

Settlement amount

sicCodestring required

Standard Industrial Classification code (4 digit), any number works for testing.

examples: 5542 = Automated Fuel Dispenser, 5411 = Grocery Stores,supermarkets, 5969 = Direct Marketing-Other Dire, 5734 = Computer Software Stores, 5499 = Miscellaneous Food Stores 5812 = Eating Places,Restaurants 5541 = Service Stations 5814 = Fast Food Res. 5999 = Miscellaneous & specialty 7995 = Casino 7273 = Dating Services

transactionAmountnumber required

Transaction amount

transactionCurrencystring required

A valid ISO 4217 currency code

transactionDatestring date-time

The local date (and time) when the transaction was made, i.e. the date/time in the time zone of the payment terminal/merchant. Date-time format YYYY-MM-DDThh:mm:ss. Please note that the authorisation and clearing formats used by card schemes do not support conveying the time zone in which the transaction was made and may only include the date with no specific time. Enfuce relays the date and time as received from the card schemes. If not passed it's defaulted to current date-time.

transactionCountrystring required

A valid ISO 3166-1 alpha-3 country code, except for QZZ (UNMIK in Kosovo) and ROM for Romania.

transactionType'RETAIL' | 'CASH' | 'ATM' | 'CREDIT' | 'UNIQUE' | 'CHPAYMENT' | 'CHDEBIT' required
transactionCitystring required

Transaction city

transactionDetailsstring required

Merchant name

merchantIdstring

Merchant Id

authCodestring

Auth code

sourceNumberstring

Source number

retRefCodestring

Ret ref code

Example request

{
  "settlementAmount": 3.14,
  "transactionAmount": 3.14,
  "transactionCurrency": "EUR",
  "transactionDate": "2019-01-28T00:00:00",
  "transactionCountry": "FIN"
}

Response

Successful creation of the product

descriptionstring

Short description of the result of the action

idstring

Will contain the ID of the resource that has been created or updated