Contacts and products

Contacts

The address book of customers and suppliers at /api/v1/contacts: GET the list, POST a new one, GET/PUT/DELETE /contacts/{id}.

POST /api/v1/contacts
{
  "name": "Customer s.r.o.",
  "companyNumber": "12345678",
  "taxNumber": "CZ12345678",
  "email": "billing@customer.cz",
  "street": "Hlavní 1", "city": "Praha", "postalCode": "11000", "countryCode": "CZ",
  "language": "cs"
}

companyNumber is the Czech IČO, taxNumber the VAT ID (DIČ). A document takes the contact's address when it is issued; changing or deleting the contact later does not change issued documents.

Price list

Items of the price list at /api/v1/products with the same operations.

POST /api/v1/products
{ "name": "Hosting for a year", "code": "HOST-12", "unit": "year", "unitPrice": 3600, "vatRate": 21, "priceIncludesVat": false }