批量上传认证

批量上传认证

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

带有星号 (*) 的字段为必填字段。

符号 ([*]) 用于指示特定字段是认证对象数组的一部分。

Headers

NameTypeDescription

Content-Type*

String

application/json

x-http-authorization*

String

Request Body

NameTypeDescription

certifications.[*]*

String

{

"certifications" : [

{

"certificate_number": "string",

"certification_status": "string",

. . . .

}

]

}

certifications.[*].certificate_number*

String

certifications.[*].certification_status*

String

接受的值:

active

inactive

suspended

cancelled

hidden

withdrawn

expired

*注意:通过 API 上传的证书,其 hidden 认证状态将在登录 IAF CertSearch 后显示为“草稿”。

certifications.[*].certificate_accreditation_status

String

接受的值:

Accredited

Unaccredited

certifications.[*].certification_type*

String

certifications.[*].certification_scope

String

certifications.[*].certification_original_issue_date

String

格式:YYYYMMDD

certifications.[*].certification_issue_date*

String

格式:YYYYMMDD

certifications.[*].certification_expiry_date*

String

格式:YYYYMMDD

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

Example

{

"schemes": [

{

"scheme_name": "string",

"standard_list": [

{

"standards_name": "string"

}

]

}

]

}

certifications.[*].sites

Array

Example

{

"sites": [

{

"street": "string",

"city": "string",

"state": "string",

"country": "string",

"postcode": "string",

"scope_description": "string

}

]

}

要删除认证的所有现有站点,请将 sites 键的值设置为空数组,如下所示:

{

"sites": []

}

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

批量上传认证

我们建议在 API 请求之间设置 10 分钟的间隔,以避免在认证数据发布过程中出现错误。

要查看响应数据示例,请单击响应描述右侧的右箭头。

您也可以使用 https://api.sandbox.iafcertsearch.org/api/client/v1/mncb/bulk-upload-cert 在沙盒服务器上进行测试。

看一下你可能如何调用此方法:

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