Skip to main content

order

An order is a single request for fulfillment that is submitted to Paxon. An order will be 'converted' into one or more shipments that together consist of the same quantity of products delivered at the consumer.

idinteger

The id is an internally assigned id of an order. Only during and POST v3/orders is it possible to use arbitrary integer value which might be used to cross-reference within the message itself. However the system will not honour any value assigned by external systems.

Example: 24006341
typestringrequired
Constant value: order
attributes object
allowPartialDeliveryboolean

When set to true the order may be split into multiple shipments in case there is insufficient stock to filfill the order in a single shipment or from a single warehouse.

Default value: false
channelIdentifierchannelOrderIdentifier

The channelIdentifier is the (technical) id for the order as assigned by the external channel. For example Shopify, Amazon, Bol, Zalando, etc. may assign a unique id for communication and synchronization purposes.

Possible values: <= 250 characters

Example: 16560701-0715-4606-a420-fa15e0b1ad5e
consumerReferencestring

Optional reference provided by the consumer of this order`

Example: Voor Frans
currencycurrencyCode

Defines the currency of the order and all its orderItems. If omitted, the value EUR is assumed. The currency is used to convert the price of each orderItem to an acceptable currency when a shipment must be declaring its value to customs agencies.

Possible values: >= 3 characters and <= 3 characters, Value must match regular expression [A-Z]{3}

Default value: EUR
Example: EUR
emailstring<email>

The email address of the consumer. This email address could be used by Paxon, the carrier o customs in various notification messages regarding the shipments(s) related to this order.

Example: frans.hals@example.com
externalOrderNumberexternalOrderNumberrequired

The externalOrderNumber as specified during creation of the order.

Possible values: <= 50 characters

Example: 1656-07-15
fulfillFromwarehouseCode

When provided indicates the warehouse from which each orderItem must be fulfilled. When not provided the system will select the warehouse based on the warehouse strategy configuration for your company. Note that this value can also be set at orderItem-level which supercedes the specification at order-level or the warehouse strategy.

Possible values: [BW, DD, FL, FP, GN, NR]

Example: NR
localelocaleCoderequired

The locale defines (among other things) the language used in communications, inserts and possibly packaging relating to this order. The locale has to be a full locale like en-GB Note that the locale in Paxon is very similar to a browser locale. The documentation section about codes contains a list of valid languages and locales

Possible values: Value must match regular expression ^([a-zA-Z]+(?:-[a-zA-Z]+)?)

Example: nl-NL
metadata object

Allows the specification of arbitrary name-value pairs. note currently only the names 'extra1', 'extra2', 'extra3', 'extra4' and 'extra5' are supported and are linked to functionality (contact support for more information).

extra1string
extra2string
extra3string
extra4string
extra5string
onHoldboolean

When set to true prevents the order from being shipped until released.

Default value: false
orderedOnstring<date>

An optional field to place the date the consumer placed the order, this may be a date in the past. For example when the order was forwarded much later to the shop api.

Example: 2026-07-01
phoneNumberphoneNumber

The consumer's phone number which might be used by the carrier or customs to contact the consumer regarding the shipment(s) related to this order.

Possible values: <= 32 characters, Value must match regular expression ^[\d\s\+\(\)-\.\\\/]+$

Example: +31650607080
preferredShippingDatestring<date>

Allows the specification of a future date at which the order is to be shipped.

Example: 2026-07-10
promotionCodestring

Any promotion code the consumer used when placing the order.

Example: BIRTHDAY_BOY
referencestring

Optional field to store an internal reference to the order

Example: PO-RUB-4471
vatNumberstring
Example: BE0123456749
relationships object
billingAddress object

Optional address that can be used as billing address. When not provided it is assumed to be the same as the deliveryAddress.

data object

Identifies a resource as an address.

idinteger
typestringrequired
Constant value: address
deliveryAddress objectrequired

Denotes the address and name where the order must be delivered, unless a pickUpPoint has been specified in which case the order will be delivered to the pick-up point instead

data object

Identifies a resource as an address.

idinteger
typestringrequired
Constant value: address
orderItems object

Represents a relationship to multiple orderItem resources.

data object[]
  • Array [
  • idinteger

    The id is the internally assigned id of an orderItem. Only during and POST v3/orders is it possible to use arbitrary integer values to cross-reference within the message itself. However the system will not honour any value assigned by external systems.

    Example: 53150128
    typestringrequired
    Constant value: orderItem
    links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/orderItems/53150128
  • ]
  • orderType objectrequired

    Represents a relationship to an orderType resource.

    data object

    Represents a self-link of an orderType resource.

    idinteger
    Example: 10045
    typestringrequired

    Possible values: Value must match regular expression orderType

    links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/orderTypes/10045
    pickUpPoint object

    Optional: specify the address of the pick-up point in case the order is to be delivered at a pick-up point. Note that the deliveryAddress is still required.

    data object

    Identifies a resource as an pickUpPoint.

    idinteger
    typestringrequired
    Constant value: pickUpPoint
    preferredShippingMethod object

    Optional identifier to the shippingMethod preferred for this order. Note that this method is preferred, but not guaranteed since the method might not be available at the warehouse from where the order might be fulfilled, or the shipment may not be compatible with the preferred method. IMPORTANT: the v3 endpoints use the mainShippingMethodId as returned by the GET settings/get endpoints under /MainShippingMethods/id.

    data object

    Represents a self-link of a shippingMethod resource.

    idinteger
    Example: 12
    typestringrequired
    Constant value: shippingMethod
    links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/shippingMethods/12
    included object[]

    An array of resources included with the order, use the type property to identify the resource's type.

  • Array [
  • anyOf

    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.

    idinteger
    typestringrequired
    Constant value: address
    attributes object

    An address in the context of Paxon, is a specific physical location combined with information of a recipient that can be visited and/or where shipments can be delivered to.

    citystring
    companystring

    The name of the company or organization associated with the addressee.

    countryCodecountryCode

    A valid ISO:3166-1 alpha-2 country code denoting the country or subdivision.

    Possible values: Value must match regular expression ^[A-Z]{2,2}(-[A-Z0-9]{2,3})?$

    Examples:
    Example: NL
    firstNamestring

    The first (given) name of the addressee

    houseNumberstring

    The number associated with the address on the street or road. This is typically a numerical value.

    houseNumberExtensionstring

    Additional information that is added to a house number to specify a more precise location within a building or property, such as an apartment number, unit number, or letter.

    lastNamestring

    The last (family) name of the addressee

    postcodestring

    The postcode, also known as zip, postal code, Eircode, etc.

    prefixstring

    Any particles that may appear between the first and last name. In a Dutch names "van" or "de" are typical examples.

    regionstring

    A possible region name. Typically a province, a state, or a prefecture.

    street1string

    The name of the street or road where the address is located.

    street2string

    Optional information reserved for any additional address information that doesn't fit in the street1 first field, such as suite or apartment numbers, floor numbers, or building names.

    translatedNamestring

    Optional field for special situations where the carrier requires a translated versoin of the 'name fields'. For example Japanese addresses may require a translation of the name to latin-1 or Kana.

  • ]
  • links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/orders/24006341
    order
    {
    "id": 24006341,
    "type": "order",
    "attributes": {
    "externalOrderNumber": "1656-07-15",
    "reference": "PO-RUB-4471",
    "orderedOn": "2026-07-01",
    "consumerReference": "Voor Frans",
    "promotionCode": "BIRTHDAY_BOY",
    "locale": "nl-NL",
    "email": "frans.hals@example.com",
    "phoneNumber": "+31650607080",
    "vatNumber": "BE0123456749",
    "fulfillFrom": "NR",
    "preferredShippingDate": "2026-07-10",
    "allowPartialDelivery": false,
    "onHold": false,
    "metadata": {
    "extra1": "Happy Birthday Rembrandt!"
    },
    "channelIdentifier": "16560701-0715-4606-a420-fa15e0b1ad5e",
    "currency": "EUR"
    },
    "relationships": {
    "orderType": {
    "data": {
    "id": 10045,
    "type": "string",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/orderTypes/10045"
    }
    }
    },
    "orderItems": {
    "data": [
    {
    "id": 53150128,
    "type": "orderItem",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/orderItems/53150128"
    }
    }
    ]
    },
    "deliveryAddress": {
    "data": {
    "id": 0,
    "type": "address"
    }
    },
    "billingAddress": {
    "data": {
    "id": 0,
    "type": "address"
    }
    },
    "pickUpPoint": {
    "data": {
    "id": 0,
    "type": "pickUpPoint"
    }
    },
    "preferredShippingMethod": {
    "data": {
    "id": 12,
    "type": "shippingMethod",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/shippingMethods/12"
    }
    }
    }
    },
    "included": [
    {
    "id": 53150128,
    "type": "orderItem",
    "attributes": {
    "sku": "VDB-400",
    "channelIdentifier": "16560701-0715-4606-a420-0000000001a1",
    "quantity": 3,
    "fulfillFrom": "NR",
    "price": 13.95,
    "vat": 0.21,
    "name": "Van Dyke Brown - 400ml tube",
    "metadata": {
    "giftMessage": "Happy Birthday Rembrandt!",
    "customerId": "#31334-42"
    },
    "cancelled": 1
    },
    "relationships": {
    "order": {
    "data": {
    "id": 24006341,
    "type": "order",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/orders/24006341"
    }
    }
    },
    "product": {
    "data": {
    "id": 540935,
    "type": "product",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/products/540935"
    }
    }
    }
    }
    },
    {
    "attributes": {
    "firstName": "Rembrandt",
    "prefix": "van",
    "lastName": "Rijn",
    "company": "Atelier Rembrandt",
    "street1": "Jodenbreestraat",
    "street2": "Achterhuis",
    "postcode": "1011 NK",
    "houseNumber": "4",
    "houseNumberExtension": "A",
    "city": "Amsterdam",
    "region": "Noord-Holland",
    "countryCode": "NL"
    }
    },
    {
    "id": 0,
    "type": "pickUpPoint",
    "attributes": {
    "identifier": "0801-2011-HRLM",
    "registrationNumber": "1606071569",
    "name": "string",
    "street1": "string",
    "street2": "string",
    "postcode": "string",
    "houseNumber": "string",
    "houseNumberExtension": "string",
    "city": "string",
    "region": "string",
    "countryCode": "NL"
    }
    },
    {
    "id": 88001,
    "type": "orderAttachment",
    "attributes": {
    "filename": "string",
    "contentType": "application/pdf",
    "printStrategy": "REQUIRED"
    }
    }
    ],
    "links": {
    "self": "https://shopapi.activeants.nl/v3/orders/24006341"
    }
    }