POST
/
v1
/
c2c

Query Parameters

auditUser
string
required

The audit user to log the request

Body

application/json
fromCardId
string
required

Id of card from which balance will be debited

toCardId
string
required

Id of card from which balance will be credited

amount
number
required

Transfer amount. It is possible to post only amount which is equal or more than minimal currency unit (For example, for EUR, SEK, NOK minimal unit is 0,01)

currency
string
required

Currency of the amount in ISO 4217 (Alpha code) format. Currency has to be the same as card currency. Balance transfer can only be done between cards that are in the same currency, i.e. currency conversion is not supported.

text
string

Free form text. Text is available in Transaction API as well as Data export transaction files.

Response

201 - application/json
id
string

Enfuce generated id for transfer. Id is recorded to the add_info fields in the crediting and debiting transactions as reference (available in Data export transaction files).

creditTransaction
object
debitTransaction
object
reversalTransaction
object
status
enum<string>
required

Final transfer status. COMPLETED - succsessfully completed transfer, debitTransaction and creditTransaction info will be returned. DEBIT_FAILED - failed to do debit transaction, aborting transfer. Failed debit transaction id will be returned. FAILED_BUT_REVERSED - failed to transfer money, but reversed debit transaction. Debit, credit and reversal info will be returned. FAILED_BUT_NOT_REVERSED - unexpected error. Debit part done, crediting - failed, and failed to reverse debit. Manual interaction is required to fix.

Available options:
COMPLETED,
FAILED_BUT_REVERSED,
DEBIT_FAILED,
FAILED_BUT_NOT_REVERSED