Line Items - Bulk

Update line items

Changed on
patch/api/v2/line_items

Request

  • Base URL
    https://developer.productive.io (the document declares no server; this is the origin it was published from)
  • URL
    https://developer.productive.io/api/v2/line_items
  • Auth
    none declared

Request body

Example request

{
  "data": {
    "type": "line_items",
    "attributes": {
      "name": "Frontend Development",
      "quantity": 10,
      "unit": "hours",
      "unit_price": "150.00",
      "position": 1,
      "tax_rate": "0.1"
    },
    "relationships": {
      "invoice": {
        "data": {
          "type": "invoices",
          "id": "234"
        }
      }
    }
  }
}

Response

Collection line item

Example response

{
  "data": [
    {
      "id": "890",
      "type": "line_items",
      "attributes": {
        "name": "Frontend Development",
        "quantity": 10,
        "unit": "hours",
        "unit_price": "150.00",
        "total_price": "1500.00",
        "currency": "USD",
        "position": 1,
        "tax_rate": "0.1"
      },
      "relationships": {
        "invoice": {
          "data": {
            "type": "invoices",
            "id": "234"
          }
        },
        "service": {
          "data": {
            "type": "services",
            "id": "1856422"
          }
        }
      }
    }
  ],
  "included": [],
  "meta": {
    "current_page": 1,
    "total_pages": 5,
    "total_count": 42,
    "page_size": 30,
    "max_page_size": 200
  }
}

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • warning

      removed the request property //

    • warning

      removed the request property //

    • warning

      removed the request property //

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status