Upload Certification
Upload Certification
POST
https://api.iafcertsearch.org/api/client/v2/mncb/upload-cert
Fields that are marked with an asterisk (*
) are mandatory.
Headers
Request Body
{
"data": {
"company_certifications_id": string
}
}
{
"error": true,
"timestamp": number (Epoch time),
"elapse": number,
"errors": {
"message": "Invalid Session token has been used.",
"code": "invalid_session_token"
}
}
{
"error": true,
"timestamp": number (Epoch time),
"elapse": number,
"errors": {
"message": "error_message",
"code": "error_code"
}
}
{
"error": true,
"timestamp": number (Epoch time),
"elapse": number,
"errors": {
"code": "validation_error",
"message": {
"field_name": "error_message"
}
}
}
Upload Certification
We recommend to have an interval of 1 minute in between API requests to avoid errors during certification data publication.
To view the response data example, click the right arrow at the right side of the response description.
You can also use https://api.sandbox.iafcertsearch.org/api/client/v1/mncb/upload-cert to test it on the Sandbox server.
Take a look at how you might call this method:
curl --location --request POST 'https://api.iafcertsearch.org/api/client/v2/mncb/upload-cert' \
--header 'Content-Type: application/json' \
--header 'x-http-authorization: <<API_KEY>>' \
--data-raw '{
"certified_entity": {
"certified_entity_unique_id": "string",
"certified_entity_name": "string",
"certified_entity_trading_name": "string",
"certified_entity_english_name": "string",
"confidential_certified_entity": "string",
"business_registered_street": "string",
"business_registered_city": "string",
"business_registered_state": "string",
"business_registered_zip_code": "string",
"business_registered_country": "string",
"business_registered_full_address": "string",
"certified_entity_website": "string",
"business_registration_number": "string",
"tax_id": "string",
"company_id_number": "string",
"vat": "string",
"duns_number": "string"
},
"certification": {
"certificate_identity_number": "string",
"certificate_number": "string",
"certification_status": "string",
"certificate_accreditation_status": "string",
"certification_type": "string",
"certification_scope": "string",
"flexible_scope": "string",
"certification_original_issue_date": "string",
"certification_issue_date": "string",
"certification_expiry_date": "string",
"certified_entity_unique_id": "string",
"main_site_street": "string",
"main_site_city": "string",
"main_site_state": "string",
"main_site_zip_code": "string",
"main_site_country": "string",
"main_site_full_address": "string",
"accreditation_body_name": "string",
"accreditation_body_acronym_name": "string",
"certification_body_name": "string",
"certification_body_acronym_name": "string",
"confidential_certified_entity": "string",
"schemes": [
{
"scheme_name": "string",
"standard_list": [
{
"standards_name": "string"
}
]
}
],
"cert_sites": [
{
"certified_entity_unique_id": "string",
"site_type": "string",
"street": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"country": "string",
"full_address": "string",
"scope": "string"
}
],
"sectors": [
{
"sector_name": "string",
"sector_code": "string"
}
]
}
}'
require "uri"
require "json"
require "net/http"
url = URI("https://api.iafcertsearch.org/api/client/v2/mncb/upload-cert")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["x-http-authorization"] = "<<API_KEY>>"
request.body = JSON.dump({
"certified_entity": {
"certified_entity_unique_id": "string",
"certified_entity_name": "string",
"certified_entity_trading_name": "string",
"certified_entity_english_name": "string",
"confidential_certified_entity": "string",
"business_registered_street": "string",
"business_registered_city": "string",
"business_registered_state": "string",
"business_registered_zip_code": "string",
"business_registered_country": "string",
"business_registered_full_address": "string",
"certified_entity_website": "string",
"business_registration_number": "string",
"tax_id": "string",
"company_id_number": "string",
"vat": "string",
"duns_number": "string"
},
"certification": {
"certificate_identity_number": "string",
"certificate_number": "string",
"certification_status": "string",
"certificate_accreditation_status": "string",
"certification_type": "string",
"certification_scope": "string",
"flexible_scope": "string",
"certification_original_issue_date": "string",
"certification_issue_date": "string",
"certification_expiry_date": "string",
"certified_entity_unique_id": "string",
"main_site_street": "string",
"main_site_city": "string",
"main_site_state": "string",
"main_site_zip_code": "string",
"main_site_country": "string",
"main_site_full_address": "string",
"accreditation_body_name": "string",
"accreditation_body_acronym_name": "string",
"certification_body_name": "string",
"certification_body_acronym_name": "string",
"confidential_certified_entity": "string",
"schemes": [
{
"scheme_name": "string",
"standard_list": [
{
"standards_name": "string"
}
]
}
],
"cert_sites": [
{
"certified_entity_unique_id": "string",
"site_type": "string",
"street": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"country": "string",
"full_address": "string",
"scope": "string"
}
],
"sectors": [
{
"sector_name": "string",
"sector_code": "string"
}
]
}
})
response = https.request(request)
puts response.read_body
import http.client
import json
conn = http.client.HTTPSConnection("api.iafcertsearch.org")
payload = json.dumps({
"certified_entity": {
"certified_entity_unique_id": "string",
"certified_entity_name": "string",
"certified_entity_trading_name": "string",
"certified_entity_english_name": "string",
"confidential_certified_entity": "string",
"business_registered_street": "string",
"business_registered_city": "string",
"business_registered_state": "string",
"business_registered_zip_code": "string",
"business_registered_country": "string",
"business_registered_full_address": "string",
"certified_entity_website": "string",
"business_registration_number": "string",
"tax_id": "string",
"company_id_number": "string",
"vat": "string",
"duns_number": "string"
},
"certification": {
"certificate_identity_number": "string",
"certificate_number": "string",
"certification_status": "string",
"certificate_accreditation_status": "string",
"certification_type": "string",
"certification_scope": "string",
"flexible_scope": "string",
"certification_original_issue_date": "string",
"certification_issue_date": "string",
"certification_expiry_date": "string",
"certified_entity_unique_id": "string",
"main_site_street": "string",
"main_site_city": "string",
"main_site_state": "string",
"main_site_zip_code": "string",
"main_site_country": "string",
"main_site_full_address": "string",
"accreditation_body_name": "string",
"accreditation_body_acronym_name": "string",
"certification_body_name": "string",
"certification_body_acronym_name": "string",
"confidential_certified_entity": "string",
"schemes": [
{
"scheme_name": "string",
"standard_list": [
{
"standards_name": "string"
}
]
}
],
"cert_sites": [
{
"certified_entity_unique_id": "string",
"site_type": "string",
"street": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"country": "string",
"full_address": "string",
"scope": "string"
}
],
"sectors": [
{
"sector_name": "string",
"sector_code": "string"
}
]
}
})
headers = {
'Content-Type': 'application/json',
'x-http-authorization': '<<API_KEY>>'
}
conn.request("POST", "/api/client/v2/mncb/upload-cert", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.iafcertsearch.org/api/client/v2/mncb/upload-cert',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"certified_entity": {
"certified_entity_unique_id": "string",
"certified_entity_name": "string",
"certified_entity_trading_name": "string",
"certified_entity_english_name": "string",
"confidential_certified_entity": "string",
"business_registered_street": "string",
"business_registered_city": "string",
"business_registered_state": "string",
"business_registered_zip_code": "string",
"business_registered_country": "string",
"business_registered_full_address": "string",
"certified_entity_website": "string",
"business_registration_number": "string",
"tax_id": "string",
"company_id_number": "string",
"vat": "string",
"duns_number": "string"
},
"certification": {
"certificate_identity_number": "string",
"certificate_number": "string",
"certification_status": "string",
"certificate_accreditation_status": "string",
"certification_type": "string",
"certification_scope": "string",
"flexible_scope": "string",
"certification_original_issue_date": "string",
"certification_issue_date": "string",
"certification_expiry_date": "string",
"certified_entity_unique_id": "string",
"main_site_street": "string",
"main_site_city": "string",
"main_site_state": "string",
"main_site_zip_code": "string",
"main_site_country": "string",
"main_site_full_address": "string",
"accreditation_body_name": "string",
"accreditation_body_acronym_name": "string",
"certification_body_name": "string",
"certification_body_acronym_name": "string",
"confidential_certified_entity": "string",
"schemes": [
{
"scheme_name": "string",
"standard_list": [
{
"standards_name": "string"
}
]
}
],
"cert_sites": [
{
"certified_entity_unique_id": "string",
"site_type": "string",
"street": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"country": "string",
"full_address": "string",
"scope": "string"
}
],
"sectors": [
{
"sector_name": "string",
"sector_code": "string"
}
]
}
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'x-http-authorization: <<API_KEY>>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"certified_entity\": {\n \"certified_entity_unique_id\": \"string\",\n \"certified_entity_name\": \"string\",\n \"certified_entity_trading_name\": \"string\",\n \"certified_entity_english_name\": \"string\",\n \"confidential_certified_entity\": \"string\",\n \"business_registered_street\": \"string\",\n \"business_registered_city\": \"string\",\n \"business_registered_state\": \"string\",\n \"business_registered_zip_code\": \"string\",\n \"business_registered_country\": \"string\",\n \"business_registered_full_address\": \"string\",\n \"certified_entity_website\": \"string\",\n \"business_registration_number\": \"string\",\n \"tax_id\": \"string\",\n \"company_id_number\": \"string\",\n \"vat\": \"string\",\n \"duns_number\": \"string\"\n },\n \"certification\": {\n \"certificate_identity_number\": \"string\",\n \"certificate_number\": \"string\",\n \"certification_status\": \"string\",\n \"certificate_accreditation_status\": \"string\",\n \"certification_type\": \"string\",\n \"certification_scope\": \"string\",\n \"flexible_scope\": \"string\",\n \"certification_original_issue_date\": \"string\",\n \"certification_issue_date\": \"string\",\n \"certification_expiry_date\": \"string\",\n \"certified_entity_unique_id\": \"string\",\n \"main_site_street\": \"string\",\n \"main_site_city\": \"string\",\n \"main_site_state\": \"string\",\n \"main_site_zip_code\": \"string\",\n \"main_site_country\": \"string\",\n \"main_site_full_address\": \"string\",\n \"accreditation_body_name\": \"string\",\n \"accreditation_body_acronym_name\": \"string\",\n \"certification_body_name\": \"string\", \n \"certification_body_acronym_name\": \"string\",\n \"certification_body_identity_number\": \"string\",\n \"confidential_certified_entity\": \"string\",\n \"schemes\": [\n {\n \"scheme_name\": \"string\",\n \"standard_list\": [\n {\n \"standards_name\": \"string\"\n }\n ]\n }\n ],\n \"cert_sites\": [\n {\n \"certified_entity_unique_id\": \"string\",\n \"site_type\": \"string\",\n \"street\": \"string\",\n \"city\": \"string\",\n \"state\": \"string\",\n \"zip_code\": \"string\",\n \"country\": \"string\",\n \"full_address\": \"string\",\n \"scope\": \"string\"\n }\n ],\n \"sectors\": [\n {\n \"sector_name\": \"string\",\n \"sector_code\": \"string\"\n }\n ]\n }\n}");
Request request = new Request.Builder()
.url("http://127.0.0.1:8000/api/client/v2/mncb/upload-cert")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("x-http-authorization", "")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var data = JSON.stringify({
"certified_entity": {
"certified_entity_unique_id": "string",
"certified_entity_name": "string",
"certified_entity_trading_name": "string",
"certified_entity_english_name": "string",
"confidential_certified_entity": "string",
"business_registered_street": "string",
"business_registered_city": "string",
"business_registered_state": "string",
"business_registered_zip_code": "string",
"business_registered_country": "string",
"business_registered_full_address": "string",
"certified_entity_website": "string",
"business_registration_number": "string",
"tax_id": "string",
"company_id_number": "string",
"vat": "string",
"duns_number": "string"
},
"certification": {
"certificate_identity_number": "string",
"certificate_number": "string",
"certification_status": "string",
"certificate_accreditation_status": "string",
"certification_type": "string",
"certification_scope": "string",
"flexible_scope": "string",
"certification_original_issue_date": "string",
"certification_issue_date": "string",
"certification_expiry_date": "string",
"certified_entity_unique_id": "string",
"main_site_street": "string",
"main_site_city": "string",
"main_site_state": "string",
"main_site_zip_code": "string",
"main_site_country": "string",
"main_site_full_address": "string",
"accreditation_body_name": "string",
"accreditation_body_acronym_name": "string",
"certification_body_name": "string",
"certification_body_acronym_name": "string",
"confidential_certified_entity": "string",
"schemes": [
{
"scheme_name": "string",
"standard_list": [
{
"standards_name": "string"
}
]
}
],
"cert_sites": [
{
"certified_entity_unique_id": "string",
"site_type": "string",
"street": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"country": "string",
"full_address": "string",
"scope": "string"
}
],
"sectors": [
{
"sector_name": "string",
"sector_code": "string"
}
]
}
});
var config = {
method: 'post',
url: 'https://api.iafcertsearch.org/api/client/v2/mncb/upload-cert',
headers: {
'Content-Type': 'application/json',
'x-http-authorization': '<<API_KEY>>'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.iafcertsearch.org/api/client/v2/mncb/upload-cert"
method := "POST"
payload := strings.NewReader(`{
"certified_entity": {
"certified_entity_unique_id": "string",
"certified_entity_name": "string",
"certified_entity_trading_name": "string",
"certified_entity_english_name": "string",
"confidential_certified_entity": "string",
"business_registered_street": "string",
"business_registered_city": "string",
"business_registered_state": "string",
"business_registered_zip_code": "string",
"business_registered_country": "string",
"business_registered_full_address": "string",
"certified_entity_website": "string",
"business_registration_number": "string",
"tax_id": "string",
"company_id_number": "string",
"vat": "string",
"duns_number": "string"
},
"certification": {
"certificate_identity_number": "string",
"certificate_number": "string",
"certification_status": "string",
"certificate_accreditation_status": "string",
"certification_type": "string",
"certification_scope": "string",
"flexible_scope": "string",
"certification_original_issue_date": "string",
"certification_issue_date": "string",
"certification_expiry_date": "string",
"certified_entity_unique_id": "string",
"main_site_street": "string",
"main_site_city": "string",
"main_site_state": "string",
"main_site_zip_code": "string",
"main_site_country": "string",
"main_site_full_address": "string",
"accreditation_body_name": "string",
"accreditation_body_acronym_name": "string",
"certification_body_name": "string",
"certification_body_acronym_name": "string",
"confidential_certified_entity": "string",
"schemes": [
{
"scheme_name": "string",
"standard_list": [
{
"standards_name": "string"
}
]
}
],
"cert_sites": [
{
"certified_entity_unique_id": "string",
"site_type": "string",
"street": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"country": "string",
"full_address": "string",
"scope": "string"
}
],
"sectors": [
{
"sector_name": "string",
"sector_code": "string"
}
]
}
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("x-http-authorization", "<<API_KEY>>")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
var client = new RestClient("https://api.iafcertsearch.org/api/client/v2/mncb/upload-cert");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("x-http-authorization", "<<API_KEY>>");
var body = @"{" + "\n" +
@" ""certified_entity"": {" + "\n" +
@" ""certified_entity_unique_id"": ""string""," + "\n" +
@" ""certified_entity_name"": ""string""," + "\n" +
@" ""certified_entity_trading_name"": ""string""," + "\n" +
@" ""certified_entity_english_name"": ""string""," + "\n" +
@" ""confidential_certified_entity"": ""string""," + "\n" +
@" ""business_registered_street"": ""string""," + "\n" +
@" ""business_registered_city"": ""string""," + "\n" +
@" ""business_registered_state"": ""string""," + "\n" +
@" ""business_registered_zip_code"": ""string""," + "\n" +
@" ""business_registered_country"": ""string""," + "\n" +
@" ""business_registered_full_address"": ""string""," + "\n" +
@" ""certified_entity_website"": ""string""," + "\n" +
@" ""business_registration_number"": ""string""," + "\n" +
@" ""tax_id"": ""string""," + "\n" +
@" ""company_id_number"": ""string""," + "\n" +
@" ""vat"": ""string""," + "\n" +
@" ""duns_number"": ""string""" + "\n" +
@" }," + "\n" +
@" ""certification"": {" + "\n" +
@" ""certificate_identity_number"": ""string""," + "\n" +
@" ""certificate_number"": ""string""," + "\n" +
@" ""certification_status"": ""string""," + "\n" +
@" ""certificate_accreditation_status"": ""string""," + "\n" +
@" ""certification_type"": ""string""," + "\n" +
@" ""certification_scope"": ""string""," + "\n" +
@" ""flexible_scope"": ""string""," + "\n" +
@" ""certification_original_issue_date"": ""string""," + "\n" +
@" ""certification_issue_date"": ""string""," + "\n" +
@" ""certification_expiry_date"": ""string""," + "\n" +
@" ""certified_entity_unique_id"": ""string""," + "\n" +
@" ""main_site_street"": ""string""," + "\n" +
@" ""main_site_city"": ""string""," + "\n" +
@" ""main_site_state"": ""string""," + "\n" +
@" ""main_site_zip_code"": ""string""," + "\n" +
@" ""main_site_country"": ""string""," + "\n" +
@" ""main_site_full_address"": ""string""," + "\n" +
@" ""accreditation_body_name"": ""string""," + "\n" +
@" ""accreditation_body_acronym_name"": ""string""," + "\n" +
@" ""certification_body_name"": ""string"", " + "\n" +
@" ""certification_body_acronym_name"": ""string""," + "\n" +
@" ""certification_body_identity_number"": ""string""," + "\n" +
@" ""confidential_certified_entity"": ""string""," + "\n" +
@" ""schemes"": [" + "\n" +
@" {" + "\n" +
@" ""scheme_name"": ""string""," + "\n" +
@" ""standard_list"": [" + "\n" +
@" {" + "\n" +
@" ""standards_name"": ""string""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""cert_sites"": [" + "\n" +
@" {" + "\n" +
@" ""certified_entity_unique_id"": ""string""," + "\n" +
@" ""site_type"": ""string""," + "\n" +
@" ""street"": ""string""," + "\n" +
@" ""city"": ""string""," + "\n" +
@" ""state"": ""string""," + "\n" +
@" ""zip_code"": ""string""," + "\n" +
@" ""country"": ""string""," + "\n" +
@" ""full_address"": ""string""," + "\n" +
@" ""scope"": ""string""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@" ""sectors"": [" + "\n" +
@" {" + "\n" +
@" ""sector_name"": ""string""," + "\n" +
@" ""sector_code"": ""string""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@" }" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Last updated