Reconciliation
This route is used when you want to return data regarding Bank Reconciliation on a specific date. The response will contain data related to transfers made, as well as a summary of transactions (Paid and Refunded). If the date_created parameter is not passed in the request, the response will be from the last reconciliation operation recorded in our system.
It is possible to return only the bank transfer data or also the transactions using the optional parameter with_transactions.
POSTv3/conciliation
Request Body Params
| Attribute | Type | Description |
|---|---|---|
| date_created | dateTime | Reconciliation date in ISODateTime format. If not provided, returns the last reconciliation. |
| with_transactions | boolean | Optional parameter to also return transaction data, in addition to bank data. |
| page | int32 | Optional parameter for pagination of results. |
| count | int32 | Optional parameter to define the number of records per page. Maximum: 100. |
Warning
The ISODateTime format that Marlim expects is: YYYY-MM-DDTHH:mm:ssZ, for example: 2025-01-01T00:00:000Z. Something similar to the toISOString() method in Javascript (new Date().toISOString()).
Response Object
| Property | Type | Description |
|---|---|---|
| paid_transactions_amount | int32 | Total amount in cents of paid transactions. |
| refunded_transactions_amount | int32 | Total amount in cents of refunded transactions. |
| transfer_estimated_amount | int32 | Estimated amount in cents of the transfer. |
| transfer_reference_date | date | Transfer reference date in YYYY-MM-DD format. |
| transfers | array | Array of objects with the transfers made. |
| transfers[][transfer_id] | int32 | Transfer ID. |
| transfers[][transfer_amount] | int32 | Transfer amount in cents. |
| transfers[][transfer_type] | string | Transfer type (e.g., ted). |
| transfers[][transfer_status] | string | Transfer status. |
| transfers[][transfer_bank_response] | string | Bank response about the transfer. |
| transfers[][transfer_date_created] | dateTime | Transfer creation date in ISODateTime format. |
| transfers[][transfer_date_updated] | dateTime | Transfer update date in ISODateTime format. |
| transfers[][transfer_funding_date] | dateTime | Transfer settlement date in ISODateTime format. |
| transfers[][transfer_funding_estimated_date] | dateTime | Estimated transfer settlement date in ISODateTime format. |
| paid_transactions | array | Array of objects with paid transactions. |
| paid_transactions[][transaction_id] | string | Transaction identifier number. |
| paid_transactions[][date_created] | dateTime | Transaction creation date in ISODateTime format. |
| paid_transactions[][date_updated] | dateTime | Transaction status update date in ISODateTime format. |
| paid_transactions[][paid_amount] | int32 | Amount in cents captured in the transaction. |
| paid_transactions[][net_value] | int32 | Amount in cents to be charged without acquiring fees. |
| paid_transactions[][installments] | string | Number of installments the customer paid in. |
| paid_transactions[][authorization_code] | string | Authorization code returned by the issuing bank. |
| paid_transactions[][nsu] | string | Code that identifies the transaction in the acquirer. |
| paid_transactions[][item_id] | string | Transaction ID in your platform. |
| paid_transactions[][customer_name] | string | Customer name. |
| paid_transactions[][customer_document_number] | string | Customer document number. |
| paid_transactions[][customer_email] | string | Customer email. |
| paid_transactions[][customer_phone_number] | string | Customer phone number. |
| paid_transactions[][card_brand] | string | Card brand used in payment. Possible values: visa, mastercard, amex, hipercard and elo. |
| paid_transactions[][card_first_digits] | string | First 6 digits of the card used in payment. |
| paid_transactions[][card_last_digits] | string | Last 4 digits of the card used in payment. |
| paid_transactions[][card_expiration_date] | string | Card expiration date. Numbers only in MMYY format. |
| refunded_transactions | array | Array of objects with refunded transactions. |
| refunded_transactions[][transaction_id] | string | Transaction identifier number. |
| refunded_transactions[][date_created] | dateTime | Transaction creation date in ISODateTime format. |
| refunded_transactions[][date_updated] | dateTime | Transaction status update date in ISODateTime format. |
| refunded_transactions[][refunded_amount] | int32 | Amount in cents refunded in the transaction. |
| refunded_transactions[][net_value] | int32 | Amount in cents to be charged without acquiring fees. |
| refunded_transactions[][installments] | string | Number of installments the customer paid in. |
| refunded_transactions[][authorization_code] | string | Authorization code returned by the issuing bank. |
| refunded_transactions[][nsu] | string | Code that identifies the transaction in the acquirer. |
| refunded_transactions[][item_id] | string | Transaction ID in your platform. |
| refunded_transactions[][customer_name] | string | Customer name. |
| refunded_transactions[][customer_document_number] | string | Customer document number. |
| refunded_transactions[][customer_email] | string | Customer email. |
| refunded_transactions[][customer_phone_number] | string | Customer phone number. |
| refunded_transactions[][card_brand] | string | Card brand used in payment. Possible values: visa, mastercard, amex, hipercard and elo. |
| refunded_transactions[][card_first_digits] | string | First 6 digits of the card used in payment. |
| refunded_transactions[][card_last_digits] | string | Last 4 digits of the card used in payment. |
| refunded_transactions[][card_expiration_date] | string | Card expiration date. Numbers only in MMYY format. |
Examples
- Without Date
- With Date
- With Paid Transactions
- With Paid and Refunded Transactions
curl -X POST "https://api.marlim.co/v3/conciliation" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d '{}'
{
"paid_transactions_amount": 3300000,
"refunded_transactions_amount": 0,
"transfer_estimated_amount": 3300000,
"transfer_reference_date": "2023-06-22",
"transfers": [
{
"transfer_amount": 3300000,
"transfer_type": "ted",
"transfer_status": "transferred",
"transfer_bank_response": "Confirmed",
"transfer_date_created": "2023-06-22T08:00:00.000Z",
"transfer_date_updated": "2023-06-22T08:00:00.000Z",
"transfer_funding_date": "2023-06-22T15:00:00.000Z",
"transfer_funding_estimated_date": "2023-06-23T00:00:00.000Z",
"transfer_id": 12345678
}
]
}
curl -X POST "https://api.marlim.co/v3/conciliation" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d '{
"date_created": "2023-06-22T00:00:00Z"
}'
{
"paid_transactions_amount": 3300000,
"refunded_transactions_amount": 0,
"transfer_estimated_amount": 3300000,
"transfer_reference_date": "2023-06-22",
"transfers": [
{
"transfer_amount": 3300000,
"transfer_type": "ted",
"transfer_status": "transferred",
"transfer_bank_response": "Confirmed",
"transfer_date_created": "2023-06-22T08:00:00.000Z",
"transfer_date_updated": "2023-06-22T08:00:00.000Z",
"transfer_funding_date": "2023-06-22T15:00:00.000Z",
"transfer_funding_estimated_date": "2023-06-23T00:00:00.000Z",
"transfer_id": 12345678
}
]
}
curl -X POST "https://api.marlim.co/v3/conciliation" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d '{
"date_created": "2023-06-22T00:00:00Z",
"with_transactions": true
}'
{
"paid_transactions_amount": 3300000,
"refunded_transactions_amount": 0,
"transfer_estimated_amount": 3300000,
"transfer_reference_date": "2023-06-22",
"transfers": [
{
"transfer_amount": 3300000,
"transfer_type": "ted",
"transfer_status": "transferred",
"transfer_bank_response": "Confirmed",
"transfer_date_created": "2023-06-22T08:00:00.000Z",
"transfer_date_updated": "2023-06-22T08:00:00.000Z",
"transfer_funding_date": "2023-06-22T15:00:00.000Z",
"transfer_funding_estimated_date": "2023-06-23T00:00:00.000Z",
"transfer_id": 12345678
}
],
"paid_transactions": [
{
"transaction_id": "999777666",
"date_created": "2023-06-21T14:29:07.334Z",
"date_updated": "2023-06-21T14:31:07.334Z",
"paid_amount": 1100000,
"net_value": 1000000,
"installments": "3",
"authorization_code": "SW001",
"nsu": "123456789",
"item_id": "item_123",
"customer_name": "LUKE SKYWALKER",
"customer_document_number": "12345678900",
"customer_email": "luke@skywalker.com",
"customer_phone_number": "+5511999999999",
"card_brand": "visa",
"card_first_digits": "123456",
"card_last_digits": "2122",
"card_expiration_date": "1225"
},
{
"transaction_id": "999777667",
"date_created": "2023-06-21T15:29:07.334Z",
"date_updated": "2023-06-21T15:31:07.334Z",
"paid_amount": 1650000,
"net_value": 1500000,
"installments": "1",
"authorization_code": "SW002",
"nsu": "123456790",
"item_id": "item_456",
"customer_name": "HAN SOLO",
"customer_document_number": "98765432100",
"customer_email": "han@solo.com",
"customer_phone_number": "+5511888888888",
"card_brand": "mastercard",
"card_first_digits": "654321",
"card_last_digits": "8888",
"card_expiration_date": "0326"
},
{
"transaction_id": "999777668",
"date_created": "2023-06-21T16:29:07.334Z",
"date_updated": "2023-06-21T16:31:07.334Z",
"paid_amount": 880000,
"net_value": 800000,
"installments": "2",
"authorization_code": "SW003",
"nsu": "123456791",
"item_id": "item_789",
"customer_name": "LEIA ORGANA",
"customer_document_number": "45678912300",
"customer_email": "leia@organa.com",
"customer_phone_number": "+5511777777777",
"card_brand": "elo",
"card_first_digits": "987654",
"card_last_digits": "4444",
"card_expiration_date": "0625"
},
{
"+N": "..."
}
],
"refunded_transactions": []
}
curl -X POST "https://api.marlim.co/v3/conciliation" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d '{
"date_created": "2023-06-22T00:00:00Z",
"with_transactions": true
}'
{
"paid_transactions_amount": 3300000,
"refunded_transactions_amount": 1100000,
"transfer_estimated_amount": 2200000,
"transfer_reference_date": "2023-06-22",
"transfers": [
{
"transfer_amount": 2200000,
"transfer_type": "ted",
"transfer_status": "transferred",
"transfer_bank_response": "Confirmed",
"transfer_date_created": "2023-06-22T08:00:00.000Z",
"transfer_date_updated": "2023-06-22T08:00:00.000Z",
"transfer_funding_date": "2023-06-22T15:00:00.000Z",
"transfer_funding_estimated_date": "2023-06-23T00:00:00.000Z",
"transfer_id": 12345678
}
],
"paid_transactions": [
{
"transaction_id": "999777666",
"date_created": "2023-06-21T14:29:07.334Z",
"date_updated": "2023-06-21T14:31:07.334Z",
"paid_amount": 1100000,
"net_value": 1000000,
"installments": "3",
"authorization_code": "SW001",
"nsu": "123456789",
"item_id": "item_123",
"customer_name": "LUKE SKYWALKER",
"customer_document_number": "12345678900",
"customer_email": "luke@skywalker.com",
"customer_phone_number": "+5511999999999",
"card_brand": "visa",
"card_first_digits": "123456",
"card_last_digits": "2122",
"card_expiration_date": "1225"
},
{
"transaction_id": "999777667",
"date_created": "2023-06-21T15:29:07.334Z",
"date_updated": "2023-06-21T15:31:07.334Z",
"paid_amount": 1650000,
"net_value": 1500000,
"installments": "1",
"authorization_code": "SW002",
"nsu": "123456790",
"item_id": "item_456",
"customer_name": "HAN SOLO",
"customer_document_number": "98765432100",
"customer_email": "han@solo.com",
"customer_phone_number": "+5511888888888",
"card_brand": "mastercard",
"card_first_digits": "654321",
"card_last_digits": "8888",
"card_expiration_date": "0326"
},
{
"+N": "..."
}
],
"refunded_transactions": [
{
"transaction_id": "999777668",
"date_created": "2023-06-21T15:29:07.334Z",
"date_updated": "2023-06-21T15:31:07.334Z",
"refunded_amount": 1100000,
"net_value": 1000000,
"installments": "3",
"authorization_code": "SW003",
"nsu": "987654321",
"item_id": "item_789",
"customer_name": "DARTH VADER",
"customer_document_number": "45678912300",
"customer_email": "darth@vader.com",
"customer_phone_number": "+5511777777777",
"card_brand": "visa",
"card_first_digits": "123456",
"card_last_digits": "2122",
"card_expiration_date": "1225"
},
{
"transaction_id": "999777669",
"date_created": "2023-06-21T16:29:07.334Z",
"date_updated": "2023-06-21T16:31:07.334Z",
"refunded_amount": 880000,
"net_value": 800000,
"installments": "2",
"authorization_code": "SW004",
"nsu": "987654322",
"item_id": "item_101",
"customer_name": "BOBA FETT",
"customer_document_number": "78912345600",
"customer_email": "boba@fett.com",
"customer_phone_number": "+5511666666666",
"card_brand": "mastercard",
"card_first_digits": "654321",
"card_last_digits": "8888",
"card_expiration_date": "0326"
},
{
"+N": "..."
}
]
}