POST
/
reward_transaction
/
auth
curl --request POST \
  --url https://rewardservice.withbenji.com/reward_transaction/auth \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "transaction_amount": 123,
  "external_transaction_id": "<string>",
  "campaign_id": 123,
  "partner_id": 123
}'
{
    "code": "ok",
    "data": {
        "authentication_id": "016bb1f6-ab4e-11ef-a1a8-0a58a9feac02",
        "authentication_status": 1
    }
}
The Bearer token to be used on this API is a user based access token
transaction_amount
integer
required

The total amount of the transaction.

external_transaction_id
string
required

The unique identifier in your system of the order transaction.

campaign_id
integer

The ID of the campaign associated with the transaction. Note that in cases of a single running campaign, this field is optional.

partner_id
integer

For marketplace only scenarios, if the user pre selected a partner to earn or redeem points on. When not passed, the user’s default loyalty partner will be used.

Return values

transaction_token
string
required

The transaction token to use when calling the create transaction API

authentication_status
integer
required

Integer representing an enum of one of the following transaction authentication status values :

{
    "code": "ok",
    "data": {
        "authentication_id": "016bb1f6-ab4e-11ef-a1a8-0a58a9feac02",
        "authentication_status": 1
    }
}