Skip to main content

Cancel PicPay Payments

  https://api-sandbox.letpay.io/payment/MY_PAYMENT_TOKEN/cancel

Cancels a PicPay payment that were already sent using one of the following methods: Process PicPay Payment, Simple PicPay. After this, the payment can no longer be paid.

Request Fields

None

Response Fields

  • payment_token (string): Token to identify this payment.
  • refresh_token (string): Updated access token for next calls.
  • transaction_status (string): Status of this payment.
AUTHORIZATIONAPI Key
KeyX-Auth-Token
ValueMY_ACCESS_TOKEN

Example Request

Example Request

200 - Success
    curl --location 'https://api-sandbox.letpay.io/payment/MY_PAYMENT_TOKEN/cancel' \
--header 'X-Auth-Token: MY_ACCESS_TOKEN' \
--data '{
}'

Example Response

Header
  Content-Type: application/json
Body
    {
"transaction_status": "PROCESSING",
"payment_token": "8f048623-16c6-47da-aca1-546a16e8fb99",
"refresh_token": "MY_ACCESS_TOKEN"
}