POST v1/{organizationId}/products

Add a new product to the organization

Request Information

URI Parameters

NameDescriptionTypeAdditional information
organizationId

string

None.

Body Parameters

Content of the new product

CreateProduct
NameDescriptionTypeAdditional information
ProductNumber

Number of the product (Varekode)

string

None.

Name

Product name

string

None.

BaseAmountValue

Amount excl. VAT

decimal number

None.

Quantity

Quantity

decimal number

None.

AccountNumber

Account number

integer

None.

Unit

Product unit. Available unit types: hours, parts, km, day, week, month, kilogram, cubicMetre, set, litre, box, case, carton, metre, package, shipment, squareMetre, session, tonne.

string

None.

ExternalReference

Your external id This can be used for ID'ing in external apps/services e.g. a web shop. The maximum length is 128 characters

string

String length: inclusive between 0 and 128

Sample:
{
  "ProductNumber": "sample string 1",
  "Name": "skrewdriver",
  "BaseAmountValue": 20.0,
  "Quantity": 5.0,
  "AccountNumber": 1000,
  "Unit": "parts",
  "ExternalReference": "Fx. WebShopID:42"
}

Response Information

Resource Description

201 (created) if the product was successfully saved.

Product
NameDescriptionType
ProductGuid

The guid of the product

globally unique identifier
Sample:
{
  "ProductGuid": "00000000-0000-0000-0000-000000000000"
}