Capvant

Cancel a session

post
https://sandbox.capvant.com/partner/v1/sessions/{id}/cancel
POST
/sessions/{id}/cancel

The link stops working. A funding request already sent is not affected.

Authorization

AuthorizationBearer <token>

An access token from POST /oauth/token. Valid for one hour. Preferred, because a leaked request log then exposes an hour rather than a permanent credential.

In: header

Path Parameters

id*string

The session id.

Match^ses_[0-9a-f]{24}$

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

Shell
curl -X POST "https://sandbox.capvant.com/sessions/string/cancel"
JSON
{  "id": "string",  "object": "session",  "status": "open",  "environment": "live",  "market": "UK",  "partner_customer_id": "string",  "launch_url": "string",  "expires_at": "2019-08-24T14:15:22Z",  "prefilled": [    "string"  ],  "asks_for": [    "string"  ],  "business": {    "legal_name": "string",    "company_number": "string",    "ein": "string"  },  "request": {    "id": "string",    "submitted_at": "2019-08-24T14:15:22Z"  },  "return_url": "string",  "created_at": "2019-08-24T14:15:22Z",  "started_at": "2019-08-24T14:15:22Z",  "submitted_at": "2019-08-24T14:15:22Z",  "cancelled_at": "2019-08-24T14:15:22Z"}