Skip to main content

Read Cash-In by ID

To return the pix_copy_paste and pix_image_base64 parameters of a Cash-In operation, it is necessary to pass the cash_in_id in the PATH URL.

GETv1/chash-in/:cash_in_id

Request Variable Path

AttributeTypeDescription
cash_in_idstringMarlim ID of the Cash-In operation.

Response Object

PropertyTypeDescription
statusstringRepresents the current state of the cash-in.

Possible values: paid, failed, cancelled, and expired.
cash_in_idstringMarlim operation identifier number.
item_idstringCharge/Order ID on your platform.
date_createddateTimeOperation creation date in ISODateTime format.
date_updateddateTimeOperation status updated date in ISODateTime format.
amountint32 || floatAmount to be charged to the paying customer.
paid_amountint32 || floatAmount paid by the paying customer.
customer_namestringPaying customer name.
customer_document_numberstringPaying customer document number.
pix_copy_pastestringString for the customer to copy and paste to make the payment in the bank application.
pix_image_base64stringString to create the QR Code in the UI of your application for the customer to make the payment in the bank application.

Samples

Request
curl -X GET -G "https://api.bet.marlim.co/v1/chash-in/os7WT0bCGbWxAjAv2eT6" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
Response200
{
"status": "active",
"cash_in_id": "os7WT0bCGbWxAjAv2eT6",
"item_id": "123456789",
"date_created": "2023-09-11T12:30:28.777Z",
"date_updated": "2023-09-11T12:30:28.777Z",
"amount": 10,
"paid_amount": 0,
"customer_name": "Luke Skywalker",
"customer_document_number": "00099988877",
"pix_copy_paste": "00020101021226930014 --- 6304B67D",
"pix_image_base64": "iVBORw0KGgoAAAANSUhE --- rkJggg=="
}