cURL
curl --request POST \
--url https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"customer_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"tax_number": "ABCPG1234N",
"income_range": "10L-15L",
"profession": "Private Sector Employee",
"full_name": "John Doe",
"phone": "9911002211",
"full_address": "FULL_ADDRESS_OF_THE_CUSTOMER",
"dob": "DD-MM-YYYY",
"registered_date": "DD-MM-YYYY",
"document_type": "<string>",
"document_front_image_url": "<string>",
"document_back_image_url": "<string>",
"selfie_url": "<string>",
"additional_info": {},
"street": "Av. Paulista 1000",
"city": "São Paulo",
"state_province": "SP",
"postal_code": "01310-100",
"account_holder_name": "Maria Silva",
"beneficiary_identifiers": {
"beneficiary_id_doc_number": "GODE561231HDFRRN09",
"beneficiary_dob": "1990-01-15"
},
"ip_address": "203.0.113.10"
}
'import requests
url = "https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data"
payload = {
"customer_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"tax_number": "ABCPG1234N",
"income_range": "10L-15L",
"profession": "Private Sector Employee",
"full_name": "John Doe",
"phone": "9911002211",
"full_address": "FULL_ADDRESS_OF_THE_CUSTOMER",
"dob": "DD-MM-YYYY",
"registered_date": "DD-MM-YYYY",
"document_type": "<string>",
"document_front_image_url": "<string>",
"document_back_image_url": "<string>",
"selfie_url": "<string>",
"additional_info": {},
"street": "Av. Paulista 1000",
"city": "São Paulo",
"state_province": "SP",
"postal_code": "01310-100",
"account_holder_name": "Maria Silva",
"beneficiary_identifiers": {
"beneficiary_id_doc_number": "GODE561231HDFRRN09",
"beneficiary_dob": "1990-01-15"
},
"ip_address": "203.0.113.10"
}
headers = {
"X-API-KEY": "<api-key>",
"X-TIMESTAMP": "<api-key>",
"X-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-TIMESTAMP': '<api-key>',
'X-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customer_id: '4e6f1b20-a73c-11ec-b909-0242ac120002',
tax_number: 'ABCPG1234N',
income_range: '10L-15L',
profession: 'Private Sector Employee',
full_name: 'John Doe',
phone: '9911002211',
full_address: 'FULL_ADDRESS_OF_THE_CUSTOMER',
dob: 'DD-MM-YYYY',
registered_date: 'DD-MM-YYYY',
document_type: '<string>',
document_front_image_url: '<string>',
document_back_image_url: '<string>',
selfie_url: '<string>',
additional_info: {},
street: 'Av. Paulista 1000',
city: 'São Paulo',
state_province: 'SP',
postal_code: '01310-100',
account_holder_name: 'Maria Silva',
beneficiary_identifiers: {beneficiary_id_doc_number: 'GODE561231HDFRRN09', beneficiary_dob: '1990-01-15'},
ip_address: '203.0.113.10'
})
};
fetch('https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customer_id' => '4e6f1b20-a73c-11ec-b909-0242ac120002',
'tax_number' => 'ABCPG1234N',
'income_range' => '10L-15L',
'profession' => 'Private Sector Employee',
'full_name' => 'John Doe',
'phone' => '9911002211',
'full_address' => 'FULL_ADDRESS_OF_THE_CUSTOMER',
'dob' => 'DD-MM-YYYY',
'registered_date' => 'DD-MM-YYYY',
'document_type' => '<string>',
'document_front_image_url' => '<string>',
'document_back_image_url' => '<string>',
'selfie_url' => '<string>',
'additional_info' => [
],
'street' => 'Av. Paulista 1000',
'city' => 'São Paulo',
'state_province' => 'SP',
'postal_code' => '01310-100',
'account_holder_name' => 'Maria Silva',
'beneficiary_identifiers' => [
'beneficiary_id_doc_number' => 'GODE561231HDFRRN09',
'beneficiary_dob' => '1990-01-15'
],
'ip_address' => '203.0.113.10'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-SIGNATURE: <api-key>",
"X-TIMESTAMP: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data"
payload := strings.NewReader("{\n \"customer_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"tax_number\": \"ABCPG1234N\",\n \"income_range\": \"10L-15L\",\n \"profession\": \"Private Sector Employee\",\n \"full_name\": \"John Doe\",\n \"phone\": \"9911002211\",\n \"full_address\": \"FULL_ADDRESS_OF_THE_CUSTOMER\",\n \"dob\": \"DD-MM-YYYY\",\n \"registered_date\": \"DD-MM-YYYY\",\n \"document_type\": \"<string>\",\n \"document_front_image_url\": \"<string>\",\n \"document_back_image_url\": \"<string>\",\n \"selfie_url\": \"<string>\",\n \"additional_info\": {},\n \"street\": \"Av. Paulista 1000\",\n \"city\": \"São Paulo\",\n \"state_province\": \"SP\",\n \"postal_code\": \"01310-100\",\n \"account_holder_name\": \"Maria Silva\",\n \"beneficiary_identifiers\": {\n \"beneficiary_id_doc_number\": \"GODE561231HDFRRN09\",\n \"beneficiary_dob\": \"1990-01-15\"\n },\n \"ip_address\": \"203.0.113.10\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-TIMESTAMP", "<api-key>")
req.Header.Add("X-SIGNATURE", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"tax_number\": \"ABCPG1234N\",\n \"income_range\": \"10L-15L\",\n \"profession\": \"Private Sector Employee\",\n \"full_name\": \"John Doe\",\n \"phone\": \"9911002211\",\n \"full_address\": \"FULL_ADDRESS_OF_THE_CUSTOMER\",\n \"dob\": \"DD-MM-YYYY\",\n \"registered_date\": \"DD-MM-YYYY\",\n \"document_type\": \"<string>\",\n \"document_front_image_url\": \"<string>\",\n \"document_back_image_url\": \"<string>\",\n \"selfie_url\": \"<string>\",\n \"additional_info\": {},\n \"street\": \"Av. Paulista 1000\",\n \"city\": \"São Paulo\",\n \"state_province\": \"SP\",\n \"postal_code\": \"01310-100\",\n \"account_holder_name\": \"Maria Silva\",\n \"beneficiary_identifiers\": {\n \"beneficiary_id_doc_number\": \"GODE561231HDFRRN09\",\n \"beneficiary_dob\": \"1990-01-15\"\n },\n \"ip_address\": \"203.0.113.10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-TIMESTAMP"] = '<api-key>'
request["X-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"tax_number\": \"ABCPG1234N\",\n \"income_range\": \"10L-15L\",\n \"profession\": \"Private Sector Employee\",\n \"full_name\": \"John Doe\",\n \"phone\": \"9911002211\",\n \"full_address\": \"FULL_ADDRESS_OF_THE_CUSTOMER\",\n \"dob\": \"DD-MM-YYYY\",\n \"registered_date\": \"DD-MM-YYYY\",\n \"document_type\": \"<string>\",\n \"document_front_image_url\": \"<string>\",\n \"document_back_image_url\": \"<string>\",\n \"selfie_url\": \"<string>\",\n \"additional_info\": {},\n \"street\": \"Av. Paulista 1000\",\n \"city\": \"São Paulo\",\n \"state_province\": \"SP\",\n \"postal_code\": \"01310-100\",\n \"account_holder_name\": \"Maria Silva\",\n \"beneficiary_identifiers\": {\n \"beneficiary_id_doc_number\": \"GODE561231HDFRRN09\",\n \"beneficiary_dob\": \"1990-01-15\"\n },\n \"ip_address\": \"203.0.113.10\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "PROCESSING",
"failure_reason": null,
"capabilities": [
"PAYIN",
"PAYOUT"
]
}
}{
"status": false,
"message": "Internal Server Error",
"data": null,
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later."
}KYC
Add KYC Data
Sends a customer’s KYC data. The fields follow the customer’s capabilities.
POST
/
kyc
/
add-data
cURL
curl --request POST \
--url https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"customer_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"tax_number": "ABCPG1234N",
"income_range": "10L-15L",
"profession": "Private Sector Employee",
"full_name": "John Doe",
"phone": "9911002211",
"full_address": "FULL_ADDRESS_OF_THE_CUSTOMER",
"dob": "DD-MM-YYYY",
"registered_date": "DD-MM-YYYY",
"document_type": "<string>",
"document_front_image_url": "<string>",
"document_back_image_url": "<string>",
"selfie_url": "<string>",
"additional_info": {},
"street": "Av. Paulista 1000",
"city": "São Paulo",
"state_province": "SP",
"postal_code": "01310-100",
"account_holder_name": "Maria Silva",
"beneficiary_identifiers": {
"beneficiary_id_doc_number": "GODE561231HDFRRN09",
"beneficiary_dob": "1990-01-15"
},
"ip_address": "203.0.113.10"
}
'import requests
url = "https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data"
payload = {
"customer_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"tax_number": "ABCPG1234N",
"income_range": "10L-15L",
"profession": "Private Sector Employee",
"full_name": "John Doe",
"phone": "9911002211",
"full_address": "FULL_ADDRESS_OF_THE_CUSTOMER",
"dob": "DD-MM-YYYY",
"registered_date": "DD-MM-YYYY",
"document_type": "<string>",
"document_front_image_url": "<string>",
"document_back_image_url": "<string>",
"selfie_url": "<string>",
"additional_info": {},
"street": "Av. Paulista 1000",
"city": "São Paulo",
"state_province": "SP",
"postal_code": "01310-100",
"account_holder_name": "Maria Silva",
"beneficiary_identifiers": {
"beneficiary_id_doc_number": "GODE561231HDFRRN09",
"beneficiary_dob": "1990-01-15"
},
"ip_address": "203.0.113.10"
}
headers = {
"X-API-KEY": "<api-key>",
"X-TIMESTAMP": "<api-key>",
"X-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-TIMESTAMP': '<api-key>',
'X-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customer_id: '4e6f1b20-a73c-11ec-b909-0242ac120002',
tax_number: 'ABCPG1234N',
income_range: '10L-15L',
profession: 'Private Sector Employee',
full_name: 'John Doe',
phone: '9911002211',
full_address: 'FULL_ADDRESS_OF_THE_CUSTOMER',
dob: 'DD-MM-YYYY',
registered_date: 'DD-MM-YYYY',
document_type: '<string>',
document_front_image_url: '<string>',
document_back_image_url: '<string>',
selfie_url: '<string>',
additional_info: {},
street: 'Av. Paulista 1000',
city: 'São Paulo',
state_province: 'SP',
postal_code: '01310-100',
account_holder_name: 'Maria Silva',
beneficiary_identifiers: {beneficiary_id_doc_number: 'GODE561231HDFRRN09', beneficiary_dob: '1990-01-15'},
ip_address: '203.0.113.10'
})
};
fetch('https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customer_id' => '4e6f1b20-a73c-11ec-b909-0242ac120002',
'tax_number' => 'ABCPG1234N',
'income_range' => '10L-15L',
'profession' => 'Private Sector Employee',
'full_name' => 'John Doe',
'phone' => '9911002211',
'full_address' => 'FULL_ADDRESS_OF_THE_CUSTOMER',
'dob' => 'DD-MM-YYYY',
'registered_date' => 'DD-MM-YYYY',
'document_type' => '<string>',
'document_front_image_url' => '<string>',
'document_back_image_url' => '<string>',
'selfie_url' => '<string>',
'additional_info' => [
],
'street' => 'Av. Paulista 1000',
'city' => 'São Paulo',
'state_province' => 'SP',
'postal_code' => '01310-100',
'account_holder_name' => 'Maria Silva',
'beneficiary_identifiers' => [
'beneficiary_id_doc_number' => 'GODE561231HDFRRN09',
'beneficiary_dob' => '1990-01-15'
],
'ip_address' => '203.0.113.10'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-SIGNATURE: <api-key>",
"X-TIMESTAMP: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data"
payload := strings.NewReader("{\n \"customer_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"tax_number\": \"ABCPG1234N\",\n \"income_range\": \"10L-15L\",\n \"profession\": \"Private Sector Employee\",\n \"full_name\": \"John Doe\",\n \"phone\": \"9911002211\",\n \"full_address\": \"FULL_ADDRESS_OF_THE_CUSTOMER\",\n \"dob\": \"DD-MM-YYYY\",\n \"registered_date\": \"DD-MM-YYYY\",\n \"document_type\": \"<string>\",\n \"document_front_image_url\": \"<string>\",\n \"document_back_image_url\": \"<string>\",\n \"selfie_url\": \"<string>\",\n \"additional_info\": {},\n \"street\": \"Av. Paulista 1000\",\n \"city\": \"São Paulo\",\n \"state_province\": \"SP\",\n \"postal_code\": \"01310-100\",\n \"account_holder_name\": \"Maria Silva\",\n \"beneficiary_identifiers\": {\n \"beneficiary_id_doc_number\": \"GODE561231HDFRRN09\",\n \"beneficiary_dob\": \"1990-01-15\"\n },\n \"ip_address\": \"203.0.113.10\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-TIMESTAMP", "<api-key>")
req.Header.Add("X-SIGNATURE", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"tax_number\": \"ABCPG1234N\",\n \"income_range\": \"10L-15L\",\n \"profession\": \"Private Sector Employee\",\n \"full_name\": \"John Doe\",\n \"phone\": \"9911002211\",\n \"full_address\": \"FULL_ADDRESS_OF_THE_CUSTOMER\",\n \"dob\": \"DD-MM-YYYY\",\n \"registered_date\": \"DD-MM-YYYY\",\n \"document_type\": \"<string>\",\n \"document_front_image_url\": \"<string>\",\n \"document_back_image_url\": \"<string>\",\n \"selfie_url\": \"<string>\",\n \"additional_info\": {},\n \"street\": \"Av. Paulista 1000\",\n \"city\": \"São Paulo\",\n \"state_province\": \"SP\",\n \"postal_code\": \"01310-100\",\n \"account_holder_name\": \"Maria Silva\",\n \"beneficiary_identifiers\": {\n \"beneficiary_id_doc_number\": \"GODE561231HDFRRN09\",\n \"beneficiary_dob\": \"1990-01-15\"\n },\n \"ip_address\": \"203.0.113.10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.zapyd.com/cms/api/v1/kyc/add-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-TIMESTAMP"] = '<api-key>'
request["X-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"tax_number\": \"ABCPG1234N\",\n \"income_range\": \"10L-15L\",\n \"profession\": \"Private Sector Employee\",\n \"full_name\": \"John Doe\",\n \"phone\": \"9911002211\",\n \"full_address\": \"FULL_ADDRESS_OF_THE_CUSTOMER\",\n \"dob\": \"DD-MM-YYYY\",\n \"registered_date\": \"DD-MM-YYYY\",\n \"document_type\": \"<string>\",\n \"document_front_image_url\": \"<string>\",\n \"document_back_image_url\": \"<string>\",\n \"selfie_url\": \"<string>\",\n \"additional_info\": {},\n \"street\": \"Av. Paulista 1000\",\n \"city\": \"São Paulo\",\n \"state_province\": \"SP\",\n \"postal_code\": \"01310-100\",\n \"account_holder_name\": \"Maria Silva\",\n \"beneficiary_identifiers\": {\n \"beneficiary_id_doc_number\": \"GODE561231HDFRRN09\",\n \"beneficiary_dob\": \"1990-01-15\"\n },\n \"ip_address\": \"203.0.113.10\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "PROCESSING",
"failure_reason": null,
"capabilities": [
"PAYIN",
"PAYOUT"
]
}
}{
"status": false,
"message": "Internal Server Error",
"data": null,
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later."
}Add KYC Data
What to send
Read Fetch KYC Configuration first. It lists the fields for each of the customer’s capabilities.| Customer capabilities | Body | Result |
|---|---|---|
With PAYIN | KYC sharing: identity document, selfie, personal details and additional_info. India only; USA customers use Generate KYC Link. | KYC starts as PROCESSING |
Without PAYIN (PAYOUT, REMITTANCE_PAYOUT or both) | The required fields in kyc.fields, address_fields and the method’s beneficiary_identifiers. A customer with none required sends only customer_id. | The first call verifies the customer. Until then it’s UNVERIFIED |
PAYIN:
PAYOUTrequirestax_number(PAN),income_rangeandprofession. The customer isPROCESSINGwhile the PAN is checked, thenVERIFIEDorFAILED.REMITTANCE_PAYOUTalone takes only an optionaltax_number. Send{"customer_id": "..."}to verify the customer without one. Sendingincome_rangeorprofessionreturns 400.
POST /customer/create never verifies a customer without PAYIN, so call this endpoint before you quote.
Payins in India need an Aadhaar-verified customer.
Error Codes and Messages
| API Status Code | Response | Reason |
|---|---|---|
| 400 | Customer not found or access denied | Customer not found |
| 400 | Customer not found or access denied | Customer does not belong to the organization |
| 400 | KYC already exists | KYC already exists for the customer |
| 400 | KYC already in use | KYC is being used by another customer |
| 400 | Not accepted for this customer’s capabilities. | Field not in the capabilities |
| 400 | This field is required for <country>. | A field the customer’s capabilities require is missing |
| 400 | This field is required for IND PAYOUT customers. | A required India PAYOUT field is missing |
| 400 | PAN is already linked to another customer within this organization. | tax_number belongs to another customer |
| 500 | Internal Server Error | Internal Server Error |
Authorizations
Body
application/json
Required with PAYIN. Must include document_number.
Response
KYC data added successfully
Hide child attributes
Hide child attributes