Card

APIDescription
GET api/Card?CardNumber={CardNumber}

Search Card based on SiteID and CardNumber

GET api/Card/{id}?searchBy={searchBy}

Using a Guid finding a specific Card or a multitude of cards. Can handle Guid for Card, Customer, Company and Site Evaluates if string is in a valid format.

GET api/Card?SiteId={SiteId}&CardNumber={CardNumber}

Verify that the given CardNumber belongs to the given site

POST api/Card?CardId={CardId}&SiteServiceId={SiteServiceId}

Add SiteServiceID to Card

DELETE api/Card?CardId={CardId}&SiteServiceId={SiteServiceId}

Delete SiteServiceID from Card

Site

APIDescription
GET api/Site/{id}

Takes the id for a specific site (guid in string format) and returns a Site.

GET api/Site

Returns a list of sites that belong to the company that the authorization is valid for.

InvoiceRow

APIDescription
POST api/InvoiceRow

Saves InvoiceRow based on data in Json format

Company

APIDescription
GET api/Company/{id}

Takes the Id of the company (guid) and returns a company.

GET api/Company

Will retrive all companies that the current authorization has access to. At this point, it will allways only return max one company.

Invoices

APIDescription
GET api/Invoices/{id}

Takes the id of an invoice (Guid as a string) and returns an Invoice

GET api/Invoices?language={language}&isHandled={isHandled}&internalInvoices={internalInvoices}&fromDate={fromDate}&toDate={toDate}&siteId={siteId}&cardId={cardId}

Can recive many parameters to filter out the ones requested.

PUT api/Invoices/{id}

Sets the invoiceIsHandled field for a specified invoice. The id parameter is the id of the invoice. The meaning of the invoiceIsHandled field indicates if the invoice is handled by the external economy system. This field should be set as soon as the invoices is exported from Wash. Note that the parameter invoiceIsHandled is passed in the body, not as url query string.

PUT api/Invoices

Sets a list of InvoiceIds to handled or not depending on input.

Customer

APIDescription
GET api/Customer/{id}?searchBy={searchBy}

When calling /api/customer/(GuidAsString) Will return a list of customers. In the case of customerId it will return a list with one customer. In the case of companyId a list of Customers belonging to the given company will be returned. Note that if the company is in affiliation, all customers includning affiliated customers will be returned. This is neccesary since this is a invoice api and invoices can be for affiliated customers as well.

Service

APIDescription
GET api/Service/{id}

Takes the id of a service (guid in string format) and returns a Service

GET api/Service

Will retrive all Services that are configured for the company that the authorization is valid for.