Skip to main content
POST
/
investments
/
orders
/
{id}
/
cancel
Cancel an order
curl --request POST \
  --url https://{host}/investments/orders/{id}/cancel \
  --header 'Authorization: Bearer <token>' \
  --header 'x-user-id: <x-user-id>'
{
  "id": "64f5b3137fb3fc001234abce",
  "status": "Cancelled"
}

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

Order cancelled successfully

id
string
status
enum<string>
Available options:
Cancelled