POST
/
reward_transaction
/
create
curl --request POST \
  --url https://rewardservice.withbenji.com/reward_transaction/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "reward_authentication_token": "<string>"
}'
{
    "code": "ok",
    "data": {
        "reward_transactions": [{
            "created_date": "2024-08-23T19:55:12.015047+00:00",
            "last_updated_date": "2024-08-23T19:57:12.015047+00:00",
            "status": 2,
            "external_order_id": "5856681787572",
            "id": 1,
            "merchant_id": 1,
            "partner_id": 1,
            "campaign_id": 1,
            "reward_amount": 266,
            "transaction_amount": 885.95,
            "transaction_type": 1,
            "user_id": 1
        }]
    }
}
The Bearer token to be used on this API is a user based access token
reward_authentication_token
string
required

The token received from the authenticate reward transaction API call.

Return values

reward_transactions
array

An array of reward transaction objects created with this transaction

{
    "code": "ok",
    "data": {
        "reward_transactions": [{
            "created_date": "2024-08-23T19:55:12.015047+00:00",
            "last_updated_date": "2024-08-23T19:57:12.015047+00:00",
            "status": 2,
            "external_order_id": "5856681787572",
            "id": 1,
            "merchant_id": 1,
            "partner_id": 1,
            "campaign_id": 1,
            "reward_amount": 266,
            "transaction_amount": 885.95,
            "transaction_type": 1,
            "user_id": 1
        }]
    }
}
Make sure to store the returned reward transaction ID. You can use this ID to get the status of the reward transaction when receiving reward_transaction_update webhooks
The transaction authentication token is valid for 10 minutes.