Supplier Declarations
At a glance
- Make a declaration:
POST /submissions/xmlwith an IPC-1752A or IPC-1752B XML file inDistributemode - Declaration types: a Regulatory Compliance Declaration (RCD, Class C) or a Full Material Declaration (FMD, Class D)
- One file: one RCD for one or more parts, or one FMD for one part
- Check the result:
GET /submissions/{submissionNumber}. See Submission Status. - Processing: in the background. BOMcheck returns a submission number straight away.
- Tiered allowance: each well-formed file counts. See Allowances & Limits.
Use the Supplier Declarations module to declare your own parts from your system. You send an IPC-1752A or IPC-1752B XML file, and BOMcheck makes and approves the declaration for your company, the same as a declaration made in the web application. This page is for suppliers who connect a PLM, ERP or compliance system to BOMcheck.
The module works like the Declaration Tools. For authorization and the API base URLs, see Getting Started. In samples, API_TOKEN stands for your token.
How a Declaration Works
BOMcheck processes declarations in the background:
- Send the XML file. BOMcheck checks that it is well formed and returns
202 Acceptedwith asubmissionNumber. - BOMcheck checks the file against the IPC schema and the BOMcheck rules, then makes and approves the declaration.
- Check the result with Submission Status. When the status is
VALIDATION_SUCCEEDEDorWARNING,refValueholds the ID of the new declaration.
You can also see each submission on the Submissions tab of the Platform API page in BOMcheck.
POST Make a Declaration
/submissions/xml
Makes an RCD or an FMD from an IPC-1752A or IPC-1752B XML file. Send the XML file as the request body, with Content-Type: application/xml.
BOMcheck reads three things from the file to decide what to do:
| To decide | BOMcheck reads | Value for a declaration |
|---|---|---|
| The module | The mode attribute of BusinessInfo | Distribute |
| The IPC standard | The namespace of MainDeclaration | IPC-1752B if the namespace contains 1752B, otherwise IPC-1752A |
| The declaration type | SubSectional in Sectional | C for an RCD, D for an FMD. If the file has both, BOMcheck makes an FMD. |
One endpoint, two modules
POST /submissions/xml also sends supplier requests. A file in Request/Reply mode sends a request instead of making a declaration. See Supplier Requests.
Example XML files
Before you send an example file, change the DUNS number and email addresses in Response to your own company and user.
For the structure of an IPC file and where the two standards differ, see IPC 1752 Standards.
Query Parameters
All query parameters are optional. Use them to make a declaration confidential, as you can in the web application:
| Parameter | Type | Description |
|---|---|---|
rcdConfidentiality | Boolean | If true, the RCD is confidential to the manufacturers in rcdManufacturers. If false, all BOMcheck users can see it. Default: false. For an FMD file, this applies to the RCD that BOMcheck makes from the FMD. |
rcdManufacturers[] | Array of strings | The nine-digit DUNS numbers of the manufacturers that can see a confidential RCD. Send up to 255. Repeat the parameter for each manufacturer. |
fmdConfidentiality | Boolean | FMD files only. If true, the FMD is confidential to the manufacturers in fmdManufacturers. If false, all BOMcheck users can see it. Default: false. |
fmdManufacturers[] | Array of strings | FMD files only. The nine-digit DUNS numbers of the manufacturers that can see a confidential FMD. Send up to 255. Repeat the parameter for each manufacturer. |
If a DUNS number does not belong to a BOMcheck company, BOMcheck still makes the declaration and returns a WARNING.
For more about confidentiality, see Confidentiality Settings.
Request Sample
To make an RCD from the XML file declaration.xml, confidential to two manufacturers:
curl -g -X POST "https://api.bomcheck.com/v2/submissions/xml?rcdConfidentiality=true&rcdManufacturers[]=111111111&rcdManufacturers[]=222222222" \
-H "Authorization: Bearer API_TOKEN" \
-H "Content-Type: application/xml" \
-H "Accept: application/json" \
--data-binary "@declaration.xml"The -g option stops curl from reading the square brackets as a pattern.
Responses
202 Accepted: BOMcheck has accepted the file and will process it. Use submissionNumber or statusUrl to check the result:
{
"submissionNumber": "a1b2c3d4e5f6",
"statusUrl": "https://api.bomcheck.com/v2/submissions/a1b2c3d4e5f6",
"reportUrl": "https://app.bomcheck.com/en/c#/platform-api/submissions/a1b2c3d4e5f6"
}415 Unsupported Media Type: the body is not XML, or the XML is not well formed. The file does not count towards your tiered allowance.
422 Unprocessable Entity: a query parameter is not valid. errors lists the problems by parameter. The request still counts towards your tiered allowance.
BOMcheck checks the file against the IPC schema and the BOMcheck rules after it accepts it, so those errors appear in Submission Status.
For other status codes, including allowance and rate limit errors, see HTTP Responses.
What Every Declaration Needs
BOMcheck makes the declaration for your company, the company that owns the API token. In BusinessInfo/Response, every file needs:
| Value | XML | Rule |
|---|---|---|
| Approver | address of Authorizer/Email | Must belong to a user of your company. BOMcheck approves the declaration as this user. |
| Approver name | name of Authorizer | Shown as the approver of the declaration. |
| Your company | identity of SupplyCompany/CompanyID, with authority="DUNS" | Your company's DUNS number. |
| Approval date | date of Response | Optional. Default: today. |
For each part, effectiveDate of ProductID is the date the declaration takes effect. It must be today or earlier. If it is missing, BOMcheck uses today and returns a WARNING.
BOMcheck approves the declaration straight away. To change a declaration, send a new file for the same part numbers.
Each Attachment in Product/MaterialInfo links to an evidence file. BOMcheck downloads each file from its fileURL and adds it to the declaration. If a download fails, or the file type or size is not allowed, BOMcheck makes the declaration without that file and returns a WARNING.
RCD Files (Class C)
An RCD file declares, for each list, whether each substance category is above its threshold. One file can declare one or more parts.
BOMcheck reads these values:
| Value | XML | Rule |
|---|---|---|
| Your company | identity of Response/SupplyCompany/CompanyID | Must be the DUNS number of your company. |
| Part numbers | itemNumber of each ProductID | Required. One ProductID for each part. |
| Part names | itemName of each ProductID | Optional. |
| Part weights | value and UOM of ProductID/Amount | Required. |
| Unit | unitType of Product | each, cm, m, cm2, m2, cm3, m3 or l, in upper or lower case. BOMcheck reads any other value, or no value, as each. |
| Lists | SubstanceCategoryListID in each SubstanceCategoryList | authority and identity must match a list that BOMcheck supports. |
| Substance categories | identity of SubstanceCategory/SubstanceCategoryID | Must belong to the list. |
| Above the threshold | overThreshold of SubstanceCategory/Threshold | false: below the threshold. true with an exemption: exempt. true without an exemption: above the threshold. |
| Exemptions | identity of each SubstanceCatExemptionList/Exemption | Must be valid for the substance category. |
| Concentration or amount | value of SubstanceCategory/Concentration or SubstanceCategory/Amount | Optional. |
To get the list IDs and the substance categories in each list, see GET Supported Substance Lists. For the exemption IDs, see GET Exemption Lists Index.
In an IPC-1752B file, Product is inside IPC-1752B, and the list IDs are IPC-1752B IDs. An IPC-1752B file can also give the SCIP data for REACH Candidate List substances above the threshold: the article category (ArticleCategoryList with authority="ECHA"), the material category (MaterialCategoryList) and the safe use information (SafeUseList). Without them, and in every IPC-1752A file, BOMcheck uses these defaults:
- Article category: CN code
8543900000, parts of electrical machines and apparatus that have individual functions - Material category: other
- Safe use information: none
BOMcheck makes the RCD from the lists and substance categories that it recognises. For each of the following, it leaves the item out, makes the RCD and returns a WARNING:
- A list that BOMcheck does not support, or that is not active
- A list ID from the other IPC standard, or with the wrong
authority - A substance category that is not in the list
- An exemption that is not valid for the substance category
When processing succeeds, refType is rcd and refValue is the ID of the RCD.
FMD Files (Class D)
An FMD file declares the full material content of one part: its homogeneous materials, and the substances in each material. If the file has more than one ProductID, BOMcheck uses the first.
BOMcheck reads these values:
| Value | XML | Rule |
|---|---|---|
| Part number | itemNumber of ProductID | Required. Up to 50 characters, in Latin letters, numbers and common punctuation. |
| Part name | itemName of ProductID | Optional. Up to 255 characters. |
| Part weight | value and UOM of ProductID/Amount | Required. value must be more than 0. UOM is µg, mg, g or kg. |
| Unit | unitType of Product | each, cm, m, cm2, m2, cm3, m3 or l, in upper or lower case. BOMcheck reads any other value, or no value, as each. |
| Number of instances | numberOfInstances of Product | Must be 1. If it is missing, BOMcheck uses 1 and returns a WARNING. |
| Materials | Each MaterialInfo/HomogeneousMaterialList/HomogeneousMaterial | Required. At least one. |
| Material use | name of HomogeneousMaterial | Required. Up to 255 characters. Must not contain |. |
| Material | materialGroupName of HomogeneousMaterial | Required. Must match the name of a material in BOMcheck. |
| Material weight | value and UOM of HomogeneousMaterial/Amount | Required. |
| Substances | name of Substance, and identity of Substance/SubstanceID with authority="CAS" | Required. The CAS number must be in BOMcheck. |
| Substance amount | value of Substance/Concentration (percentage of the material), or value and UOM of Substance/Amount | Required. |
| Exemptions | identity of each Exemption | Optional. Must be valid for the substance. |
The two standards put substances in different places:
| Element | IPC-1752A | IPC-1752B |
|---|---|---|
Product | Directly inside MainDeclaration | Inside IPC-1752B |
Substance | Inside HomogeneousMaterial/SubstanceCategoryList/SubstanceCategory | Directly inside HomogeneousMaterial |
Exemption | Inside SubstanceCategory/SubstanceCatExemptionList | Inside Substance/SubstanceExemption |
Declared Total and the RCD
BOMcheck adds up the substances as a percentage of the part weight. The total must be from 95% to 100%, or the FMD fails validation.
- 100%: BOMcheck makes the FMD and an RCD from it, and approves both.
- From 95% to less than 100%: BOMcheck makes the FMD only. It does not make an RCD, so the part has no compliance results.
For each of the following, BOMcheck makes the FMD and returns a WARNING:
- A substance name that does not match the CAS number. BOMcheck uses the substance in BOMcheck with that CAS number.
- An exemption that is not valid for the substance. BOMcheck leaves it out.
When processing succeeds, refType is fmd and refValue is the ID of the FMD.
Next Steps
- To check the result of a declaration, see Submission Status.
- To get the list IDs, substance categories and exemption IDs, see Integration Data.
- To send requests to your own suppliers, see Supplier Requests.