Update a Transaction Component

Change data of an individual component of a transaction.

Update a component.

patch

Update the properties of the specified component. Handles updates partially.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Body
hsnstringOptional

HS Code of the product. The HS code consists of at least six digits and is used by customs to classify the product being shipped.

Example: 1201
quantitynumberOptional

Quantity of the product, measured in the specified unit.

Example: 123.45
unitall ofOptional

Measurement unit of the product quantity. Can be one of: LTR, MTR, MTRSQR, MTRCUBE, KGM, TNE, PCS, PR, SET, PKG.

Example: KGM
string · enumOptional

Measurement unit of the product quantity.

Possible values:
descriptionstringOptional

Short description of the product.

dateOfProductionstringOptional

ISO 8601. The time at which the product was produced., For time ranges, also specify the endDateOfProduction.

Example: 2021-01-01T00:00:00.000Z
endDateOfProductionstringOptional

ISO 8601. The time at which a time-ranged production was finalized.

Example: 2022-01-01T00:00:00.000Z
supplierBusinessIdstringOptional

Id of the supplier business for the transaction.

Example: 02c36247-1aad-41ba-aa49-f114ca4c263f
supplierBusinessIdsstring[]Optional

Ids of the supplier businesses for the transaction.

Example: ["02c36247-1aad-41ba-aa49-f114ca4c263f"]
plotIdsstring[]Optional

A list of plot IDs to be associated with this component. Omit this field to attach all plots of the supplier business.

Example: ["a78c1a68-d326-4217-a131-893f3c47a064","e8d2e3e6-2c7c-4c4e-98a9-3e3f4e2c1a68"]
Responses
chevron-right
200Success
application/json
idstringRequired

id of this entity

Example: 02c36247-1aad-41ba-aa49-f114ca4c263f
hsnstringRequired

HS Code of the product.

Example: 18010000
commodityall ofRequired

Commodity of the product.

Example: oil palm
string · enumOptional

What crops (among the relevant commodities) are grown on this field (currently).

Possible values:
quantitynumberRequired

Quantity of the product, measured in the specified unit.

Example: 123.45
unitall ofRequired

Measurement unit of the product quantity.

Example: KGM
string · enumOptional

Measurement unit of the product quantity.

Possible values:
descriptionstringRequired

Short description of the product.

transactionIdstringRequired

Id of the transaction that this component belongs to

Example: 02c36247-1aad-41ba-aa49-f114ca4c263f
dateOfProductionstringOptional

ISO 8601. The time at which the product was produced., Can be a time range if endDateOfProduction is specified.

Example: 2021-01-01T00:00:00.000Z
endDateOfProductionstringOptional

ISO 8601. The time at which a time-ranged production was finalized.

Example: 2021-01-01T00:00:00.000Z
createdAtstringRequired

ISO 8601

Example: 2023-07-26T15:03:48Z
updatedAtstringRequired

ISO 8601

Example: 2023-07-28T09:13:37Z
plotIdsstring[]Optional

Ids of the plots associated with this component.

Example: ["02c36247-1aad-41ba-aa49-f114ca4c263f","02c36247-1aad-41ba-aa49-f114ca4c263f"]
patch
/components/{id}

Last updated