---
agentTools:
  projectIndex: https://ownli.readme.io/llms.txt
---

# Retrieve payouts claimed by user (by id)

Retrieve a list of payouts claimed by a user.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAPI definition",
    "version": "v0"
  },
  "servers": [
    {
      "url": "https://api.sandbox.ownli.app",
      "description": "Generated server url"
    }
  ],
  "paths": {
    "/api/users/by-id/{id}/payouts": {
      "get": {
        "tags": [
          "Reward"
        ],
        "summary": "Retrieve payouts claimed by user (by id)",
        "description": "Retrieve a list of payouts claimed by a user.",
        "operationId": "getPayoutsByUserId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "partnerId",
            "in": "header",
            "description": "Partner Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "header",
            "description": "Client Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientSecret",
            "in": "header",
            "description": "Client Secret",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of payouts claimed by user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayoutDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authorization error e.g. due to an invalid or missing API keys."
          },
          "403": {
            "description": "Forbidden. \nPossible error codes\n 1. **ERROR_NO_PERMISSIONS_TO_RESOURCE**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          },
          "404": {
            "description": "User not found. \nPossible error codes \n1. **ERROR_USER_NOT_FOUND**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          },
          "500": {
            "description": "Internal error. \nPossible error codes\n 1. **INTERNAL_SERVER_ERROR**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponseDto": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code"
          },
          "error_message": {
            "type": "string",
            "description": "A verbose error message"
          }
        },
        "description": "Error response."
      },
      "BuyerDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the buyer"
          },
          "name": {
            "type": "string",
            "description": "Name of the buyer"
          },
          "logo": {
            "type": "string",
            "description": "Logo of the buyer"
          },
          "listLogo": {
            "type": "string",
            "description": "Small Logo of the buyer"
          },
          "description": {
            "type": "string",
            "description": "Description of buyer"
          },
          "shortDescription": {
            "type": "string",
            "description": "Short description of the buyer"
          },
          "earningsDescription": {
            "type": "string",
            "description": "Description shown on the earnings tab of the buyer"
          },
          "appDownloadLink": {
            "type": "string",
            "description": "App download link"
          },
          "websiteLink": {
            "type": "string",
            "description": "Website link"
          },
          "shopNowLink": {
            "type": "string",
            "description": "Shop now link"
          },
          "featured": {
            "type": "boolean",
            "description": "Featured"
          },
          "featuredHeroImage": {
            "type": "string",
            "description": "Hero Image"
          },
          "marketplacePhoto1": {
            "type": "string",
            "description": "Photo1"
          },
          "marketplacePhoto2": {
            "type": "string",
            "description": "Photo2"
          },
          "marketplacePhoto3": {
            "type": "string",
            "description": "Photo3"
          },
          "marketplaceDescription": {
            "type": "string",
            "description": "Description"
          },
          "featuredImage": {
            "type": "string",
            "description": "Image"
          },
          "featuredBgColor": {
            "type": "string",
            "description": "BgColor of the shop"
          },
          "featuredTitle": {
            "type": "string",
            "description": "Title of the shop"
          }
        },
        "description": "Buyer of the reward"
      },
      "RewardDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the reward"
          },
          "status": {
            "type": "string",
            "description": "Status of the reward",
            "enum": [
              "Pending",
              "Confirmed",
              "Declined",
              "Claimed",
              "All"
            ]
          },
          "type": {
            "type": "string",
            "description": "Type of the reward",
            "enum": [
              "MileageCheckIn",
              "ConditionCheckIn",
              "GaragingCheckIn",
              "LowMileageBonus",
              "Custom",
              "SurveyCompleted"
            ]
          },
          "description": {
            "type": "string",
            "description": "Description of the reward"
          },
          "vehicleId": {
            "type": "string",
            "description": "Id of the vehicle (if the reward is tied to an action on the vehicle like a Mileage Check-in"
          },
          "payoutId": {
            "type": "string",
            "description": "Id of the payout (if the reward has been claimed."
          },
          "dateRewarded": {
            "type": "string",
            "description": "Date on which reward was created"
          },
          "buyer": {
            "$ref": "#/components/schemas/BuyerDto"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "description": "List of rewards tied to the payout"
      },
      "PayoutDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the payout"
          },
          "dateClaimed": {
            "type": "string",
            "description": "Date the reward was claimed"
          },
          "paymentReferenceId": {
            "type": "string",
            "description": "A reference id to display to the user for communicating with admins"
          },
          "paymentReferenceLink": {
            "type": "string",
            "description": "A link which will take the user to the payout system"
          },
          "rewards": {
            "type": "array",
            "description": "List of rewards tied to the payout",
            "items": {
              "$ref": "#/components/schemas/RewardDto"
            }
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 105,
      "1": 149,
      "2": 36,
      "3": 236,
      "4": 14,
      "5": 67,
      "6": 148,
      "7": 138,
      "8": 212,
      "9": 48,
      "10": 246,
      "11": 30
    }
  }
}
```