Get user history cashback details

GET /v1/client/user/history/cashback/{cashbackId}

Get User History Cashback Details returns the details of a specific cashback offer that the user has interacted with.

Path parameters

  • cashbackId string Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • id integer Required
      • merchant_ref string Required

        The merchant reference

      • merchant_name string Required

        The merchant name

      • status_reason string

        The status reason

      • order_id string

        The order id

      • event_name string
      • status string Required

        Values are completed, pending, adjusted, or created.

      • created_at string(date-time) Required
      • amount string Required

        The amount of the revenue in user currency.

      • reward_delay_days integer Required

        Duration in days the reward remains pending before being granted.

  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
    • data object
GET /v1/client/user/history/cashback/{cashbackId}
curl \
 --request GET 'https://api.bitlabs.ai/v1/client/user/history/cashback/{cashbackId}' \
 --header "X-Api-Token: $API_KEY" \
 --header "X-User-Id: $API_KEY"
Response examples (200)
{
  "data": {
    "id": 42,
    "merchant_ref": "string",
    "merchant_name": "string",
    "status_reason": "string",
    "order_id": "string",
    "event_name": "string",
    "status": "completed",
    "created_at": "2022-01-01T00:00:00Z",
    "amount": "1.23",
    "reward_delay_days": 47
  }
}
Response examples (406)
{
  "error": {
    "details": {
      "msg": "vpn detected",
      "http": "406 Not Acceptable"
    }
  }
}