Retrieve a payment link
Check the URL, configuration and whether the charge can still be paid through the link.
Looks up a link by the identifier received when creating or listing links. The link must belong to the authenticated company and environment.
The charge_id field identifies the linked charge. Use this identifier in
Retrieve a charge to check the customer, amount,
due date, status and available payment data.
is_active indicates whether the link is active or paused. An active link
still depends on the charge's conditions to accept payment. is_payable
indicates whether the charge can still be paid through this link.
A charge that has already been paid, revoked or expired, for example, does
not allow another payment through the link. If the value is false, check
unavailable_reason.code to understand why.
When the reason is a pause, the code is PAYMENT_LINK_PAUSED.
The link remains available for lookup and uses the same URL after reactivation.
See how to use the returned address in Payment links. The lookup does not create or change the charge or issue payment data.
Path Params
Public link identifier received when creating or listing links.
Up to 100 characters
Responses
Response Body
Link found. Check is_payable to see whether the charge can still be paid through it. Paused links and links for paid, revoked or expired charges remain available for lookup and return 200.
Payment link data for a charge.
Public payment link identifier.
Linked charge identifier. Look up the charge for its financial data.
Checkout URL for this charge. Repeating creation reuses the same link.
Return URL after payment confirmation, or null when not configured.
Return URL to your website, or null when not configured. Returning to the website does not cancel the charge.
Link's custom Pix and boleto configuration. Null indicates inheritance; an empty list means the configuration contains neither method. Effective availability appears in effective_payment_method_types.
Link creation date in Unix UTC seconds.
Date of the last change to the link or its settings, in Unix UTC seconds.
Indicates whether the charge can still be paid through this link. Paused links and paid, revoked or expired charges, for example, return false. The information applies at the time of lookup and does not confirm payment.
Payment methods defined by the charge, link and account settings among those available on the platform. A paid charge or paused link may still show Pix and boleto in this list. Use is_payable to see whether checkout can still accept payment.
Indicates whether the link is active. False means checkout was paused. An active link remains subject to the charge's conditions.
Response Body
The link identifier or a request parameter is invalid. Check error.details and use the id returned when creating or listing links.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
Link not found in the authenticated company and environment.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
For common errors, see HTTP response codes.