user_requests
Lists the requests the caller created, including ones they created on someone else's behalf. It is the requester's view of the user request flow.
It is a GraphQL query returning [UserRequest]. Any signed-in user can call it — see
Endpoint and authentication.
Input
input: UserRequestsInput!
| Field | Type | Required | Description |
|---|---|---|---|
limit | Int | No | Page size. Defaults to 10. |
last_id | String | No | The id of the last row of the previous page. Defaults to "" (first page). |
sort | UserRequestsSortInput | No | field (only INSERTED_AT, the default) and direction (DESC by default). |
For the next page, pass the last row's id as last_id.
Query
query {
user_requests(input: { limit: 10 }) {
id code status amount currency corporate_amount personal_amount
paid_personal_amount inserted_at
fees { id fee_type leg price corporate_amount }
}
}
Every field of the UserRequest object is
available, including code and fees.
Errors
This call has no errors of its own. It can return
Middleware Errors — UNAUTHENTICATED without a valid token.