Data Types

Learn how to use and are used data types

The Unify API aims to have consistency across all endpoints.
This page defines common data type formats. Two kinds of data are explained below : Built-in data type & Custom data type

Built-in data type

Date and Date-time

The ISO 8601 format is used for date and time:

  • Date format - yyyy-MM-d e.g. 2023-09-12
  • Date-time format - yyyy-MM-ddTHH:mm:ssZ e.g. 2023-09-12T12:30:00Z+01:00
📘

Info

Note: that Z may be used to represent UTC time +00:00

Currency

The alphabetic ISO 4217 format is used for currency code:

  • Currency code format - USD for US dollar
    All currency values are expressed in the smallest units of the currency (e.g. cents for EUR and USD, but yen for JPY).

  • Currency amount format - 130.99 would be stored as 13099

Country

The ISO-3166 specification is used for country code.

📘

Info

For France, use "FR"

Phone Number

The UIT-T E.164 specification is used for phone number.

Here are the main characteristics of this standard:

Number structure:

  • The number begins with the + symbol (indicating an international number).
  • It is followed by the country code (for example, 1 for the United States, 33 for France).
  • Then comes the area code (if applicable) and the local number.

Maximum length:

A telephone number in E.164 format must not exceed 15 digits (excluding the + symbol).
Example of a number:

📘

Info

For a French number: +33123456789 (where 33 is the country code, 1 the area code).

Custom data type

Carrier

Supported carriers

CodeNameType
BPOSTBPostHome
BPOST_RELAYBPost RelayRelay
CHPChronopostHome
CHP_EXChronopost ExpressHome
CHP_RELAYChronopost RelayRelay
CHP_18Chronopost 18Home
CHP_FRESHChronopost FreshHome
CHP_2SHOPChronopost 2shopRelay
COLColissimoHome
COL_RELAYColissimo RelayRelay
COL_SIGNColissimo with signatureHome
CPRColis PrivéHome
DHLDHLHome
DHL_EXDHL ExpressHome
DPD_PICKUPDPD PickUpRelay
DPD_PRDICTDPD PredictHome
EVERESTEverestHome
FEDEX_2DAYFEDEX 2nd DayHome
FEDEX_GROUNDFedex GroundHome
FEDEX_INTERFedex InternationalHome
GEODISGEODISHome
GLSGLSHome
GLS_RELAYGLS RelaisRelay
HGHors GabaritHome
HG_FLOORHors Gabarit FloorHome
KIALAKialaRelay
MRMondial RelayRelay
NO_CARRIERNo CarrierN/A
RCRelais ColisRelay
STORE_PICKUPStore PickupStore
TNTTNTHome
UPSUPSHome
UPS_RELAYUPS Access PointRelay
UPS_EXUPS Express SaverHome
SCHENKERSchenkerHome

Payment Method

Supported payment methods

CodeName
KLARNAKlarna
COFINOGACofinoga
ACOMPTEDeposit
ALMAAlma
VIREMENTBank Transfer
CHEQUECheque
GIFT_CARDGift Card
ONEYOney
APPLE_PAYApple Pay
CETELEMCetelem
AMEXAmerican Express
IDEALiDEAL
MYBANKMyBank
BANCONTACTBancontact
NULLNone
MULTIBANCOMultibanco
CREDIT_CARDCredit Card (Visa, Mastercard, Maestro)
MOONEYMooney
PAYPALPayPal
MBWAYMB Way
COFIDIS_3XCofidis 3x
GOOGLE_PAYGoogle Pay
BRIDGEBridge
GIROPAYGiropay
SOFORTSofort
SOFTPOSSoftPOS
CASHCash

Predefined tags

Some keys are fixed and expected by the system, and their values must follow specific formats:

KeyObjectDescriptionFormat / Example
virtualItemIndicates whether the item is virtual or physical."true" or "false"
hs_codeItemHarmonized System code used for customs declaration."852349"
origin_countryItemThe country where the item was produced. Must be an ISO-3166 country code."FR"
packagingItemIndicates whether the item is a package or not."1"
mpOrderThe name of the marketplace."Amazon"

Order status

The following statuses represent the different stages of an order lifecycle.
Since an order may generate multiple preparation requests, statuses can apply either at the global order level or reflect the state of its related preparation requests.

StatusDescription
pendingThe order has been created but not yet orchestrated (no preparation requests assigned).
waitingThe order is waiting to be accepted by a store or warehouse.
initiatedThe order has been initiated but not yet fully placed.
processingAt least one preparation request has been accepted (the store or warehouse started preparing items).
partial_processingSome preparation requests have been accepted, but others are still pending or waiting.
processedAll preparation requests have been fully processed.
incompletely_processedThe order was processed but some items are missing across one or more preparation requests.
partially_processedOnly some preparation requests have been processed, while others are still pending or waiting.
shippedAll preparation requests have been shipped in full.
incompletely_shippedThe order was shipped but some items from one or more preparation requests are missing.
partially_shippedOnly some preparation requests have been shipped, while others are still processing or waiting.
available_in_storeThe order is ready and available in-store for pickup.
delivered_to_customerThe order has been fully delivered to the customer.
incompletely_deliveredThe customer received only part of the order (some preparation requests missing).
partially_deliveredSome preparation requests were delivered, while others are still in progress or failed.
pickup_refusedThe customer refused the pickup of the order.
canceledThe order and all its preparation requests have been fully canceled.
partially_canceledSome preparation requests or items have been canceled, but the rest remain valid.
expiredThe order has expired and will no longer be processed.
service_sentUsed for digital or service-type orders (e.g., gift cards) that have been sent electronically.

Preparation request status

Each preparation request follows its own lifecycle, from orchestration to processing, shipping, or pickup.
These statuses describe the state of a single preparation request, independently of the global order.

StatusDescription
pendingThe preparation request has been created but not yet assigned or accepted.
waitingThe preparation request is waiting for a store or warehouse to accept it.
processingThe preparation request has been accepted and items are being prepared.
processedThe preparation request has been fully processed.
incompletely_processedThe preparation request was processed but some items are missing.
refusedThe preparation request was refused by the store or warehouse.
shippedThe preparation request has been shipped in full.
incompletely_shippedThe preparation request was shipped, but some items are missing.
available_in_storeThe preparation request is ready and available for in-store pickup.
delivered_to_customerThe preparation request has been delivered to the customer in full.
incompletely_deliveredThe preparation request was delivered, but some items were missing.
pickup_refusedThe customer refused to pick up the preparation request.
canceledThe preparation request was canceled and will not be processed.
closedThe preparation request has been closed and finalized.
service_sentUsed for service or digital items (e.g., gift cards) that were sent electronically.

Did this page help you?