# Your APIs for us - External Balance

### External Balance 

<div bis_size="{"x":150,"y":95,"w":840,"h":89,"abs_x":500,"abs_y":308}" id="bkmrk-external-balance-api">External Balance API is used, when client wishes to keep end users’ balances on their side. Thanks to this API, a client who maintains his clients accounts or has his own business logic affecting transaction authorizations has the opportunity to expand his offer with various payment instruments offered by Verestro, including payment cards, bank transfers, transfers to a phone number and others. Workflow is reversed when using External Balance API - Antaca is sending request to server on client’s side.</div><div bis_size="{"x":150,"y":185,"w":840,"h":22,"abs_x":500,"abs_y":398}" id="bkmrk--9">  
</div>#### Features

<div bis_size="{"x":150,"y":268,"w":840,"h":22,"abs_x":500,"abs_y":481}" id="bkmrk-%E2%80%A2-linking-customer-b">• linking (connecting) balance with customer in Antaca,</div><div bis_size="{"x":150,"y":290,"w":840,"h":22,"abs_x":500,"abs_y":503}" id="bkmrk-%E2%80%A2-getting-list-of-ba">• getting list of balances,</div><div bis_size="{"x":150,"y":312,"w":840,"h":22,"abs_x":500,"abs_y":525}" id="bkmrk-%E2%80%A2-deleting-balance-l">• deleting balance link (connection),</div><div bis_size="{"x":150,"y":335,"w":840,"h":22,"abs_x":500,"abs_y":548}" id="bkmrk-%E2%80%A2-handling-transacti">• handling transactions,</div><div bis_size="{"x":150,"y":357,"w":840,"h":22,"abs_x":500,"abs_y":570}" id="bkmrk-%E2%80%A2-updating-transacti">• updating transaction status.</div><div bis_size="{"x":150,"y":380,"w":840,"h":22,"abs_x":500,"abs_y":593}" id="bkmrk--10">  
</div>#### Purpose and scope

<div bis_size="{"x":150,"y":462,"w":840,"h":22,"abs_x":500,"abs_y":675}" id="bkmrk-this-guide-provides-">This guide provides an instruction and case study for using Extrnal Balance API. Document covers following topics:</div><div bis_size="{"x":150,"y":485,"w":840,"h":22,"abs_x":500,"abs_y":698}" id="bkmrk-%E2%80%A2-how-to-use-externa">• how to use External Balance API,</div><div bis_size="{"x":150,"y":507,"w":840,"h":22,"abs_x":500,"abs_y":720}" id="bkmrk-%E2%80%A2-transaction-flow%2C">• transaction flow,</div><div bis_size="{"x":150,"y":530,"w":840,"h":22,"abs_x":500,"abs_y":743}" id="bkmrk-%E2%80%A2-how-clearings-are-">• how clearings are handled,</div><div bis_size="{"x":150,"y":552,"w":840,"h":22,"abs_x":500,"abs_y":765}" id="bkmrk-%E2%80%A2-use-cases-study.">• use cases study.</div>#### Terminology

<div bis_size="{"x":150,"y":635,"w":840,"h":22,"abs_x":500,"abs_y":848}" id="bkmrk-user---end-user-trig">User - The end user for whom a balance is maintained along with the associated payment instruments.</div><div bis_size="{"x":150,"y":657,"w":840,"h":22,"abs_x":500,"abs_y":870}" id="bkmrk-server---api-exposed">Server - API exposed by Antaca’s client.</div><div bis_size="{"x":150,"y":680,"w":840,"h":22,"abs_x":500,"abs_y":893}" id="bkmrk-client---company-usi">Client - company using Antaca services.</div><div bis_size="{"x":150,"y":702,"w":840,"h":0,"abs_x":500,"abs_y":915}" id="bkmrk-"></div><p class="callout info">To use external balance you must have Banking License or Payment Institution License. Additionally if you don't directly own BIN range, total sum of transactions of your users will be limited by deposit called "Master Balance".  
</p>

### Security

To set secured server-server connection between our services Verestro requires a similar connection as in the case of client to Verestro communication based on the x509 certificate.  
In the first step, Verestro will send to the client a CSR for the dev and production environments.  
The next step is for the client to sign the CSR and send the certificate back to Verestro along with the base URL for the methods listed below. Verestro will authorize itself with each request with a certificate, which should be checked on the client side.

### Idempotency Key

With some requests additional header X-Idempotency-Key could be send. This header contain unique random id allowing to identify single request.  
If client send this header, operation should be triggered only once and for any further request with this key, response should be identical - in most cases, returned from cache.

**example headers:**

```
X-Idempotency-Key: 20e87975-dbfb-4c95-b239-169516c0b707
```

#### External Balance API

Below you will find a list of endpoints that you should implement on your server side. Please pay special attention to the appropriate security of our connection, the syntax of requests that you can expect from the Verestro side, idempotency and the exact way in which you should respond to each request.

##### Process of linking balances

<div bis_size="{"x":150,"y":1456,"w":840,"h":89,"abs_x":500,"abs_y":1669}" id="bkmrk-after-establishing-s">After establishing secure connection, the client should create balance aliases for their users on the Antaca side. For identifiers created in this way, Antaca will be able to generate payment cards and process transactions. When the client creates a user on the Verestro side with confirmed KYC status and then orders the creation of a balance for him, this API will forward the request to link the balance to the user. The linking process is presented in the diagram below.</div><div bis_size="{"x":150,"y":1545,"w":840,"h":0,"abs_x":500,"abs_y":1758}" id="bkmrk--1"></div><div bis_size="{"x":150,"y":1545,"w":840,"h":0,"abs_x":500,"abs_y":1758}" id="bkmrk--11"></div>@startuml  
skinparam ParticipantPadding 30  
skinparam BoxPadding 30  
skinparam noteFontColor #FFFFFF  
skinparam noteBackgroundColor #1C1E3F  
skinparam noteBorderColor #1C1E3F  
skinparam noteBorderThickness 1  
skinparam sequence {  
ArrowColor #1C1E3F  
ArrowFontColor #1C1E3F  
ActorBorderColor #1C1E3F  
ActorBackgroundColor #FFFFFF  
ActorFontStyle bold  
ParticipantBorderColor #1C1E3F  
ParticipantBackgroundColor #1C1E3F  
ParticipantFontColor #FFFFFF  
ParticipantFontStyle bold  
LifeLineBackgroundColor #1C1E3F  
LifeLineBorderColor #1C1E3F  
}  
participant "Client server" as cs  
participant Antaca as a  
participant Lifecycle as lc  
cs-&gt;lc: 1. create user by POST /wallet (firstName, lastName, phone, email)  
lc--&gt;cs: 2. userId  
alt With own KYC process  
cs-&gt;lc: 3. update KYC status by PUT /user (KYC)  
else With Verestro KYC process  
cs-&gt;a: 4. send KYC data by /register (user data with documents and selfie)  
a-&gt;a: 5. process KYC  
a-&gt;lc: 6. update KYC status  
end  
alt With automatic balance creation  
lc--&gt;a: 7. event about the new user with KYC  
a-&gt;a: 8. create a balance in the default currency  
a-&gt;cs: 10. link balance (userId, balanceId, currency)  
cs--&gt;a: 11. 204 (OK)  
else Every time with create a balance  
cs-&gt;a: 9. create balance by POST /balance (userId, currency)  
a-&gt;cs: 10. link balance (userId, balanceId, currency)  
cs--&gt;a: 11. 204 (OK)  
a--&gt;cs: 12. 201 balance created  
end

@enduml


<div bis_size="{"x":150,"y":2580,"w":840,"h":22,"abs_x":500,"abs_y":2793}" id="bkmrk-once-balances-are-li">Once balances are linked, Antaca can:</div>- send a GET requests to retrieve information about specific balance. Using user ID and/or balance ID, Antaca can obtain information about balance currency and money amount.
- send a GET requests to retrieve information about all user’s balances. Using only user ID Antaca can retrieve list of users balances.
- delete link between balances

<div bis_size="{"x":150,"y":2738,"w":840,"h":22,"abs_x":500,"abs_y":2951}" id="bkmrk-when-user%E2%80%99s-balance-">When user’s balance is equal to 0, it can be unlinked and deleted on Antaca side.</div>
<p class="callout info">**Remember to avoid billing problems** Deleting a balance is only possible when its status is 0. This also applies to situations in which a user with at least one balance is deleted.  
</p>

<div bis_size="{"x":150,"y":2886,"w":840,"h":0,"abs_x":500,"abs_y":3099}" id="bkmrk--12"></div><div bis_size="{"x":150,"y":2886,"w":840,"h":0,"abs_x":500,"abs_y":3099}" id="bkmrk--13"></div>##### Transaction processing 

<div bis_size="{"x":150,"y":2923,"w":840,"h":67,"abs_x":500,"abs_y":3136}" id="bkmrk-all-transaction-requ">When a balance is created and linked for a given user with verified KYC, from that moment the client-side API should be ready to accept transactions related to it. Depending on the payment instrument used, the data transferred in the transaction object may be different, but will always refer to a specific balance.</div><div bis_size="{"x":150,"y":2990,"w":840,"h":0,"abs_x":500,"abs_y":3203}" id="bkmrk--21"></div><p class="callout info">**Remember to avoid communication errors** Verestro servers attach an X-Idempotency-Key to each request in the header. This header contains a unique ID for each request to ensure idempotence. Each request with a unique identifier in this header should be processed only once on the client side and the response to it should be identical - in most cases, returned from cache</p>

<div bis_size="{"x":150,"y":3127,"w":840,"h":0,"abs_x":500,"abs_y":3340}" id="bkmrk--22"><div bis_size="{"x":150,"y":3127,"w":840,"h":0,"abs_x":500,"abs_y":3340}" id="bkmrk--67"></div><div bis_size="{"x":150,"y":3127,"w":840,"h":0,"abs_x":500,"abs_y":3340}" id="bkmrk--68"></div></div><div bis_size="{"x":150,"y":3127,"w":840,"h":0,"abs_x":500,"abs_y":3340}" id="bkmrk--23"></div>example:

```
curl POST "https://server-domain.com/transactions/debit"
--header "X-Idempotency-Key: 21aa0c2a-5554-4071-bd48-b9c64a0b6270"
```

<div bis_size="{"x":150,"y":3240,"w":840,"h":0,"abs_x":500,"abs_y":3453}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code" id="bkmrk--24"><div bis_size="{"x":150,"y":3240,"w":840,"h":0,"abs_x":500,"abs_y":3453}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":3240,"w":840,"h":0,"abs_x":500,"abs_y":3453}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--69"></div></div></div>##### Transaction object

<div bis_size="{"x":150,"y":3277,"w":840,"h":22,"abs_x":500,"abs_y":3490}" id="bkmrk-each-transaction-obj">Each transaction request contains following data:</div>```
{
    "id": "b4f534ef-77c2-4f16-ab4d-496806a76fb6",
    "balanceId": "b334b384-328c-11ed-a261-0242ac120002",
    "resourceId": "9d673932-3291-11ed-a261-0242ac120002",
    "resource": "card",
    "transactionId": "ab3d89e4-3291-11ed-a261-0242ac120002",
    "referenceTransactionId": "b759931c-3291-11ed-a261-0242ac120002",
    "type": "POS",
    "amount": 10000,
    "currency": "PLN",
    "originalAmount": 10000,
    "originalCurrency": "PLN",
    "status": "AUTHORIZED",
    "description": "transaction description",
    "date": "2020-08-17T18:43:42+00:00",
    "transactionData": {
        "mcc": "5942",
        "merchantIdentifier": "003060300000005",
        "merchantName": "Book store",
        "captureMode": "NFC",
        "lastFourDigits": "4560",
        "acquirerCountry": "POL",
        "mdesDigitizedWalletId": "Google Pay",
        "cashbackPosCurrencyCode": "PLN",
        "cashbackPosAmount": 10000,
        "lastFourDpan": "7890",
        "adjustmentReasonDescription": "REFUND",
        "retrievalReferenceNumber": "749248185012",
        "cardId": "6876783"
    }
}
```

<div bis_size="{"x":150,"y":3927,"w":840,"h":22,"abs_x":500,"abs_y":4140}" id="bkmrk-parameters%3A-2">**Parameters:**  
</div><div bis_size="{"x":150,"y":3954,"w":840,"h":949,"abs_x":500,"abs_y":4167}" id="bkmrk-parameter-required-d-2"><table class="wrapped confluenceTable" style="width: 100%; height: 934.602px;"><tbody><tr style="height: 29.7969px;"><th class="confluenceTh mceSelected" style="width: 26.6996%; height: 29.7969px;">Parameter</th><th class="confluenceTh mceSelected" style="width: 9.2707%; height: 29.7969px;">Required</th><th class="confluenceTh mceSelected" style="width: 33.3745%; height: 29.7969px;">Description</th><th class="confluenceTh mceSelected" style="width: 30.7787%; height: 29.7969px;">Allowed values</th></tr><tr style="height: 63.3906px;"><td style="width: 26.6996%; height: 63.3906px;">id

</td><td style="width: 9.2707%; height: 63.3906px;">TRUE</td><td style="width: 33.3745%; height: 63.3906px;">Unique identifier of the transaction in UUID format  
</td><td style="width: 30.7787%; height: 63.3906px;">any value in UUID v4 format, eg. ddb55ff9-11ca-4621-9129-81f939e66011  
</td></tr><tr style="height: 48.9141px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 48.9141px;">balanceId

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 48.9141px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 48.9141px;">Unique user balance identifier</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 48.9141px;">any string value (recommended uuid v4)</td></tr><tr style="height: 46.5938px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 46.5938px;">resourceId</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 46.5938px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 46.5938px;">Unique resource identifier</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 46.5938px;">any string value (recommended uuid v4)</td></tr><tr style="height: 35.0625px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 35.0625px;">resource

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 35.0625px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 35.0625px;">Name of a resource.</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 35.0625px;">balance, card</td></tr><tr style="height: 169.438px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 169.438px;">transactionId

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 169.438px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 169.438px;">Transaction identifier obtained from card network or generated on client side using the method to generate transaction in Antaca.

**IMPORTANT: this id may not be unique - it is generated by different systems**

</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 169.438px;">any string value </td></tr><tr style="height: 48.9141px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 48.9141px;">referenceTransactionId

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 48.9141px;">FALSE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 48.9141px;">Id of previous transaction to with current request relates</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 48.9141px;">any string value (recommended uuid v4)</td></tr><tr style="height: 96.9844px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 96.9844px;">type

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 96.9844px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 96.9844px;">Type of transaction</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 96.9844px;">cashback, loan, payment, topup, commission, fee, funding, interest, withdrawal, pos, atm, cashback\_at\_pos, adjustment</td></tr><tr style="height: 48.9141px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 48.9141px;">amount

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 48.9141px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 48.9141px;">Transaction value in gross (minor value)

For example: 12.34 EUR will be sent as 1234

</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 48.9141px;">integer value</td></tr><tr style="height: 35.0625px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 35.0625px;">currency

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 35.0625px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 35.0625px;">Currency 3-letters code in ISO 4217</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 35.0625px;">ISO 4217 3-letter code</td></tr><tr style="height: 80.1875px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 80.1875px;">originalAmount

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 80.1875px;">FALSE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 80.1875px;">Original transaction value in gross (minor value)

For example: 12.34 EUR will be sent as 1234

</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 80.1875px;">integer value</td></tr><tr style="height: 48.9141px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 48.9141px;">originalCurrency

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 48.9141px;">FALSE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 48.9141px;">Original currency 3-letters code in ISO 4217</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 48.9141px;">ISO 4217 3-letter code</td></tr><tr style="height: 48.9141px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 48.9141px;">status

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 48.9141px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 48.9141px;">Transaction status</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 48.9141px;">AUTHORIZED, CLEARED, REVERSED</td></tr><tr style="height: 35.0625px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 35.0625px;">description

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 35.0625px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 35.0625px;">Transaction description</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 35.0625px;">any string value</td></tr><tr style="height: 35.0625px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 35.0625px;">date

</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 35.0625px;">TRUE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 35.0625px;">Date of transaction in UTC</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 35.0625px;">date in UTC</td></tr><tr style="height: 63.3906px;"><td class="confluenceTd mceSelected" style="width: 26.6996%; height: 63.3906px;">transactionData</td><td class="confluenceTd mceSelected" style="width: 9.2707%; height: 63.3906px;">FALSE</td><td class="confluenceTd mceSelected" style="width: 33.3745%; height: 63.3906px;">Additional transaction data. This object presents detailed data depending on the transaction type</td><td class="confluenceTd mceSelected" style="width: 30.7787%; height: 63.3906px;">This object is described below</td></tr></tbody></table>

</div><div bis_size="{"x":150,"y":4923,"w":840,"h":22,"abs_x":500,"abs_y":5136}" id="bkmrk--25">**TransactionData data object:**</div><div bis_size="{"x":150,"y":4949,"w":840,"h":680,"abs_x":500,"abs_y":5162}" id="bkmrk-parameter-required-d-3"><table class="wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders" role="grid" style="width: 100%; height: 710.11px;"><colgroup><col style="width: 25.3874%;"></col><col style="width: 11.7998%;"></col><col style="width: 23.7187%;"></col><col style="width: 38.975%;"></col></colgroup><thead class="tableFloatingHeaderOriginal"><tr class="tablesorter-headerRow" role="row" style="height: 29.7969px;"><th aria-disabled="false" aria-label="Parameter: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="0" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":158,"y":4956,"w":196,"h":16,"abs_x":508,"abs_y":5169}" class="tablesorter-header-inner">Name</div></th><th aria-disabled="false" aria-label="required: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="1" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":372,"y":4956,"w":82,"h":16,"abs_x":722,"abs_y":5169}" class="tablesorter-header-inner">Required</div></th><th aria-disabled="false" aria-label="description: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="2" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":471,"y":4956,"w":182,"h":16,"abs_x":821,"abs_y":5169}" class="tablesorter-header-inner">Description</div></th><th aria-disabled="false" aria-label="allowed values: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="3" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":670,"y":4956,"w":310,"h":16,"abs_x":1020,"abs_y":5169}" class="tablesorter-header-inner">Allowed values</div></th></tr></thead><tbody aria-live="polite" aria-relevant="all"><tr role="row" style="height: 74.5938px;"><td class="confluenceTd" style="height: 74.5938px;">mcc</td><td class="confluenceTd" style="height: 74.5938px;">FALSE</td><td class="confluenceTd" style="height: 74.5938px;">Merchant category code</td><td class="confluenceTd" style="height: 74.5938px;">any mcc value, eg. can be found here: [https://global.alipay.com/docs/ac/files/mcclist](https://global.alipay.com/docs/ac/files/mcclist)</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 46.5938px;">merchantIdentifier</td><td class="confluenceTd" style="height: 46.5938px;">FALSE</td><td class="confluenceTd" style="height: 46.5938px;">The merchant identifier for the transaction</td><td class="confluenceTd" style="height: 46.5938px;">  
</td></tr><tr role="row" style="height: 29.7969px;"><td class="confluenceTd" style="height: 29.7969px;">merchantName</td><td class="confluenceTd" style="height: 29.7969px;">FALSE</td><td class="confluenceTd" style="height: 29.7969px;">Name of merchant</td><td class="confluenceTd" style="height: 29.7969px;">  
</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 46.5938px;">captureMode</td><td class="confluenceTd" style="height: 46.5938px;">FALSE</td><td class="confluenceTd" style="height: 46.5938px;">Capture mode</td><td class="confluenceTd" style="height: 46.5938px;">magstripe, manual, emv, on behalf (EMV), nfc, ecommerce, adj</td></tr><tr role="row" style="height: 29.7969px;"><td class="confluenceTd" style="height: 29.7969px;">lastFourDigits</td><td class="confluenceTd" style="height: 29.7969px;">FALSE</td><td class="confluenceTd" style="height: 29.7969px;">Last 4 digits of card</td><td class="confluenceTd" style="height: 29.7969px;">  
</td></tr><tr role="row" style="height: 29.7969px;"><td class="confluenceTd" style="height: 29.7969px;">acquirerCountry</td><td class="confluenceTd" style="height: 29.7969px;">FALSE</td><td class="confluenceTd" style="height: 29.7969px;">Country of acquirer</td><td class="confluenceTd" style="height: 29.7969px;">alpha-3</td></tr><tr role="row" style="height: 63.3906px;"><td class="confluenceTd" style="height: 63.3906px;">mdesDigitizedWalletId</td><td class="confluenceTd" style="height: 63.3906px;">FALSE</td><td class="confluenceTd" style="height: 63.3906px;">The Wallet ID (Wallet Reference) used to digitize the card.</td><td class="confluenceTd" style="height: 63.3906px;">m4m, google pay, samsung pay, apple pay</td></tr><tr role="row" style="height: 63.3906px;"><td class="confluenceTd" style="height: 63.3906px;">cashbackPosCurrencyCode</td><td class="confluenceTd" style="height: 63.3906px;">FALSE</td><td class="confluenceTd" style="height: 63.3906px;">Represents the currency code of the cashback amount</td><td class="confluenceTd" style="height: 63.3906px;">ISO 4217 3-letter code</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 46.5938px;">cashbackPosAmount</td><td class="confluenceTd" style="height: 46.5938px;">FALSE</td><td class="confluenceTd" style="height: 46.5938px;">Displays the actual cashback amount</td><td class="confluenceTd" style="height: 46.5938px;">integer value in gross</td></tr><tr style="height: 63.3906px;"><td style="height: 63.3906px;">lastFourDpan</td><td style="height: 63.3906px;">FALSE</td><td style="height: 63.3906px;">Last 4 digits of Device Primary Account Number (tokenized PAN)</td><td style="height: 63.3906px;">  
</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">adjustmentReasonDescription</td><td style="height: 29.7969px;">FALSE  
</td><td style="height: 29.7969px;">Reason for adjustment  
</td><td style="height: 29.7969px;">eg. REFUND, MONEY\_SEND, CHARGEBACK  
</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">retrievalReferenceNumber</td><td style="height: 46.5938px;">FALSE</td><td style="height: 46.5938px;">12-digit number generated to record each transaction</td><td style="height: 46.5938px;">  
</td></tr><tr style="height: 80.1875px;"><td style="height: 80.1875px;">cardId</td><td style="height: 80.1875px;">FALSE</td><td style="height: 80.1875px;">The card identifier in string format. This value could be used to communicate with the Antaca services.</td><td style="height: 80.1875px;">any string value. Mostly it should be eg. "1234" but it can change in the future and become UUID format.  
</td></tr></tbody></table>

</div><div bis_size="{"x":150,"y":5649,"w":840,"h":0,"abs_x":500,"abs_y":5862}" id="bkmrk--26"></div><div bis_size="{"x":150,"y":5649,"w":840,"h":0,"abs_x":500,"abs_y":5862}" id="bkmrk--27"></div><div bis_size="{"x":150,"y":5649,"w":840,"h":0,"abs_x":500,"abs_y":5862}" id="bkmrk-external-balance-api-0"></div>##### Integration with External Balance

<div bis_size="{"x":150,"y":5686,"w":840,"h":67,"abs_x":500,"abs_y":5899}" id="bkmrk-by-using-external-ba">By using External Balance API, you take an active part in processes affecting settlements, therefore the API issued by you will be subject to approval before production starts. To make this process easier, we can share with you a Postman collection with test cases.</div><div bis_size="{"x":150,"y":5753,"w":840,"h":22,"abs_x":500,"abs_y":5966}" id="bkmrk--2"><div bis_size="{"x":150,"y":5753,"w":840,"h":22,"abs_x":500,"abs_y":5966}" class="euiDataGridRowCell__content euiDataGridRowCell__content--autoHeight eui-textBreakWord css-xst660-euiDataGridRowCell__content-autoHeight" data-datagrid-cellcontent="true"><div bis_size="{"x":150,"y":5753,"w":840,"h":22,"abs_x":500,"abs_y":5966}" class="euiFlexGroup css-xwlek8-euiFlexGroup-responsive-s-flexStart-flexStart-row"><div bis_size="{"x":150,"y":5753,"w":840,"h":22,"abs_x":500,"abs_y":5966}" class="euiFlexItem css-9sbomz-euiFlexItem-grow-1">  
</div></div></div></div><div bis_size="{"x":150,"y":5775,"w":840,"h":0,"abs_x":500,"abs_y":5988}" id="bkmrk--15"></div><div bis_size="{"x":150,"y":5775,"w":840,"h":0,"abs_x":500,"abs_y":5988}" id="bkmrk--16"></div>#### API External balance 

<p class="callout info">For the process to function correctly, the Client <span style="text-decoration: underline;">**must**</span> implement all endpoints detailed in this chapter.</p>

Below you will find a list of endpoints that you should implement on your server side. Please pay special attention to the appropriate security of our connection, the syntax of requests that you can expect from the Verestro side, idempotency and the exact way in which you should respond to each request. If you decide to implement external balance to be able to keep the balance on your side and authorize transactions, remember that the implementation of all the methods below is required to ensure the API works.

##### Link balance  


This method is used to link customer balance between client and server. Requested **balanceId** will be used for communication between client and Verestro side.

<p class="callout danger">If you create balance entity at your end you should create it after receiving this call. Do not create balance entity on your side as result of POST /secure/balances nor POST /secure/customers/{id}/balances, because link balance will be called before response to these methods.</p>

<div bis_size="{"x":150,"y":6244,"w":840,"h":0,"abs_x":500,"abs_y":6457}" id="bkmrk--17"><div bis_size="{"x":150,"y":6244,"w":840,"h":0,"abs_x":500,"abs_y":6457}"><div bis_size="{"x":150,"y":6244,"w":840,"h":0,"abs_x":500,"abs_y":6457}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":6244,"w":840,"h":0,"abs_x":500,"abs_y":6457}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":6244,"w":840,"h":0,"abs_x":500,"abs_y":6457}"><div bis_size="{"x":150,"y":6244,"w":840,"h":0,"abs_x":500,"abs_y":6457}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--70"></div></div></div></div></div></div>```
POST https://server-domain.com/users/:id/balances
```

**path parameters:**

id - user identifier

<table class="wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders" id="bkmrk-name-required-descri" role="grid" style="width: 100%; height: 710.11px;"><colgroup><col style="width: 25.3874%;"></col><col style="width: 11.7998%;"></col><col style="width: 23.7187%;"></col><col style="width: 38.975%;"></col></colgroup><thead class="tableFloatingHeaderOriginal"><tr class="tablesorter-headerRow" role="row" style="height: 29.7969px;"><th aria-disabled="false" aria-label="Parameter: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="0" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":158,"y":6386,"w":196,"h":16,"abs_x":508,"abs_y":6599}" class="tablesorter-header-inner">Name</div></th><th aria-disabled="false" aria-label="required: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="1" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":372,"y":6386,"w":82,"h":16,"abs_x":722,"abs_y":6599}" class="tablesorter-header-inner">Required</div></th><th aria-disabled="false" aria-label="description: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="2" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":471,"y":6386,"w":182,"h":16,"abs_x":821,"abs_y":6599}" class="tablesorter-header-inner">Description</div></th><th aria-disabled="false" aria-label="allowed values: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="3" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":670,"y":6386,"w":310,"h":16,"abs_x":1020,"abs_y":6599}" class="tablesorter-header-inner">Allowed values</div></th></tr></thead><tbody aria-live="polite" aria-relevant="all"><tr role="row" style="height: 74.5938px;"><td class="confluenceTd" style="height: 74.5938px;">balanceId</td><td class="confluenceTd" style="height: 74.5938px;">TRUE</td><td class="confluenceTd" style="height: 74.5938px;">Unique identifier of balance.

This ID will be used in communication between client and server.

</td><td class="confluenceTd" style="height: 74.5938px;">UUID v4</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 46.5938px;">currency</td><td class="confluenceTd" style="height: 46.5938px;">TRUE</td><td class="confluenceTd" style="height: 46.5938px;">Currency code</td><td class="confluenceTd" style="height: 46.5938px;">should be 3 letters code in ISO 4217 https://www.iban.com/currency-codes</td></tr></tbody></table>

**Headers:**

<div bis_size="{"x":150,"y":6597,"w":840,"h":0,"abs_x":500,"abs_y":6810}" id="bkmrk--18"><div bis_size="{"x":150,"y":6597,"w":840,"h":0,"abs_x":500,"abs_y":6810}"><div bis_size="{"x":150,"y":6597,"w":840,"h":0,"abs_x":500,"abs_y":6810}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":6597,"w":840,"h":0,"abs_x":500,"abs_y":6810}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":6597,"w":840,"h":0,"abs_x":500,"abs_y":6810}"><div bis_size="{"x":150,"y":6597,"w":840,"h":0,"abs_x":500,"abs_y":6810}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--71"></div></div></div></div></div></div>```
Content-Type: application/json
Accept: application/json
```

**request body:**

<div bis_size="{"x":150,"y":6711,"w":840,"h":0,"abs_x":500,"abs_y":6924}" id="bkmrk-%7B-%C2%A0%C2%A0%C2%A0%C2%A0%22balanceid%22%3A%222"><div bis_size="{"x":150,"y":6711,"w":840,"h":0,"abs_x":500,"abs_y":6924}"><div bis_size="{"x":150,"y":6711,"w":840,"h":0,"abs_x":500,"abs_y":6924}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":6711,"w":840,"h":0,"abs_x":500,"abs_y":6924}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":6711,"w":840,"h":0,"abs_x":500,"abs_y":6924}"><div bis_size="{"x":150,"y":6711,"w":840,"h":0,"abs_x":500,"abs_y":6924}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--72"></div></div></div></div></div></div>```
{
    "balanceId":"2e520dc2-329d-11ed-a261-0242ac120002",
    "currency": "PLN"
}
```

**parameters:**

<div bis_size="{"x":150,"y":6862,"w":840,"h":156,"abs_x":500,"abs_y":7075}" id="bkmrk-name-required-descri-1"><table class="wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders" role="grid" style="width: 100%; height: 710.11px;"><colgroup><col style="width: 25.3874%;"></col><col style="width: 11.7998%;"></col><col style="width: 23.7187%;"></col><col style="width: 38.975%;"></col></colgroup><thead class="tableFloatingHeaderOriginal"><tr class="tablesorter-headerRow" role="row" style="height: 29.7969px;"><th aria-disabled="false" aria-label="Parameter: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="0" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":158,"y":6869,"w":196,"h":16,"abs_x":508,"abs_y":7082}" class="tablesorter-header-inner">Name</div></th><th aria-disabled="false" aria-label="required: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="1" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":372,"y":6869,"w":82,"h":16,"abs_x":722,"abs_y":7082}" class="tablesorter-header-inner">Required</div></th><th aria-disabled="false" aria-label="description: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="2" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":471,"y":6869,"w":182,"h":16,"abs_x":821,"abs_y":7082}" class="tablesorter-header-inner">Description</div></th><th aria-disabled="false" aria-label="allowed values: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="3" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":670,"y":6869,"w":310,"h":16,"abs_x":1020,"abs_y":7082}" class="tablesorter-header-inner">Allowed values</div></th></tr></thead><tbody aria-live="polite" aria-relevant="all"><tr role="row" style="height: 74.5938px;"><td class="confluenceTd" style="height: 74.5938px;">balanceId</td><td class="confluenceTd" style="height: 74.5938px;">TRUE</td><td class="confluenceTd" style="height: 74.5938px;">Unique identifier of balance.

This ID will be used in communication between client and server.

</td><td class="confluenceTd" style="height: 74.5938px;">UUID v4</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 46.5938px;">currency</td><td class="confluenceTd" style="height: 46.5938px;">TRUE</td><td class="confluenceTd" style="height: 46.5938px;">Currency code</td><td class="confluenceTd" style="height: 46.5938px;">should be 3 letters code in ISO 4217 https://www.iban.com/currency-codes</td></tr></tbody></table>

</div><div bis_size="{"x":150,"y":7039,"w":840,"h":0,"abs_x":500,"abs_y":7252}" id="bkmrk--3"></div><div bis_size="{"x":150,"y":7039,"w":840,"h":0,"abs_x":500,"abs_y":7252}" id="bkmrk--4"></div><div bis_size="{"x":150,"y":7039,"w":840,"h":0,"abs_x":500,"abs_y":7252}" id="bkmrk--5"></div>
**response:**

```
204 NoContent
```

**error codes:** 404 - should be returned if no user has been matched by requested path parameter.

<div bis_size="{"x":150,"y":7197,"w":840,"h":0,"abs_x":500,"abs_y":7410}" id="bkmrk-code-404-%7B-%C2%A0%C2%A0%C2%A0%C2%A0%22titl"><div bis_size="{"x":150,"y":7197,"w":840,"h":0,"abs_x":500,"abs_y":7410}"><div bis_size="{"x":150,"y":7197,"w":840,"h":0,"abs_x":500,"abs_y":7410}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":7197,"w":840,"h":0,"abs_x":500,"abs_y":7410}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":7197,"w":840,"h":0,"abs_x":500,"abs_y":7410}"><div bis_size="{"x":150,"y":7197,"w":840,"h":0,"abs_x":500,"abs_y":7410}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--73"></div></div></div></div></div></div>```
Code 404
{
    "title": "USER_NOT_FOUND",
    "detail": "some specific details provided by server"
}
```

##### Get single user balance

Method used to obtain single user balance information.

<div bis_size="{"x":150,"y":7404,"w":840,"h":0,"abs_x":500,"abs_y":7617}" id="bkmrk--19"><div bis_size="{"x":150,"y":7404,"w":840,"h":0,"abs_x":500,"abs_y":7617}"><div bis_size="{"x":150,"y":7404,"w":840,"h":0,"abs_x":500,"abs_y":7617}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":7404,"w":840,"h":0,"abs_x":500,"abs_y":7617}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":7404,"w":840,"h":0,"abs_x":500,"abs_y":7617}"><div bis_size="{"x":150,"y":7404,"w":840,"h":0,"abs_x":500,"abs_y":7617}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--74"></div></div></div></div></div></div>```
GET https://server-domain.com/users/:id/balances/:balanceId
```

**path parameters:**

<table class="wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders" id="bkmrk-name-required-descri-2" role="grid" style="width: 100%; height: 710.11px;"><colgroup><col style="width: 25.3874%;"></col><col style="width: 11.7998%;"></col><col style="width: 23.7187%;"></col><col style="width: 38.975%;"></col></colgroup><thead class="tableFloatingHeaderOriginal"><tr class="tablesorter-headerRow" role="row" style="height: 29.7969px;"><th aria-disabled="false" aria-label="Parameter: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="0" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":158,"y":7505,"w":196,"h":16,"abs_x":508,"abs_y":7718}" class="tablesorter-header-inner">Name</div></th><th aria-disabled="false" aria-label="required: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="1" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":372,"y":7505,"w":82,"h":16,"abs_x":722,"abs_y":7718}" class="tablesorter-header-inner">Required</div></th><th aria-disabled="false" aria-label="description: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="2" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":471,"y":7505,"w":182,"h":16,"abs_x":821,"abs_y":7718}" class="tablesorter-header-inner">Description</div></th><th aria-disabled="false" aria-label="allowed values: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="3" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":670,"y":7505,"w":310,"h":16,"abs_x":1020,"abs_y":7718}" class="tablesorter-header-inner">Allowed values</div></th></tr></thead><tbody aria-live="polite" aria-relevant="all"><tr role="row" style="height: 74.5938px;"><td class="confluenceTd" style="height: 74.5938px;">id</td><td class="confluenceTd" style="height: 74.5938px;">TRUE</td><td class="confluenceTd" style="height: 74.5938px;">User identifier.

</td><td class="confluenceTd" style="height: 74.5938px;">Integer</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 46.5938px;">balanceId</td><td class="confluenceTd" style="height: 46.5938px;">TRUE</td><td class="confluenceTd" style="height: 46.5938px;">Unique identifier of balance.

This ID will be used in communication between client and server.

</td><td class="confluenceTd" style="height: 46.5938px;">UUID v4</td></tr></tbody></table>

```
id - user identifier
balanceId - unique balance identifier
```

**headers:**

```
Accept: application/json
```

**response:**

<div bis_size="{"x":150,"y":7910,"w":840,"h":0,"abs_x":500,"abs_y":8123}" id="bkmrk-200-ok-%7B-%C2%A0%C2%A0%C2%A0%C2%A0%22curren"><div bis_size="{"x":150,"y":7910,"w":840,"h":0,"abs_x":500,"abs_y":8123}"><div bis_size="{"x":150,"y":7910,"w":840,"h":0,"abs_x":500,"abs_y":8123}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":7910,"w":840,"h":0,"abs_x":500,"abs_y":8123}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":7910,"w":840,"h":0,"abs_x":500,"abs_y":8123}"><div bis_size="{"x":150,"y":7910,"w":840,"h":0,"abs_x":500,"abs_y":8123}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--75"></div></div></div></div></div></div>```
200 OK
{
    "currency": "PLN",
    "amount": 250
}
```

**response parameters:**

<table class="wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders" id="bkmrk-name-required-descri-3" role="grid" style="width: 100%; height: 156.352px;"><colgroup><col style="width: 25.3874%;"></col><col style="width: 11.7998%;"></col><col style="width: 23.7187%;"></col><col style="width: 38.975%;"></col></colgroup><thead class="tableFloatingHeaderOriginal"><tr class="tablesorter-headerRow" role="row" style="height: 29.7891px;"><th aria-disabled="false" aria-label="Parameter: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="0" role="columnheader" scope="col" style="height: 29.7891px;" tabindex="0"><div bis_size="{"x":158,"y":8088,"w":196,"h":16,"abs_x":508,"abs_y":8301}" class="tablesorter-header-inner">Name</div></th><th aria-disabled="false" aria-label="required: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="1" role="columnheader" scope="col" style="height: 29.7891px;" tabindex="0"><div bis_size="{"x":372,"y":8088,"w":82,"h":16,"abs_x":722,"abs_y":8301}" class="tablesorter-header-inner">Required</div></th><th aria-disabled="false" aria-label="description: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="2" role="columnheader" scope="col" style="height: 29.7891px;" tabindex="0"><div bis_size="{"x":471,"y":8088,"w":182,"h":16,"abs_x":821,"abs_y":8301}" class="tablesorter-header-inner">Description</div></th><th aria-disabled="false" aria-label="allowed values: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="3" role="columnheader" scope="col" style="height: 29.7891px;" tabindex="0"><div bis_size="{"x":670,"y":8088,"w":310,"h":16,"abs_x":1020,"abs_y":8301}" class="tablesorter-header-inner">Allowed values</div></th></tr></thead><tbody aria-live="polite" aria-relevant="all"><tr role="row" style="height: 79.9688px;"><td class="confluenceTd" style="height: 79.9688px;">amount</td><td class="confluenceTd" style="height: 79.9688px;">TRUE</td><td class="confluenceTd" style="height: 79.9688px;">Actual balance amount in minor (penny)

</td><td class="confluenceTd" style="height: 79.9688px;">integer value. For example: 12.34 EUR will be sent as 1234</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 46.5938px;">currency</td><td class="confluenceTd" style="height: 46.5938px;">TRUE</td><td class="confluenceTd" style="height: 46.5938px;">Currency code</td><td class="confluenceTd" style="height: 46.5938px;">should be 3 letters code in ISO 4217 https://www.iban.com/currency-codes</td></tr></tbody></table>

```
currency  - three letter iso 4217 code
amount - actual balance amount in minor (penny), integer value. For example: 12.34 EUR will be sent as 1234
```

**error codes:** 404 - should be returned if no balance found by requested balanceId.

<div bis_size="{"x":150,"y":8393,"w":840,"h":0,"abs_x":500,"abs_y":8606}" id="bkmrk--20"><div bis_size="{"x":150,"y":8393,"w":840,"h":0,"abs_x":500,"abs_y":8606}"><div bis_size="{"x":150,"y":8393,"w":840,"h":0,"abs_x":500,"abs_y":8606}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":8393,"w":840,"h":0,"abs_x":500,"abs_y":8606}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":8393,"w":840,"h":0,"abs_x":500,"abs_y":8606}"><div bis_size="{"x":150,"y":8393,"w":840,"h":0,"abs_x":500,"abs_y":8606}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk-code-404-%7B-%C2%A0%C2%A0%C2%A0%C2%A0%22titl-3"></div></div></div></div></div></div>```
Code 404
{
    "title": "BALANCE_NOT_FOUND",
    "detail": "some specific details provided by server"
}
```

403 - if requested balance does not belong to user.

<div bis_size="{"x":150,"y":8564,"w":840,"h":0,"abs_x":500,"abs_y":8777}" id="bkmrk-code-403-%7B-%C2%A0%C2%A0%C2%A0%C2%A0%22titl"><div bis_size="{"x":150,"y":8564,"w":840,"h":0,"abs_x":500,"abs_y":8777}"><div bis_size="{"x":150,"y":8564,"w":840,"h":0,"abs_x":500,"abs_y":8777}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":8564,"w":840,"h":0,"abs_x":500,"abs_y":8777}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":8564,"w":840,"h":0,"abs_x":500,"abs_y":8777}"><div bis_size="{"x":150,"y":8564,"w":840,"h":0,"abs_x":500,"abs_y":8777}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--76"></div></div></div></div></div></div>```
Code 403
{
    "title": "FORBIDDEN",
    "detail": "some specific details provided by server"
}
```

##### Get balance collection

This method should return collection of customer balances.

<div bis_size="{"x":150,"y":8771,"w":840,"h":0,"abs_x":500,"abs_y":8984}" id="bkmrk--28"><div bis_size="{"x":150,"y":8771,"w":840,"h":0,"abs_x":500,"abs_y":8984}"><div bis_size="{"x":150,"y":8771,"w":840,"h":0,"abs_x":500,"abs_y":8984}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":8771,"w":840,"h":0,"abs_x":500,"abs_y":8984}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":8771,"w":840,"h":0,"abs_x":500,"abs_y":8984}"><div bis_size="{"x":150,"y":8771,"w":840,"h":0,"abs_x":500,"abs_y":8984}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk-get-https%3A%2F%2Fserver-d-2"></div></div></div></div></div></div>```
GET https://server-domain.com/users/:id/balances
```

**path parameters:**

<table class="wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders" id="bkmrk-name-required-descri-4" role="grid" style="width: 100%; height: 710.11px;"><colgroup><col style="width: 25.3874%;"></col><col style="width: 11.7998%;"></col><col style="width: 23.7187%;"></col><col style="width: 38.975%;"></col></colgroup><thead class="tableFloatingHeaderOriginal"><tr class="tablesorter-headerRow" role="row" style="height: 29.7969px;"><th aria-disabled="false" aria-label="Parameter: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="0" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":158,"y":8872,"w":196,"h":16,"abs_x":508,"abs_y":9085}" class="tablesorter-header-inner">Name</div></th><th aria-disabled="false" aria-label="required: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="1" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":372,"y":8872,"w":82,"h":16,"abs_x":722,"abs_y":9085}" class="tablesorter-header-inner">Required</div></th><th aria-disabled="false" aria-label="description: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="2" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":471,"y":8872,"w":182,"h":16,"abs_x":821,"abs_y":9085}" class="tablesorter-header-inner">Description</div></th><th aria-disabled="false" aria-label="allowed values: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="3" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":670,"y":8872,"w":310,"h":16,"abs_x":1020,"abs_y":9085}" class="tablesorter-header-inner">Allowed values</div></th></tr></thead><tbody aria-live="polite" aria-relevant="all"><tr role="row" style="height: 74.5938px;"><td class="confluenceTd" style="height: 74.5938px;">id</td><td class="confluenceTd" style="height: 74.5938px;">TRUE</td><td class="confluenceTd" style="height: 74.5938px;">User identifier

</td><td class="confluenceTd" style="height: 74.5938px;">Integer</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 46.5938px;">balanceId</td><td class="confluenceTd" style="height: 46.5938px;">TRUE</td><td class="confluenceTd" style="height: 46.5938px;">Unique identifier of balance.

This ID will be used in communication between client and server.

</td><td class="confluenceTd" style="height: 46.5938px;">UUID v4</td></tr></tbody></table>

```
id - user identifier
```

**headers:**

```
Accept: application/json
```

**response:**

<div bis_size="{"x":150,"y":9258,"w":840,"h":0,"abs_x":500,"abs_y":9471}" id="bkmrk-200-ok-%5B-%C2%A0%C2%A0%C2%A0%C2%A0%7B-%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0"><div bis_size="{"x":150,"y":9258,"w":840,"h":0,"abs_x":500,"abs_y":9471}"><div bis_size="{"x":150,"y":9258,"w":840,"h":0,"abs_x":500,"abs_y":9471}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":9258,"w":840,"h":0,"abs_x":500,"abs_y":9471}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":9258,"w":840,"h":0,"abs_x":500,"abs_y":9471}"><div bis_size="{"x":150,"y":9258,"w":840,"h":0,"abs_x":500,"abs_y":9471}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--77"></div></div></div></div></div></div>```
200 OK
[
    {
        "id": "a072bd0e-328c-11ed-a261-0242ac120001",
        "currency": "PLN",
        "amount": 250
    },
    {
        "id": "b334a5e2-328c-11ed-a261-0242ac120002",
        "currency": "USD",
        "amount": 460
    }
]
```

If user has not created any balance yet, there should be returned empty collection.

<div bis_size="{"x":150,"y":9583,"w":840,"h":0,"abs_x":500,"abs_y":9796}" id="bkmrk-200-ok-%5B%5D"><div bis_size="{"x":150,"y":9583,"w":840,"h":0,"abs_x":500,"abs_y":9796}"><div bis_size="{"x":150,"y":9583,"w":840,"h":0,"abs_x":500,"abs_y":9796}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":9583,"w":840,"h":0,"abs_x":500,"abs_y":9796}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":9583,"w":840,"h":0,"abs_x":500,"abs_y":9796}"><div bis_size="{"x":150,"y":9583,"w":840,"h":0,"abs_x":500,"abs_y":9796}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--78"></div></div></div></div></div></div>```
200 OK
[]
```

**response parameters:**

<table class="wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders" id="bkmrk-name-required-descri-5" role="grid" style="width: 100%; height: 186.375px;"><colgroup><col style="width: 25.3874%;"></col><col style="width: 11.7998%;"></col><col style="width: 23.7187%;"></col><col style="width: 38.975%;"></col></colgroup><thead class="tableFloatingHeaderOriginal"><tr class="tablesorter-headerRow" role="row" style="height: 29.7969px;"><th aria-disabled="false" aria-label="Parameter: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="0" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":158,"y":9703,"w":196,"h":16,"abs_x":508,"abs_y":9916}" class="tablesorter-header-inner">Name</div></th><th aria-disabled="false" aria-label="required: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="1" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":372,"y":9703,"w":82,"h":16,"abs_x":722,"abs_y":9916}" class="tablesorter-header-inner">Required</div></th><th aria-disabled="false" aria-label="description: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="2" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":471,"y":9703,"w":182,"h":16,"abs_x":821,"abs_y":9916}" class="tablesorter-header-inner">Description</div></th><th aria-disabled="false" aria-label="allowed values: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="3" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":670,"y":9703,"w":310,"h":16,"abs_x":1020,"abs_y":9916}" class="tablesorter-header-inner">Allowed values</div></th></tr></thead><tbody aria-live="polite" aria-relevant="all"><tr role="row" style="height: 80.1875px;"><td class="confluenceTd" style="height: 80.1875px;">id</td><td class="confluenceTd" style="height: 80.1875px;">TRUE</td><td class="confluenceTd" style="height: 80.1875px;">Unique identifier of balance.

This ID will be used in communication between client and server.

</td><td class="confluenceTd" style="height: 80.1875px;">UUID v4</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 74.5938px;">balanceId</td><td class="confluenceTd" style="height: 74.5938px;">TRUE</td><td class="confluenceTd" style="height: 74.5938px;">Unique identifier of balance.

This ID will be used in communication between client and server.

</td><td class="confluenceTd" style="height: 74.5938px;">UUID v4</td></tr><tr style="height: 29.7969px;"><td class="confluenceTd" style="height: 46.5938px;">currency</td><td class="confluenceTd" style="height: 46.5938px;">TRUE</td><td class="confluenceTd" style="height: 46.5938px;">Currency code</td><td class="confluenceTd" style="height: 46.5938px;">should be 3 letters code in ISO 4217 https://www.iban.com/currency-codes</td></tr></tbody></table>

```
id - unique identifier of user balance
currency  - three letter iso 4217 code
amount - actual balance amount in minor (penny), numeric value
```

##### Delete balance

This method is used to unattached balance from user. From legal point of view, balance should be deleted only if there is no money on it.

<div bis_size="{"x":150,"y":10144,"w":840,"h":0,"abs_x":500,"abs_y":10357}" id="bkmrk--29"><div bis_size="{"x":150,"y":10144,"w":840,"h":0,"abs_x":500,"abs_y":10357}"><div bis_size="{"x":150,"y":10144,"w":840,"h":0,"abs_x":500,"abs_y":10357}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":10144,"w":840,"h":0,"abs_x":500,"abs_y":10357}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":10144,"w":840,"h":0,"abs_x":500,"abs_y":10357}"><div bis_size="{"x":150,"y":10144,"w":840,"h":0,"abs_x":500,"abs_y":10357}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--79"></div></div></div></div></div></div>```
DELETE https://server-domain.com/users/:id/balances/:balanceId
```

**path parameters:**

<table class="wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders" id="bkmrk-name-required-descri-6" role="grid" style="width: 100%; height: 710.11px;"><colgroup><col style="width: 25.3874%;"></col><col style="width: 11.7998%;"></col><col style="width: 23.7187%;"></col><col style="width: 38.975%;"></col></colgroup><thead class="tableFloatingHeaderOriginal"><tr class="tablesorter-headerRow" role="row" style="height: 29.7969px;"><th aria-disabled="false" aria-label="Parameter: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="0" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":158,"y":10245,"w":196,"h":16,"abs_x":508,"abs_y":10458}" class="tablesorter-header-inner">Name</div></th><th aria-disabled="false" aria-label="required: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="1" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":372,"y":10245,"w":82,"h":16,"abs_x":722,"abs_y":10458}" class="tablesorter-header-inner">Required</div></th><th aria-disabled="false" aria-label="description: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="2" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":471,"y":10245,"w":182,"h":16,"abs_x":821,"abs_y":10458}" class="tablesorter-header-inner">Description</div></th><th aria-disabled="false" aria-label="allowed values: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="3" role="columnheader" scope="col" style="height: 29.7969px;" tabindex="0"><div bis_size="{"x":670,"y":10245,"w":310,"h":16,"abs_x":1020,"abs_y":10458}" class="tablesorter-header-inner">Allowed values</div></th></tr></thead><tbody aria-live="polite" aria-relevant="all"><tr role="row" style="height: 74.5938px;"><td class="confluenceTd" style="height: 74.5938px;">id  
</td><td class="confluenceTd" style="height: 74.5938px;">TRUE</td><td class="confluenceTd" style="height: 74.5938px;">User identifier

</td><td class="confluenceTd" style="height: 74.5938px;">Integer</td></tr><tr role="row" style="height: 46.5938px;"><td class="confluenceTd" style="height: 46.5938px;">balanceId</td><td class="confluenceTd" style="height: 46.5938px;">TRUE</td><td class="confluenceTd" style="height: 46.5938px;">Unique identifier of balance.

This ID will be used in communication between client and server.

</td><td class="confluenceTd" style="height: 46.5938px;">UUID v4</td></tr></tbody></table>

**response:**

```
204 No Content
```

**error responses:**

404 - if requested balance has not been found.

<div bis_size="{"x":150,"y":10620,"w":840,"h":0,"abs_x":500,"abs_y":10833}" id="bkmrk--30"><div bis_size="{"x":150,"y":10620,"w":840,"h":0,"abs_x":500,"abs_y":10833}"><div bis_size="{"x":150,"y":10620,"w":840,"h":0,"abs_x":500,"abs_y":10833}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":10620,"w":840,"h":0,"abs_x":500,"abs_y":10833}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":10620,"w":840,"h":0,"abs_x":500,"abs_y":10833}"><div bis_size="{"x":150,"y":10620,"w":840,"h":0,"abs_x":500,"abs_y":10833}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk-code-404-%7B-%C2%A0%C2%A0%C2%A0%C2%A0%22titl-4"></div></div></div></div></div></div>```
Code 404
{
    "title": "BALANCE_NOT_FOUND",
    "detail": "some specific details provided by server"
}
```

403 - if requested balance does not belong to user.

```
Code 403
{
    "title": "FORBIDDEN",
    "detail": "some specific details provided by server"
}
```

<div bis_size="{"x":150,"y":10920,"w":840,"h":0,"abs_x":500,"abs_y":11133}" id="bkmrk--31"><div bis_size="{"x":150,"y":10920,"w":840,"h":0,"abs_x":500,"abs_y":11133}"><div bis_size="{"x":150,"y":10920,"w":840,"h":0,"abs_x":500,"abs_y":11133}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":10920,"w":840,"h":0,"abs_x":500,"abs_y":11133}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":10920,"w":840,"h":0,"abs_x":500,"abs_y":11133}"><div bis_size="{"x":150,"y":10920,"w":840,"h":0,"abs_x":500,"abs_y":11133}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk-code-403-%7B-%C2%A0%C2%A0%C2%A0%C2%A0%22titl-2"></div></div></div></div></div></div><div bis_size="{"x":150,"y":10920,"w":840,"h":0,"abs_x":500,"abs_y":11133}" id="bkmrk--32"></div>##### Debit transaction

This kind of transaction is used to authorize transaction. In debit transactions Antaca asks 'if user has money?'.

```
POST https://server-domain.com/transactions/debit
```

**headers:**

<div bis_size="{"x":150,"y":11092,"w":840,"h":0,"abs_x":500,"abs_y":11305}" id="bkmrk--33"><div bis_size="{"x":150,"y":11092,"w":840,"h":0,"abs_x":500,"abs_y":11305}"><div bis_size="{"x":150,"y":11092,"w":840,"h":0,"abs_x":500,"abs_y":11305}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":11092,"w":840,"h":0,"abs_x":500,"abs_y":11305}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":11092,"w":840,"h":0,"abs_x":500,"abs_y":11305}"><div bis_size="{"x":150,"y":11092,"w":840,"h":0,"abs_x":500,"abs_y":11305}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--80"></div></div></div></div></div></div>```
Content-Type: application/json
X-Idempotency-Key: uuidV4
```

**request body:**

<div bis_size="{"x":150,"y":11205,"w":840,"h":0,"abs_x":500,"abs_y":11418}" id="bkmrk--34"><div bis_size="{"x":150,"y":11205,"w":840,"h":0,"abs_x":500,"abs_y":11418}"><div bis_size="{"x":150,"y":11205,"w":840,"h":0,"abs_x":500,"abs_y":11418}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":11205,"w":840,"h":0,"abs_x":500,"abs_y":11418}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":11205,"w":840,"h":0,"abs_x":500,"abs_y":11418}"><div bis_size="{"x":150,"y":11205,"w":840,"h":0,"abs_x":500,"abs_y":11418}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--81"></div></div></div></div></div></div>Description of the contents of the transaction object can be found above.

**success response:**

```
204 No Content
```

**error responses:**

```
422
{
    "title": "INSUFFICIENT_FUNDS",
    "detail": "some specific details provided by server"
}
```

```
422
{
    "title": "LIMITS_EXCEEDED",
    "detail": "some specific details provided by server"
}
```

```
422
{
    "title": "FRAUDS_DETECTED",
    "detail": "some specific details provided by server"
}
```

```
404
{
    "title": "BALANCE_NOT_FOUND",
    "detail": "some specific details provided by server"
}
```

```
409
{
    "title": "CLIENT_ERROR",
    "detail": "some specific details provided by server"
}
```

##### Force debit transaction

This kind of transaction is used to inform server side that transaction has occurred.  
For this request, actual transaction already happen so server can not reject this request. This behavior can occur for offline transactions fe: in plane, subway, for refunds and referring to previously authorized transactions.

<div bis_size="{"x":150,"y":12152,"w":840,"h":0,"abs_x":500,"abs_y":12365}" id="bkmrk--35"><div bis_size="{"x":150,"y":12152,"w":840,"h":0,"abs_x":500,"abs_y":12365}"><div bis_size="{"x":150,"y":12152,"w":840,"h":0,"abs_x":500,"abs_y":12365}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":12152,"w":840,"h":0,"abs_x":500,"abs_y":12365}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":12152,"w":840,"h":0,"abs_x":500,"abs_y":12365}"><div bis_size="{"x":150,"y":12152,"w":840,"h":0,"abs_x":500,"abs_y":12365}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--82"></div></div></div></div></div></div>```
POST https://server-domain.com/transactions/force-debit
```

**headers:**

```
Content-Type: application/json
X-Idempotency-Key: uuidV4
```

<div bis_size="{"x":150,"y":12318,"w":840,"h":0,"abs_x":500,"abs_y":12531}" id="bkmrk--36"><div bis_size="{"x":150,"y":12318,"w":840,"h":0,"abs_x":500,"abs_y":12531}"><div bis_size="{"x":150,"y":12318,"w":840,"h":0,"abs_x":500,"abs_y":12531}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":12318,"w":840,"h":0,"abs_x":500,"abs_y":12531}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":12318,"w":840,"h":0,"abs_x":500,"abs_y":12531}"><div bis_size="{"x":150,"y":12318,"w":840,"h":0,"abs_x":500,"abs_y":12531}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--83"></div></div></div></div></div></div>**request body:**

Description of the contents of the transaction object can be found above.

<div bis_size="{"x":150,"y":12402,"w":840,"h":0,"abs_x":500,"abs_y":12615}" id="bkmrk--37"><div bis_size="{"x":150,"y":12402,"w":840,"h":0,"abs_x":500,"abs_y":12615}"><div bis_size="{"x":150,"y":12402,"w":840,"h":0,"abs_x":500,"abs_y":12615}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":12402,"w":840,"h":0,"abs_x":500,"abs_y":12615}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":12402,"w":840,"h":0,"abs_x":500,"abs_y":12615}"><div bis_size="{"x":150,"y":12402,"w":840,"h":0,"abs_x":500,"abs_y":12615}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--84"></div></div></div></div></div></div>**response:**

```
204 No Content
```

<div bis_size="{"x":150,"y":12496,"w":840,"h":22,"abs_x":500,"abs_y":12709}" id="bkmrk--38"><div bis_size="{"x":150,"y":12496,"w":840,"h":22,"abs_x":500,"abs_y":12709}"><div bis_size="{"x":150,"y":12496,"w":840,"h":22,"abs_x":500,"abs_y":12709}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":12496,"w":840,"h":22,"abs_x":500,"abs_y":12709}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":12496,"w":840,"h":22,"abs_x":500,"abs_y":12709}">  
</div></div></div></div></div>**error response:**

As mention in description section, **we do not accept transaction rejection**.

##### Credit transaction

Method is used to credit user balance. In credit transactions Antaca asks 'can user get money?'.

<div bis_size="{"x":150,"y":12684,"w":840,"h":0,"abs_x":500,"abs_y":12897}" id="bkmrk--39"><div bis_size="{"x":150,"y":12684,"w":840,"h":0,"abs_x":500,"abs_y":12897}"><div bis_size="{"x":150,"y":12684,"w":840,"h":0,"abs_x":500,"abs_y":12897}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":12684,"w":840,"h":0,"abs_x":500,"abs_y":12897}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":12684,"w":840,"h":0,"abs_x":500,"abs_y":12897}"><div bis_size="{"x":150,"y":12684,"w":840,"h":0,"abs_x":500,"abs_y":12897}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--85"></div></div></div></div></div></div>```
POST https://server-domain.com/transactions/credit
```

**headers:**

```
Content-Type: application/json
X-Idempotency-Key: uuidV4
```

**request body:**

Description of the contents of the transaction object can be found above.

<div bis_size="{"x":150,"y":12933,"w":840,"h":22,"abs_x":500,"abs_y":13146}" id="bkmrk--40"><div bis_size="{"x":150,"y":12933,"w":840,"h":22,"abs_x":500,"abs_y":13146}"><div bis_size="{"x":150,"y":12933,"w":840,"h":22,"abs_x":500,"abs_y":13146}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":12933,"w":840,"h":22,"abs_x":500,"abs_y":13146}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":12933,"w":840,"h":22,"abs_x":500,"abs_y":13146}" class="syntaxhighlighter sh-confluence nogutter  php">  
</div></div></div></div></div>**success response:**

```
204 No Content
```

**error responses:**

```
404
{
    "title": "BALANCE_NOT_FOUND",
    "detail": "cannot find requested balance"
}
```

```
422
{
    "title": "FRAUDS_DETECTED",
    "detail": "some specific details provided by server"
}
```

<div bis_size="{"x":150,"y":13354,"w":840,"h":22,"abs_x":500,"abs_y":13567}" id="bkmrk--41"><div bis_size="{"x":150,"y":13354,"w":840,"h":22,"abs_x":500,"abs_y":13567}"><div bis_size="{"x":150,"y":13354,"w":840,"h":22,"abs_x":500,"abs_y":13567}"><div bis_size="{"x":150,"y":13354,"w":840,"h":22,"abs_x":500,"abs_y":13567}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":13354,"w":840,"h":22,"abs_x":500,"abs_y":13567}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":13354,"w":840,"h":22,"abs_x":500,"abs_y":13567}"><div bis_size="{"x":150,"y":13354,"w":840,"h":22,"abs_x":500,"abs_y":13567}" class="syntaxhighlighter sh-confluence nogutter  php">  
</div></div></div></div></div></div></div><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" id="bkmrk--42"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--86"></div></div></div></div></div></div><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" id="bkmrk--43"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--87"></div></div></div></div><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}"><div bis_size="{"x":150,"y":13376,"w":840,"h":0,"abs_x":500,"abs_y":13589}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--88"></div></div></div></div></div></div>##### Force credit

<div bis_size="{"x":150,"y":13428,"w":840,"h":0,"abs_x":500,"abs_y":13641}" id="bkmrk--44"><div bis_size="{"x":150,"y":13428,"w":840,"h":0,"abs_x":500,"abs_y":13641}"><div bis_size="{"x":150,"y":13428,"w":840,"h":0,"abs_x":500,"abs_y":13641}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":13428,"w":840,"h":0,"abs_x":500,"abs_y":13641}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":13428,"w":840,"h":0,"abs_x":500,"abs_y":13641}"><div bis_size="{"x":150,"y":13428,"w":840,"h":0,"abs_x":500,"abs_y":13641}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--89"></div></div></div></div></div></div>Method is used to credit user balance. This kind of transaction is used to inform server side that transaction has occurred. For this request, actual transaction already happen so server can not reject this request.

```
POST https://server-domain.com/transactions/force-credit
```

**headers:**

<div bis_size="{"x":150,"y":13587,"w":840,"h":0,"abs_x":500,"abs_y":13800}" id="bkmrk--45"><div bis_size="{"x":150,"y":13587,"w":840,"h":0,"abs_x":500,"abs_y":13800}"><div bis_size="{"x":150,"y":13587,"w":840,"h":0,"abs_x":500,"abs_y":13800}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":13587,"w":840,"h":0,"abs_x":500,"abs_y":13800}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":13587,"w":840,"h":0,"abs_x":500,"abs_y":13800}"><div bis_size="{"x":150,"y":13587,"w":840,"h":0,"abs_x":500,"abs_y":13800}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--90"></div></div></div></div></div></div>```
Content-Type: application/json
X-Idempotency-Key: uuidV4
```

**request body:**

Description of the contents of the transaction object can be found above.

<div bis_size="{"x":150,"y":13742,"w":840,"h":22,"abs_x":500,"abs_y":13955}" id="bkmrk--46"><div bis_size="{"x":150,"y":13742,"w":840,"h":22,"abs_x":500,"abs_y":13955}"><div bis_size="{"x":150,"y":13742,"w":840,"h":22,"abs_x":500,"abs_y":13955}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":13742,"w":840,"h":22,"abs_x":500,"abs_y":13955}" class="syntaxhighlighter sh-confluence nogutter  php">  
</div></div></div></div>**success response:**

```
204 No Content
```

<div bis_size="{"x":150,"y":13862,"w":840,"h":0,"abs_x":500,"abs_y":14075}" id="bkmrk--47"><div bis_size="{"x":150,"y":13862,"w":840,"h":0,"abs_x":500,"abs_y":14075}"><div bis_size="{"x":150,"y":13862,"w":840,"h":0,"abs_x":500,"abs_y":14075}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":13862,"w":840,"h":0,"abs_x":500,"abs_y":14075}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":13862,"w":840,"h":0,"abs_x":500,"abs_y":14075}"><div bis_size="{"x":150,"y":13862,"w":840,"h":0,"abs_x":500,"abs_y":14075}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--91"></div></div></div></div></div></div>**error response:**

As mention in description section, **we do not accept transaction rejection**.

##### Reversal

Method is used to revert any changes for previous transaction. Request body will be identical to transaction with client try to revert. If server cannot find referenced transaction then no action is required.

<div bis_size="{"x":150,"y":14046,"w":840,"h":0,"abs_x":500,"abs_y":14259}" id="bkmrk--48"><div bis_size="{"x":150,"y":14046,"w":840,"h":0,"abs_x":500,"abs_y":14259}"><div bis_size="{"x":150,"y":14046,"w":840,"h":0,"abs_x":500,"abs_y":14259}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":14046,"w":840,"h":0,"abs_x":500,"abs_y":14259}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":14046,"w":840,"h":0,"abs_x":500,"abs_y":14259}"><div bis_size="{"x":150,"y":14046,"w":840,"h":0,"abs_x":500,"abs_y":14259}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--92"></div></div></div></div></div></div>```
POST https://server-domain.com/transactions/reversal
```

**headers:**

```
Content-Type: application/json
X-Idempotency-Key: uuidV4
```

<div bis_size="{"x":150,"y":14212,"w":840,"h":0,"abs_x":500,"abs_y":14425}" id="bkmrk--49"><div bis_size="{"x":150,"y":14212,"w":840,"h":0,"abs_x":500,"abs_y":14425}"><div bis_size="{"x":150,"y":14212,"w":840,"h":0,"abs_x":500,"abs_y":14425}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":14212,"w":840,"h":0,"abs_x":500,"abs_y":14425}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":14212,"w":840,"h":0,"abs_x":500,"abs_y":14425}"><div bis_size="{"x":150,"y":14212,"w":840,"h":0,"abs_x":500,"abs_y":14425}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--93"></div></div></div></div></div></div>**request body:**

Description of the contents of the transaction object can be found above.

<div bis_size="{"x":150,"y":14295,"w":840,"h":0,"abs_x":500,"abs_y":14508}" id="bkmrk--50"><div bis_size="{"x":150,"y":14295,"w":840,"h":0,"abs_x":500,"abs_y":14508}"><div bis_size="{"x":150,"y":14295,"w":840,"h":0,"abs_x":500,"abs_y":14508}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":14295,"w":840,"h":0,"abs_x":500,"abs_y":14508}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":14295,"w":840,"h":0,"abs_x":500,"abs_y":14508}"><div bis_size="{"x":150,"y":14295,"w":840,"h":0,"abs_x":500,"abs_y":14508}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--94"></div></div></div></div></div></div>**success response:**

<div bis_size="{"x":150,"y":14337,"w":840,"h":0,"abs_x":500,"abs_y":14550}" id="bkmrk--51"><div bis_size="{"x":150,"y":14337,"w":840,"h":0,"abs_x":500,"abs_y":14550}"><div bis_size="{"x":150,"y":14337,"w":840,"h":0,"abs_x":500,"abs_y":14550}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":14337,"w":840,"h":0,"abs_x":500,"abs_y":14550}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":14337,"w":840,"h":0,"abs_x":500,"abs_y":14550}"><div bis_size="{"x":150,"y":14337,"w":840,"h":0,"abs_x":500,"abs_y":14550}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--95"></div></div></div></div></div></div>```
204 No Content
```

**error responses:**

IMPORTANT: for this method, we do not accept any error. Only<span class="Y2IQFc" lang="en"> satisfying behavior is to revert referenced transaction and no action if cannot find transaction.   
<span class="Y2IQFc" lang="en">Therefore, if a transaction is not found on the partner's side, we expect not an HTTP 404 ERROR but an HTTP 2xx SUCCESS in this case.</span>  
</span>

<span class="Y2IQFc" lang="en">It tells the Partner directly to reverse the transaction as if it never happened (it was rejected by Antaca, idle timeout, etc.). Usually, there will be no referenceTransactionId in it, but there are cases where there will be. Reversal does not refund the money. It only confirms that such a transaction did not take place. The money should be refunded by force-credit. </span>

##### <span class="Y2IQFc" lang="en">Update transaction status</span>

<span class="Y2IQFc" lang="en">From time to time, client will inform about clearings triggered by acquirer side. If client mark transaction as cleared it means that transaction will not be corrected by any other transaction request and requested amount is final.</span>

<p class="callout warning"><span class="Y2IQFc" lang="en">This endpoint is used to inform about the change of the transaction status to CLEARED - the movement of funds should not occur here.</span></p>

<div bis_size="{"x":150,"y":14770,"w":840,"h":0,"abs_x":500,"abs_y":14983}" id="bkmrk--52"><div bis_size="{"x":150,"y":14770,"w":840,"h":0,"abs_x":500,"abs_y":14983}"><div bis_size="{"x":150,"y":14770,"w":840,"h":0,"abs_x":500,"abs_y":14983}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":14770,"w":840,"h":0,"abs_x":500,"abs_y":14983}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":14770,"w":840,"h":0,"abs_x":500,"abs_y":14983}"><div bis_size="{"x":150,"y":14770,"w":840,"h":0,"abs_x":500,"abs_y":14983}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--96"></div></div></div></div></div></div>```
PUT https://server-domain.com/transactions/:transactionId
```

**path parameters:**

<table class="wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders" id="bkmrk-name-required-descri-7" role="grid" style="width: 100%; height: 279.574px;"><colgroup><col style="width: 25.3874%;"></col><col style="width: 11.7998%;"></col><col style="width: 23.7187%;"></col><col style="width: 38.975%;"></col></colgroup><thead class="tableFloatingHeaderOriginal"><tr class="tablesorter-headerRow" role="row" style="height: 29.7891px;"><th aria-disabled="false" aria-label="Parameter: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="0" role="columnheader" scope="col" style="height: 29.7891px;" tabindex="0"><div bis_size="{"x":158,"y":14871,"w":196,"h":16,"abs_x":508,"abs_y":15084}" class="tablesorter-header-inner">Name</div></th><th aria-disabled="false" aria-label="required: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="1" role="columnheader" scope="col" style="height: 29.7891px;" tabindex="0"><div bis_size="{"x":372,"y":14871,"w":82,"h":16,"abs_x":722,"abs_y":15084}" class="tablesorter-header-inner">Required</div></th><th aria-disabled="false" aria-label="description: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="2" role="columnheader" scope="col" style="height: 29.7891px;" tabindex="0"><div bis_size="{"x":471,"y":14871,"w":182,"h":16,"abs_x":821,"abs_y":15084}" class="tablesorter-header-inner">Description</div></th><th aria-disabled="false" aria-label="allowed values: No sort applied, activate to apply an ascending sort" aria-sort="none" class="confluenceTh tablesorter-header sortableHeader tablesorter-headerUnSorted" data-column="3" role="columnheader" scope="col" style="height: 29.7891px;" tabindex="0"><div bis_size="{"x":670,"y":14871,"w":310,"h":16,"abs_x":1020,"abs_y":15084}" class="tablesorter-header-inner">Allowed values</div></th></tr></thead><tbody aria-live="polite" aria-relevant="all"><tr role="row" style="height: 203.191px;"><td class="confluenceTd" style="height: 203.191px;">transactionId</td><td class="confluenceTd" style="height: 203.191px;">TRUE</td><td class="confluenceTd" style="height: 203.191px;">Transaction identifier obtained from card network or generated on client side using the method to generate transaction in Antaca.

**IMPORTANT: this id may not be unique - it is generated by different systems**

</td><td class="confluenceTd" style="height: 203.191px;">any string value </td></tr></tbody></table>

**request body:**

<div bis_size="{"x":150,"y":15159,"w":840,"h":0,"abs_x":500,"abs_y":15372}" id="bkmrk--53"><div bis_size="{"x":150,"y":15159,"w":840,"h":0,"abs_x":500,"abs_y":15372}"><div bis_size="{"x":150,"y":15159,"w":840,"h":0,"abs_x":500,"abs_y":15372}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":15159,"w":840,"h":0,"abs_x":500,"abs_y":15372}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":15159,"w":840,"h":0,"abs_x":500,"abs_y":15372}"><div bis_size="{"x":150,"y":15159,"w":840,"h":0,"abs_x":500,"abs_y":15372}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--97"></div></div></div></div></div></div><span class="Y2IQFc" lang="en">Description of the contents of the transaction object can be found above.</span>

<span class="Y2IQFc" lang="en">**success response:**</span>

```
204 No Content
```

<div bis_size="{"x":150,"y":15295,"w":840,"h":0,"abs_x":500,"abs_y":15508}" id="bkmrk--54"><div bis_size="{"x":150,"y":15295,"w":840,"h":0,"abs_x":500,"abs_y":15508}"><div bis_size="{"x":150,"y":15295,"w":840,"h":0,"abs_x":500,"abs_y":15508}" class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"><div bis_size="{"x":150,"y":15295,"w":840,"h":0,"abs_x":500,"abs_y":15508}" class="codeContent panelContent pdl"><div bis_size="{"x":150,"y":15295,"w":840,"h":0,"abs_x":500,"abs_y":15508}"><div bis_size="{"x":150,"y":15295,"w":840,"h":0,"abs_x":500,"abs_y":15508}" class="syntaxhighlighter sh-confluence nogutter  php" id="bkmrk--98"></div></div></div></div></div></div><span class="Y2IQFc" lang="en">**error responses:**</span>

```
404
{
    "title": "TRANSACTION_NOT_FOUND",
    "detail": "cannot find requested transaction"
}
```

#### Transaction Types Description

Debit transactions list:

<table id="bkmrk-type%C2%A0-description-po" style="width: 100%; height: 402.547px;"><tbody><tr style="height: 29.7969px;"><td style="width: 17.0396%; height: 29.7969px;">**Type**

</td><td style="width: 82.9604%; height: 29.7969px;">**Description**

</td></tr><tr style="height: 46.5938px;"><td style="width: 17.0396%; height: 46.5938px;">POS

</td><td style="width: 82.9604%; height: 46.5938px;">POS transaction (A point-of-sale) applies to the situation when a customer makes a purchase and the payment is processed through the POS system.

</td></tr><tr style="height: 29.7969px;"><td style="width: 17.0396%; height: 29.7969px;">ATM

</td><td style="width: 82.9604%; height: 29.7969px;">ATM Transaction is when the cardholder uses a physical card at an ATM to withdraw cash.

</td></tr><tr style="height: 29.7969px;"><td style="width: 17.0396%; height: 29.7969px;">Balance Inquiry</td><td style="width: 82.9604%; height: 29.7969px;">Check the available balance of funds.

</td></tr><tr style="height: 46.5938px;"><td style="width: 17.0396%; height: 46.5938px;">Commission

</td><td style="width: 82.9604%; height: 46.5938px;">internal transaction for a partner who wants to debit user balance as a commission referenced to the other transaction.

</td></tr><tr style="height: 46.5938px;"><td style="width: 17.0396%; height: 46.5938px;">Fee

</td><td style="width: 82.9604%; height: 46.5938px;">internal transaction for a partner who wants to debit user balance as a fee.

Antaca automatically **credits** company balance with the funds that were debit the user's balance

</td></tr><tr style="height: 80.1875px;"><td style="width: 17.0396%; height: 80.1875px;">Funding

</td><td style="width: 82.9604%; height: 80.1875px;">internal transaction type used to debit the user's balance. This type indicates that the funds still remain in the Antaca system, usually in conjunction with a payment type a credit transaction on the user's balance.

Antaca automatically **credit** the **credit partner balance** with this transaction

</td></tr><tr style="height: 46.5938px;"><td style="width: 17.0396%; height: 46.5938px;">Interest

</td><td style="width: 82.9604%; height: 46.5938px;">internal transaction for a partner who wants debit the user's balance as part of the interest connected with credit agreement.

</td></tr><tr style="height: 46.5938px;"><td style="width: 17.0396%; height: 46.5938px;">Withdrawal

</td><td style="width: 82.9604%; height: 46.5938px;">internal transaction type used to debit the user's balance. This type indicates that the funds go outside the Antaca system, fe: withdrawal from an account at a bank branch.

</td></tr></tbody></table>

Credit transactions list:

<table id="bkmrk-topup-internal-trans" style="width: 100%; height: 611.055px;"><tbody><tr style="height: 63.3906px;"><td style="width: 17.2745%; height: 63.3906px;">TopUp

</td><td style="width: 82.7255%; height: 63.3906px;">internal transaction type used to top up the user's balance. This type indicates that the funds come from outside the Antaca system, fe: payment to an account at a bank branch.

Antaca automatically **debit** the **credit partner balance** with this transaction

</td></tr><tr style="height: 63.3906px;"><td style="width: 17.2745%; height: 63.3906px;">Payment

</td><td style="width: 82.7255%; height: 63.3906px;">internal transaction type used to top up the user's balance. This type indicates that the funds come from the Antaca system, usually in conjunction with a funding type a debit transaction on the user's balance

Antaca automatically **debit** the **credit partner balance** with this transaction

</td></tr><tr style="height: 46.5938px;"><td style="width: 17.2745%; height: 46.5938px;">Loan

</td><td style="width: 82.7255%; height: 46.5938px;">internal transaction for a partner who wants to top up the user's balance as part of the credit agreement.

Antaca automatically **debit** the **credit partner balance** with this transaction

</td></tr><tr style="height: 46.5938px;"><td style="width: 17.2745%; height: 46.5938px;">CreditIbanTransfer

</td><td style="width: 82.7255%; height: 46.5938px;">internal transaction dedicated only for IMS API (via specific CN). IMS API uses this balance to credit funds on the user's balance.

</td></tr><tr style="height: 46.5938px;"><td style="width: 17.2745%; height: 46.5938px;">Cashback

</td><td style="width: 82.7255%; height: 46.5938px;">internal transaction for a partner who wants to top up the user's balance as part of the loyalty program

Antaca automatically **debit** the **credit partner balance** with this transaction

</td></tr></tbody></table>