Partial update item

patch
https://api.wafeq.com/v1/items/{id}/

Endpoint for partially updating an existing item. Without a VAT TRN, the organization can't newly add a Sales rate above 0% or a Reverse charge rate, nor, in the UAE, a zero-rated rate; exempt and out-of-scope rates stay available. Such a request is refused with HTTP 400 and code vat_trn_required; see the revenue_tax_rate field.

Path Params
stringrequired
Body Params

A product or service the organization buys or sells.

stringenum

How the cost of the stock of a tracked item is calculated: from the oldest units on hand first (FIFO) or at the running average of the units on hand. Defaults to the weighted average. Changing it re-costs the sales of the item from the date the new method takes effect.

View the enum reference

Allowed:
date | null

The date the costing method took effect, null when it applies to the whole history of the item. When the costing method is changed, the date the new method takes effect from: at the earliest the day after the last closed period and after the previous change, by default the start of the current fiscal year. Sales before it keep their cost.

string

The description of the item.

string | null

The expense account for this item.

stringlength ≤ 255

External identifier for the item.

booleanDefaults to true

Whether the item is active.

booleanDefaults to false

Whether inventory is tracked for this item.

item_units_of_measurearray of objects

The units of measure for this item.

stringlength ≤ 200

The name of the item.

string | null

The tax rate applied when purchasing this item: the ID of the tax rate (tax_…). List the tax rates of the organization with GET /v1/tax-rates/.

string | null

The revenue account for this item.

string | null

The tax rate applied when selling this item: the ID of the tax rate (tax_…). List the tax rates of the organization with GET /v1/tax-rates/. Without a VAT TRN on the organization, a local Sales rate above 0%, a Reverse charge rate, or, for a UAE organization, a zero-rated Sales rate is refused when newly picked as the default, with HTTP 400 and code vat_trn_required; a default already set stays saved, but a new line still can't take that rate. Add the VAT TRN with PATCH /v1/organization/profile/ (financial_settings.tax_registration_number) or PATCH /v2/organizations/{id}/ (profile.tax_registration_number).

stringlength ≤ 200

The SKU of the item.

tax_authorityobject

The tax authority reporting settings of the item.

double | null

The default unit cost of the item if no unit of measure is specified.

double | null

The default unit price of the item if no unit of measure is specified.

Headers
string

Client-provided UUID to uniquely identify a request

string

The id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.

stringenumDefaults to application/json

Generated from available request content types

Allowed:
Response