Skip to main content

Link Data

Use this route when you want to return the current data of the Link. Just pass the Link's hash in the URL path.

GETv3/link_payment/:payment_hash

Request Variable Path

AttributeTypeDescription
payment_hashstringPayment Link URL hash.

Response Object

PropertyTypeDescription
current_statusstringCurrent link status. Possible values: waiting_payment, manual_review, paid and expired
net_valueint32Amount to be charged from the customer without acquirer fees. Returned in cents.
item_idstringPayment ID in your platform.
soft_descriptorstringDescription that will appear on your customer's invoice if a transaction occurs. Maximum of 17 characters, alphanumeric and spaces.
date_createddateTimeLink creation date in ISODateTime format.
date_updateddateTimeLink update date in ISODateTime format.
expires_atdateTimeLink expiration date in ISODateTime format. Expiration occurs when a link is updated to paid and refunded statuses or has reached the 24-hour time limit (expired).
webhook_urlstringNotification URL of your system that will receive information with each link update, filled in when creating the link.
customerobjectCustomer information.
customer[name]stringCustomer name.
customer[email]stringCustomer email.
customer[document_number]stringCustomer document number.
customer[phone_number]stringCustomer phone number.
customer[address]objectCustomer Address Object.
customer[address][country]stringCustomer nationality, filled in when creating the link in country code format.
customer[address][zipcode]stringZIP code of the customer's current address, filled in at the time of payment.
customer[address][state]stringState of the customer's current address, filled in at the time of payment in state code format.
customer[address][city]stringCity of the customer's current address, filled in at the time of payment.
customer[address][neighborhood]stringNeighborhood of the customer's current address, filled in at the time of payment.
customer[address][street]stringStreet of the customer's current address, filled in at the time of payment.
customer[address][number]stringNumber of the customer's current address, filled in at the time of payment.
customer[address][complement]stringComplement of the customer's current address, filled in at the time of payment.
payment_infoobjectTransactional information regarding the link payment.
payment_info[current_status]stringRepresents the current state of the last payment attempt transaction. Possible values: waiting_payment, manual_review, paid, refused and refunded.
payment_info[transaction_id]stringMarlim ID of the last payment attempt.
payment_info[nsu]stringLast payment attempt code that identifies the transaction at the acquirer.
payment_info[authorization_code]stringAuthorization code returned by the issuing bank of the last payment attempt.
payment_info[date_updated]arrayAll customer payment attempts.
payment_info[date_updated][date]stringPayment attempt date/time in ISODateTime format.
payment_info[date_updated][status]stringPayment attempt status. Possible values: waiting_payment, manual_review, paid, refused and refunded.
payment_info[date_updated][status_code]stringAcquirer return code grouping. Possible values: 0000, 1000, 1011, 1016 and 5000.
payment_info[aproved_amount]int32Amount in cents authorized in the transaction of the last payment attempt.
payment_info[paid_amount]int32Amount in cents captured in the transaction of the last payment attempt.
payment_info[installments]stringNumber of installments of the last payment attempt.
payment_info[card_holder_name]stringCardholder name used in the last payment attempt.
payment_info[card_first_digits]stringFirst 6 digits of the card used in the last payment attempt.
payment_info[card_last_digits]stringLast 4 digits of the card used in the last payment attempt.
payment_info[card_brand]stringCard brand used in the last payment attempt.

Issuing Bank Refusal

In case a transaction is refused by the Issuing Bank, the status refused is returned within the payment_info.date_updated.status node along with the status_code property containing the refusal code. Since each card brand as well as the issuing bank may have a different code, Marlim groups the context of this refusal according to the table below. New codes may be added in the future, since this control is with the card brands and banks.

PrefixMeaning
1000Transaction not approved by the bank.
1011Incorrect card data.
1016Card without balance.
5000Generic bank error. The customer should contact the Issuing Bank.

Examples

Request
curl -X GET "https://api.marlim.co/v3/link_payment/gt58hyu123" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d '{}'
Response200
{
"current_status": "paid",
"net_value": 100000,
"item_id": "#123456789",
"soft_descriptor": "Star Wars S.A.",
"date_created": "2026-01-15T17:36:12.465Z",
"date_updated": "2026-01-15T17:36:12.465Z",
"expires_at": "2026-01-15T17:36:12.465Z",
"webhook_url": "https://yourapplication.com/order/123456789/webhook",
"customer": {
"name": "Luke Skywalker",
"email": "luke@jedimaster.sw",
"document_number": "00099988877",
"phone_number": "+18007770133",
"address": {
"country": "us",
"zipcode": "95351",
"state": "CA",
"city": "Modesto",
"neighborhood": "East Modesto",
"street": "Sunset Ave",
"street_number": "713"
}
},
"payment_info": {
"current_status": "paid",
"transaction_id": "HcDscltTIVK3VMAAOj7J",
"nsu": "98765432",
"authorization_code": "112233",
"date_updated": [
{
"date": "2026-01-15T17:36:12.465Z",
"status": "paid",
"status_code": "0000"
}
],
"aproved_amount": 1039501,
"paid_amount": 1039501,
"installments": "1",
"card_holder_name": "Luke Skywalker",
"card_first_digits": "555544",
"card_last_digits": "2222",
"card_brand": "visa"
}
}

Dashboard

The same data contained in the API is also available on the Dashboard. By clicking on any link, you will have access to the payment-related data, as well as an Event Timeline that shows all status changes, from creation to expiration.