products

PUT /companies/{companySlug}/products/{productId}

Changed on

Updates an existing product.

Request

  • Base URL
    https://api.fiken.no/api/v2
  • URL
    https://api.fiken.no/api/v2/companies/{companySlug}/products/{productId}
  • Auth
    OAuth 2
    Authorization code: https://fiken.no/oauth/authorize
    Token URL: https://fiken.no/oauth/token

Request body

productIdinteger

Product Id.

createdDatestring date

Date that product was created in Fiken, format yyyy-mm-dd

lastModifiedDatestring date

Date that product was last modified in Fiken, format yyyy-mm-dd.

namestring required

Product name.

unitPriceinteger

The net unit price in cents.

costPriceinteger

Cost price in cents, including freight, customs duty and other non-recoverable costs. Excluding VAT if the company is VAT-registered, including VAT otherwise. Optional.

incomeAccountstring required

The accounting account that will receive the payment.

vatTypestring required

One of {"HIGH", "MEDIUM", "LOW", "EXEMPT", "EXEMPT_IMPORT_EXPORT", "EXEMPT_REVERSE", "OUTSIDE", "NONE"}. "HIGH" is the most common.

activeboolean required

If product is in use (True) or not (False).

productNumberstring
stocknumber float

Number of products available in stock. If not provided, stock value is set to null. Decimal values are accepted. For example 5.5

notestring

Optional field for additional information.

Example request

{
  "productId": 2888156,
  "createdDate": "2018-04-03",
  "lastModifiedDate": "2018-04-03",
  "name": "Spade",
  "unitPrice": 300000,
  "costPrice": 150000,
  "incomeAccount": "3000",
  "vatType": "HIGH",
  "active": true,
  "productNumber": "125-1",
  "stock": 5
}

Response

Updated

Changes