Trade Request Approval Status
POST /api/trade-requests/approval-status/{requestId}
Description
Update the approval status of a trade request.
Path Parameters
| Name | Type | Description |
|---|---|---|
requestId | string | The request ID (path) |
Request Headers
| Name | Type | Description |
|---|---|---|
tenantId | string | The tenant ID (header) |
userId | string | The user ID (header) |
countryCode | string | The country code (header) |
Request Body
- Content Type:
application/json
{
"tradeId": "string",
"status": "ACCEPTED",
"comment": "string",
"userId": "string",
"tenantId": "string",
"countryCode": "string"
}
Response Code: 201 - Created
Description
Trade request approval status updated successfully.
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
| tenantId | string |
| userId | string |
| countryCode | string |
Body
{
"tradeId": "trade123",
"status": "ACCEPTED",
"comment": "Approval granted",
"userId": "usr456",
"tenantId": "tenant789",
"countryCode": "US"
}
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request POST \
--url /api/trade-requests/approval-status/{requestId} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!