Skip to main content
POST
/
v1
/
admin
/
trips
/
{envelopeId}
/
cancel-components
Cancel trip components
curl --request POST \
  --url https://{operatorDomain}/v1/admin/trips/{envelopeId}/cancel-components \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "componentIds": [
    "<string>"
  ]
}
'
{
  "data": {
    "envelopeId": "trip_01J9",
    "status": "draft",
    "currency": "EUR",
    "components": [
      {}
    ]
  }
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Path Parameters

envelopeId
string
required

Body

application/json
componentIds
string[]
required

Response

200 - application/json

Cancellation result

data
object