Cancel a Verification
PUT https://api.truework.com/verification-requests/<id>/cancel/
Cancels a Verification request, provided the request is not already in a
terminal State
.
Request
URL Parameters
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
id | string | id of the verification request |
Request Body
PROPERTY | TYPE | REQUIRED | DESCRIPTION |
---|---|---|---|
cancellation_reason | CancellationReason | Reason for why this verification should be canceled | |
cancellation_details | string | Free form text on the details, can be blank. |
CancellationReason
VALUE | DESCRIPTION |
---|---|
immediate | Can be used to cancel a request directly after submitting, before Truework has started processing it |
high-turnaround-time | The request is taking longer than expected. |
competitor | You preferred a competitor for this request. |
wrong-info | The request that is submitted contains information that is wrong |
other | No other reason in the list fits the cancellation reason |
note
Cancellations are available after two days of its creation, with the exception
of immediate
.
Response
No response body is returned. Instead, you should expect the following response codes:
CODE | DESCRIPTION |
---|---|
200 | The verification request was successfully canceled. |
403 | The verification request cannot be canceled. |
Examples
- CURL
- Python
- Ruby
- Node
$ curl 'https://api.truework.com/verification-requests/AAAAAAAAQnIAAYd5YHFVOm8PNX2ecFbEjqV__upOKUE8YE_IK2GwSQTP/cancel/' \
-X PUT \
-H 'Authorization: Bearer myTrueworkToken' \
-H 'Content-Type: application/json' \
-d '{ \
"cancellation_reason": "other", \
"cancellation_details": "Here goes free form text", \
}'
{
"id": "AAAAAAAAQnIAAYd5YHFVOm8PNX2ecFbEjqV__upOKUE8YE_IK2GwSQTP",
"state": "canceled",
"cancellation_reason": "other",
"cancellation_details": "Details about why this request was canceled.",
"created": "2008-09-15T15:53:00Z",
"price": {
"amount": "0.00",
"currency": "USD"
},
"turnaround_time": {},
}