Update a payment link
Pause or reactivate the link and update its return URLs and payment methods.
Updates an existing link's configuration. Use is_active: false to pause
the checkout and is_active: true to reactivate it with the same URL.
Omitting this field keeps the configuration; null is not accepted.
Pausing also prevents new requests to email the link. It does not cancel
Pix or boleto already issued or extend the charge's due date.
You can also send return URLs and the list of methods accepted in the
checkout. URLs that are omitted, null or empty keep the registered addresses.
To remove a destination, send clear_success_redirect_url: true or
clear_cancel_redirect_url: true. Sending false or omitting the command
does not request removal.
Do not send a populated URL together with its clearing command set to true.
This combination returns HTTP 400, with MUTUALLY_EXCLUSIVE in the details
of both fields. You can remove one destination and update the other in the
same request. The response shows null for the removed destination.
The linked charge must be open and within its due date, including when pausing or reactivating. Other changes do not reactivate a paused link.
Omitting payment_method_types keeps the link's configuration. Sending
null removes this custom configuration and returns to the methods defined
by the charge and the account's checkout.
The request keeps the link to the charge and does not change the customer, title, amount, due date or status. To look up or edit the allowed charge data, use the charges reference. See Configure the link to understand return URLs and payment method restrictions.
Path Params
Public link identifier received when creating or listing links.
Up to 100 characters
Headers
Unique key chosen by your system to identify this request. When retrying, send the same key and parameters. Without this header, the request is processed normally. See the idempotency guide for retention and handling pending or uncertain responses.
1 to 255 characters
Body Params
Applying an example replaces the body fields.
Send false to pause checkout and true to reactivate the same URL. Omitting it keeps the current state. Pausing does not cancel issued Pix or boleto or extend the due date.
HTTPS return URL after confirmed payment. Omitting it, sending null or empty text keeps the existing URL. To remove it, use clear_success_redirect_url with true without providing a populated URL.
Up to 2048 characters
HTTPS URL for returning to your website. This return does not cancel the charge. Omitting it, sending null or empty text keeps the existing URL. To remove it, use clear_cancel_redirect_url with true without providing a populated URL.
Up to 2048 characters
Send true to remove the return destination after payment. False or omission does not request removal. Do not send true together with a populated success_redirect_url.
Send true to remove the destination for returning to the website. False or omission does not request removal. Do not send true together with a populated cancel_redirect_url.
Methods allowed in the link. Omitting it keeps the configuration; null removes the custom configuration. A list limits checkout methods and does not expand those allowed by the charge.
1 to 2 items
Responses
Response Body
Link and current settings.
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 payment method configuration, or null for inheritance. The charge and platform availability still limit accepted methods.
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 link is active. False means checkout was paused. An active link remains subject to the charge's conditions.
Response Body
The identifier or a configuration field is invalid. Check error.details. Do not send a populated URL together with its clearing command set to true.
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.
Response Body
The message identifies whether the action is prevented by the charge's state, due date or another request in progress. When the state prevents the action, it shows the current and accepted states. Look up the linked charge before trying again.
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.