Skip to main content
DELETE
/
v1
/
pvt
/
POS
/
rewards
/
{id}
Cancel an existing reward. By canceling the customer will have their points back. The reward will be in the canceled state.
curl --request DELETE \
  --url https://api.bonifiq.com.br/v1/pvt/POS/rewards/{id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "ErrorMessage": "<string>",
  "ErrorCode": 123,
  "Result": {
    "Id": 123,
    "Customer": {
      "OriginalId": "<string>",
      "PublicId": "<string>",
      "Name": "<string>",
      "Email": "<string>",
      "Phone": "<string>",
      "BirthdayDate": "2023-11-07T05:31:56Z",
      "SignupDate": "2023-11-07T05:31:56Z",
      "Document": "<string>",
      "IsEnrolled": true,
      "ReferralURL": "<string>",
      "WhatsappReferralUrl": "<string>",
      "CurrentTier": {
        "Name": "<string>",
        "Color": "<string>",
        "IconUrl": "<string>"
      }
    },
    "ExternalCode": "<string>",
    "CashValue": 123,
    "IsCanceled": true,
    "RedeemDate": "2023-11-07T05:31:56Z",
    "Points": {
      "Id": 123,
      "Points": 123,
      "Type": 0,
      "EventKey": "<string>"
    }
  },
  "HasError": true
}

Authorizations

Authorization
string
header
required

Use API Basic Auth Keys

Path Parameters

id
integer<int32>
required

Response

200 - application/json
ErrorMessage
string | null

Error message or description

ErrorCode
integer<int32> | null

Optional error code, if available

Result
object
HasError
boolean

If true the request had an error.