Téléverser en Lot des Certifications

Téléchargement en masse de Certification

POST https://api.iafcertsearch.org/api/client/v1/mncb/bulk-upload-cert

Les champs marqués d'un astérisque (*) sont obligatoires.

Le symbole ([*]) est utilisé pour indiquer qu'un champ particulier fait partie d'un tableau d'objets de certification.

Headers

NameTypeDescription

Content-Type*

String

application/json

x-http-authorization*

String

Clé API reçue depuis https://iafcertsearch.org/import-management/api-integration

Exemple:

x-http-authorization: <<CLÉ API>>

Request Body

NameTypeDescription

certifications.[*]*

String

{

"certifications" : [

{

"certificate_number": "string",

"certification_status": "string",

. . . .

}

]

}

certifications.[*].certificate_number*

String

certifications.[*].certification_status*

String

Valeurs acceptées :

active

inactive

suspendud

cancelled

hidden

withdrawn

expired

*Remarque : Les certifications téléchargées via l'API avec le statut de certification caché s'affichent comme "Brouillon" lorsque vous vous connectez à IAF CertSearch.

certifications.[*].certificate_accreditation_status

String

Valeurs acceptées :

Accredited

Unaccredited

certifications.[*].certification_type*

String

certifications.[*].certification_scope

String

certifications.[*].certification_original_issue_date

String

Format : AAAAMMJJ

certifications.[*].certification_issue_date*

String

Format : AAAAMMJJ

certifications.[*].certification_expiry_date*

String

Format : AAAAMMJJ

certifications.[*].certified_entity_name*

String

certifications.[*].certified_entity_english_name

String

certifications.[*].certified_entity_trading_name

String

certifications.[*].certified_entity_unique_id*

String

certifications.[*].certified_entity_street_address

String

certifications.[*].certified_entity_street_city

String

certifications.[*].certified_entity_state

String

certifications.[*].certified_entity_post_code

String

certifications.[*].certified_entity_country*

String

certifications.[*].certified_entity_website

String

certifications.[*].confidential_certified_entity

Boolean

certifications.[*].accreditation_body_name*

String

certifications.[*].accreditation_body_acronym_name*

String

certifications.[*].certification_body_name*

String

certifications.[*].certification_body_acronym_name*

String

certifications.[*].schemes*

Array

Exemple

{

"schemes": [

{

"scheme_name": "string",

"standard_list": [

{

"standards_name": "string"

}

]

}

]

}

certifications.[*].sites

Array

Exemple

{

"sites": [

{

"street": "string",

"city": "string",

"state": "string",

"country": "string",

"postcode": "string",

"scope_description": "string

}

]

}

Pour supprimer tous les sites existants d'une certification, définissez la valeur de la clé sites sur un tableau vide comme ceci :

{

"sites": []

}

{
  "data": {
    "success": true
  }
}

Téléchargement en masse de certifications

Nous recommandons un intervalle de 10 minutes entre les requêtes API pour éviter les erreurs lors de la publication des données de certification.

Pour voir un exemple de données de réponse, cliquez sur la flèche à droite de la description de la réponse.

Vous pouvez également utiliser https://api.sandbox.iafcertsearch.org/api/client/v1/mncb/bulk-upload-cert pour tester cela sur le serveur Sandbox.

Jetez un œil à la manière dont vous pourriez appeler cette méthode :

curl --location --request POST 'https://api.iafcertsearch.org/api/client/v1/mncb/bulk-upload-cert' \
--header 'Content-Type: application/json' \
--header 'x-http-authorization: <<API_KEY>>' \
--data-raw '{
    "certifications": [
        {
            "certificate_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",
            "accreditation_body_name": "string",
	    "accreditation_body_acronym_name": "string",
            "certification_body_name": "string",
	    "certification_body_acronym_name": "string",
            "confidential_certified_entity": "boolean",
            "schemes": [
                {
                    "scheme_name": "string",
                    "standard_list": [
                        {
                            "standards_name": "string"
                        }
                    ]
                }
            ],
            "sites": [
                {
                    "street": "string",
                    "city": "string",
                    "state": "string",
                    "country": "string",
                    "postcode": "string",
                    "scope_description": "string"
                }
            ]
        }
    ]
}'

Last updated