Supplier API

Supplier API

 

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


Available Methods

Method Description
details Returns supplier information
openItems Returns supplier open accounts payable items
closedItems Returns supplier closed accounts payable items


Parameters

Name Description Example
supplier CCE supplier number 100000
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/supplier/details?supplier=100&format=json&apiKey=xxxxxx


openItems

https://api.cokecce.com/v1/supplier/openItems?supplier=100&format=json&apiKey=xxxxxx


closedItems

https://api.cokecce.com/v1/supplier/closedItems?supplier=100&format=json&apiKey=xxxxxx


Back to Available Methods



Responses

details

 {
    "supplierDetails": {
        "suppliers": {
            "supplierNumber": "0000000100",
            "name1": "BOBS ALUMINUM",
            "name2": "",
            "address": "109 SAGE",
            "city": "SLOUGH",
            "region": "",
            "postalCode": "SL1 4PN",
            "country": "GB",
            "telephone": "01753696999",
            "fax": "011441753567777",
            "language": "E"
        }
    }
}




openItems

 {
    "openItems": {
        "lineItems": [{
            "companyCode": "2900",
            "documentType": "Invoice - (CCE NET)",
            "documentDate": "2012-12-14",
            "postingDate": "2012-12-24",
            "reference": "3681",
            "amount": "139872.0000",
            "currency": "GBP",
            "paymentDays": "30",
            "baseDate": "2012-12-14"
        }]
    }
}




closedItems

 {
    "closedItems": {
        "lineItems": [{
            "companyCode": "2900",
            "documentType": "Payment posting",
            "documentDate": "2012-09-25",
            "postingDate": "2012-09-25",
            "reference": "",
            "amount": "25000.0000",
            "currency": "GBP",
            "baseDate": "2012-09-25"
        }, {
            "companyCode": "2900",
            "documentType": "Invoice - (CCE NET)",
            "documentDate": "2012-08-29",
            "postingDate": "2012-09-05",
            "reference": "3410",
            "amount": "25000.0000",
            "currency": "GBP",
            "baseDate": "2012-08-29"
        }]
    }
}



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.