Skip to main content
POST
Create or update an item

Authorizations

x-api-key
string
header
required

Your API key, for example cmp_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx. Create one on the Integrations page of the compliance dashboard.

Body

application/json
externalId
string
required

Your own identifier. Sending it again updates the same item.

Maximum string length: 100
name
string
required
Maximum string length: 200
taxCategory
enum<string>
required

VAT_STANDARD is KRA tax type B (16%), VAT_ZERO is C (0%), EXEMPT is A, OTHER is D and VAT_8 is E (8%).

Available options:
VAT_STANDARD,
VAT_ZERO,
EXEMPT,
OTHER,
VAT_8
productTypeCode
enum<string>
required

A string, not a number. 1 raw material, 2 finished product, 3 service.

Available options:
1,
2,
3
sku
string
Maximum string length: 100
classificationCode
string

The KRA item classification. Required before the item can be registered. Search with GET /v1/lookups/classifications.

Maximum string length: 20
unitCode
string

KRA quantity unit code, for example U. See GET /v1/lookups/codes?codeClass=10.

Maximum string length: 2
packagingUnitCode
string

KRA packaging unit code, for example NT. See GET /v1/lookups/codes?codeClass=17.

Maximum string length: 2
unitPrice
number

The default unit price.

Required range: x >= 0
businessId
string

The business to act for. Required for organisation-wide keys; omit it for a business-bound key. List the ids you can use with GET /v1/businesses.

Response

The item as stored.

data
object
required