Return Transactions
Cross Border routes are not enabled by default. Before integrating, prior alignment with Marlim's Risk and Development teams is required.
This route will be used to search for transactions of credit card type, this endpoint returns an array containing transaction objects, sorted from the most recently performed transaction.
If no filter is passed, an array of objects containing your last 10 operations performed with Marlim will be returned.
Request Query Params
| Attribute | Type | Description |
|---|---|---|
| transaction_id | string | Filter by a specific Marlim transaction ID. |
| status | string | Filter by status. Accepted values: paid, authorized, review, rejected, refused, expired, failed, refunded, canceled and chargeback |
| payment_method | string | Filter by payment method. Accepted value: credit_card |
| sub_seller_id | string | Filter by a partner ID. |
| external_sub_seller_id | string | Filter by an ID from your platform of your sales partner. |
| external_sub_seller_document_number | string | Filter by a CNPJ of your sales partner. |
| date_created | dateTime | Filter by creation date. |
| date_updated | dateTime | Filter by update date. |
| item_id | string | Filter by a specific charge/order ID. |
| count | int32 | Returns n transaction objects. Maximum of 1,000 and default of 10. |
| page | int32 | Useful for implementing result pagination. |
The properties date_created and date_updated can be used to filter date range searches using the following attributes:
| Attribute | Description |
|---|---|
| < | less than |
| > | greater than |
| <= | less than or equal to |
| >= | greater than or equal to |
curl -X GET -G "https://api.marlim.co/v3/crossborder/transactions" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d date_created=">=1620086400000" \
-d date_created="<=1620172799000"
Date filtering uses unixTimeStamp in milliseconds to represent it. To generate the unixTimeStamp of a date, you can use the Google Chrome console with the following JavaScript code: new Date("2023-01-01T00:00:00.000Z").getTime() which will return 1672531200000.
Response Object
When searching for transactions, returns an object with 4 properties: total, page, offset and transactions.
| Attribute | Type | Description |
|---|---|---|
| total | int32 | Total number of transactions that meet the filter passed in the query. |
| page | int32 | Current page related to the offset of pages. |
| offset | int32 | Total number of pages for count divided by total of transactions returned in the query. |
| transactions | array | Array of objects containing the transactions. |
Array Transactions
If the query response is greater than or equal to 1, the transactions property will bring an array of transaction objects. If the filter used does not find any transaction, an empty array will be returned.
Credit Card
| Property | Type | Description |
|---|---|---|
| status | string | Represents the current state of the transaction. Possible values: paid, authorized, review, rejected, refused, refunded, canceled and chargeback. |
| nsu | string | Code that identifies the transaction in the Acquirer. |
| date_created | dateTime | Transaction creation date in ISODateTime format. |
| date_updated | dateTime | Transaction status update date in ISODateTime format. |
| authorized_amount | int32 | Amount in cents authorized in the transaction. |
| paid_amount | int32 | Amount in cents captured in the transaction. |
| refunded_amount | int32 | Amount in cents refunded in the transaction. |
| installments | string | Number of installments the customer paid in. |
| transaction_id | string | Transaction identifier number in Marlim. |
| item_id | string | Transaction ID in your platform. |
| payment_method | string | Payment method used in the transaction. Possible values: credit_card. |
| card_holder_name | string | Name of the cardholder used in payment. |
| card_brand | string | Card brand used in payment. Possible values: visa, mastercard, amex, hipercard and elo. |
| card_first_digits | string | First 6 digits of the card used in payment. |
| card_last_digits | string | Last 4 digits of the card used in payment. |
| sub_seller_id | string | Optional parameter that identifies a sub_seller previously registered at Marlim, responsible for the transaction. |
| acquirer_status_code | string | Response identifier code from the Issuing Bank. Possible values: 0000, 1000, 1011, 1016 and 5000. |
| acquirer_status_message | string | Message regarding the Issuing Bank's response code. |
| crossborder_liquidation | boolean | Cross Border only. Indicates whether the transaction has already been settled. Starts as false and becomes true once settlement happens. Settled transactions can no longer be refunded. |
| crossborder_liquidation_date | dateTime | null | Cross Border only. Settlement date in ISODateTime format. null while the transaction has not been settled. |
| exchange | object | Cross Border only. Exchange applied to the remittance operation. Absent on transactions that are not remittances. |
| exchange[indicative] | boolean | false when the quote is the one locked for the operation. true means an indicative quote only. It is the preview, when the lock has not happened yet. |
| exchange[currency] | string | Destination currency of the remittance, the currency of amount. E.g.: USD. |
| exchange[pay_currency] | string | Currency the payer pays in. Applies to price, amount_converted, spread_amount and operation_fees. E.g.: BRL. |
| exchange[amount] | double | null | Amount the seller receives in the destination currency, already net of exchange costs. |
| exchange[price] | double | null | Exchange base in the payment currency. It is the upfront amount, without card interest. It closes the math: price = amount_converted + spread_amount + operation_fees. |
| exchange[amount_converted] | double | null | The amount converted at the market rate, before spread and operating costs. Serves as a comparison reference. |
| exchange[spot_rate] | double | null | Market exchange rate at the time of the operation. |
| exchange[vet] | double | null | Total Effective Value. The rate that actually applies to the receivable, including spread and costs. Equals price ÷ amount. |
| exchange[spread_rate] | double | null | Spread applied over the market rate, as a decimal fraction. |
| exchange[spread_amount] | double | null | Absolute value of the applied spread. |
| exchange[operation_fees] | double | null | Operating costs of the remittance: IOF and provider fees, aggregated into a single value. |
Examples
- Filter by transaction
- Last 10 transactions
- Creation Date Filter
- Multiple Filters
- Filter by partner
curl -X GET -G "https://api.marlim.co/v3/crossborder/transactions" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d transaction_id="k4m6Rw5rlQszEY7fiuRe"
{
"total": 1,
"page": 1,
"offset": 1,
"transactions": [
{
"status": "paid",
"nsu": "032416400102",
"authorization_code": "112233",
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T19:58:53.391Z",
"net_value": 100000,
"authorized_amount": 100000,
"paid_amount": 100000,
"refunded_amount": 0,
"installments": "1",
"transaction_id": "k4m6Rw5rlQszEY7fiuRe",
"item_id": "ABC987654321",
"payment_method": "credit_card",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"acquirer_status_code": "0000",
"acquirer_status_message": "The acquirer captured the amount on the card.",
"crossborder_liquidation": true,
"crossborder_liquidation_date": "2026-09-22T10:00:00.000Z",
"exchange": {
"indicative": false,
"currency": "USD",
"pay_currency": "BRL",
"amount": 187.4,
"price": 1000.03,
"amount_converted": 957.88,
"spot_rate": 5.1114,
"vet": 5.3363,
"spread_rate": 0.009,
"spread_amount": 8.6209,
"operation_fees": 33.5258
}
}
]
}
curl -X GET -G "https://api.marlim.co/v3/crossborder/transactions" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
{
"total": 150,
"page": 1,
"offset": 15,
"transactions": [
{
"status": "paid",
"nsu": "032416400102",
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T19:58:53.391Z",
"authorized_amount": 100000,
"paid_amount": 100000,
"refunded_amount": 0,
"item_id": "ABC987654321",
"payment_method": "credit_card",
"installments": 1,
"transaction_id": "k4m6Rw5rlQszEY7fiuRe",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"acquirer_status_code": "0000",
"acquirer_status_message": "The acquirer captured the amount on the card.",
"crossborder_liquidation": false,
"crossborder_liquidation_date": null,
"exchange": {
"indicative": false,
"currency": "USD",
"pay_currency": "BRL",
"amount": 185.59,
"price": 999.88,
"amount_converted": 957.74,
"spot_rate": 5.1605,
"vet": 5.3876,
"spread_rate": 0.009,
"spread_amount": 8.6197,
"operation_fees": 33.5209
}
},
{
"status": "review",
"nsu": "032416400102",
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T19:58:53.391Z",
"authorized_amount": 100000,
"paid_amount": 0,
"refunded_amount": 0,
"item_id": "ABC987654321",
"payment_method": "credit_card",
"installments": 1,
"transaction_id": "fxPaOlyZABICogQuWz0V",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"acquirer_status_code": "0000",
"acquirer_status_message": "The bank has authorized this amount on the card.",
"crossborder_liquidation": false,
"crossborder_liquidation_date": null,
"exchange": {
"indicative": false,
"currency": "USD",
"pay_currency": "BRL",
"amount": 187.91,
"price": 999.89,
"amount_converted": 957.75,
"spot_rate": 5.096,
"vet": 5.321,
"spread_rate": 0.009,
"spread_amount": 8.6197,
"operation_fees": 33.524
}
},
{
"status": "rejected",
"nsu": null,
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T19:58:53.391Z",
"authorized_amount": 0,
"paid_amount": 0,
"refunded_amount": 0,
"item_id": "ABC987654321",
"payment_method": "credit_card",
"installments": 1,
"transaction_id": "JO0uj0yp0mztpStgKDgf",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"acquirer_status_code": null,
"acquirer_status_message": null,
"crossborder_liquidation": false,
"crossborder_liquidation_date": null,
"exchange": {
"indicative": false,
"currency": "USD",
"pay_currency": "BRL",
"amount": 187.71,
"price": 999.95,
"amount_converted": 957.8,
"spot_rate": 5.102,
"vet": 5.327,
"spread_rate": 0.009,
"spread_amount": 8.6202,
"operation_fees": 33.528
}
},
{
"status": "refused",
"nsu": "032416400102",
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T19:58:53.391Z",
"authorized_amount": 0,
"paid_amount": 0,
"refunded_amount": 0,
"item_id": "ABC987654321",
"payment_method": "credit_card",
"installments": 1,
"transaction_id": "kWfa0mYzcxNWrxP8i4UD",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"acquirer_status_code": "1011",
"acquirer_status_message": "Some of the card numbers are incorrect. Check the numbers and try again.",
"crossborder_liquidation": false,
"crossborder_liquidation_date": null,
"exchange": {
"indicative": false,
"currency": "USD",
"pay_currency": "BRL",
"amount": 187.51,
"price": 999.99,
"amount_converted": 957.85,
"spot_rate": 5.108,
"vet": 5.333,
"spread_rate": 0.009,
"spread_amount": 8.6206,
"operation_fees": 33.52
}
},
{
"status": "refunded",
"nsu": "032416400102",
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T19:58:53.391Z",
"authorized_amount": 100000,
"paid_amount": 0,
"refunded_amount": 100000,
"item_id": "ABC987654321",
"payment_method": "credit_card",
"installments": 1,
"transaction_id": "qBLC0ZRA4i6Mdx3SdLsp",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"acquirer_status_code": "0000",
"acquirer_status_message": "The amount has been refunded to the card.",
"crossborder_liquidation": false,
"crossborder_liquidation_date": null,
"exchange": {
"indicative": false,
"currency": "USD",
"pay_currency": "BRL",
"amount": 187.31,
"price": 1000.05,
"amount_converted": 957.9,
"spot_rate": 5.114,
"vet": 5.339,
"spread_rate": 0.009,
"spread_amount": 8.6211,
"operation_fees": 33.524
}
},
{
"+3n": "..."
}
]
}
curl -X GET -G "https://api.marlim.co/v3/crossborder/transactions" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d date_created=">=1712488080000" \
-d date_created="<=1712488320000"
{
"total": 2,
"page": 1,
"offset": 1,
"transactions": [
{
"status": "paid",
"nsu": "032416400102",
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T19:58:53.391Z",
"authorized_amount": 100000,
"paid_amount": 100000,
"refunded_amount": 0,
"item_id": "ABC987654321",
"payment_method": "credit_card",
"installments": 1,
"transaction_id": "k4m6Rw5rlQszEY7fiuRe",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"acquirer_status_code": "0000",
"acquirer_status_message": "The acquirer captured the amount on the card.",
"crossborder_liquidation": false,
"crossborder_liquidation_date": null
}
]
}
curl -X GET -G "https://api.marlim.co/v3/crossborder/transactions" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d date_created=">=1712488080000" \
-d date_created="<=1712488320000" \
-d status="paid" \
-d count=10 \
-d page=1
{
"total": 250,
"page": 1,
"offset": 25,
"transactions": [
{
"status": "paid",
"nsu": "032416400102",
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T19:58:53.391Z",
"authorized_amount": 100000,
"paid_amount": 100000,
"refunded_amount": 0,
"item_id": "ABC987654321",
"payment_method": "credit_card",
"installments": 1,
"transaction_id": "k4m6Rw5rlQszEY7fiuRe",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"acquirer_status_code": "0000",
"acquirer_status_message": "The acquirer captured the amount on the card.",
"crossborder_liquidation": false,
"crossborder_liquidation_date": null
},
{
"+8n": "..."
}
]
}
curl -X GET -G "https://api.marlim.co/v3/crossborder/transactions" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d sub_seller_id="sub_k4m6Rw5rlQszEY7fiuRe" \
-d page=1 \
-d count=10
{
"total": 2,
"page": 1,
"offset": 1,
"transactions": [
{
"status": "paid",
"nsu": "032416400102",
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T19:58:53.391Z",
"authorized_amount": 100000,
"paid_amount": 100000,
"refunded_amount": 0,
"item_id": "ABC987654321",
"payment_method": "credit_card",
"installments": 1,
"transaction_id": "k4m6Rw5rlQszEY7fiuRe",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"sub_seller_id": "sub_k4m6Rw5rlQszEY7fiuRe",
"acquirer_status_code": "0000",
"acquirer_status_message": "The acquirer captured the amount on the card.",
"crossborder_liquidation": false,
"crossborder_liquidation_date": null
},
{
"status": "paid",
"nsu": "98765433",
"authorization_code": "112233",
"date_created": "2026-10-30T18:58:53.391Z",
"date_updated": "2026-10-30T18:58:53.391Z",
"amount": 1000,
"authorized_amount": 1000,
"paid_amount": 1000,
"refunded_amount": 0,
"installments": "1",
"transaction_id": "98765433",
"payment_method": "credit_card",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"card_id": "card_jedi123master4amidala5son",
"acquirer_status_code": "0000",
"acquirer_status_message": "The acquirer captured the amount on the card.",
"crossborder_liquidation": false,
"crossborder_liquidation_date": null,
"split": [
{
"sub_seller_id": "sub_k4m6Rw5rlQszEY7fiuRe",
"amount": 200
},
{
"sub_seller_id": "sub_9876543210abcdefghij",
"amount": 800
}
]
}
]
}