Initiate recipient KYC
curl --request POST \
--url https://api.sandbox.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc \
--header 'Authorization: Basic <encoded-value>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.sandbox.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Basic <encoded-value>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Basic <encoded-value>'}
};
fetch('https://api.sandbox.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc', 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.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Idempotency-Key: <idempotency-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.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"recipient_id": "<string>",
"kyc_verification_status": "<string>"
}{
"request_id": "<string>",
"message": "<string>",
"code": "recipient-worker-email-already-exists",
"data": {
"retryable": true
}
}{
"request_id": "<string>",
"message": "<string>",
"code": "recipient-worker-email-already-exists",
"data": {
"retryable": true
}
}{
"request_id": "<string>",
"message": "<string>",
"code": "recipient-worker-email-already-exists",
"data": {
"retryable": true
}
}Company Recipients
Initiate recipient KYC
Submit the uploaded documents and tax ID of a worker you created through
recipients/create for identity verification. Send no body. Requires an
Idempotency-Key header. Bitwage sends user.kyc_status_update when the
status changes.
POST
/
api
/
company
/
{company_id}
/
recipients
/
{recipient_id}
/
kyc
Initiate recipient KYC
curl --request POST \
--url https://api.sandbox.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc \
--header 'Authorization: Basic <encoded-value>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.sandbox.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Basic <encoded-value>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Basic <encoded-value>'}
};
fetch('https://api.sandbox.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc', 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.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Idempotency-Key: <idempotency-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.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.bitwage.com/api/company/{company_id}/recipients/{recipient_id}/kyc")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"recipient_id": "<string>",
"kyc_verification_status": "<string>"
}{
"request_id": "<string>",
"message": "<string>",
"code": "recipient-worker-email-already-exists",
"data": {
"retryable": true
}
}{
"request_id": "<string>",
"message": "<string>",
"code": "recipient-worker-email-already-exists",
"data": {
"retryable": true
}
}{
"request_id": "<string>",
"message": "<string>",
"code": "recipient-worker-email-already-exists",
"data": {
"retryable": true
}
}Authorizations
api_keyoauth