Get Withdrawal
Use this route to get a previously requested withdrawal, including the current status and the list of transactions that compose the withdrawal.
This route requires prior enablement by Marlim. Contact our support team for more information.
Request Variable Path
| Attribute | Type | Description |
|---|---|---|
| withdrawal_id | string | Withdrawal ID returned by the Request Withdrawal route. Required field. |
Request Query Params
| Attribute | Type | Description |
|---|---|---|
| sub_seller_id | string | Partner ID whose withdrawal will be retrieved. When omitted, the query looks up the withdrawal in the seller account. |
The withdrawal_id is returned in the response of POST financial/withdraw. Store this value in your application to check the withdrawal progress.
The withdrawal is processed asynchronously. Right after the request, the query may return 404 until the withdrawal is registered internally. After that, the expected initial status is processing.
Response Object
The response returns an object with the withdrawal property.
| Attribute | Type | Description |
|---|---|---|
| withdrawal | object | Object containing the retrieved withdrawal data. |
| withdrawal[withdrawal_id] | string | Withdrawal ID. |
| withdrawal[amount] | int32 | Withdrawal amount in cents. |
| withdrawal[status] | string | Current withdrawal status. Possible values: processing, transferred. |
| withdrawal[date_created] | dateTime | Withdrawal creation date in ISODateTime format. |
| withdrawal[date_updated] | dateTime | Withdrawal last update date in ISODateTime format. |
| withdrawal[transactions] | array | List of transactions that compose the withdrawal. |
Withdrawal status
| Status | Description |
|---|---|
| processing | Withdrawal accepted and being processed. The amount has already been deducted from the available balance and the transactions are awaiting transfer. |
| transferred | Bank transfer confirmed. The withdrawal was completed successfully. |
Transaction object (transactions)
Each item in the transactions array contains:
| Attribute | Type | Description |
|---|---|---|
| transaction_id | string | Marlim transaction ID. |
| date_created | dateTime | Transaction creation date in ISODateTime format. |
| date_updated | dateTime | Transaction update date in ISODateTime format. |
| paid_amount | int32 | Paid amount in cents. |
| net_value | int32 | Net transaction amount in cents. |
| amount_to_receive | int32 | Amount to receive in cents. |
| installments | string | Number of installments. |
| authorization_code | string | Transaction authorization code. |
| nsu | string | Unique Sequential Number of the transaction. |
| item_id | string | Transaction identifier in your platform. |
| customer_name | string | Customer name. |
| customer_document_number | string | Customer document. |
| customer_email | string | Customer email. |
| customer_phone_number | string | Customer phone number. |
| card_brand | string | Card brand. |
| card_first_digits | string | First digits of the card. |
| card_last_digits | string | Last digits of the card. |
| card_expiration_date | string | Card expiration date. |
| status | string | Transaction status. |
{
"withdrawal": {
"withdrawal_id": "withdrawal_1234567890",
"amount": 10000,
"status": "processing",
"date_created": "2026-07-28T14:30:00.000Z",
"date_updated": "2026-07-28T14:30:00.000Z",
"transactions": [
{
"transaction_id": "HcDscltTIVK3VMAAOj7J",
"date_created": "2026-07-20T14:30:00.000Z",
"date_updated": "2026-07-28T14:30:00.000Z",
"paid_amount": 10000,
"net_value": 9700,
"amount_to_receive": 9700,
"installments": "1",
"authorization_code": "112233",
"nsu": "98765432",
"item_id": "ABC123456789",
"customer_name": "Luke Skywalker",
"customer_document_number": "12345678900",
"customer_email": "luke@jedi.com",
"customer_phone_number": "11999999999",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"card_expiration_date": "1228",
"status": "paid"
}
]
}
}
Error Object
| Attribute | Type | Description |
|---|---|---|
| errors | array | Array with all errors found while processing the request. |
| errors[][type] | string | Type of error that occurred. |
| errors[][message] | string | Detailed message of the error that occurred. |
{
"errors": [
{
"type": "not_found",
"message": "Withdrawal with id [withdrawal_1234567890] was not found"
}
]
}
Examples
The values used in the examples below are for illustration only and must not be used to make requests to Marlim APIs.
- Account withdrawal
- Partner withdrawal
- Withdrawal not found
- Partner not found
curl -X GET "https://api.marlim.co/v3/financial/withdrawal/withdrawal_1234567890" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d '{}'
{
"withdrawal": {
"withdrawal_id": "withdrawal_1234567890",
"amount": 10000,
"status": "processing",
"date_created": "2026-07-28T14:30:00.000Z",
"date_updated": "2026-07-28T14:30:00.000Z",
"transactions": [
{
"transaction_id": "HcDscltTIVK3VMAAOj7J",
"date_created": "2026-07-20T14:30:00.000Z",
"date_updated": "2026-07-28T14:30:00.000Z",
"paid_amount": 10000,
"net_value": 9700,
"amount_to_receive": 9700,
"installments": "1",
"authorization_code": "112233",
"nsu": "98765432",
"item_id": "ABC123456789",
"customer_name": "Luke Skywalker",
"customer_document_number": "12345678900",
"customer_email": "luke@jedi.com",
"customer_phone_number": "11999999999",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222",
"card_expiration_date": "1228",
"status": "paid"
}
]
}
}
curl -X GET -G "https://api.marlim.co/v3/financial/withdrawal/withdrawal_1234567890" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d sub_seller_id="sub_k4m6Rw5rlQszEY7fiuRe"
{
"withdrawal": {
"withdrawal_id": "withdrawal_1234567890",
"amount": 5000,
"status": "transferred",
"date_created": "2026-07-27T10:00:00.000Z",
"date_updated": "2026-07-28T09:15:00.000Z",
"transactions": [
{
"transaction_id": "XyZabcDefGhiJklMnOp",
"date_created": "2026-07-22T18:00:00.000Z",
"date_updated": "2026-07-28T09:15:00.000Z",
"paid_amount": 5200,
"net_value": 5000,
"amount_to_receive": 5000,
"installments": "1",
"authorization_code": "445566",
"nsu": "11223344",
"item_id": "PEDIDO-987",
"customer_name": "Leia Organa",
"customer_document_number": "98765432100",
"customer_email": "leia@rebel.com",
"customer_phone_number": "11988888888",
"card_brand": "mastercard",
"card_first_digits": "544433",
"card_last_digits": "1111",
"card_expiration_date": "1129",
"status": "paid"
}
]
}
}
curl -X GET "https://api.marlim.co/v3/financial/withdrawal/withdrawal_inexistente" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d '{}'
{
"errors": [
{
"type": "not_found",
"message": "Withdrawal with id [withdrawal_inexistente] was not found"
}
]
}
curl -X GET -G "https://api.marlim.co/v3/financial/withdrawal/withdrawal_1234567890" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d sub_seller_id="sub_123456789"
{
"errors": [
{
"type": "not_found",
"message": "Sub Seller with id [sub_123456789] was not found"
}
]
}