Skip to main content

Conciliation

This route is used when you want to return data relating to Bank Conciliation on a specific date. The response will contain data related to the bank account 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 a payload with only the bank details of the filtered day or also the transactions using the with_transactions parameter.

GETv1/conciliation

Request Query Params

AttributeTypeDescription
date_createddateTimeConciliation creation date in ISODateTime format.
with_transactionsbooleanExtra parameter that can be passed if it is necessary to return the day's conciliation transactions.

Default value: false.
pagination_typebooleanIf the parameter with_transactions is added as true, it is possible to add the pagination_type parameter to return the pagination of transactions. It is possible to return transactions of type paid or refunded.

Default value: paid.
countbooleanReturns n transaction objects.

Maximum: 1,000
Default: 100.
pagebooleanUseful for implementing results pagination.
caution

It is important to note that the date_created parameter uses ISODatetime (timestamp with milliseconds) to represent it.

Sample: in Javascript new Date().toISOString(), which will return something in the form 2021-09-23T00:00:00.000Z.

Response Object

PropertyTypeDescription
transfer_reference_datedateTimeConciliation creation date in ISODate format.
transfer estimated amountint32Amount in cents of the total to be transferred to the account. Result of subtraction between paid_transactions_amount and refunded_transactions_amount.
paid_transactions_amountint32Amount in cents of the sum of all paid transactions.
refunded_transactions_amountint32Amount in cents of the sum of all refunded transactions.
transfersarrayArray containing all transfers made to the conciliation bank account on the specific date.
paid_transactionsarrayObject array containing the paid transactions relating to the conciliation of the specific date.
refunded_transactionsarrayArray of object containing the refunded transactions relating to the reconciliation of the specific date.
pagination_typebooleanReturns the type of transactions referring to the current pagination.
totalint32Total transactions that meet the filter passed in the query referring to the type passed in pagination_type.
pageint32Current page referring to offset of pages.
offsetint32Total pages for count divided by total of handled transactions in the queries.

Transfers Array

PropertyTypeDescription
transfer_amountint32Transfer amount in cents.
transfer_typestringType of transfer performed.

Possible values: ted and doc.
transfer_statusstringStatus of the transfer performed.

Possible values: pending_transfer, transferred, failed, processing and canceled.
transfer_bank_responsestringResponse from the bank regarding the transfer made.

Possible values: confirmed or null.
transfer_date_createddateTimeTransfer creation date performed in ISODateTime format.
transfer_date_updateddateTimeTransfer update date performed in ISODateTime format.
transfer_funding_datedateTimeEffective date of the transfer carried out in ISODateTime format.
transfer_funding_estimated_datedateTimeEstimated date of completion of the transfer carried out in ISODateTime format.
transfer_idstringIdentifier of the transfer performed.

Samples

Request
curl -X GET -G "https://api.wu.global.marlim.co/v1/conciliation" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d date_created="2024-02-02T00:00:00.000Z" \
-d with_transactions=true
Response200
{
"paid_transactions_amount": 600000,
"refunded_transactions_amount": 100000,
"transfer_estimated_amount": 500000,
"transfer_reference_date": "2024-02-02",
"pagination_type": "paid",
"total": "3",
"page": "1",
"offset": "1",
"transfers": [
{
"transfer_amount": 500000,
"transfer_type": "ted",
"transfer_status": "transferred",
"transfer_bank_response": "confirmed",
"transfer_date_created": "2024-02-02T08:00:00.000Z",
"transfer_date_updated": "2024-02-02T09:00:00.000Z",
"transfer_funding_date": "2024-02-02T15:00:00.000Z",
"transfer_funding_estimated_date": "2024-02-03T00:00:00.000Z",
"transfer_id": "23456789"
}
],
"paid_transactions": [
{
"acquirer_status_code": "0000",
"status": "paid",
"authorization_code": "124356",
"nsu": "987654321",
"order_id": "2345678910",
"date_created": "2024-02-01T14:29:07.334Z",
"date_updated": "2024-02-01T14:31:07.334Z",
"net_value": 100000,
"authorized_amount": 110000,
"paid_amount": 110000,
"refunded_amount": 0,
"installments": "1",
"transaction_id": "12345678912346",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "4444555",
"card_last_digits": "2222",
"wu_payment_type": "MT",
"payment_method": "credit"
},
{
"acquirer_status_code": "0000",
"status": "paid",
"authorization_code": "124356",
"nsu": "987654321",
"order_id": "2345678910",
"date_created": "2024-02-01T14:29:07.334Z",
"date_updated": "2024-02-01T14:31:07.334Z",
"net_value": 200000,
"authorized_amount": 220000,
"paid_amount": 220000,
"refunded_amount": 0,
"installments": "1",
"transaction_id": "12345678912346",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "4444555",
"card_last_digits": "2222",
"wu_payment_type": "MT",
"payment_method": "debit"
},
{
"acquirer_status_code": "0000",
"status": "paid",
"authorization_code": "124356",
"nsu": "987654321",
"order_id": "2345678910",
"date_created": "2024-02-01T14:29:07.334Z",
"date_updated": "2024-02-01T14:31:07.334Z",
"net_value": 300000,
"authorized_amount": 330000,
"paid_amount": 330000,
"refunded_amount": 0,
"installments": "1",
"transaction_id": "12345678912346",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "4444555",
"card_last_digits": "2222",
"wu_payment_type": "MT",
"payment_method": "credit"
}
],
"refunded_transactions": [
{
"acquirer_status_code": "0000",
"status": "refunded",
"authorization_code": "243567",
"nsu": "987654323",
"order_id": "456789101112",
"date_created": "2024-02-01T14:29:07.334Z",
"date_updated": "2024-02-01T14:31:07.334Z",
"net_value": 100000,
"authorized_amount": 110000,
"paid_amount": 0,
"refunded_amount": 110000,
"installments": "1",
"transaction_id": "12345678912348",
"card_holder_name": "Lord Darth Vader",
"card_brand": "amex",
"card_first_digits": "777",
"card_last_digits": "9999",
"wu_payment_type": "MT",
"payment_method": "debit"
}
]
}