This service allows to retrieve the list of recently updated Project Lines.

The scope of the projects being checked can be specified with the scope param:

  • The value company will look for Project Lines created by the token’s owner company. This option is only authorized for Company admins/product_owner.

  • The value user (default) will look for Project Lines where the the token’s owner is a partner/owner.

The default time delta in days is 3 days but can be customized to any integer value up to 100 days.

See the example below to see the available data.

Examples

{
  "resource": {
    "type": "line_items",
    "action": "recent"
  },
  "line_items": [
    {
      "id": 3089,
      "source_id": null,
      "deliver_at": "2014-05-26",
      "total_price": null,
      "total_quantity": null,
      "manufacturer": null,
      "reference": null,
      "packing_conditions": null,
      "locked": false,
      "archived": false,
      "created_at": "2014-04-24T01:35:16.000Z",
      "updated_at": "2014-05-13T03:45:48.000Z",
      "checkpoints": [], /* if checkpoints == true */
      "milestones": [], /* if milestones == true */
      "product": { ... },
      "project": { ... }
    }
  ]

Params

Param name Description
delta_days
optional

List updated project lines in past X delta days (default to 3)

Must be a Integer
delta_hours
optional

Overwrite delta_days, allow to set the delta in hours (default to 72)

Must be a Integer
since
optional

Timestamp for filtering updated project lines (RFC2616, RFC2822, ISO8601)

Must be a String
scope
optional

Scope of the project lines to check (default to user)

Must be one of: user, company.
archived
optional

If true, only returns archived line items (default to false)

Boolean (true/false)
checkpoints
optional

If true, return checkpoints details (default to false)

Boolean (true/false)
milestones
optional

If true, return milestones details (default to false)

Boolean (true/false)
compact
optional

If true, return minimum info for project and line_item (default to false)

Boolean (true/false)
adjust
optional

If true, adjust the dates to take into account delays (default to false)

Boolean (true/false)
filter
optional

Filters to apply on the list of Project Line to return

Param for filters