vendorID is null we will attempt to create the new vendor. Provide a vendorID and we will attempt to update it.curl --location --request POST 'https://tsapi.perenso.net/v2/vendors/bulk' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"street1": "2616 Ernie Springs",
"street2": "40257 S Broadway",
"city": "McKenziechester",
"state": "South Dakota",
"zipCode": "02868-6895",
"vendorID": "VEND6657",
"vendorName": "Caleb Carter-Harber",
"phone": "(608) 556-3751",
"fax": "(678) 508-4385 x26526",
"emailAddress": "[email protected]",
"deliveryGroup": "8772",
"brokers": [
"BROKER2564",
"BROKER3992",
"BROKER0028"
],
"active": true,
"canNegotiateAtShow": false,
"testVendor": false,
"allottedUserCount": 16,
"booths": [
"BOOTH1541"
]
}
]'{
"successful": [
{
"id": "fk8ph2",
"vendorID": "VEND0341"
},
{
"id": "hsha8k",
"vendorID": "VEND9722"
}
],
"failed": [
{
"vendorID": "VEND3102",
"message": "error message"
},
{
"vendorID": "VEND7859",
"message": "error message"
},
{
"vendorID": "VEND2006",
"message": "error message"
}
]
}