Skip to main content
POST
/
investments
/
orders
/
{id}
/
trade-confirmations
/
generate
Generate trade confirmation PDF
curl --request POST \
  --url https://{host}/investments/orders/{id}/trade-confirmations/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'x-user-id: <x-user-id>'
{
  "fileUri": "https://storage.example.com/trade-confirmations/64f5b3137fb3fc001234abce/abc123/wealthyhood-trade-confirmation_12-jul-2024.pdf"
}

Authorizations

Authorization
string
header
required

Auth0-issued access token that includes the scopes listed for the endpoint.

Headers

x-user-id
string
required

User identifier for the M2M client to specify which user's data to access.

Pattern: ^[a-f0-9]{24}$

Path Parameters

id
string
required

Order identifier (MongoDB ObjectId)

Pattern: ^[a-f0-9]{24}$

Response

Trade confirmation generated successfully

fileUri
string<uri>
required

URL to download the generated trade confirmation PDF