Update checkout customization
Change the images, colors, and support email for your company's checkout.
Change the images, colors, and support email for your company's checkout. Send only the fields you want to change. Payment methods remain configured through the Dashboard.
To replace an image, upload the file to the temporary URL before sending its identifier in this request. The response may indicate that the image is still being processed; check the settings before considering the replacement complete.
See the effects of these changes in Checkout customization.
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.
Support email displayed in the checkout. Omitting it preserves the value; null or empty text removes the contact.
Up to 254 characters
Checkout primary color in #RRGGBB format. Omitting it preserves the value; null or empty text is not accepted.
7 to 7 characters
Checkout background color in #RRGGBB format. Omitting it preserves the value; null or empty text is not accepted.
7 to 7 characters
ID returned when preparing the logo upload. Upload the file before associating it. Omitting it preserves the current image; null removes it.
Up to 26 characters
ID returned when preparing the icon upload. Upload the file before associating it. Omitting it preserves the current image; null removes it.
Up to 26 characters
Responses
Response Body
Current checkout configuration in the authenticated environment. Payment methods are read-only. Images provide the current URL and the result of the latest change.
Checkout images, colors, support contact and default payment methods in the authenticated environment.
Support email displayed in the checkout, or null when not provided.
Checkout primary color in #RRGGBB format.
Checkout background color in #RRGGBB format.
Enabled and available default methods: 1 for Pix and 2 for boleto. Charges and links can have their own settings. Use the Dashboard to change the defaults.
Current image and progress of the latest change.
Current image URL, or null when no image is available. A pending or failed change preserves the previous image when one exists.
Image status: absent when no image is configured; ready when it is available; pending during processing; failed when the change could not be applied.
Public error code for the failed image change, or null when there is no failure.
Current image and progress of the latest change.
Current image URL, or null when no image is available. A pending or failed change preserves the previous image when one exists.
Image status: absent when no image is configured; ready when it is available; pending during processing; failed when the change could not be applied.
Public error code for the failed image change, or null when there is no failure.
Response Body
The configuration was received, and at least one image is still processing. Retrieve the customization until the image is ready or the response indicates a failure. The previous image remains in use until the change is complete.
Checkout images, colors, support contact and default payment methods in the authenticated environment.
Support email displayed in the checkout, or null when not provided.
Checkout primary color in #RRGGBB format.
Checkout background color in #RRGGBB format.
Enabled and available default methods: 1 for Pix and 2 for boleto. Charges and links can have their own settings. Use the Dashboard to change the defaults.
Current image and progress of the latest change.
Current image URL, or null when no image is available. A pending or failed change preserves the previous image when one exists.
Image status: absent when no image is configured; ready when it is available; pending during processing; failed when the change could not be applied.
Public error code for the failed image change, or null when there is no failure.
Current image and progress of the latest change.
Current image URL, or null when no image is available. A pending or failed change preserves the previous image when one exists.
Image status: absent when no image is configured; ready when it is available; pending during processing; failed when the change could not be applied.
Public error code for the failed image change, or null when there is no failure.
Response Body
The body contains an unknown field, an invalid email, an incorrectly formatted color or an invalid upload ID. Correct the fields indicated in the details.
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 configuration or an image upload was not found for the company and environment associated with the key. Use an ID of the correct type, returned when preparing the upload.
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 upload cannot yet be applied, has expired or has already been replaced. Check error.code before correcting the upload; a new file requires a new authorization.
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.