cPIS API Help Page

Utilities

Controller for accessing utility information in ERP.

APIDescription
GET api/utilities/customers?Page={Page}

Method for retreiving basic customer information. It is paginated with page size of 100 records.

GET api/utilities/customers/{ID}

Method for retreiving single customer information, based on customer ID.

GET api/utilities/objects?CustomerID={CustomerID}&Page={Page}

Method for retreiving utility object information. It is paginated with page size of 100 records.

GET api/utilities/objects/{ID}

Method for retreiving single customer information, based on customer ID.

GET api/utilities/customeraccount?ID={ID}&DueDate={DueDate}

Method for retreiving customer account information, based on customer ID and due date.

GET api/utilities/paymentslip?ID={ID}

Method for retreiving payment slip information, based on document ID from customer account open items. It includes PDF417 barcode PNG image (222x74), in Base64 string format.

Customers

Controller for inserting, updating and getting customer records from ERP.

APIDescription
GET api/customers?Page={Page}

Method for retreiving customer information. It is paginated with page size of 100 records.

GET api/customers/id/{ID}

Method for retreiving single customer information, based on customer ERP ID.

GET api/customers/oib/{OIB}

Method for retreiving single customer information, based on customer OIB.

POST api/customers

Method for inserting/updating single customer information, based on customer ID. If you dont pass customer ID then API will insert new record, otherwise it will try to update that record. Insert as much customer details as possible.

Invoicing

Controller for managed invoice transfer to ERP.

APIDescription
GET api/invoicing/customers?Page={Page}

Method for retreiving customer information. It is paginated with page size of 100 records.

GET api/invoicing/customers/{ID}

Method for retreiving single customer information, based on customer ID.

POST api/invoicing/invoice

Method for posting single invoice to ERP.

GET api/invoicing/invoice/{ID}

Method for retreiving single invoice basic information, based on invoice Id in ERP.

GET api/invoicing/invoice/by-original-id?q={q}

Method for retreiving invoice information, based on original invoice Id.

GET api/invoicing/invoice/by-original-code?q={q}

Method for retreiving invoice information, based on original invoice code.