Electronic Invoice Service
saveElectronicInvoice
Changed onUploads e-invoice data for vendor orders.
post/electronicinvoice/v1/saveElectronicInvoice
Request
- Base URL//webservices-test.net-chef.com (relative, and the document’s source URL is not known)
- URL//webservices-test.net-chef.com/electronicinvoice/v1/saveElectronicInvoice
- Authnone declared. Required headers: authenticationtoken, password, sitename, userid
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
{
"electronicInvoiceDetails": [
{
"electronicInvoiceDetailRowList": [
{
"catchWeightInd": "Y",
"lotNumber": "165R-13593",
"manufacturerNumber": "MAN123",
"productBrand": "Nestle",
"splitIndicator": "Y",
"subsIndicator": "Y",
"subsProductName": "FUEL CHARGE - FOOD_EM",
"subsProductPackageType": "CASE",
"traceabilityCode": "BFCA179A152023213",
"traceabilityCodeSource": "FoodTraceability, Inc. 123 Main Street Anytown, PA 12345 (222) 123-4567"
}
],
"electronicInvoiceHeaderDetails": {
"expectedDeliveryDate": "MM/dd/yyyy",
"invoiceDate": "12/13/2024",
"locationCode": "000011",
"misc1GlDescription": "Misc1",
"misc2GlDescription": "Misc2",
"taxGlDescription": "Tax",
"transactionNumber": "vo-10050",
"vendorCode": "vendorCode"
}
}
]
}Response
Success
Example response
{
"electronicInvoiceDetails": [
{
"electronicInvoiceDetailRowList": [
{
"catchWeightInd": "Y",
"lotNumber": "165R-13593",
"manufacturerNumber": "MAN123",
"productBrand": "Nestle",
"splitIndicator": "Y",
"subsIndicator": "Y",
"subsProductName": "FUEL CHARGE - FOOD_EM",
"subsProductPackageType": "CASE",
"traceabilityCode": "BFCA179A152023213",
"traceabilityCodeSource": "FoodTraceability, Inc. 123 Main Street Anytown, PA 12345 (222) 123-4567"
}
],
"electronicInvoiceHeaderDetails": {
"expectedDeliveryDate": "MM/dd/yyyy",
"invoiceDate": "12/13/2024",
"locationCode": "000011",
"misc1GlDescription": "Misc1",
"misc2GlDescription": "Misc2",
"taxGlDescription": "Tax",
"transactionNumber": "vo-10050",
"vendorCode": "vendorCode"
}
}
]
}Changes
- info
api tag
Electronic Invoice Serviceadded - info
api tag
Electronic Invoice Service (beta)removed
- info