curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/items \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "some string",
"default_taxable": true,
"type": "service",
"default_quantity": 10.25,
"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"
payload = {
"name": "some string",
"default_taxable": True,
"type": "service",
"default_quantity": 10.25,
"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.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'some string',
default_taxable: true,
type: 'service',
default_quantity: 10.25,
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', 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 not found"
}Create item
Create an invoice item
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/items \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "some string",
"default_taxable": true,
"type": "service",
"default_quantity": 10.25,
"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"
payload = {
"name": "some string",
"default_taxable": True,
"type": "service",
"default_quantity": 10.25,
"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.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'some string',
default_taxable: true,
type: 'service',
default_quantity: 10.25,
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', 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 not found"
}{
"name",// required | max:400 | unique for the company
"default_taxable",// required | boolean
"default_description",// optional | string | max:5000
"type",// required | 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",// required | 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
}
Authorizations
Body
Unique for the company.
400service, product, reece-item 5000Unique item sku for the company.
255255Existing vendor id.
integrated, third_party Required if vendor_type is integrated.
Required if is_automatic_replenishment_by_purchase_order_enabled is true.
Must be greater then auto reorder level. Required if is_automatic_replenishment_by_purchase_order_enabled is true.
set_price_manually, automatic_markup, use_cmp_pricing Required if price_update_method is automatic_markup.
default, serialized_inventory Existing Quickbooks Tax Code Id.
Existing Quickbooks Tax Code Id.
Existing Quickbooks Account Id.
Existing Quickbooks Account Id.
Existing Quickbooks Account Id.
Hide child attributes
Hide child attributes
Existing inventory hub id.
Should be greater or equal to 0.
Should be greater or equal to 0.
Hide child attributes
Hide child attributes
Unique for the company serialized inventories.
255Existing invoice id.
Existing inventory hub id.
255Existing asset id.
255Array of tag ids.