Get user payout history

GET /v2/client/redeem-rewards/history

Get User Payout History returns the payout history of the user.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object
      Hide data attribute Show data attribute object
      • items array[object] Required
        Hide items attributes Show items attributes object
        • reward_amount string Required
        • reward_name string Required
        • image_url string Required
        • categories array[string] Required
        • created_at string Required

          The date the user payout request is created.

        • status string Required

          Values are pending, completed, or cancelled.

        • amount string Required
        • status_updated_at string

          The timestamp of the payout request was last updated.

        • estimated_delivery integer

          The estimated delivery time in seconds for the payout to be completed

        • credentials array[object] Required
          Hide credentials attributes Show credentials attributes object
          • label string Required
          • value string Required
          • type string Required

            Values are text, url, barcode, or date.

          • credential_type string Required
  • 404

    User history not found

GET /v2/client/redeem-rewards/history
curl \
 --request GET 'https://api.bitlabs.ai/v2/client/redeem-rewards/history' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "items": [
      {
        "reward_amount": "1.23",
        "reward_name": "card-1",
        "image_url": "image.url",
        "categories": [
          "string"
        ],
        "created_at": "2022-01-01T00:00:00Z",
        "status": "pending",
        "amount": "1.23",
        "status_updated_at": "2022-01-01T00:00:00Z",
        "estimated_delivery": 86400,
        "credentials": [
          {
            "label": "Redemption Link",
            "value": "https://www.amazon.com",
            "type": "text",
            "credential_type": "redemptionUrl"
          }
        ]
      }
    ]
  }
}