Card transactions

Whenever a purchase is made with a card, a corresponding transaction is sent to the integrating Partner. This requires that an endpoint is made available on the Partner side to which incoming transactions can be posted.
Example of a reserved transaction:
Example of a settled transaction:
API requirements
- Full endpoint url, header name and API token must be sent to Mynt during integration
POST https://partner-domain.com/path/to/transaction/{id}- Endpoint should:
- return
200 OK,201 Createdor204 No Contenton successful receival - be idempotent and be able to handle multiple identical posts where data might not have changed
- be able to handle a that a
RESERVEDtransactions is sent after aSETTLED. In such a case the reservation can be thrown away - accept a header for the API token,
partner-api-token: xxx....secret...yyy(integrating Partner may choose a different header name)
- return
- Endpoint may:
- apply IP allow-listing in the production environment (Mynt IP addresses will be provided on demand)
- return other error codes should anything fail during message processing
Retries
Should the sending of a transaction fail for whatever reason, Mynt will retry sending the transaction several times during a period of time with increasing delay between the retries. Completely giving up only after 4 days.
Transaction Properties
- Sign, amount is always relative to the account, i.e.
- purchases and other transactions where money is leaving the account has negative sign
- deposits, reversals and other transactions where money is entering the account has positive sign
- The description property is suitable to display to the user.
- The transaction date is in the timezone of the card terminal where the purchase was made. E.g. if you have a coffee in New York at 3 pm, that will be the transaction date. The settlement date is in the Swedish timezone.
- Has 4 possible states

RESERVED- a purchase was made and that the money has been reserved on the account. Whenever a settlement or cancellation occurs the reservation looses its significance.SETTLED- a transaction was finally concluded and money drawn from the accountCANCELLED- a previous reservation was cancelled and no money was drawnREJECTED- indicates that a purchase attempt was made but was rejected before any money was reserved or drawn. This is not a transaction that should be accounted for and typically not to be shown to the user. However, it may be useful for support.
The diagram describes the typical state transitions for a purchase, however, exceptions to this can and will occur. A transaction might very well be sent directly in the SETTLED or CANCELLED state, skipping the RESERVED state.
Transaction behavior
There are a few things to be aware of when handling transactions:
- A transaction may be
SETTLEDwith the full amount or multiple times with partial amounts. - A
CANCELLEDtransaction may be followed by one or multipleSETTLEDtransactions. This is due to behavior in the card network and cannot be controlled by Mynt. - There could be transactions not tied to a specific user or card, for example top ups, credited top ups or fees.
- In the dev environment, Mynt will occasionally create random transactions on the account that are sent via the Transaction Webhook. These are not real transactions coming from the card processor, meaning that the account balance will not be affected when such transactions are created in our dev environment. This is intended for testing the reception and handling of webhook messages.
- Even after a SETTLED transaction has been sent, new versions for the same
transactionIdcan be sent later with a newrev(revision). This may happen for partial amounts or when other details change and are communicated to us as the Issuer.