action apideck_invoice_items_one { label: "Get Invoice Item" description: "Get Invoice Item" provider: apideck method: GET path: "/accounting/invoice-items/{id}" encoding: json input: { type: "object" properties: { fields: { type: "string" } id: { type: "string" } raw: { type: "boolean" } "x-apideck-app-id": { type: "string" } "x-apideck-consumer-id": { type: "string" } "x-apideck-service-id": { type: "string" } } required: ["id", "x-apideck-app-id", "x-apideck-consumer-id"] additionalProperties: false } output: { type: "object" required: ["data", "operation", "resource", "service", "status", "status_code"] properties: { data: { type: "object" properties: { active: { type: "boolean" } asset_account: { type: "object" properties: { code: { type: "string" description: "The code assigned to the account." } id: { type: "string" description: "The unique identifier for the account." } name: { type: "string" description: "The name of the account." } nominal_code: { type: "string" description: "The nominal code of the account." } } } code: { type: "string" description: "User defined item code" } created_at: { type: "string" format: "date-time" description: "The date and time when the object was created." } created_by: { type: "string" description: "The user who created the object." } description: { type: "string" description: "A short description of the item" } expense_account: { type: "object" properties: { code: { type: "string" description: "The code assigned to the account." } id: { type: "string" description: "The unique identifier for the account." } name: { type: "string" description: "The name of the account." } nominal_code: { type: "string" description: "The nominal code of the account." } } } id: { type: "string" description: "The ID of the item." } income_account: { type: "object" properties: { code: { type: "string" description: "The code assigned to the account." } id: { type: "string" description: "The unique identifier for the account." } name: { type: "string" description: "The name of the account." } nominal_code: { type: "string" description: "The nominal code of the account." } } } inventory_date: { type: "string" format: "date" description: "The date of opening balance if inventory item is tracked - YYYY-MM-DD." } name: { type: "string" description: "Item name" } purchase_details: { type: "object" properties: { tax_inclusive: { type: "boolean" description: "Amounts are including tax" } tax_rate: { type: "object" properties: { code: { type: "string" description: "Tax rate code" } id: { type: "string" description: "The ID of the object." } name: { type: "string" description: "Name of the tax rate" } rate: { type: "number" description: "Rate of the tax rate" } } } unit_of_measure: { type: "string" description: "Description of the unit type the item is sold as, ie: kg, hour." } unit_price: { type: "number" } } } purchased: { type: "boolean" description: "Item is available for purchase transactions" } quantity: { type: "number" } row_version: { type: "string" description: "A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object." } sales_details: { type: "object" properties: { tax_inclusive: { type: "boolean" description: "Amounts are including tax" } tax_rate: { type: "object" properties: { code: { type: "string" description: "Tax rate code" } id: { type: "string" description: "The ID of the object." } name: { type: "string" description: "Name of the tax rate" } rate: { type: "number" description: "Rate of the tax rate" } } } unit_of_measure: { type: "string" description: "Description of the unit type the item is sold as, ie: kg, hour." } unit_price: { type: "number" } } } sold: { type: "boolean" description: "Item will be available on sales transactions" } taxable: { type: "boolean" description: "If true, transactions for this item are taxable" } tracked: { type: "boolean" description: "Item is inventoried" } type: { type: "string" description: "Item type" enum: ["inventory", "service", "other"] } unit_price: { type: "number" } updated_at: { type: "string" format: "date-time" description: "The date and time when the object was last updated." } updated_by: { type: "string" description: "The user who last updated the object." } } additionalProperties: false } operation: { type: "string" description: "Operation performed" } resource: { type: "string" description: "Unified API resource name" } service: { type: "string" description: "Apideck ID of service provider" } status: { type: "string" description: "HTTP Response Status" } status_code: { type: "integer" description: "HTTP Response Status Code" } } } }