Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // POST to api/method/item
- // request body:
- {
- "Code": "RM-001",
- "UnitCost": "10000",
- "UnitPrice": "9000",
- "Article": "Hijab",
- "Category": "Hijab",
- "Brand": "Ria Miranda",
- "Product": "Hijab Jarik Collection",
- "name": "RM-001",
- "submit": 1,
- "Color": "Blue",
- "Size": "M",
- "Variant": "Blue",
- "Option 3": "Blue"
- }
- // Result:
- {
- "message": {
- "message": "OK",
- "data": {
- "website_specifications": [],
- "enable_deferred_expense": 0,
- "disabled": 0,
- "reorder_levels": [],
- "modified_by": "rm@pts.sc",
- "item_name": "Hijab Blue M Blue Blue",
- "has_expiry_date": 0,
- "default_material_request_type": "Purchase",
- "is_purchase_item": 1,
- "website_item_groups": [],
- "max_discount": 0,
- "name": "RM-001",
- "item_group": "Hijab - RM",
- "weight_per_unit": 0,
- "creation": "2019-03-14 16:37:44.597566",
- "doctype": "Item",
- "variant_of": "Hijab",
- "taxes": [],
- "create_new_batch": 0,
- "has_variants": 0,
- "supplier_items": [
- {
- "modified_by": "rm@pts.sc",
- "name": "ad47398552",
- "parent": "RM-001",
- "creation": "2019-03-14 16:37:44.597566",
- "modified": "2019-03-14 16:37:44.597566",
- "doctype": "Item Supplier",
- "idx": 1,
- "parenttype": "Item",
- "owner": "rm@pts.sc",
- "docstatus": 0,
- "supplier": "Global Supplier",
- "parentfield": "supplier_items"
- }
- ],
- "enable_deferred_revenue": 0,
- "inspection_required_before_delivery": 0,
- "is_sales_item": 1,
- "is_sub_contracted_item": 0,
- "shelf_life_in_days": 0,
- "allow_transfer_for_manufacture": 1,
- "tolerance": 0,
- "customer_code": "",
- "is_stock_item": 1,
- "idx": 0,
- "variant_based_on": "Item Attribute",
- "min_order_qty": 0,
- "length": 0,
- "valuation_rate": 10000,
- "attributes": [
- {
- "modified_by": "rm@pts.sc",
- "name": "7707e34515",
- "parent": "RM-001",
- "numeric_values": 0,
- "attribute": "Colour",
- "creation": "2019-03-14 16:37:44.597566",
- "modified": "2019-03-14 16:37:44.597566",
- "to_range": 0,
- "idx": 1,
- "parenttype": "Item",
- "increment": 0,
- "attribute_value": "Blue",
- "owner": "rm@pts.sc",
- "docstatus": 0,
- "doctype": "Item Variant Attribute",
- "from_range": 0,
- "parentfield": "attributes"
- },
- {
- "modified_by": "rm@pts.sc",
- "name": "80473fc904",
- "parent": "RM-001",
- "numeric_values": 0,
- "attribute": "Size",
- "creation": "2019-03-14 16:37:44.597566",
- "modified": "2019-03-14 16:37:44.597566",
- "to_range": 0,
- "idx": 2,
- "parenttype": "Item",
- "increment": 0,
- "attribute_value": "M",
- "owner": "rm@pts.sc",
- "docstatus": 0,
- "doctype": "Item Variant Attribute",
- "from_range": 0,
- "parentfield": "attributes"
- },
- {
- "modified_by": "rm@pts.sc",
- "name": "b264787d4b",
- "parent": "RM-001",
- "numeric_values": 0,
- "attribute": "Variant",
- "creation": "2019-03-14 16:37:44.597566",
- "modified": "2019-03-14 16:37:44.597566",
- "to_range": 0,
- "idx": 3,
- "parenttype": "Item",
- "increment": 0,
- "attribute_value": "Blue",
- "owner": "rm@pts.sc",
- "docstatus": 0,
- "doctype": "Item Variant Attribute",
- "from_range": 0,
- "parentfield": "attributes"
- },
- {
- "modified_by": "rm@pts.sc",
- "name": "bc59ae9bfe",
- "parent": "RM-001",
- "numeric_values": 0,
- "attribute": "Sole",
- "creation": "2019-03-14 16:37:44.597566",
- "modified": "2019-03-14 16:37:44.597566",
- "to_range": 0,
- "idx": 4,
- "parenttype": "Item",
- "increment": 0,
- "attribute_value": "Blue",
- "owner": "rm@pts.sc",
- "docstatus": 0,
- "doctype": "Item Variant Attribute",
- "from_range": 0,
- "parentfield": "attributes"
- }
- ],
- "height": 0,
- "owner": "rm@pts.sc",
- "is_customer_provided_item": 0,
- "customer_items": [],
- "barcodes": [],
- "item_level": "Regular",
- "width": 0,
- "item_defaults": [
- {
- "modified_by": "rm@pts.sc",
- "name": "25bcee9132",
- "parent": "RM-001",
- "company": "Ria Miranda",
- "creation": "2019-03-12 19:52:34.861518",
- "modified": "2019-03-14 16:37:44.597566",
- "idx": 1,
- "parenttype": "Item",
- "doctype": "Item Default",
- "owner": "dipta@pts.sc",
- "docstatus": 0,
- "default_warehouse": "Stores - RM",
- "parentfield": "item_defaults"
- }
- ],
- "product_group": "Hijab Jarik Collection",
- "is_item_from_hub": 0,
- "valuation_method": "",
- "brand": "Ria Miranda",
- "item_code": "RM-001",
- "retain_sample": 0,
- "show_in_website": 0,
- "safety_stock": 0,
- "modified": "2019-03-14 16:37:44.597566",
- "delivered_by_supplier": 0,
- "uoms": [
- {
- "modified_by": "rm@pts.sc",
- "name": "98dfcc3002",
- "parent": "RM-001",
- "creation": "2019-03-14 16:37:44.670285",
- "modified": "2019-03-14 16:37:44.670285",
- "doctype": "UOM Conversion Detail",
- "idx": 1,
- "parenttype": "Item",
- "conversion_factor": 1,
- "docstatus": 0,
- "uom": "Unit",
- "parentfield": "uoms"
- }
- ],
- "last_purchase_rate": 0,
- "naming_series": "ITEM-",
- "publish_in_hub": 0,
- "allow_alternative_item": 0,
- "no_of_months": 0,
- "end_of_life": "2099-12-31",
- "synced_with_hub": 0,
- "stock_uom": "Unit",
- "show_variant_in_website": 0,
- "docstatus": 0,
- "sample_quantity": 0,
- "description": "Hijab Blue M Blue Blue",
- "weightage": 0,
- "no_of_months_exp": 0,
- "total_projected_qty": 0,
- "lead_time_days": 0,
- "opening_stock": 0,
- "has_batch_no": 0,
- "has_serial_no": 0,
- "standard_rate": 9000,
- "is_fixed_asset": 0,
- "inspection_required_before_purchase": 0
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement