Skip to main content

Read Cash-Out by ID

This route can be used to check a specific Cash-Out operation with the operations array containing all update statuses with their dates and times.

GETv1/chash-out/:cash_out_id

Request Variable Path

AttributeTypeDescription
cash_out_idstringMarlim ID of the Cash-Out operation.

Response Object

PropertyTypeDescription
statusstringRepresents the current state of the cash-out operation.

Possible values: processing, fulfilled, pending, failed and cancelled.
status_descriptionstringDescription to clarify about the status of the transfer.
date_createddateTimeOperation creation date in ISODateTime format.
date_updateddateTimeOperation status updated date in ISODateTime format.
cash_out_idstringMarlim operation identifier number.
amountint32 || floatAmount to be transferred to the customer account.
paid_off_amountint32 || floatFinal amount transferred to the customer's account according to the current status.
customer_namestringName of person responsible for the transfer account.
customer_document_numberstringDocument number of the person responsible for the transfer account.
operationsarrayObjects containing all statuses from newest to oldest.

Samples

Request
curl -X GET -G "https://api.bet.marlim.co/v1/chash-out/1xC3EH9OKNLk9GH5FfA1" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
Response200
{
"status": "fulfilled",
"status_description": "Transfer completed successfully and the amount was transferred to the customer's account.",
"date_created": "2023-01-01T00:00:00.000Z",
"date_updated": "2023-01-01T02:00:00.000Z",
"cash_out_id": "1xC3EH9OKNLk9GH5FfA1",
"amount": 250,
"paid_off_amount": 250,
"customer_name": "Leia S. O. Solo",
"customer_document_number": "99988877766",
"operations": [
{
"operation_at": "2023-01-01T02:00:00.000Z",
"type": "fulfilled"
},
{
"operation_at": "2023-01-01T01:00:00.000Z",
"type": "pending"
},
{
"operation_at": "2023-01-01T00:00:00.000Z",
"type": "processing"
}
]
}