POST
/
test-api
/
card
/
{cardId}
curl --request POST \
  --url https://integration-api-cat2./%7B{environment}%7D.ext.%7B{realm}%7D.cia.enfuce.com/transaction/test-api/card/{cardId} \
  --header 'Content-Type: application/json' \
  --data '{
  "settlementAmount": 3.14,
  "sicCode": "<string>",
  "transactionAmount": 3.14,
  "transactionCurrency": "EUR",
  "transactionDate": "2019-01-28T00:00:00",
  "transactionCountry": "FIN",
  "transactionType": "RETAIL",
  "transactionCity": "<string>",
  "transactionDetails": "<string>",
  "merchantId": "<string>",
  "authCode": "<string>",
  "sourceNumber": 9999999,
  "retRefCode": 9999999
}'
{
  "description": "<string>",
  "id": "<string>"
}

Path Parameters

cardId
string
required

The card id to post test transaction to

Query Parameters

auditUser
string
required

The audit user to log the request

Body

application/json
Test transaction payload
settlementAmount
number
required

Settlement amount

sicCode
string
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

transactionAmount
number
required

Transaction amount

transactionCurrency
string
required

A valid ISO 4217 currency code

transactionCountry
string
required

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

transactionType
enum<string>
required
Available options:
RETAIL,
CASH,
ATM,
CREDIT,
UNIQUE,
CHPAYMENT,
CHDEBIT
transactionCity
string
required

Transaction city

Maximum length: 32
transactionDetails
string
required

Merchant name

Maximum length: 255
transactionDate
string

Transaction date in YYYY-MM-DDThh:mm:ss format. If not passed it's defaulted to current date-time.

merchantId
string

Merchant Id

Maximum length: 32
authCode
string

Auth code

Maximum length: 32
sourceNumber
string
default:
9999999

Source number

Maximum length: 32
retRefCode
string
default:
9999999

Ret ref code

Maximum length: 12

Response

201
application/json
Successful creation of the product
description
string

Short description of the result of the action

id
string

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