1. Fulfillments
  2. Models

Fulfillments

Models

Article Model

An article model is an item or asset inside of a manifest, fulfillment, or parcel.


object "article"
The enum for this object

id string
The unique ID of this article, prefixed with art_

item_id string
The ID of the item associated with this article

attributes Array.<"alcohol", "marijuana", "pharma", "dry_ice", "lithium">
Indicates certain aspects of the item that will impact shipping and handling

comment string
A free text field to add any comments about this item

damaged_qty integer (deprecated)
The count of defective items. Deprecated: use defective_qty instead.

defective_qty integer
The count of items identified as defective.

verified_qty integer (deprecated)
The count of verified items. Deprecated: use received_qty instead.

received_qty integer
The count of items that have been received.

manifested_qty integer
This value can be updated by the end user for staging inventory, like in a common two-step pick & pack process for a fulfillment. For a manifest, this value is prefilled indicating how many items are expected in the manifest.

requested_qty integer
The count of items being requested in a fulfillment or parcel. When used for a manifest, it counts how many items were requested.

picked_qty integer
The picked quantity of the item or asset.

packed_qty integer
The packed quantity of the item or asset.

gtin string
The Global Trade Item Number, typically found on barcodes

sku string
The unique identifier that is added by you for this item

harmonized_code string
The harmonized system code for the item. This is required if you will be shipping this item internationally

image_url string
A thumbnail image for the inventory

image_urls Array.<string>
Other images for the inventory

name string
The name of the item

origin_country string
The two character country code. ISO 3166-1 alpha-2

vendor string
The company that created the inventory

value integer
The value of the inventory

value_added_services object[]
Value-added services requested for the inventory item. See Value Added Services

packaged_length float
The length in inches of the product packaging

packaged_width float
The width in inches of the product packaging

packaged_height float
The height in inches of the product packaging

packaged_weight float
The weight in pounds (lbs) of the product packaging

order_line_number string
The order line number for the item in the article

ship_ready boolean
Indicates whether the item associated to the article is ready to ship.

metadata object
These are your metadata key value pairs added to the article

description string
The description of the item associated to this article.

tariff_codes array
The tariff codes of the item associated to this article

manufacturer_numbers Array.<string>
The manufacturer or serial numbers of the individual assets in this article.

is_asset boolean
Indicates whether this article represents an asset item.

asset_id string
The ID of the asset associated with this article, if applicable.

layout object
Layout information associated with this article.

Show Details
layout.id string
The unique ID of the layout prefixed with lay_
layout.nested_name string
The name of the layout when nested inside a parent layout
layout.code string
The code of the layout

article_levels object
Represents the layouts from which the article quantity is picked or packed. The object contains two keys; recommended and others. recommended contains an array of layouts from which the user has picked the items from, or the layouts that the user should pick the items from, based on org settings. others is an array of layouts on which additional quantity for the article item is available. Each entry in these arrays contains the layout and location information, as well the quantity of the item available, picked and packed from the said layout when fulfilling an order.

reason_code ReasonCode
Reason code associated with this article

Show Details
Object.reason_code string
The enum for this object
Object.code string
The reason code
Object.type string
The type of reason code. Can be positive or negative
Object.description string
The description of the reason code
Object.active boolean
Indicates whether the reason code is active

Fulfillment Model

The fulfillment model represents a unique fulfillment containing the articles that was sent to the recipient.


object "fulfillment"
The description of the model.

cancel_reason string
If the fulfillment gets canceled, a reason can be optionally provided here.

created_at integer
Time in epoch seconds when this resource was created

complete_at integer
Time in epoch seconds by which this fulfillment should be completed

id string
The unique ID given to this fulfillment prefixed with ful_

external_id string
An external identifier for this fulfillment, useful for linking with third-party systems.

alternate_external_id string
An alternate external identifier for this fulfillment.

articles Array.<Article>
The articles that needs to be shipped in this fulfillment

inventory Array.<Article>
Alias for articles. Returns the same array of article objects.

shipment_label_url string
The URL of the shipping label that gets generated when the fulfillment is completed

location_id string
The ID of the location from which this fulfillment is being shipped

metadata object
These are your metadata key value pairs added to the fulfillment

order_number string
The order number that either you provided to the fulfillment or that PackageX added automatically

sales_order_number string
The sales order number associated with this fulfillment. This is separate from the order_number and can be used to reference the original sales order.

partial_fulfillment boolean
Indicates whether this is a partial fulfillment, meaning only some of the items from the original order are being fulfilled. Defaults to false.

additional_notes string
Additional notes or comments about this fulfillment.

tracking_number string
The tracking number for the shipment associated with this fulfillment. Derived from the linked shipment.

organization_id string
The ID of the organization that owns this fulfillment. In almost all cases, this will be your organization ID.

packaging_recommendations Array
A list of the recommended way(s) to package to product into parcels if any shipping boxes are predefined in the settings. This is currently an empty array for all users.

packing_slip_url string
The URL to the PDF of the packing slip for all items added to inventory. Only available when the fulfillment status is packed, shipping, or completed.

parcels Array.<Parcel>
All parcels in the fulfillment and the inventory packed within them. See the Parcel Model for full details.

rates_generated_at integer
Time in epoch seconds when shipping rates were generated for this fulfillment. Shipping rates are only valid for 15 minutes after which new rates must be fetched.

active_steps string
Fulfillment steps active for the fulfillment. These are either set from the org settings, or are declared at the time of fulfillment creation. The active steps can be any of the following: pick, pack, pick_ship, pack_ship, and pick_pack_ship.

type string
Fulfillment type, can be domestic or international

reason_code object
The reason code associated to the fulfillment. The reason code model follows the same structure as the article reason codes.

recipient object
Details about the contact receiving this shipment

Show Details
recipient.address Address
The parsed address for this recipient See Address
recipient.email string
Email for the recipient. Recipient will receive tracking notifications here
recipient.phone string
Phone number of the recipient. On demand couriers may contact this number for issues
recipient.name string
Name of the recipient, printed on the shipping label
recipient.contact_id string
The ID of the contact if one was used to create this recipient.
recipient.location_id string
The location ID if the recipient is an internal location
recipient.federal_tax_id string
Federal tax ID for the recipient, used for international customs declarations. Masked in responses
recipient.state_tax_id string
State tax ID for the recipient. Masked in responses
recipient.tax_identifiers TaxIdentifier[]
Array of tax identifiers for the recipient. Tax ID values are masked in responses

sender object
Details about the contact sending this shipment

Show Details
sender.address object
Parsed address for the sender. See Address
sender.email string
Email for the sender
sender.phone string
Phone number of the sender. On demand couriers may contact this number for issues.
sender.name string
Name of the sender, printed on the shipping label
sender.contact_id string
The ID of the contact if one was used to create this sender.
sender.federal_tax_id string
Federal tax ID for the sender, used for international customs declarations. Masked in responses
sender.state_tax_id string
State tax ID for the sender. Masked in responses
sender.tax_identifiers TaxIdentifier[]
Array of tax identifiers for the sender. Tax ID values are masked in responses

shipment_id string
The ID of the shipment associated with this fulfillment, prefixed with ship_

shipment_rate_type string
The type of rate that was purchased for the shipment linked to the fulfillment without needing to query the shipment. Options include:

Show Rate Types
in_person_pickup
The recipient will pick up at your location
curbside_pickup
The recipient will indicate when they are curbside
locker_pickup
The recipient will pick up from a locker
provider_delivery
A shipping provider will deliver the shipment
offline_delivery
The shipment will be negotiated outside of the PackageX platform

shipment_provider string
The shipping carrier or provider used for the shipment linked to this fulfillment (e.g., ups, fedex, usps).

shipment_purchased_rate object
The rate that was purchased for the shipment associated with this fulfillment.

status string
The status of the fulfillment

Show Details
created
The fulfillment was created either by you or a third party.
processing
Some activity occurred on the fulfillment, like a parcel being created.
picked
All items have been picked from inventory. This step is optional.
packed
The fulfillment has been packed.
shipping
A shipping label has been purchased and the fulfillment is in transit.
completed
All fulfillment steps are done and the order has been fulfilled.
canceled
The fulfillment was canceled.

updated_at integer
Time in epoch seconds when this resource was last updated

finished_at integer
Time in epoch seconds when this fulfillment was completed

updated_by string
The ID of the user or API key that last updated this fulfillment

updated_by_details object
Details about the user who last updated this fulfillment.

Show Details
Object.id string
The ID of the user who last updated this fulfillment
Object.name string
The name of the user who last updated this fulfillment

user_id string
The ID of the user associated with this fulfillment

checksum string
A checksum of the fulfillment object, useful for detecting changes

shipment_options object
The shipment options for the fulfillment

Show Details | | | :------------------------------------------------------------------------------------------ | | **provider_timeout** `integer`
The timeout value for shipping provider | | **verify_addresses** `boolean`
Whether to validate sender and recipient addresses | | **checkout_total** `integer`
The shipment checkout total | | **lead_time_mins** `integer`
The shipment lead time in minutes | | **provider_instructions** `string`
The shipment provider instructions | | **same_day_tip_amount** `integer`
The tip amount for same day service level | | **request_provider_pickup** `boolean`
Whether to request provider pickup | | **providers** `array`
List of shipment providers | | **service_levels** `array`
List of service levels enabled for this fulfillment | | **max_delivery_days** `array`
Maximum number of delivery days | | **rate_types** `array`
The types of rates to get for the shipment associated with this fulfillment. Can be `delivery`, `pickup`, `received` | | **return_other_rates** `boolean`
Whether to return rates other than the ones specified in rate_types | | **tracker_chained_status** `string`
The tracker chained status. Defaults to `package_at_waypoint` | | **tracker_auto_close_shipments_option** `string`
Tracker auto close shipments option. Defaults to `on_provider_updates` | | **tracker_auto_close_shipments_status** `string`
Tracker auto close shipments status. Defaults to `delivered` | | **incoterm** `string`
International fulfillments only. Can be `DDP` or `DAP` | | **content_type** `string`
International fulfillments only. Specifies the content type for customs. Can be `documents`, `gift`, `merchandise`, `returned_goods`, `sample`, `dangerous_goods`, `humanitarian_donation`, or `other` | | **non_delivery_option** `string`
International fulfillments only. Can be `return` or `abandon` | | **restriction_type** `string`
International fulfillments only. Can be `none`, `other`, `quarantine` or `sanitary_phytosanitary_inspection` | | **itn_number** `string`
International fulfillments only. The Internal Transaction Number (for U.S. Exports) | | **signer** `string`
International fulfillments only. Name of the customs declaration signer. Set via `customs_signer` in the create/update request | | **contents_explanation** `string`
International fulfillments only. Description of contents if the `content_type` is "other" | | **restriction_comments** `string`
International fulfillments only. Description of restriction if the `restriction_type` is not `none`| | **customs_certify** `boolean`
International fulfillments only. Whether the customs declaration has been certified |

options object
Fulfillment-specific options that control inventory and packing behavior.

Show Details
options.check_inventory boolean
Whether to check inventory availability when processing the fulfillment. Defaults to true
options.require_pick_step boolean
Whether the fulfillment requires a pick step before packing. Defaults to false
options.max_parcel_weight integer
Maximum weight in pounds for each parcel. Set to 50 if parcel weight checking is enabled, otherwise null

location object
A summary of the location from which this fulfillment is being shipped.

Show Details
location.id string
The unique ID of the location, prefixed with loc_
location.name string
The display name of the location
location.external_id string
The external identifier for the location, if one has been set