Customer API

Customer API

 

This API retrieves information on CCE customers. Type: GET
URI: ../v1/customer 
Version: The current version is v1.


Available Methods

Method Description
details Returns customer information
orderHistory Returns order history
orderDetails Returns line item details for an order
deliveryHistory Returns delivery history
serviceTicketHistory Returns service ticket history
routeDetails Returns route details


Parameters

Name Description Example
customer CCE customer number 700000
orderNumber CCE ordernumber number 1234567890
date Date in yyyymmdd format 20120229
apiKey Key generated by developer.cokecce.com Get yours now
format
(optional)
Internet media type you want for response format json or xml


Sample Calls

details

https://api.cokecce.com/v1/customer/details?customer=7000000&format=json&apiKey=xxxxxx


orderHistory

https://api.cokecce.com/v1/customer/orderHistory?customer=7000000&format=json&apiKey=xxxxxx


orderDetails

https://api.cokecce.com/v1/customer/orderDetails?customer=7000000&orderNumber=0108261929&format=json&apiKey=xxxxxx


deliveryHistory

https://api.cokecce.com/v1/customer/deliveryHistory?customer=7000000&format=json&apiKey=xxxxxx


serviceTicketHistory

https://api.cokecce.com/v1/customer/serviceTicket/history?customer=7000000&format=json&apiKey=xxxxxx


routeDetails

https://api.cokecce.com/v1/customer/routeDetails?customer=7000000&date=20130115&format=json&apiKey=xxxxxx


Back to Available Methods


Responses

details

{
   "customerDetails":{
      "customers":{
         "number":"7000000",
         "name1":"EUROPEENNE FOOD PARIS",
         "name2":"",
         "address":"119 AVENUE DE CHOISY",
         "city":"VILLENEUVE ST GEORGES",
         "region":"94",
         "postalCode":"94190",
         "country":"FR",
         "telephone1":"01 43 89 00 27",
         "telephone2":"01 43 89 00 28",
         "language":"FR",
         "latitude":"48.736309",
         "longitude":"2.44654"
      }
   }
}



 
orderHistory

{
   "orderHistory":{
      "orders":[
         {
            "number":"0108261929",
            "dateReceived":"2013-01-07",
            "poNumber":"97322 promo",
            "status":"C",
            "deliveryDate":"2013-01-11"
         },
         {
            "number":"0108273249",
            "dateReceived":"2013-01-07",
            "poNumber":"97323 promo",
            "status":"C",
            "deliveryDate":"2013-01-10"
         },
         {
            "number":"0108273248",
            "dateReceived":"2013-01-07",
            "poNumber":"97324 promo",
            "status":"C",
            "deliveryDate":"2013-01-14"
         },
         {
            "number":"0108273247",
            "dateReceived":"2013-01-07",
            "poNumber":"97327 PROMO",
            "status":"C",
            "deliveryDate":"2013-01-10"
         },
         {
            "number":"0108273246",
            "dateReceived":"2013-01-07",
            "poNumber":"97325 promo",
            "status":"C",
            "deliveryDate":"2013-01-10"
         },
         {
            "number":"0108260214",
            "dateReceived":"2013-01-07",
            "poNumber":"97326 promo",
            "status":"B",
            "deliveryDate":"2013-01-15"
         }
      ]
   }
}



 
orderDetails
{
   "orderDetails":{
      "lineItems":[
         {
            "lineNumber":"12",
            "materialNumber":"112173",
            "materialEntered":"7125",
            "text":"COCA-COLA BIB19L",
            "orderQuantity":"4.000",
            "confirmedQuantity":"4.000",
            "netValue":"1.98",
            "currency":"EUR",
            "salesUOM":"EA",
            "grossWeight":"99.580",
            "netWeight":"99.580",
            "weightUnit":"KG"
         },
         {
            "lineNumber":"22",
            "materialNumber":"106565",
            "materialEntered":"7026",
            "text":"COCA-COLA LT BIB5L",
            "orderQuantity":"3.000",
            "confirmedQuantity":"3.000",
            "netValue":"987.65",
            "currency":"EUR",
            "salesUOM":"EA",
            "grossWeight":"19.080",
            "netWeight":"19.080",
            "weightUnit":"KG"
         },
         {
            "lineNumber":"40",
            "materialNumber":"405309",
            "materialEntered":"5704",
            "text":"FTA CITRON BTE33CL X24 PPR",
            "orderQuantity":"2.000",
            "confirmedQuantity":"2.000",
            "netValue":"1234.56",
            "currency":"EUR",
            "salesUOM":"PAL",
            "grossWeight":"0.000",
            "netWeight":"0.000",
            "weightUnit":"KG"
         }
      ]
   }
}


 
deliveryHistory
{
   "deliveryHistory":{
      "deliveries":[
         {
            "number":"0084202925",
            "createDate":"2012-07-13",
            "deliveryDate":"2012-07-17",
            "type":"LR",
            "salesOrganization":"2050",
            "shippingPoint":"5107",
            "grossWeight":"58.842",
            "netWeight":"58.842",
            "unitOfWeight":"KG"
         },
         {
            "number":"0084215438",
            "createDate":"2012-09-11",
            "deliveryDate":"2012-09-12",
            "type":"LR",
            "salesOrganization":"2050",
            "shippingPoint":"5102",
            "grossWeight":"26805.000",
            "netWeight":"26805.000",
            "unitOfWeight":"KG"
         }
      ]
   }
}


 
serviceTicketHistory
{
   "serviceTicketHistory":{
      "serviceTickets":[
         {
            "notification":"000301312010",
            "type":"ZP",
            "functionLocation":"",
            "equipment":"",
            "customer":"0003552321",
            "description":"INSTALL COP",
            "purchaseNumber":"",
            "purchaseDate":"0000-00-00",
            "sStatus":"OSNO",
            "uStatus":"",
            "equipmentDescription":"",
            "functionDescription":"",
            "date":"2013-01-02",
            "time":"02:23:10",
            "priorityType":"ZP",
            "priority":"",
            "completionDate":"0000-00-00",
            "startDate":"2013-01-02",
            "endDate":"0000-00-00",
            "purchaseNumberC":"",
            "scenario":"",
            "externalNumber":""
         },
         {
            "notification":"000301311909",
            "type":"ZP",
            "functionLocation":"",
            "equipment":"",
            "customer":"0003552321",
            "description":"INSTALL COP",
            "purchaseNumber":"",
            "purchaseDate":"0000-00-00",
            "sStatus":"OSNO",
            "uStatus":"",
            "equipmentDescription":"",
            "functionDescription":"",
            "date":"2013-01-02",
            "time":"02:22:20",
            "priorityType":"ZP",
            "priority":"",
            "completionDate":"0000-00-00",
            "startDate":"2013-01-02",
            "endDate":"0000-00-00",
            "purchaseNumberC":"",
            "scenario":"",
            "externalNumber":""
         },
         {
            "notification":"000301311908",
            "type":"ZP",
            "functionLocation":"",
            "equipment":"",
            "customer":"0003552321",
            "description":"INSTALL COP",
            "purchaseNumber":"",
            "purchaseDate":"0000-00-00",
            "sStatus":"OSNO",
            "uStatus":"",
            "equipmentDescription":"",
            "functionDescription":"",
            "date":"2013-01-02",
            "time":"02:21:10",
            "priorityType":"ZP",
            "priority":"",
            "completionDate":"0000-00-00",
            "startDate":"2013-01-02",
            "endDate":"0000-00-00",
            "purchaseNumberC":"",
            "scenario":"",
            "externalNumber":""
         }
      ]
   }
}



 
routeDetails
{
   "routeDetails":{
      "routes":[
         {
            "route":"0000439007",
            "arrivalDate":"20130115",
            "arrivalTime":"08:00:00",
            "name":"BOSSOK SARL",
            "address":"RUE LUDWIG VAN BEETHOVEN",
            "postalCode":"1224",
            "city":"LUX-GASPERICH",
            "licensePlate":"",
            "actualDriver":"0010174528",
            "nameOfVehicle":"PICKUP LOCAL LUXEMBOURG 007"
         },
         {
            "route":"0000158",
            "arrivalDate":"20130115",
            "arrivalTime":"11:33:00",
            "name":"BOSSOK SARL",
            "address":"RUE LUDWIG VAN BEETHOVEN",
            "postalCode":"1224",
            "city":"LUX-GASPERICH",
            "licensePlate":"FN5031",
            "actualDriver":"0010173950",
            "nameOfVehicle":"FN5031 RENAULT"
         }
      ]
   }
}



Response Codes

Value Description
200 Valid request that generated content
204 The server successfully processed the request, but is not returning any content
400 The result cannot be fulfilled due to bad syntax
500 Internal server error


Help / Questions?

  Looking for support and answers? Check out our forum!

Still can't find your answer? Email Us @ apisupport@cokecce.com or use the contact us form.