This service allows to retrieve the list of recently validated packing lists.

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

  • The value company will look for packing lists validated by the token’s owner company. This option is only authorized for Company admins/supervisor

  • The value user (default) will look for packing lists used in project lines joined by the token owner, regardless of their company.

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": "packing_lists",
    "action": "recent"
  },
  "packing_lists": [
    {
      id: 2152,
      company_id: 12,
      reference: 4815162342,
      validated: true,
      validated_at: 2017-01-02,
      packages: [{
        count: 1,
        volume: 12,
        net_weight: 12,
        gross_weight: 12,
        content: [{
          product: {
            id: 2132,
            name: ProductName
          },
          variant: [{
            id: 12332,
            name: VariantName
          }],
          size: "L",
          quantity: 12
        }]
      }],
      validated_by: {},
      line_items: [{
        id: 231223,
        deliver_at: 2017-02-10
        project: {
          id: 1232,
          name: ProjectName,
          reference: ProjectReference,
        },
        product: {
          id: 2132,
          name: ProductName,
          reference: ProductReference,
          used_variants: [{
            id: 12332,
          }],
          variants: [{
            id: 12332,
            name: VariantName,
            reference: VariantReference,
          }]
        }
      }]
    }
  ]
}

Params

Param name Description
delta_days
optional

List updated packing lists 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 validated packing lists (RFC2616, RFC2822, ISO8601)

Must be a String
scope
optional

Scope of the packing lists to check (default to user)

Must be one of: user, company.