Supplier Requests
At a glance
- Send a request:
POST /submissions/requestwith a JSON body (recommended), orPOST /submissions/xmlwith an IPC-1752A or IPC-1752B XML file inRequest/Replymode - Check the result:
GET /submissions/{submissionNumber}. See Submission Status. - One request: one supplier, up to 10,000 part numbers
- Processing: in the background. BOMcheck returns a submission number straight away.
- Tiered allowance: each accepted request and each status check counts. See Allowances & Limits.
Use the Supplier Requests module to ask a supplier to declare your parts. You name the supplier, the parts, the lists to declare against and the date you need the answer. BOMcheck then emails the supplier, the same as a request sent from the web application. This page is for developers who connect a PLM, ERP or compliance system to BOMcheck.
The module works like Send Requests to Suppliers in the Supply-Chain Tools. For authorization and the API base URLs, see Getting Started. In samples, API_TOKEN stands for your token.
How a Request Works
BOMcheck processes requests in the background:
- Send the request. BOMcheck checks the request format and returns
202 Acceptedwith asubmissionNumber. - BOMcheck checks the supplier, parts and lists, creates the request and emails the supplier.
- Check the result with Submission Status. When the status is
VALIDATION_SUCCEEDED,refValueholds the ID of the new request.
You can also see each submission on the Submissions tab of the Platform API page in BOMcheck.
POST Send a Request
/submissions/request
Sends a request to one supplier for a list of parts. Send the request as JSON, with Content-Type: application/json.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
supplierDuns | String | Yes | The nine-digit DUNS number of the supplier. The supplier must have a BOMcheck account. |
supplierEmail | String | Yes | The email address of the person at the supplier who receives the request. It must belong to a user of the supplier's BOMcheck account. To send the request to the supplier's principal contact, enter *. |
contactCc | String | No | An email address to copy on the request. It must belong to a BOMcheck user. |
partNumbers | Array of strings | Yes | The part numbers to request. Send from 1 to 10,000. Each part number can have up to 255 characters. |
partNumberOrigin | String | No | Whose part numbers you send. itemNumber for the supplier's part numbers, or requesterItemNumber for your own. Default: itemNumber. |
formatClass | String | No | The declaration type you ask for. C for a Regulatory Compliance Declaration (RCD), D for a Full Material Declaration (FMD), or requestDthenC for an FMD where possible, otherwise an RCD. Default: requestDthenC. |
confidentiality | Boolean | No | If true, the request asks the supplier to make the part numbers confidential to you. If false, it does not. Default: false. |
regulationLists | Array of strings | Yes | The lists the supplier declares against, by IPC-1752A or IPC-1752B list ID. Send at least one. To get the IDs, see GET Supported Substance Lists. |
respondByDate | String | Yes | The date you need the declarations by, in YYYY-MM-DD format. It must be after today. |
message | String | No | A message to the supplier, up to 2,000 characters. |
Part numbers can use Latin letters, numbers and common punctuation only.
Request Sample
To request FMDs, or RCDs where an FMD is not possible, for three of the supplier's parts:
curl -X POST "https://api.bomcheck.com/v2/submissions/request" \
-H "Authorization: Bearer API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"supplierDuns": "123456789",
"supplierEmail": "compliance@supplier.example",
"partNumbers": ["ABC123", "DEF456", "XYZ999"],
"formatClass": "requestDthenC",
"regulationLists": ["EUROHS-0508", "Prop_65_substances"],
"respondByDate": "2027-03-31",
"message": "Please declare these parts by the end of March."
}'Responses
202 Accepted: BOMcheck has accepted the request 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"
}422 Unprocessable Entity: a field is missing or not valid. errors lists the problems by field. For an item in an array, the key has the item's position, starting from 0 (for example regulationLists.0). The request does not count towards your tiered allowance.
{
"message": "Validation failed!",
"errors": {
"supplierDuns": ["Supplier DUNS number does not exist in BOMcheck"],
"respondByDate": ["Respond by date must be in the future"],
"regulationLists.0": ["Invalid regulation list identity"]
}
}For other status codes, including allowance and rate limit errors, see HTTP Responses.
POST Send a Request as XML
/submissions/xml
Sends a request as an IPC-1752A or IPC-1752B XML file. Use this endpoint if your system already creates IPC XML requests. Otherwise, use POST Send a Request.
Send the XML file as the request body, with Content-Type: application/xml. The mode attribute of BusinessInfo must be Request/Reply.
One endpoint, two modules
POST /submissions/xml also makes declarations. The mode attribute decides what BOMcheck does: Request/Reply sends a supplier request, and Distribute makes a declaration. See Supplier Declarations.
Example XML files
The two standards put some elements in different places:
| Element | IPC-1752A | IPC-1752B |
|---|---|---|
| Namespace and version | http://webstds.ipc.org/175x/2.0, version="2.0" | https://webstds.ipc.org/175x/1752B/1752B, version="3.0" |
Sectional | Inside Include, with name="MaterialInfo" | Inside IPC-1752B, with name="IPC-1752B" |
Product | Directly inside MainDeclaration | Inside IPC-1752B |
| List IDs | IPC-1752A IDs | IPC-1752B IDs, for example IPC-1752B/Other_Regulated_Substances |
Where to Put Each Value
The following table shows where each value of a JSON request goes in the XML file:
| Value | JSON field | XML |
|---|---|---|
| Supplier | supplierDuns | identity of Response/SupplyCompany/CompanyID, with authority="DUNS" |
| Supplier contact | supplierEmail | address of Response/Authorizer/Email |
| Part numbers | partNumbers | itemNumber of each ProductID, as the supplier's part numbers |
| Declaration type | formatClass | SubSectional in Sectional: C, D, or both D and C |
| Lists | regulationLists | identity of each SubstanceCategoryListID in Product/MaterialInfo |
| Date required | respondByDate | respondByDate of Request |
| Message | message | comment of Request, up to 255 characters |
| Confidentiality | confidentiality | Add ?confidentiality=true to the URL |
Two options are available in JSON requests only: sending your own part numbers (partNumberOrigin) and copying a contact on the request (contactCc). To use them, see POST Send a Request.
BOMcheck also checks the requester in Request: the DUNS number in RequestCompany/CompanyID and the email address in Request/Contact/Email must belong to a BOMcheck company and one of its users.
For the structure of the file and the other attributes, see IPC 1752 Standards.
Request Sample
To send the XML file request.xml:
curl -X POST "https://api.bomcheck.com/v2/submissions/xml" \
-H "Authorization: Bearer API_TOKEN" \
-H "Content-Type: application/xml" \
-H "Accept: application/json" \
--data-binary "@request.xml"Responses
202 Accepted: the same response as POST Send a Request.
BOMcheck checks that the XML file is well formed before it accepts it. A file that is not well formed returns an error straight away and does not count 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, see HTTP Responses.
Next Steps
- To make declarations for your own parts, see Supplier Declarations.
- To download the declarations your suppliers make, see Download Declarations.
- To check the result of a request, see Submission Status.
- To get the list IDs for
regulationLists, see Integration Data.