Skip to main content
GET
https://api-staging.withbenji.com
/
transactions
/
{id}
Get Reward Transaction
curl --request GET \
  --url https://api-staging.withbenji.com/transactions/{id} \
  --header 'x-api-key: <api-key>'
{
    "code": "ok",
    "data": {
        "reward_transaction": {
            "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 x-api-key header value to be used on this API is your partner API key, which can be generated through the dashboard.
id
string
required
Unique identifier of the reward transaction to retrieve (UUID)

Return values

reward_transaction
object
A reward_transaction object property
{
    "code": "ok",
    "data": {
        "reward_transaction": {
            "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
        }
    }
}
Note that you will only receive data that you as a loyalty patner or merchant partner are allowed to see based on the permissions in the access token you provide to the API