Skip to main content
POST
/
transactions
/
{id}
/
reverse
Reverse Reward Transaction
curl --request POST \
  --url https://rewardservice-staging.withbenji.com/transactions/{id}/reverse \
  --header 'x-api-key: <api-key>'
{
    "code": "ok",
    "data": {
        "reward_transaction_id": 1,
        "transaction_status": "REVERSED"
     
    }
}
The x-api-key header value to be used on this API is your partner API key, which can be generated through the dashboard.
id
integer
required
The Benji Platform ID of the reward transaction

Return values

reward_transaction
object
A reward_transaction object property
{
    "code": "ok",
    "data": {
        "reward_transaction_id": 1,
        "transaction_status": "REVERSED"
     
    }
}
Note that you will only receive data that you as a loyalty partner or merchant partner are allowed to see based on the permissions in the access token you provide to the API.