Challenge a specific Verification Check.
challenge a specific Verification Check.
Path parameters
-
The SID of the verification Service to create the resource under.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^VA[0-9a-fA-F]{32}$
.
Body
-
The 4-10 character string being verified.
-
The phone number or email to verify. Either this parameter or the
verification_sid
must be specified. Phone numbers must be in E.164 format. -
A SID that uniquely identifies the Verification Check. Either this parameter or the
to
phone number/email must be specified.Minimum length is
34
, maximum length is34
. Format should match the following pattern:^VE[0-9a-fA-F]{32}$
. -
The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
-
The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
-
A sna client token received in sna url invocation response needs to be passed in Verification Check request and should match to get successful response.
curl \
--request POST 'https://verify.twilio.com/v2/Services/{ServiceSid}/VerificationCheck' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'To=%2B15017122661&Code=1234&Payee=Acme+Inc.&Amount=%E2%82%AC39.99&VerificationSid=VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
{"To"=>"+15017122661", "Code"=>"1234", "Payee"=>"Acme Inc.", "Amount"=>"€39.99", "VerificationSid"=>"VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
{"To"=>"recipient@foo.com", "Code"=>"123456", "VerificationSid"=>"VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
{"To"=>"+15017122661", "Code"=>"1234", "Payee"=>"Acme Inc.", "Amount"=>"€39.99", "VerificationSid"=>"VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
{"To"=>"+15017122661"}
{
"to": "+15017122661",
"sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"payee": null,
"valid": true,
"amount": null,
"status": "approved",
"channel": "sms",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"sna_attempts_error_codes": []
}
{
"to": "+15017122661",
"sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"payee": null,
"valid": true,
"amount": null,
"status": "approved",
"channel": "sms",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"sna_attempts_error_codes": []
}
{
"to": "recipient@foo.com",
"sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"payee": null,
"valid": true,
"amount": null,
"status": "approved",
"channel": "email",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2020-01-30T20:00:00Z",
"date_updated": "2020-01-30T20:00:00Z",
"sna_attempts_error_codes": []
}
{
"to": "+15017122661",
"sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"payee": null,
"valid": true,
"amount": null,
"status": "approved",
"channel": "sna",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"sna_attempts_error_codes": [
{
"code": 60001,
"attempt_sid": "VLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
}