cURL
curl --request GET \
--url https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id} \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>'import requests
url = "https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}"
headers = {
"X-API-KEY": "<api-key>",
"X-TIMESTAMP": "<api-key>",
"X-SIGNATURE": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-API-KEY': '<api-key>',
'X-TIMESTAMP': '<api-key>',
'X-SIGNATURE': '<api-key>'
}
};
fetch('https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}', 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/configuration/{customer_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-TIMESTAMP", "<api-key>")
req.Header.Add("X-SIGNATURE", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-TIMESTAMP"] = '<api-key>'
request["X-SIGNATURE"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"customer_id": "84737c7d-7b62-4204-80d6-80f6ecb3ceb4",
"country": "IND",
"capabilities": [
"PAYIN",
"PAYOUT"
],
"requirements": {
"PAYOUT": {
"kyc": {
"method": "DATA",
"fields": {
"tax_number": {
"required": true
},
"income_range": {
"required": true
},
"profession": {
"required": true
},
"document_type": {
"required": false
},
"document_front_image_url": {
"required": false
},
"document_back_image_url": {
"required": false
},
"full_address": {
"required": false
}
}
},
"address_fields": [],
"bank": {
"default_method": "ACCOUNT_DETAILS",
"methods": {
"ACCOUNT_DETAILS": {
"identifiers": [
"account_number",
"ifsc"
],
"beneficiary_identifiers": []
}
}
}
}
}
}
}{
"status": false,
"message": "Internal Server Error",
"data": null,
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later."
}KYC
Fetch KYC Configuration
Returns what to collect for a customer: KYC fields, address and bank fields, per capability.
GET
/
kyc
/
configuration
/
{customer_id}
cURL
curl --request GET \
--url https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id} \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>'import requests
url = "https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}"
headers = {
"X-API-KEY": "<api-key>",
"X-TIMESTAMP": "<api-key>",
"X-SIGNATURE": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-API-KEY': '<api-key>',
'X-TIMESTAMP': '<api-key>',
'X-SIGNATURE': '<api-key>'
}
};
fetch('https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}', 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/configuration/{customer_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-TIMESTAMP", "<api-key>")
req.Header.Add("X-SIGNATURE", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.zapyd.com/cms/api/v1/kyc/configuration/{customer_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-TIMESTAMP"] = '<api-key>'
request["X-SIGNATURE"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"customer_id": "84737c7d-7b62-4204-80d6-80f6ecb3ceb4",
"country": "IND",
"capabilities": [
"PAYIN",
"PAYOUT"
],
"requirements": {
"PAYOUT": {
"kyc": {
"method": "DATA",
"fields": {
"tax_number": {
"required": true
},
"income_range": {
"required": true
},
"profession": {
"required": true
},
"document_type": {
"required": false
},
"document_front_image_url": {
"required": false
},
"document_back_image_url": {
"required": false
},
"full_address": {
"required": false
}
}
},
"address_fields": [],
"bank": {
"default_method": "ACCOUNT_DETAILS",
"methods": {
"ACCOUNT_DETAILS": {
"identifiers": [
"account_number",
"ifsc"
],
"beneficiary_identifiers": []
}
}
}
}
}
}
}{
"status": false,
"message": "Internal Server Error",
"data": null,
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later."
}Fetch KYC Configuration
Response
requirements has one block per capability on the customer. Build your form from the union of the blocks: a field required in any block is required.
kyc.method | Meaning |
|---|---|
JOURNEY | Full KYC (PAYIN): the hosted link or KYC sharing. The block lists document_types, additional_info and fields. |
DATA | A payout capability on a customer without PAYIN: send kyc.fields, address_fields and the method’s beneficiary_identifiers to Add KYC Data. |
PAYIN | The customer’s verified full KYC covers this payout flow. |
bank.methods lists each bank_account_type and its identifiers for Add Bank Account.
{
"customer_id": "84737c7d-7b62-4204-80d6-80f6ecb3ceb4",
"country": "IND",
"capabilities": ["REMITTANCE_PAYOUT"],
"requirements": {
"REMITTANCE_PAYOUT": {
"kyc": { "method": "DATA", "fields": { "tax_number": { "required": false } } },
"address_fields": [],
"bank": {
"default_method": "ACCOUNT_DETAILS",
"methods": { "ACCOUNT_DETAILS": { "identifiers": ["account_number", "ifsc"], "beneficiary_identifiers": [] } }
}
}
}
}
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 |
| 500 | Internal Server Error. | Internal Server Error |
Authorizations
Path Parameters
Response
Successful response
Hide child attributes
Hide child attributes
One block per capability on the customer, keyed PAYIN, PAYOUT or REMITTANCE_PAYOUT.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Example:
{ "PAYOUT": { "kyc": { "method": "DATA", "fields": { "tax_number": { "required": true }, "income_range": { "required": true }, "profession": { "required": true }, "document_type": { "required": false }, "document_front_image_url": { "required": false }, "document_back_image_url": { "required": false }, "full_address": { "required": false } } }, "address_fields": [], "bank": { "default_method": "ACCOUNT_DETAILS", "methods": { "ACCOUNT_DETAILS": { "identifiers": ["account_number", "ifsc"], "beneficiary_identifiers": [] } } } } }