Suppliers - Sites Upsert
Upsert suppliers and their desired collections with a full load.
Changed on⚠️ DEPRECATED - This endpoint is deprecated and will be removed on 31 May 2027.
Migration: POST /public/v2/suppliers/sites to create sites, GET /public/v2/suppliers/sites/pending to track processing.
Full load means that all sites need to exist in the request payload. Existing sites not part of the payload will be removed from the managed collections in this request.
Required permission: create_sites_upsert_requests
Performance impact: Medium
post/public/v1/sites-upsert/full
Request
- Base URLhttps://api.prewave.com
- AuthAPI key in header X-Auth-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"siteData": [
{
"countryCode": "AT",
"addressLine": "Rothschildplatz 4, 3rd Floor",
"postalCode": "1020",
"industries": [
{
"industry": "I_AUTOMOTIVE",
"industryStandard": "MOCK-ISO-42"
}
],
"website": "https://www.prewave.com",
"yourReference": {
"id": "ERP-ID-123",
"source": "erp"
},
"additionalReferences": [
{
"id": "ERP-ID-123",
"source": "erp"
}
],
"connectionType": "Supplier",
"spendData": 500000,
"collectionNames": [
"product group",
"responsible supplier manager",
"responsible team",
"region",
"product"
],
"externalReferences": [
{
"externalId": "DUNS_123",
"system": "duns"
}
],
"impactData": {
"year": 2024,
"bi12MlnEuro": 20,
"grossMttrEMonths": 2,
"grossMttrIMonths": 4,
"cocSigned": true
},
"safetyStock": {
"onPremiseStockLevelMonths": 2,
"atSupplierLocation": "SameBuilding",
"atSupplierDeviation": "OnTarget",
"atSupplierStockLevelMonths": 4,
"atSupplierLastConfirmedDate": "2023-11-23",
"inLogisticChainDaysOnHand": 40
}
}
]
}Response
Request created successfully
Changes
- breaking
added to the
//request propertyallOflist - breaking
added to the
//request propertyallOflist - warning
removed from the
//request propertyallOflist - warning
removed from the
//request propertyallOflist
- breaking
- info
endpoint deprecated
- info