# Transaction History

## Transactions

The `/thirdparty/user/:id` endpoint allows you to retrieve details about a user

| Field                                                   | Required | Description                   |
| ------------------------------------------------------- | -------- | ----------------------------- |
| <p><strong>api\_key</strong><br><code>String</code></p> | yes      | The same as your secret token |

### Retrieve User request

```
GET /thirdparty/user/:id
```

### Retrieve user request

```
curl -X POST https://tapway-api.herokuapp.com/thirdparty/user/:id
-H 'Content-Type: application/json' 
-H 'Authorization: Bearer <api_key>'
```

### Retrieve user response

```javascript
http code 200
 {
    success : true,
    message : 'User Found',
    data : {
            _id,
            fullName,
            firstName,
            lastName,
            address,
            gpsLocation,
            savedAddresses,
            phoneNumber,
            email,
            profileImage
          }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gbambo.gitbook.io/tapway/transaction-history.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
