Line Items

Update a line item

Changed on

Update a line item.

patch/api/v2/line_items/{id}

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/{id}
  • Auth
    none declared

Path parameters

idstring required

ID

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

Single 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": []
}

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

    • 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