Get user payout history

GET /v1/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
        • payout_id integer 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
        • category_id string Required
        • tier_id 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

        • redemption_card_url string

          The URL to redeem the card

        • redemption_security_code string

          The secret code to redeem the card

  • 404

    User history not found

GET /v1/client/redeem-rewards/history
curl \
 --request GET 'https://api.bitlabs.ai/v1/client/redeem-rewards/history' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "items": [
      {
        "payout_id": 123,
        "created_at": "2022-01-01T00:00:00Z",
        "status": "pending",
        "amount": "1.23",
        "category_id": "Amazon",
        "tier_id": "5",
        "status_updated_at": "2022-01-01T00:00:00Z",
        "estimated_delivery": 86400,
        "redemption_card_url": "https://www.amazon.com",
        "redemption_security_code": "1234567890"
      }
    ]
  }
}