7. Extending the expiration date of a boleto

Your POST must be sent to https://sandbox.pagbrasil.com/api/order/extend setting the content-type of the request header and body as "x-www-form-urlencoded".

Please note that this URL shall only be used for integration and testing procedures. Once the Payment Service Agreement is signed, you will receive the production environment's URL when you request your account to go live.

Request parameters:

Field

Description

Required

Length

Field

Description

Required

Length

secret

Secret phrase as defined in the PagBrasil Dashboard

Yes

128

pbtoken

Token assigned to your merchant account. Your token is displayed at the PagBrasil Dashboard, menu Account > Settings.

Yes

32

order

Order number

Yes

64

extend_days

Number of days to add to the current expiration date

Yes

3.0

Note: Response will be the URL that you will need to inform the customer to view/print the new Boleto Bancário. You may validate the response by simply checking if it starts with "http". If it doesn't start with "http" then the response is an error message. The URL length will be up to 80 characters.

 

CONFIDENTIAL