# Bulk Upload Certification

## Bulk Upload Certification

<mark style="color:green;">`POST`</mark> `https://api.iafcertsearch.org/api/client/v1/cb/bulk-upload-cert`

Fields that are marked with an asterisk (`*`) are mandatory.

The symbol (`[*]`) is used to indicate that a particular field is part of an array of certification objects.

The maximum number of Certification records you can upload at a time is 1000.

#### Headers

| Name                                                   | Type   | Description                                                                                                                                                     |
| ------------------------------------------------------ | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Content-Type<mark style="color:red;">\*</mark>         | String | application/json                                                                                                                                                |
| x-http-authorization<mark style="color:red;">\*</mark> | String | <p>API Key received from <https://iafcertsearch.org/import-management/api-integration></p><p>Example:</p><p><code>x-http-authorization: <\<API KEY>></code></p> |

#### Request Body

| Name                                                                                      | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| certifications.\[\*]<mark style="color:red;">\*</mark>                                    | String | <p>{</p><p>"certifications" : \[</p><p>{</p><p>"certificate\_number": "string",</p><p>"certification\_status": "string",</p><p><strong>. . . .</strong></p><p>}</p><p>]</p><p>}</p>                                                                                                                                                                                                                                                                                                                                                                         |
| certifications.\[\*].certificate\_number<mark style="color:red;">\*</mark>                | String | Certificate number shown on the certificate itself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| certifications.\[\*].certificate\_identity\_number                                        | String | <p>Certificate Identity Number</p><p></p><p>A unique identifier that provides a more secure form of identification.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| certifications.\[\*].certification\_status<mark style="color:red;">\*</mark>              | String | <p>Certification Status Include the terms that the Certification Body uses to define the status of the certification.<br><br>Accepted Values:<br><br>Active (valid)<br>Inactive<br>Withdrawn<br>Suspended<br>Cancelled (terminated)<br>Hidden (where details of a certification have been uploaded but it is not yet active/live)</p><p>Expired<br>CB Withdrawn<br>Pending<br>Deleted<br><br>If terms vary from the above terms the IAF CertSearch will provide a mapping process.</p>                                                                      |
| certifications.\[\*].certificate\_accreditation\_status                                   | String | <p>Has this certificate been issued under and existing accreditation or is this an unaccredited certificate.<br><br>Accepted values:</p><p>Accredited</p><p>Unaccredited</p>                                                                                                                                                                                                                                                                                                                                                                                |
| certifications.\[\*].certification\_type<mark style="color:red;">\*</mark>                | String | <p>Certification Type<br><br>Accepted Values:<br><br>Management System<br><br>If terms vary from the above terms the IAF CertSearch will provide a mapping process.</p>                                                                                                                                                                                                                                                                                                                                                                                     |
| certifications.\[\*].certification\_scope                                                 | String | <p>Certification Scope<br><br>Example:<br><br>Manufacturing, marketing and export of instruments, consumables and accessories for temperature, active oxygen, hydrogen, carbon measurements and sampling in ferrous and non-ferrous melts.</p>                                                                                                                                                                                                                                                                                                              |
| certifications.\[\*].certification\_original\_issue\_date                                 | String | <p>Original certification date (YYYYMMDD).<br><br>Example:<br><br>20170203</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| certifications.\[\*].certification\_issue\_date<mark style="color:red;">\*</mark>         | String | <p>Most recent certification date as detailed on the certificate (YYYYMMDD).<br><br>Example:</p><p>20170203</p>                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| certifications.\[\*].certification\_expiry\_date<mark style="color:red;">\*</mark>        | String | <p>Certification expiry date as detailed on the certificate (YYYYMMDD).<br><br>Example:<br><br>20170203</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| certifications.\[\*].certified\_entity\_name<mark style="color:red;">\*</mark>            | String | <p>Certified Entity Name (company name) as detailed on the certificate.<br><br>Example:<br><br>Test Food and Logistics Inc.<br>Reliable Logistics Services Inc.</p>                                                                                                                                                                                                                                                                                                                                                                                         |
| certifications.\[\*].certified\_entity\_english\_name                                     | String | <p>Certified Entity English Name<br><br>Example:<br><br>Test Food and Logistics Inc. English Name<br>Reliable Logistics Services Inc. English Name</p>                                                                                                                                                                                                                                                                                                                                                                                                      |
| certifications.\[\*].certified\_entity\_trading\_name                                     | String | <p>Certified Entity Trading Name<br><br>Example:<br><br>Test Food and Logistics Inc. Trading Name<br>Reliable Logistics Services Inc. Trading Name</p>                                                                                                                                                                                                                                                                                                                                                                                                      |
| certifications.\[\*].certified\_entity\_unique\_id<mark style="color:red;">\*</mark>      | String | <p>Mandatory Field provided by the Certification Body<br><br><strong>"Certified Entity Unique ID</strong>" also referred to as a client ID. The <strong>"Certified Entity Unique ID"</strong> / <strong>Client ID</strong> is a unique identification number for the organisation. The entity ID makes it possible to identify which individual certifications belong to the one organisation. The "<strong>Certified Entity Identity Number</strong>" can be any alpha numeric number.<br><br>Example:<br><br>UNIQUEID-COMPANY01<br>UNIQUEID-COMPANY02</p> |
| certifications.\[\*].certified\_entity\_street\_address                                   | String | The main entity address for the certified entity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| certifications.\[\*].certified\_entity\_street\_city                                      | String | City of the main entity address for the certified entity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| certifications.\[\*].certified\_entity\_state                                             | String | State of the main entity address for the certified entity. If no state, leave blank.                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| certifications.\[\*].certified\_entity\_post\_code                                        | String | Zip code or post code of the main entity address for the certified entity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| certifications.\[\*].certified\_entity\_country<mark style="color:red;">\*</mark>         | String | Country/Economy of the main entity address for the certified entity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| certifications.\[\*].certified\_entity\_website                                           | String | Certified Entity Website                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| certifications.\[\*].accreditation\_body\_name<mark style="color:red;">\*</mark>          | String | Accreditation Body Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| certifications.\[\*].accreditation\_body\_acronym\_name<mark style="color:red;">\*</mark> | String | Accreditation Body Acronym                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| certifications.\[\*].confidential\_certified\_entity                                      | String | <p>Where the confidentiality of the Certified Entity is defined.<br><br>Accepted Values:<br><br>Yes</p><p>No</p>                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| certifications.\[\*].schemes<mark style="color:red;">\*</mark>                            | Array  | <p>Certification Schemes<br><br>Example</p><p>{</p><p>"schemes": \[</p><p>{</p><p>"scheme\_name": "string",</p><p>"standard\_list": \[</p><p>{</p><p>"standards\_name": "string"</p><p>}</p><p>]</p><p>}</p><p>]</p><p>}</p>                                                                                                                                                                                                                                                                                                                                |
| certifications.\[\*].sites                                                                | Array  | <p>Certification Sites<br><br>Example</p><p>{</p><p>"sites": \[</p><p>{</p><p>"street": "string",</p><p>"city": "string",</p><p>"state": "string",</p><p>"country": "string",</p><p>"postcode": "string",</p><p>"scope\_description": "string</p><p>}</p><p>]</p><p>}</p><p>To delete all existing sites of a certification, set the value of the <code>sites</code> key to an empty array like so:</p><p>{</p><p>"sites": \[]</p><p>}</p>                                                                                                                  |
| certifications.\[\*].company\_id\_number                                                  | String | <p>Company Identification Number </p><p></p><p>Example: </p><p></p><p>U12345ABCDE12345F123456</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| certifications.\[\*].business\_registration\_number                                       | String | <p>Business Registration Number </p><p></p><p>Example: </p><p></p><p>1234567890A</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| certifications.\[\*].tax\_id                                                              | String | <p>Tax Identification </p><p></p><p>Example: </p><p></p><p>000123456001</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

{% tabs %}
{% tab title="200: OK Request successful." %}

```json
{
  "data": {
    "success": true
  }
}
```

{% endtab %}

{% tab title="400: Bad Request Other errors that is described in the API response." %}

```json
{
    "data": {
      "errors": {
        "record_index": 0,
        "errors": [
          {
            "message": "error_message",
            "code": "error_code",
            "meta": {
              "field_name": "input"
            }
          }
        ]
      }
    }
}
```

{% endtab %}

{% tab title="401: Unauthorized Happens when you use an invalid API Key." %}

```json
{
    "error": true,
    "timestamp": number (Epoch time),
    "elapse": number,
    "errors": {
      "message": "Invalid Session token has been used.",
      "code": "invalid_session_token"
    }
}
```

{% endtab %}

{% tab title="422: Unprocessable Entity Did not pass validation." %}

```json
{
    "error": true,
    "timestamp": number (Epoch time),
    "elapse": number,
    "errors": {
        "code": "validation_error",
        "message": {
            "field_name": "error_message"
        }
    }
}
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
**Bulk Upload Certification**

We recommend to have an interval of 10 minutes in between API requests to avoid errors during certification data publication.
{% endhint %}

{% hint style="info" %}
To view the response data example, click the right arrow at the right side of the response description.
{% endhint %}

{% hint style="info" %}
You can also use <https://api.sandbox.iafcertsearch.org/api/client/v1/cb/bulk-upload-cert> to test it on the Sandbox server.
{% endhint %}

Take a look at how you might call this method:

{% tabs %}
{% tab title="cURL" %}

<pre class="language-shell"><code class="lang-shell">curl --location --request POST 'https://api.iafcertsearch.org/api/client/v1/cb/bulk-upload-cert' \
--header 'Content-Type: application/json' \
--header 'x-http-authorization: &#x3C;&#x3C;API_KEY>>' \
--data-raw '{
<strong>    "certifications": [
</strong>        {
            "certificate_number": "string",
            "certificate_identity_number": "string",
            "certification_status": "string",
            "certificate_accreditation_status": "string",
            "certification_type": "string",
            "certification_scope": "string",
            "certification_original_issue_date": "string",
            "certification_issue_date": "string",
            "certification_expiry_date": "string",
            "certified_entity_name": "string",
            "certified_entity_english_name": "string",
            "certified_entity_trading_name": "string",
            "certified_entity_unique_id": "string",
            "certified_entity_street_address": "string",
            "certified_entity_street_city": "string",
            "certified_entity_state": "string",
            "certified_entity_post_code": "string",
            "certified_entity_country": "string",
            "accreditation_body_name": "string",
            "accreditation_body_acronym_name": "string",
            "confidential_certified_entity": "string",
            "tax_id": "string",
            "business_registration_number": "string",
            "company_id_number": "string",
            "schemes": [
                {
                    "scheme_name": "string",
                    "standard_list": [
                        {
                            "standards_name": "string"
                        }
                    ]
                }
            ],
            "sites": [
                {
                    "street": "string",
                    "city": "string",
                    "state": "string",
                    "country": "string",
                    "postcode": "string",
                    "scope_description": "string"
                }
            ]
        }
    ]
}'
</code></pre>

{% endtab %}

{% tab title="Ruby" %}

```ruby
require "uri"
require "json"
require "net/http"

url = URI("https://api.iafcertsearch.org/api/client/v1/cb/bulk-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({
    "certifications": [
        {
            "certificate_number": "string",
            "certificate_identity_number": "string",
            "certification_status": "string",
            "certificate_accreditation_status": "string",
            "certification_type": "string",
            "certification_scope": "string",
            "certification_original_issue_date": "string",
            "certification_issue_date": "string",
            "certification_expiry_date": "string",
            "certified_entity_name": "string",
            "certified_entity_english_name": "string",
            "certified_entity_trading_name": "string",
            "certified_entity_unique_id": "string",
            "certified_entity_street_address": "string",
            "certified_entity_street_city": "string",
            "certified_entity_state": "string",
            "certified_entity_post_code": "string",
            "certified_entity_country": "string",
            "certified_entity_website": "string",
            "tax_id": "string",
	    "business_registration_number": "string",
	    "company_id_number": "string",
            "accreditation_body_name": "string",
	    "accreditation_body_acronym_name": "string",
            "confidential_certified_entity": "string",
            "schemes": [
                {
                    "scheme_name": "string",
                    "standard_list": [
                        {
                            "standards_name": "string"
                        }
                    ]
                }
            ],
            "sites": [
                {
                    "street": "string",
                    "city": "string",
                    "state": "string",
                    "country": "string",
                    "postcode": "string",
                    "scope_description": "string"
                }
            ]
        }
    ]
})

response = https.request(request)
puts response.read_body
```

{% endtab %}

{% tab title="Python" %}

```python
import http.client
import json

conn = http.client.HTTPSConnection("api.iafcertsearch.org")
payload = json.dumps({
    "certifications": [
        {
            "certificate_number": "string",
            "certificate_identity_number": "string",
            "certification_status": "string",
            "certificate_accreditation_status": "string",
            "certification_type": "string",
            "certification_scope": "string",
            "certification_original_issue_date": "string",
            "certification_issue_date": "string",
            "certification_expiry_date": "string",
            "certified_entity_name": "string",
            "certified_entity_english_name": "string",
            "certified_entity_trading_name": "string",
            "certified_entity_unique_id": "string",
            "certified_entity_street_address": "string",
            "certified_entity_street_city": "string",
            "certified_entity_state": "string",
            "certified_entity_post_code": "string",
            "certified_entity_country": "string",
            "certified_entity_website": "string",
            "tax_id": "string",
	    "business_registration_number": "string",
	    "company_id_number": "string",
            "accreditation_body_name": "string",
	    "accreditation_body_acronym_name": "string",
            "confidential_certified_entity": "string",
            "schemes": [
                {
                    "scheme_name": "string",
                    "standard_list": [
                        {
                            "standards_name": "string"
                        }
                    ]
                }
            ],
            "sites": [
                {
                    "street": "string",
                    "city": "string",
                    "state": "string",
                    "country": "string",
                    "postcode": "string",
                    "scope_description": "string"
                }
            ]
        }
    ]
})
headers = {
  'Content-Type': 'application/json',
  'x-http-authorization': '65603d8724a92'
}
conn.request("POST", "/api/client/v1/cb/bulk-upload-cert", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))  
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.iafcertsearch.org/api/client/v1/cb/bulk-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 =>'{
    "certifications": [
        {
            "certificate_number": "string",
            "certificate_identity_number": "string",
            "certification_status": "string",
            "certificate_accreditation_status": "string",
            "certification_type": "string",
            "certification_scope": "string",
            "certification_original_issue_date": "string",
            "certification_issue_date": "string",
            "certification_expiry_date": "string",
            "certified_entity_name": "string",
            "certified_entity_english_name": "string",
            "certified_entity_trading_name": "string",
            "certified_entity_unique_id": "string",
            "certified_entity_street_address": "string",
            "certified_entity_street_city": "string",
            "certified_entity_state": "string",
            "certified_entity_post_code": "string",
            "certified_entity_country": "string",
            "certified_entity_website": "string",
            "tax_id": "string",
	    "business_registration_number": "string",
	    "company_id_number": "string",
            "accreditation_body_name": "string",
	    "accreditation_body_acronym_name": "string",
            "confidential_certified_entity": "string",
            "schemes": [
                {
                    "scheme_name": "string",
                    "standard_list": [
                        {
                            "standards_name": "string"
                        }
                    ]
                }
            ],
            "sites": [
                {
                    "street": "string",
                    "city": "string",
                    "state": "string",
                    "country": "string",
                    "postcode": "string",
                    "scope_description": "string"
                }
            ]
        }
    ]
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'x-http-authorization: <<API_KEY>>'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```

{% endtab %}

{% tab title="Java" %}

```java
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n    \"certifications\": [\n        {\n            \"certificate_number\": \"string\",\n            \"certificate_identity_number\": \"string\",\n            \"certification_status\": \"string\",\n            \"certificate_accreditation_status\": \"string\",\n            \"certification_type\": \"string\",\n            \"certification_scope\": \"string\",\n            \"certification_original_issue_date\": \"string\",\n            \"certification_issue_date\": \"string\",\n            \"certification_expiry_date\": \"string\",\n            \"certified_entity_name\": \"string\",\n            \"certified_entity_english_name\": \"string\",\n            \"certified_entity_trading_name\": \"string\",\n            \"certified_entity_unique_id\": \"string\",\n            \"certified_entity_street_address\": \"string\",\n            \"certified_entity_street_city\": \"string\",\n            \"certified_entity_state\": \"string\",\n            \"certified_entity_post_code\": \"string\",\n            \"certified_entity_country\": \"string\",\n            \"certified_entity_website\": \"string\",\n            \"accreditation_body_name\": \"string\",\n            \"accreditation_body_acronym_name\": \"string\",\n            \"tax_id\": \"string\",\n            \"business_registration_number\": \"string\",\n            \"company_id_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            \"sites\": [\n                {\n                    \"street\": \"string\",\n                    \"city\": \"string\",\n                    \"state\": \"string\",\n                    \"country\": \"string\",\n                    \"postcode\": \"string\",\n                    \"scope_description\": \"string\"\n                }\n            ]\n        }\n    ]\n}");
Request request = new Request.Builder()
  .url("https://api.iafcertsearch.org/api/client/v1/cb/bulk-upload-cert")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .addHeader("x-http-authorization", "<<API_KEY>>")
  .build();
Response response = client.newCall(request).execute();
```

{% endtab %}

{% tab title="Node.js" %}

<pre class="language-javascript"><code class="lang-javascript">var axios = require('axios');
var data = JSON.stringify({
<strong>    "certifications": [
</strong>        {
            "certificate_number": "string",
            "certificate_identity_number": "string",
            "certification_status": "string",
            "certificate_accreditation_status": "string",
            "certification_type": "string",
            "certification_scope": "string",
            "certification_original_issue_date": "string",
            "certification_issue_date": "string",
            "certification_expiry_date": "string",
            "certified_entity_name": "string",
            "certified_entity_english_name": "string",
            "certified_entity_trading_name": "string",
            "certified_entity_unique_id": "string",
            "certified_entity_street_address": "string",
            "certified_entity_street_city": "string",
            "certified_entity_state": "string",
            "certified_entity_post_code": "string",
            "certified_entity_country": "string",
            "certified_entity_website": "string",
            "tax_id": "string",
	    "business_registration_number": "string",
	    "company_id_number": "string",
            "accreditation_body_name": "string",
	    "accreditation_body_acronym_name": "string",
            "confidential_certified_entity": "string",
            "schemes": [
                {
                    "scheme_name": "string",
                    "standard_list": [
                        {
                            "standards_name": "string"
                        }
                    ]
                }
            ],
            "sites": [
                {
                    "street": "string",
                    "city": "string",
                    "state": "string",
                    "country": "string",
                    "postcode": "string",
                    "scope_description": "string"
                }
            ]
        }
    ]
});
var config = {
  method: 'post',
  url: 'https://api.iafcertsearch.org/api/client/v1/cb/bulk-upload-cert',
  headers: { 
    'Content-Type': 'application/json', 
    'x-http-authorization': '&#x3C;&#x3C;API_KEY>>'
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
</code></pre>

{% endtab %}

{% tab title="Go" %}

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.iafcertsearch.org/api/client/v1/cb/bulk-upload-cert"
  method := "POST"

  payload := strings.NewReader(`{
    "certifications": [
        {
            "certificate_number": "string",
            "certificate_identity_number": "string",
            "certification_status": "string",
            "certificate_accreditation_status": "string",
            "certification_type": "string",
            "certification_scope": "string",
            "certification_original_issue_date": "string",
            "certification_issue_date": "string",
            "certification_expiry_date": "string",
            "certified_entity_name": "string",
            "certified_entity_english_name": "string",
            "certified_entity_trading_name": "string",
            "certified_entity_unique_id": "string",
            "certified_entity_street_address": "string",
            "certified_entity_street_city": "string",
            "certified_entity_state": "string",
            "certified_entity_post_code": "string",
            "certified_entity_country": "string",
            "certified_entity_website": "string",
            "tax_id": "string",
	    "business_registration_number": "string",
	    "company_id_number": "string",
            "accreditation_body_name": "string",
	    "accreditation_body_acronym_name": "string",
            "confidential_certified_entity": "string",
            "schemes": [
                {
                    "scheme_name": "string",
                    "standard_list": [
                        {
                            "standards_name": "string"
                        }
                    ]
                }
            ],
            "sites": [
                {
                    "street": "string",
                    "city": "string",
                    "state": "string",
                    "country": "string",
                    "postcode": "string",
                    "scope_description": "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))
}
```

{% endtab %}

{% tab title="C#" %}

```csharp
var client = new RestClient("https://api.iafcertsearch.org/api/client/v1/cb/bulk-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" +
@"    ""certifications"": [" + "\n" +
@"        {" + "\n" +
@"            ""certificate_number"": ""string""," + "\n" +
@"            ""certificate_identity_number"": ""string""," + "\n" +
@"            ""certification_status"": ""string""," + "\n" +
@"            ""certificate_accreditation_status"": ""string""," + "\n" +
@"            ""certification_type"": ""string""," + "\n" +
@"            ""certification_scope"": ""string""," + "\n" +
@"            ""certification_original_issue_date"": ""string""," + "\n" +
@"            ""certification_issue_date"": ""string""," + "\n" +
@"            ""certification_expiry_date"": ""string""," + "\n" +
@"            ""certified_entity_name"": ""string""," + "\n" +
@"            ""certified_entity_english_name"": ""string""," + "\n" +
@"            ""certified_entity_trading_name"": ""string""," + "\n" +
@"            ""certified_entity_unique_id"": ""string""," + "\n" +
@"            ""certified_entity_street_address"": ""string""," + "\n" +
@"            ""certified_entity_street_city"": ""string""," + "\n" +
@"            ""certified_entity_state"": ""string""," + "\n" +
@"            ""certified_entity_post_code"": ""string""," + "\n" +
@"            ""certified_entity_country"": ""string""," + "\n" +
@"            ""certified_entity_website"": ""string""," + "\n" +
@"            ""accreditation_body_name"": ""string""," + "\n" +
@"            ""accreditation_body_acronym_name"": ""string""," + "\n" +
@"            ""tax_id"": ""string""," + "\n" +
@"            ""business_registration_number"": ""string""," + "\n" +
@"            ""company_id_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" +
@"            ""sites"": [" + "\n" +
@"                {" + "\n" +
@"                    ""street"": ""string""," + "\n" +
@"                    ""city"": ""string""," + "\n" +
@"                    ""state"": ""string""," + "\n" +
@"                    ""country"": ""string""," + "\n" +
@"                    ""postcode"": ""string""," + "\n" +
@"                    ""scope_description"": ""string""" + "\n" +
@"                }" + "\n" +
@"            ]" + "\n" +
@"        }" + "\n" +
@"    ]" + "\n" +
@"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.iafcertsearch.org/api-developer-guide/api-integration/certification-body-apis/v1/certification-api/bulk-upload-certification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
