Skip to main content

Models

The models describe the resources that the API works with. An endpoint page shows the message of one call, while a model shows a resource as a whole. Use the models to look up what an attribute means and how resources relate to each other.

Every model follows the structure of JSON:API. Depending on the resource, it has some or all of these parts:

  • id and type identify the resource.
  • attributes hold the data of the resource itself.
  • relationships point to related resources by their id and type.
  • links contain the URL of the resource itself.
  • included contains the related resources returned along with it, usually requested with the include parameter. It sits inside each resource in data, not at the top level of the response as in standard JSON:API. Webhook events are the exception: they have included at the top level of the payload. Only order, shipment, inbound, inboundPackingSlip, returnMerchandiseAuthorization and stock have this part.

The models belong together in these groups:

  • Orders: an order consists of orderItem lines and can carry an orderAttachment. It refers to an address for delivery and billing, and optionally to a pickUpPoint.
  • Shipments: an order leads to one or more shipment resources, each with its shipmentItem lines. Carriers report progress on a shipment as trackingEvent resources.
  • Returns: a returnMerchandiseAuthorization registers the intent to return goods, with a returnMerchandiseAuthorizationItem for each item.
  • Inbounds: an inboundPackingSlip with its inboundPackingSlipItem lines announces goods. An inbound with its inboundItem lines records what the warehouse received.
  • Products and stock: a product is an item you store with Paxon. stock is the quantity of a product at a stock location, and a stockLevel sums up the stock of a product per warehouse.

A model describes the complete resource, and not every attribute can be sent in a request. Check the endpoint for the attributes it accepts.

📄️inboundPackingSlipItem

An `inboundPackingSlipItem` is a specific product or item that is listed on an `inboundPackingSlip` or delivery note. It is typically identified by a unique `product` code or `SKU` (stock keeping unit) and is accompanied by information such as the product name, quantity, and any additional details relevant to the shipment. Each packing slip item represents a single unit of the product being shipped, and multiple packing slip items may be included on a single packing slip for larger shipments containing multiple products. The information provided for each packing slip item helps to ensure that the recipient receives the correct products in the correct quantities and provides a record of the shipment for both the sender and the recipient.