Cancel a hosted verification link
POST /api/v1/kyc/links/{id}/cancel
POST https://api.trustverify.co.uk/api/v1/kyc/links/{id}/cancel
Cancels an unused (pending and not yet expired) hosted verification link. A submitted, completed, cancelled, expired, unknown, or other-account id is answered 409 not_cancellable.
Parameters#
| Field | Type | Description |
|---|---|---|
| id (path)required | string | The id returned when the link was created |
Example request#
curl -sS -X POST 'https://api.trustverify.co.uk/api/v1/kyc/links/42/cancel' \
-H "Authorization: Bearer $TRUSTVERIFY_API_KEY"Responses#
200 The link, now cancelled (no url)
| Field | Type | Description |
|---|---|---|
| idrequired | string | |
| objectrequired | string: "verification_link" | |
| url | string | The one-time hosted page URL. Returned only when the link is created. GET and cancel do not include it, so a later read cannot recover the token. |
| statusrequired | string: "pending" | "submitted" | "completed" | "cancelled" | "expired" | expired is computed on read for a pending link whose expiresAt has passed; it is not stored |
| environmentrequired | string: "test" | "live" | |
| externalReferencerequired | string,null | |
| sharetribeUserIdrequired | string,null | |
| expiresAtrequired | string,null | |
| createdAtrequired | string,null | |
| submittedAtrequired | string,null | |
| completedAtrequired | string,null | |
| resultrequired |