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:
idandtypeidentify the resource.attributeshold the data of the resource itself.relationshipspoint to related resources by theiridandtype.linkscontain the URL of the resource itself.includedcontains the related resources returned along with it, usually requested with theincludeparameter. It sits inside each resource indata, not at the top level of the response as in standard JSON:API. Webhook events are the exception: they haveincludedat the top level of the payload. Onlyorder,shipment,inbound,inboundPackingSlip,returnMerchandiseAuthorizationandstockhave this part.
The models belong together in these groups:
- Orders: an
orderconsists oforderItemlines and can carry anorderAttachment. It refers to anaddressfor delivery and billing, and optionally to apickUpPoint. - Shipments: an
orderleads to one or moreshipmentresources, each with itsshipmentItemlines. Carriers report progress on a shipment astrackingEventresources. - Returns: a
returnMerchandiseAuthorizationregisters the intent to return goods, with areturnMerchandiseAuthorizationItemfor each item. - Inbounds: an
inboundPackingSlipwith itsinboundPackingSlipItemlines announces goods. Aninboundwith itsinboundItemlines records what the warehouse received. - Products and stock: a
productis an item you store with Paxon.stockis the quantity of a product at a stock location, and astockLevelsums 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.
address
An `address` is a specific physical location combined with the information of a recipient, that can be visited and/or where shipments can be delivered to. An `order` refers to its delivery and billing address through its relationships.
inbound
In the context of Paxon, an `inbound`, is a consignment of goods received by or in the process of being received by a warehouse.
inboundItem
inboundPackingSlip
In the context of Paxon, an `inboundPackingSlip`, which is also referred to as an advanced shipping notice or ASN, is a document that is included with an inbound shipment and provides important information about its contents. By merging the packing slip and ASN, it is possible to declare an inbound shipments and track its results.
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.
order
An `order` is a single request for fulfillment that is submitted to Paxon.
orderItem
An `orderItem` refers to a specific `product` has been purchased and must be shipped to the consumer.
orderAttachment
pickUpPoint
A `pickUpPoint` is a specific location where a consumer can go to collect a shipment that they have ordered. An `order` refers to its `pickUpPoint` through its relationships.
product
returnMerchandiseAuthorization
The `returnMerchandiseAuthorization` resource is used to manage the process of returning products from a client perspective by registering the intent to return goods. This enables clients to keep track of returns announced by consumers and the actual returns processed by Paxon.
returnMerchandiseAuthorizationItem
The `returnMerchandiseAuthorizationItem` resource represents a single item of a `returnMerchandiseAuthorization` which is a representation of a RMA-request.
shipment
Represents a single `shipment` from a single warehouse that was generated for an order.
shipmentItem
stock
The `stock` resource represents a quantity of a `product` (SKU) at a `stockLocation`. The `stock` itself may carry some properties.
stockLevel
trackingEvent
An `trackingEvent` is a single event emitted by the carrier that provides information about the current status of a shipment.