properties packagedef (http://api.3plcentral.com/rels/properties/packagedef)
Resource:
dimensions of a packing material, usually a box
C# Rel Const:
Rels.PropertySvc.PackageDef
URI template:
packagedefs/{id}
Obtain URI from:
get a package definition; a Package references a package definition
Success status: 200; ETag response header supplied; Response is cacheable
Name (* = required) Data Type Description
id * int
Type Description
PackageDefId int readonly
Name string required, must be unique as an alternate lookup field
Barcode string must be unique as an alternate lookup field
Description string optional, describe package def
IsDefault bool required, at most one PackageDef can be true
LengthImperial decimal? ... optional, imperial length
WidthImperial decimal? ... optional, imperial width
HeightImperial decimal? ... optional, imperial height
WeightImperial decimal? ... optional, imperial weight
LengthMetric decimal? ... optional, imperial width
WidthMetric decimal? ... optional, metric length
HeightMetric decimal? ... optional, metric height
WeightMetric decimal? ... optional, metric weight
Cost decimal? ... optional, cost
DefaultMarkupPercent decimal? ... optional, markup percent
DefaultMarkupFlat decimal? ... optional, markup flat
AssignedCustomers List<int> optional, customer id's
PackageDefFacilities IList<Property.Models.PackageDefFacility>
FacilityIdentifier Generic.Models.FacilityIdentifier required, defines facility containing this package
Name string
Id int
CurrentQuantity decimal? ... optional, defines current quantity
MinQuantity decimal? ... optional, defines min quantity to generate alerts
UserIdentifier Generic.Models.UserIdentifier optional, UserLoginID that will receive the alerts.
Name string
Id int
AlertRecipient int? ...
PackageName string
AssignedCustomerIdentifiers IEnumerable<Generic.Models.CustomerIdentifier>
ExternalId string
Name string
Id int
Sample accept: application/hal+json
{
  "packageDefId": 1,
  "name": "str",
  "barcode": "str",
  "description": "str",
  "isDefault": true,
  "lengthImperial": 1.0,
  "widthImperial": 1.0,
  "heightImperial": 1.0,
  "weightImperial": 1.0,
  "lengthMetric": 1.0,
  "widthMetric": 1.0,
  "heightMetric": 1.0,
  "weightMetric": 1.0,
  "cost": 1.0,
  "defaultMarkupPercent": 1.0,
  "defaultMarkupFlat": 1.0,
  "assignedCustomers": [
    1
  ],
  "assignedCustomerIdentifiers": [
    {
      "externalId": "str",
      "name": "str",
      "id": 3
    }
  ],
  "_embedded": {
    "item": [
      {
        "facilityIdentifier": {
          "name": "str",
          "id": 2
        },
        "currentQuantity": 1.0,
        "minQuantity": 1.0,
        "userIdentifier": {
          "name": "str",
          "id": 2
        },
        "alertRecipient": 1,
        "packageName": "str"
      }
    ]
  }
}
update a package definition
If-Match request header required; Success status: 200; ETag response header supplied
Name (* = required) Data Type Description
id * int
Type Description
PackageDefId int readonly
Name string required, must be unique as an alternate lookup field
Barcode string must be unique as an alternate lookup field
Description string optional, describe package def
IsDefault bool required, at most one PackageDef can be true
LengthImperial decimal? ... optional, imperial length
WidthImperial decimal? ... optional, imperial width
HeightImperial decimal? ... optional, imperial height
WeightImperial decimal? ... optional, imperial weight
LengthMetric decimal? ... optional, imperial width
WidthMetric decimal? ... optional, metric length
HeightMetric decimal? ... optional, metric height
WeightMetric decimal? ... optional, metric weight
Cost decimal? ... optional, cost
DefaultMarkupPercent decimal? ... optional, markup percent
DefaultMarkupFlat decimal? ... optional, markup flat
AssignedCustomers List<int> optional, customer id's
PackageDefFacilities IList<Property.Models.PackageDefFacility>
FacilityIdentifier Generic.Models.FacilityIdentifier required, defines facility containing this package
Name string
Id int
CurrentQuantity decimal? ... optional, defines current quantity
MinQuantity decimal? ... optional, defines min quantity to generate alerts
UserIdentifier Generic.Models.UserIdentifier optional, UserLoginID that will receive the alerts.
Name string
Id int
AlertRecipient int? ...
PackageName string
AssignedCustomerIdentifiers IEnumerable<Generic.Models.CustomerIdentifier>
ExternalId string
Name string
Id int
Sample content-type: application/hal+json
{
  "packageDefId": 1,
  "name": "str",
  "barcode": "str",
  "description": "str",
  "isDefault": true,
  "lengthImperial": 1.0,
  "widthImperial": 1.0,
  "heightImperial": 1.0,
  "weightImperial": 1.0,
  "lengthMetric": 1.0,
  "widthMetric": 1.0,
  "heightMetric": 1.0,
  "weightMetric": 1.0,
  "cost": 1.0,
  "defaultMarkupPercent": 1.0,
  "defaultMarkupFlat": 1.0,
  "assignedCustomers": [
    1
  ],
  "assignedCustomerIdentifiers": [
    {
      "externalId": "str",
      "name": "str",
      "id": 3
    }
  ],
  "_embedded": {
    "item": [
      {
        "facilityIdentifier": {
          "name": "str",
          "id": 2
        },
        "currentQuantity": 1.0,
        "minQuantity": 1.0,
        "userIdentifier": {
          "name": "str",
          "id": 2
        },
        "alertRecipient": 1,
        "packageName": "str"
      }
    ]
  }
}
Type Description
PackageDefId int readonly
Name string required, must be unique as an alternate lookup field
Barcode string must be unique as an alternate lookup field
Description string optional, describe package def
IsDefault bool required, at most one PackageDef can be true
LengthImperial decimal? ... optional, imperial length
WidthImperial decimal? ... optional, imperial width
HeightImperial decimal? ... optional, imperial height
WeightImperial decimal? ... optional, imperial weight
LengthMetric decimal? ... optional, imperial width
WidthMetric decimal? ... optional, metric length
HeightMetric decimal? ... optional, metric height
WeightMetric decimal? ... optional, metric weight
Cost decimal? ... optional, cost
DefaultMarkupPercent decimal? ... optional, markup percent
DefaultMarkupFlat decimal? ... optional, markup flat
AssignedCustomers List<int> optional, customer id's
PackageDefFacilities IList<Property.Models.PackageDefFacility>
FacilityIdentifier Generic.Models.FacilityIdentifier required, defines facility containing this package
Name string
Id int
CurrentQuantity decimal? ... optional, defines current quantity
MinQuantity decimal? ... optional, defines min quantity to generate alerts
UserIdentifier Generic.Models.UserIdentifier optional, UserLoginID that will receive the alerts.
Name string
Id int
AlertRecipient int? ...
PackageName string
AssignedCustomerIdentifiers IEnumerable<Generic.Models.CustomerIdentifier>
ExternalId string
Name string
Id int
Sample accept: application/hal+json
{
  "packageDefId": 1,
  "name": "str",
  "barcode": "str",
  "description": "str",
  "isDefault": true,
  "lengthImperial": 1.0,
  "widthImperial": 1.0,
  "heightImperial": 1.0,
  "weightImperial": 1.0,
  "lengthMetric": 1.0,
  "widthMetric": 1.0,
  "heightMetric": 1.0,
  "weightMetric": 1.0,
  "cost": 1.0,
  "defaultMarkupPercent": 1.0,
  "defaultMarkupFlat": 1.0,
  "assignedCustomers": [
    1
  ],
  "assignedCustomerIdentifiers": [
    {
      "externalId": "str",
      "name": "str",
      "id": 3
    }
  ],
  "_embedded": {
    "item": [
      {
        "facilityIdentifier": {
          "name": "str",
          "id": 2
        },
        "currentQuantity": 1.0,
        "minQuantity": 1.0,
        "userIdentifier": {
          "name": "str",
          "id": 2
        },
        "alertRecipient": 1,
        "packageName": "str"
      }
    ]
  }
}
If-Match request header required; Success status: 204
Name (* = required) Data Type Description
id * int

This documentation is subject to change, and is updated often and without warning. The models documented may or may not be available to users now or in the future. Use this documentation at your own risk.
Contact api@3plcentral.com with any questions about this documentation.