Product

Type

General entity

Fields

Field name

Type

Writable

Required

Description

code

string

The product code or SKU. Used for internal reference.

name

string

The product/service name to display on documents.

description

string

The product description. It is used as the line item description in the document when created.

uom

string

The unit of measurement.

sell

boolean

The flag to indicate if this product is used in the income module for sales. The default value is false.

default_revenue_account

AccountReference

(if the sell or inInventory flag is true)

The account to record revenues generated by this product.

default_selling_tax

TaxReference

The default tax when including this product in the sales document. Changeable in respective documents.

default_selling_price

number

(if the sell or inInventory flag is true)

The default selling price. Changeable in respective documents.

buy

boolean

The flag to indicate if this product is used in the expense module for purchase. The default value is false.

default_expense_account

AccountReference

(if the buy flag is true and inInventory false)

The account to record expense caused by this product if it is not under inventory control.

default_buying_tax

TaxReference

The default tax when including this product in the purchase document. Changeable in respective documents.

default_buying_price

number

(if the buy or inInventory flag is true)

The default buying price. Changeable in respective documents.

in_inventory

boolean

The flag to indicate if this product is under inventory control. The default value is false.

inventory_account

AccountReference

(if the inInventory flag is true)

The asset account to record the inventory value if under inventory control.

inventory_cost_account

AccountReference

(if the inInventory flag is true)

The expense account to record the inventory costs if under inventory control.

Sample

{
"date_created": 1564390504637,
"date_updated": 1564393321542,
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": null,
"name": "Banana Cake",
"description": "Banana cake 50G",
"uom": "Piece",
"sell": true,
"default_revenue_account": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": "4101",
"name": "Sales Revenue",
"type": "REVENUE_OPERATING",
"_id": "c9aaf077-38be-4f36-bae5-5de2544eba3a"
},
"default_selling_tax": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": "VAT-7",
"name": "Value Added Tax (7%)",
"description": null,
"latest_rate": 0.07000,
"_id": "989bcfad-b710-493e-aca6-22f9554ca07e"
},
"default_selling_price": 75.00,
"buy": true,
"default_expense_account": null,
"default_buying_tax": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": "VAT-7",
"name": "Value Added Tax (7%)",
"description": null,
"latest_rate": 0.07000,
"_id": "989bcfad-b710-493e-aca6-22f9554ca07e"
},
"default_buying_price": 40.00,
"in_inventory": true,
"inventory_account": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": null,
"name": "Inventory",
"type": "ASSET_CURRENT",
"_id": "9bc79575-c345-446f-8479-f79997133328"
},
"inventory_cost_account": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": null,
"name": "Inventory Cost",
"type": "EXPENSE_COSTOFSALES",
"_id": "607cfd36-1aaf-4a93-a975-086196eac420"
},
"_id": "5998093e-3a86-4123-9433-44275a8cac1a",
"_links": {
"self": {
"href": "https://api.pymlo.com/v1/businesses/a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1/setting/products/5998093e-3a86-4123-9433-44275a8cac1a"
}
}
}