Avalara · JSON Structure

Communications Line Item Structure

LineItem schema from Avalara API

Type: object Properties: 10
Taxes

LineItem is a JSON Structure definition published by Avalara, describing 10 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

ref from to chg line loc min sale tran serv

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avalara/refs/heads/main/json-structure/communications-line-item-structure.json",
  "description": "LineItem schema from Avalara API",
  "type": "object",
  "properties": {
    "ref": {
      "type": "string",
      "description": "Line item reference"
    },
    "from": {
      "$ref": "#/components/schemas/Location"
    },
    "to": {
      "$ref": "#/components/schemas/Location"
    },
    "chg": {
      "type": "double",
      "description": "Charge amount"
    },
    "line": {
      "type": "int32",
      "description": "Number of lines"
    },
    "loc": {
      "type": "int32",
      "description": "Number of locations"
    },
    "min": {
      "type": "double",
      "description": "Minutes"
    },
    "sale": {
      "type": "int32",
      "description": "Sale type (0=Wholesale, 1=Retail, 2=Consumed)"
    },
    "tran": {
      "type": "int32",
      "description": "Transaction type"
    },
    "serv": {
      "type": "int32",
      "description": "Service type"
    }
  },
  "name": "LineItem"
}