API referenceItems
Update an item (past invoices keep their values)
PATCH
apiKeyheader
AuthorizationBearer <token>API key: gb_test_… or gb_live_…
id*stringGetbeel-Company?stringAct on one of the account's client companies (its id from GET /companies) instead of the key's own account. 404 company_not_found when the key cannot act on it.
Format
uuidapplication/json- body
name?stringName shown in the item list and invoice lines
Length
1 <= length <= 200description?|Line description copied into invoices and quotes
code?|Your product or service code (CodiceArticolo), up to 35
unit_price?unknownDecimal string (or number)
unit?|Unit of measure, e.g. "ore", "pz" (UnitaMisura)
vat_rate?unknownDefault 22; ignored with natura
natura?|Natura code for a 0% VAT line (e.g. N2.2); omit for VAT
archived?booleanOK
application/json- response
object*stringid*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidlivemode*booleanname*stringdescription*string|nullcode*string|nullunit_price*numberunit*string|nullvat_rate*numbernatura*string|nullarchived*booleancreated_at*stringMatch
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Format
date-timeupdated_at*stringMatch
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Format
date-timecurl -X PATCH 'https://www.getbeel.com/api/v1/items/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "object": "item", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "livemode": true, "name": "string", "description": "string", "code": "string", "unit_price": 0, "unit": "ore", "vat_rate": 0, "natura": "string", "archived": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}