Vendor Location Service
saveVendorLocation
Create a new vendor location entry. Update a vendor's location details.
post/vendorlocation/v1/saveVendorLocation
Headers
authenticationtokenstring required
Secure token for API authentication.
passwordstring required
Password for the Crunchtime Application User.
sitenamestring required
Crunchtime site identifier. (test or production)
useridstring required
User ID for the Crunchtime Application User.
X-B3-TraceIdstring
Optional trace identifier for troubleshooting.
Request body
Example request
{
"locationCode": "000122",
"vendorLocationDetails": [
{
"scheduleOverrideRowList": [
{
"endDate": "10/01/2018",
"locationCode": "000122",
"name": "Christmas Day",
"note": "Description",
"oldStartDate": "10/01/2018",
"orderByTimeFriday": "15:10",
"orderByTimeMonday": "15:10",
"orderByTimeSaturday": "15:10",
"orderByTimeSunday": "15:10",
"orderByTimeThursday": "15:10",
"orderByTimeTuesday": "15:10",
"orderByTimeWednesday": "15:10",
"recordType": "A",
"startDate": "10/01/2018"
}
],
"vendorLocationHeaderDetails": {
"active": "Y",
"childID": "001",
"deleteFlag": "Y",
"exportCode": "EXP001",
"locationCode": "000122",
"tradingPartnerID": "001",
"vendorDistrictID": "001"
},
"vendorLocationOtherDetail": {
"contactName": "Name",
"contactPhone": "222-222-222",
"contactTitle": "Title",
"locationCode": "000122",
"message": "Message",
"notes": "Description"
},
"vendorLocationScheduleDetail": {
"locationCode": "000122",
"orderByTimeFriday": "15:10",
"orderByTimeMonday": "15:10",
"orderByTimeSaturday": "15:10",
"orderByTimeSunday": "15:10",
"orderByTimeThursday": "15:10",
"orderByTimeTuesday": "15:10",
"orderByTimeWednesday": "15:10"
},
"vendorLocationTransmissionDetail": {
"accrualFlag": "Y",
"allowSimpleReceiptFlag": "Y",
"autoReconcileEinvoiceFlag": "Y",
"allowVOFlag": "Y",
"codFlag": "Y",
"electronicInvoiceFlag": "Y",
"enforceMinimums": "Y",
"locationCode": "000122",
"orderAlert": "High Priority",
"orderVendorUnitofMeasure": "Unit1",
"referenceNumber": "REF-001",
"userName": "john_doe",
"userPassword": "P@ssw0rd",
"voEMail": "example@example.com",
"voFax": "+1234567890",
"voMode": "E-Mail PDF"
}
}
]
}Response
Success
object required