GetbeelDocs

Update an item (past invoices keep their values)

PATCH
/items/{id}

Autorizzazione

apiKey
headerAuthorizationBearer <token>

API key: gb_test_… or gb_live_…

id*string
Getbeel-Company?string

Act 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.

Formatuuid
application/json
  1. body
name?string

Name shown in the item list and invoice lines

Length1 <= length <= 200
description?|

Line description copied into invoices and quotes

code?|

Your product or service code (CodiceArticolo), up to 35

unit_price?unknown

Decimal string (or number)

unit?|

Unit of measure, e.g. "ore", "pz" (UnitaMisura)

vat_rate?unknown

Default 22; ignored with natura

natura?|

Natura code for a 0% VAT line (e.g. N2.2); omit for VAT

archived?boolean

Corpo della risposta

OK

application/json
  1. response
object*string
id*string
Match^([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)$
Formatuuid
livemode*boolean
name*string
description*string|null
code*string|null
unit_price*number
unit*string|null
vat_rate*number
natura*string|null
archived*boolean
created_at*string
Match^(?:(?:\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))$
Formatdate-time
updated_at*string
Match^(?:(?:\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))$
Formatdate-time
Esempio di richiesta
curl -X PATCH 'https://www.getbeel.com/api/v1/items/string' \  -H 'Content-Type: application/json' \  -d '{}'
Esempio di risposta
{  "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"}