POST – Redemption Confirmation

This webhook is sent when a customer requests a redemption and it is completed — either successfully or with an error.


Information included

FieldWhat it means
documentCustomer’s CPF.
pixKeyIdThe ID of the saved Pix key, if it was requested during the redemption.
redemptionIdThe unique ID of the redemption processed in Sorte Online.
withdrawValueThe redemption amount.
successIndicates if the redemption was successful (true or false).
errorObject with error details (only filled if success = false).
error.typeThe type of error.
error.descriptionA description of the error.

Example payload

{
  "document": "12345678900",
  "pixKeyId": 1,
  "redemptionId": 123,
  "withdrawValue": 150000,
  "success": true,
  "error": {
    "type": "GenericFail|KeyDoesNotBelongToTheClient|InvalidPixData|PixKeyAndDocumentDoNotMatch|InvalidPixKey|InvalidPrizeBalance|InternalServerError|PrizesNotFound|DocumentNotFound",
    "description": ""
  }
}