Actions in Sumsub API
Learn how to use applicant actions in Sumsub API.
We provide you with the following API methods to work with applicant actions.
Create applicant actions
You can create a new action using this API method.
curl -X POST \
'https://api.sumsub.com/resources/applicantActions/-/forApplicant/63e096c51b6b4030f2e01154?levelName=some-level-name' \
-H 'Content-Type: application/json' \
-d '{
"externalActionId": "yourActionId",
"email": "[email protected]",
"phone": "+49 123456789"
}'curl -X POST \
'https://api.sumsub.com/resources/applicantActions/-/forApplicant/63e096c51b6b4030f2e01154?levelName=payment-level' \
-H 'Content-Type: application/json' \
-d '{
"paymentMethod": {
"data": {
"requiredIdDoc": {
"firstName": "John",
"lastName": "Doe",
"number": "0000111122223333",
"issuedDate": "2023-02-25",
"txnAmount": "500"
}
},
"type": "bankCard",
"subType": "VISA"
},
"externalActionId": "yourActionId",
"email": "[email protected]",
"phone": "+49 123456789"
}'curl -X POST \
'https://api.sumsub.com/resources/applicantActions/-/forApplicant/63e096c51b6b4030f2e01154/?levelName=action%20paymentSource%20level-name' \
-H 'Content-Type: application/json' \
-d '{
"paymentSource": {
"fixedInfo": {
"accountIdentifier": "XXX000333",
"email": "[email protected]",
"fullName": "John Doe",
"type": "bankCard",
"institutionName": "someBank"
}
},
"externalActionId": "yourActionId"
}'curl -X POST \
'https://api.sumsub.com/resources/applicantActions/-/forApplicant/63e096c51b6b4030f2e01154?levelName=questionnaire-level' \
-H 'Content-Type: application/json' \
-d '{
"questionnaires": [
{
"id": "Example_Questionnaire",
"sections": {
"section_id_1": { // Section ID
"items": {
"item_id_0": { // Item ID
"values": [ // Item values
"EUR",
"USD"
]
},
"item_id_1": { // Item ID
"value": "String Value", // Item values, string
}
}
},
"section_id_2": { // Section ID
"items": {
"item_id_3": { // Item ID
"value": null // Item values, null
}
}
}
}
}
],
"externalActionId": "yourActionId",
"email": "[email protected]",
"phone": "+49 123456789"
}'Get applicant actions
You can get the list of all actions that belong to particular applicants using the applicant ID with the help of this API method.
curl -X GET \
'https://api.sumsub.com/resources/applicantActions/-;applicantId=5e5f9ab10a975a6e224dc286?limit=1000&offset=0'Also, you can get the applicant actions linked to a particular transaction by including a unique transaction identifier kytTxnReference.txnId={txnId}.
curl -X GET \
'https://api.sumsub.com/resources/applicantActions/-;applicantId=5e5f9ab10a975a6e224dc286;kytTxnReference.txnId=6659fbf0ca1da20df53caa71?limit=10&offset=0'Add images to applicant actions
You can add an image file to an applicant action. For example, a bank card image to the payment method using this API method.
curl -X POST \
'https://api.sumsub.com/resources/applicantActions/5e022e0f0a975a45325c7ff5/images' \
-H 'Content-Type: multipart/form-data' \
-F 'metadata={"idDocType":"PAYMENT_METHOD","country":"GBR"}' \
-F 'content=@/Sumsub/Example/name.jpg'
Nice to knowImages can be added to the applicant action questionnaires, too. Refer to this article for more information.
Request action check
You can initiate the action check with the help of this API method.
curl -X POST \
'https://api.sumsub.com/resources/applicantActions/5e022e0f0a975a45325c7ff5/review/status/pending'Get action check results
You can get the check results using this API method.
curl -X GET \
'https://api.sumsub.com/resources/applicantActions/66bb9b44fg94ec3ef6e3cccf/one'Get images from applicant actions
You can retrieve an image from an action using this API method.
curl -X GET \
'https://api.sumsub.com/resources/applicantActions/639999ef054d540000000000/images/853651000?preview=true' \Add payment method information
You can add information to the payment method using this API method.
curl -X POST \
'https://api.sumsub.com/resources/applicantActions/5e022e0f0a975a45325c7ff5/paymentMethod' \
-H 'Content-Type: application/json' \
-d '{
"type": "bankCard",
"subType": "VISA",
"data": {
"requiredIdDoc": {
"firstName": "John",
"lastName": "Doe",
"number": "4321434321"
}
}
}'Updated 10 days ago