Skip to content

Supplier Requests ​

At a glance

  • Send a request: POST /submissions/request with a JSON body (recommended), or POST /submissions/xml with an IPC-1752A or IPC-1752B XML file in Request/Reply mode
  • 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:

  1. Send the request. BOMcheck checks the request format and returns 202 Accepted with a submissionNumber.
  2. BOMcheck checks the supplier, parts and lists, creates the request and emails the supplier.
  3. Check the result with Submission Status. When the status is VALIDATION_SUCCEEDED, refValue holds 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 ​

FieldTypeRequiredDescription
supplierDunsStringYesThe nine-digit DUNS number of the supplier. The supplier must have a BOMcheck account.
supplierEmailStringYesThe 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 *.
contactCcStringNoAn email address to copy on the request. It must belong to a BOMcheck user.
partNumbersArray of stringsYesThe part numbers to request. Send from 1 to 10,000. Each part number can have up to 255 characters.
partNumberOriginStringNoWhose part numbers you send. itemNumber for the supplier's part numbers, or requesterItemNumber for your own. Default: itemNumber.
formatClassStringNoThe 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.
confidentialityBooleanNoIf true, the request asks the supplier to make the part numbers confidential to you. If false, it does not. Default: false.
regulationListsArray of stringsYesThe 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.
respondByDateStringYesThe date you need the declarations by, in YYYY-MM-DD format. It must be after today.
messageStringNoA 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:

bash
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:

json
{
    "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.

json
{
    "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.

The two standards put some elements in different places:

ElementIPC-1752AIPC-1752B
Namespace and versionhttp://webstds.ipc.org/175x/2.0, version="2.0"https://webstds.ipc.org/175x/1752B/1752B, version="3.0"
SectionalInside Include, with name="MaterialInfo"Inside IPC-1752B, with name="IPC-1752B"
ProductDirectly inside MainDeclarationInside IPC-1752B
List IDsIPC-1752A IDsIPC-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:

ValueJSON fieldXML
SuppliersupplierDunsidentity of Response/SupplyCompany/CompanyID, with authority="DUNS"
Supplier contactsupplierEmailaddress of Response/Authorizer/Email
Part numberspartNumbersitemNumber of each ProductID, as the supplier's part numbers
Declaration typeformatClassSubSectional in Sectional: C, D, or both D and C
ListsregulationListsidentity of each SubstanceCategoryListID in Product/MaterialInfo
Date requiredrespondByDaterespondByDate of Request
Messagemessagecomment of Request, up to 255 characters
ConfidentialityconfidentialityAdd ?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:

bash
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 ​