Get Trade Requests by RequestID
GET /api/trade-requests/{requestId}
Description
Retrieve trade request details by request ID.
Path Parameters
| Name | Type | Description |
|---|---|---|
requestId | string | The ID of the trade request (path) |
Request Headers
| Name | Type | Description |
|---|---|---|
tenantId | string | The tenant ID (header) |
userId | string | The user ID (header) |
Example
GET /api/trade-requests/{requestId}
Content-Type: application/json
tenantId: string
userId: string
Response Code: 200 - OK
Description
Request processed successfully.
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | Indicates if the operation was successful |
statusCode | integer | Status code |
message | string | Response message |
data | object | Data related to the trade request |
errors | array | List of error messages, if any |
Example
{
"status": true,
"statusCode": 0,
"message": "Request processed successfully",
"data": {},
"errors": [
{
"message": "Some error occurred",
"descriptiveMessage": "Detailed error message"
}
]
}
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
| tenantId | string |
| userId | string |
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request GET \
--url /api/trade-requests/{requestId} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!