Update by Id
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/items/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "some string",
"is_automatic_replenishment_by_purchase_order_enabled": true,
"auto_reorder_level": 1,
"replenishment_level": "some string",
"quantity_available": 1
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/items/{id}"
payload = {
"name": "some string",
"is_automatic_replenishment_by_purchase_order_enabled": True,
"auto_reorder_level": 1,
"replenishment_level": "some string",
"quantity_available": 1
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'some string',
is_automatic_replenishment_by_purchase_order_enabled: true,
auto_reorder_level: 1,
replenishment_level: 'some string',
quantity_available: 1
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/items/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": false,
"response": {}
}{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL or object not found"
}{
"message": "Internal Server Error"
}Items
Update by Id
PUT
/
items
/
{id}
Update by Id
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/items/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "some string",
"is_automatic_replenishment_by_purchase_order_enabled": true,
"auto_reorder_level": 1,
"replenishment_level": "some string",
"quantity_available": 1
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/items/{id}"
payload = {
"name": "some string",
"is_automatic_replenishment_by_purchase_order_enabled": True,
"auto_reorder_level": 1,
"replenishment_level": "some string",
"quantity_available": 1
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'some string',
is_automatic_replenishment_by_purchase_order_enabled: true,
auto_reorder_level: 1,
replenishment_level: 'some string',
quantity_available: 1
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/items/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": false,
"response": {}
}{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL or object not found"
}{
"message": "Internal Server Error"
}Body raw (json)
{
"name",// optional | max:400 | unique for the company
"default_taxable",// boolean
"default_description",// optional | string | max:5000
"type",// optional | string | acceptable_values: service,product,reece-item,
"sku",// nullable | string | max:255 | unique item sku for the company
"default_unit_price",// optional | numeric
"default_unit_cost",// optional | numeric
"default_quantity",// optional | numeric | value example 10.25
"track_inventory",// optional | boolean
"is_active",// optional | boolean
"xero_sales_account",// nullable | optional | integer
"xero_tax_account",// nullable | optional | integer
"tax_rate",// optional | string | max:255 | value example "10"
"vendor_id",// nullable | integer | existing vendor id
"vendor_type",// nullable | string |acceptable_values: integrated,third_party
"vendor_name",// nullable | string
"supplier_item_id",// nullable | string | required, if vendor_type is integrated
"is_automatic_replenishment_by_purchase_order_enabled",// nullable | boolean
"auto_reorder_level",// optional | integer | required, if is_automatic_replenishment_by_purchase_order_enabled is true
"replenishment_level",// nullable | required, if is_automatic_replenishment_by_purchase_order_enabled is true | description: must be greater then auto reorder level
"minimum_order_quantity",//numeric | nullable
"price_update_method",// optional | string | acceptable_values: set_price_manually,automatic_markup,use_cmp_pricing
"automatic_markup_percentage",// nullable | string | required, if price_update_method is automatic_markup
"inventory_mode",// optional | string | acceptable_values: default,serialized_inventory
"qbo_sales_tax_code_id",// nullable | optional | integer | existing Quickbooks Tax Code Id
"qbo_purchase_tax_code_id",// nullable | optional | integer | existing Quickbooks Tax Code Id
"qbo_income_account_id",// nullable | optional | integer | existing Quickbooks Account Id
"qbo_expense_account_id",// nullable | optional | integer | existing Quickbooks Account Id
"qbo_asset_account_id",// nullable | optional | integer | existing Quickbooks Account Id
"qbo_id",// nullable | optional | integer
"quantity_available",// optional | numeric
"unit_measure",// optional | string
"external_id",// nullable | optional | integer
"external_type",// nullable | optional | string
"external_sync_status",// nullable | optional | string
"upc",// nullable | optional | string
"unit_cost_per_unit_measure",// optional | numeric
"unit_price_per_unit_measure",// optional | numeric
"minimum_dimensional_size",// optional | numeric
"maximum_dimensional_size",// optional | numeric
"is_round_up_to_even_dimensional_size",// optional | boolean
"is_labor_item",// optional | boolean
"inventory_hub_items": [//nullable | array
{
"inventory_hub_id",// required | existing inventory hub id
"is_automatic_replenishment_by_purchase_order_enabled",// required | boolean
"auto_reorder_level",// required | integer | description: should be greater or equal to 0
"replenishment_level",// required | integer | description: should be greater or equal to 0
"quantity_available"// required | numeric
},
{
"inventory_hub_id",// required | existing inventory hub id
"is_automatic_replenishment_by_purchase_order_enabled",// required | boolean
"auto_reorder_level",// required | integer | description: should be greater or equal to 0
"replenishment_level",// required | integer | description: should be greater or equal to 0
"quantity_available"// required | numeric
}
],
"item_links": [// optional | array
{
"item_id",// nullable | integer | existing item id
"name",// required | string | max:255
"url"// required | string | max:255
},
{
"item_id",// nullable | integer | existing item id
"name",// required | string | max:255
"url"// required | string | max:255
}
],
"serialized_inventories": [// nullable | optional | array
{
"serial_number",// required | max:255 | unique for the comapny serialized inventories
"reference_number",// optional | string | max:255
"asset_template_id",// nullable | integer | existing asset id
"invoice_id",// required | integer | existing invoice id
"hub_id",// required | integer | existing inventory hub id
"id_number",// nullable | string
"default_unit_cost"// optional | string | max:255
},
{
"serial_number",// required | max:255 | unique for the comapny serialized inventories
"reference_number",// optional | string | max:255
"asset_template_id",// nullable | integer | existing asset id
"invoice_id",// required | integer | existing invoice id
"hub_id",// required | integer | existing inventory hub id
"id_number",// nullable | string
"default_unit_cost"// optional | string | max:255
}
],
"item_price_tiers": [// nullable | optional | array
{
"tier_id",// required | integer | existing Price Tier Id
"adjustment_property",// required | string | acceptable values: unit_cost, unit_price, list_price
"adjustment_value"// optional | numeric
},
{
"tier_id",// required | integer | existing Price Tier Id
"adjustment_property",// required | string | acceptable values: unit_cost, unit_price, list_price
"adjustment_value"// optional | numeric
}
],
"customfields": [ // nullable | optional | array | description: array of custom fleds
{
"id", // optional | nullable | required if field_instance_id is not set | integer | custom field id
"field_instance_id", // optional | nullable | required if id is not set | integer | custom field instance id
"value" // required | string | custom value
},
{
"id", // optional | nullable | required if field_instance_id is not set | integer | custom field id
"field_instance_id", // optional | nullable | required if id is not set | integer | custom field instance id
"value" // required | string | custom value
}
],
"tags"// nullable | optional | array | array of tag ids
}
Body
application/json
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes