API Reference · FuturWeb

Futurlog API Reference

REST/JSON API to connect your systems to Futurlog logistics: orders, products, stock, receipts and returns. Your applications call our web services to manage your flows continuously.

Introduction

The Futurlog Web Services (FuturWeb) enable information exchange between your systems and Futurlog. The principle: your applications call our services to push (downstream) your catalogues and orders, and to pull (upstream) stock levels, statuses and tracking. The API is REST and exchanges JSON.

Authentication

FuturWeb services accept two authentication modes. They work in parallel with no end date: you can keep the historical mode or switch to the header mode.

Mode 1 - Login and key in the URL (historical)

Calls are formatted as follows:

https://jws.futurlog.com/{Application}/{Action}/{MerchantCode}/{Login}/{Key}/{Parameter}

This is the original mode, still fully supported. If your exchanges work today, you have nothing to change.

Mode 2 - Login and key in the HTTP headers (recommended)

The URL takes the v2 prefix and drops the Login and Key segments:

https://jws.futurlog.com/v2/{Application}/{Action}/{MerchantCode}/{Parameter}

The two headers to add:

  • X-FuturLog-Login: your Login
  • X-FuturLog-Key: your Key

HTTP Basic authentication is also accepted on this prefix: an Authorization header carrying the Login / Key pair. Useful if your HTTP client supports it natively.

Benefit of this mode: the key no longer appears in the URL, and therefore no longer in the logs of the servers, proxies and network equipment it passes through. This is why we recommend it for any new integration.

These components are common to both modes. Only the location of the Login and the Key changes.

FieldDescription
MerchantCodeMerchantCode is your merchant code. It consists of 3 alphanumeric characters and is provided to you by FuturLog.
LoginLogin determines the account with which you will perform actions on the Web Service. The Login is provided to you by FuturLog. In the test environment, this Login must be followed by -test.
KeyKey is the key used to identify you with our services. The key is provided to you by FuturLog. It is different in the test environment and in the production environment. It consists of 64 characters [a-Z0-9].
ParameterParameter is an optional parameter depending on the method you want to call. It is detailed below.

Response envelope

All methods respond with HTTP 200, including in the event of a business error. It is the content of the body that distinguishes success from failure.

Successful response:

{
  "Data": {},
  "LogId": 0
}

Error response:

{
  "Error": {
    "Message": "",
    "Code": "",
    "Data": [
      { "Key": "", "Value": "" }
    ]
  },
  "LogId": 0
}
FieldTypeDescription
Datadepends on the methodResult of the call. Meaningless when Error is present: absent for an object or a list, but returned at its default value for a bool (false) or an int (0), which is then neither a result nor an identifier.
Error.MessagestringPlain-text error message.
Error.CodestringError code, in the form E_....
Error.Datalist of key/value pairsError context: order number, product code...
LogIdintFuturLog log identifier. Provide it to support to trace a call.

Three serialization rules to know:

  • Success is determined by the absence of Error, never by the presence or value of Data.
  • Null properties are omitted from the response, they do not appear with the value null. A non-nullable bool or int is never null: it is always returned.
  • Dates are serialized in the yyyy-MM-dd format in responses. In requests, the expected format is specified on each relevant parameter.

Orders

POST

Create a new order

Mode 1/Order/CreateNewOrder/{merchantCode}/{login}/{key}
Mode 2/v2/Order/CreateNewOrder/{merchantCode}
Body
Object Order
Response
bool · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_NO_ORDERE_NO_ORDER_LINEE_NO_ORDER_NUMBERE_ALREADY_EXISTING_ORDERE_PRODUCT_CONTAINERS_PER_UNIT_REQUIREDE_UNKNOWN_ERROR
GET

Get the progress status of an order

Mode 1/Order/GetShipments/{merchantCode}/{login}/{key}/{dateFromUtc}
Mode 2/v2/Order/GetShipments/{merchantCode}/{dateFromUtc}
Parameters
dateFromUtc = All orders with a state change after this date (UTC/GMT +0 offset)
Accepted formats: "yyyy-MM-dd" or "yyyy-MM-ddTHH:mm:ss"
Example: "2019-12-17" or "2019-12-17T13:45:31"
Response
List of ShipmentReturn · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_UNKNOWN_ERROR
GET

Get the list of states

Mode 1/Order/GetStates/{merchantCode}/{login}/{key}
Mode 2/v2/Order/GetStates/{merchantCode}
Response
List of StateReturn · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_UNKNOWN_ERROR
GET

Get my list of carriers

Mode 1/Order/GetCarriers/{merchantCode}/{login}/{key}
Mode 2/v2/Order/GetCarriers/{merchantCode}
Response
List of CarrierReturn · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_UNKNOWN_ERROR
GET

Get the list of orders in error

Mode 1/Order/GetOrderErrors/{merchantCode}/{login}/{key}
Mode 2/v2/Order/GetOrderErrors/{merchantCode}
Response
List of OrderErrorReturn · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_UNKNOWN_ERROR
POST

Reject an order in error

Mode 1/Order/RejectOrderError/{merchantCode}/{login}/{key}
Mode 2/v2/Order/RejectOrderError/{merchantCode}
Body
Object OrderReference
Response
bool · HTTP 200
  • Rejects the most recent order awaiting integration (or in error) with this number: it will never be integrated, like the « Rejeter » (Reject) button in the Orders in error tab of MyFuturLog
  • An order already integrated or already rejected is refused with the corresponding code, nothing is modified
  • If an integrated order already carries this number and was waiting for this correction, it stays « En modification » (Being modified)
  • To correct the order instead of rejecting it, resend CreateNewOrder with the same number
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_ORDERE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNKNOWN_ERROR
POST

Cancel an order

Mode 1/Order/CancelOrder/{merchantCode}/{login}/{key}
Mode 2/v2/Order/CancelOrder/{merchantCode}
Body
Object OrderReference
Response
bool · HTTP 200
  • Cancels an order not yet shipped and releases the reserved stock
  • Same states, role and warehouses allowed as the « Annuler » (Cancel) button of MyFuturLog: an order already cancelled or already being prepared is refused with the corresponding code, nothing is modified
  • On an MPO or MPM warehouse, an order already transmitted can only be cancelled by FuturLog
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_ORDERE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_ACTION_NOT_SUPPORTED_BY_WAREHOUSEE_UNABLE_TO_CANCEL_ORDERE_UNKNOWN_ERROR
POST

Unblock an order

Mode 1/Order/UnblockOrder/{merchantCode}/{login}/{key}
Mode 2/v2/Order/UnblockOrder/{merchantCode}
Body
Object OrderReference
Response
bool · HTTP 200
  • Unblocks an order in the « Bloquée » (Blocked) state: it resumes its cycle (completeness then transmission to the warehouse)
  • Same conditions as the « Débloquer » (Unblock) button of MyFuturLog: an order that is not blocked is refused with the corresponding code, nothing is modified
  • A large order to be checked can only be unblocked by FuturLog
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_ORDERE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNABLE_TO_UNBLOCK_ORDERE_UNKNOWN_ERROR
POST

Force the transmission of an order

Mode 1/Order/ForceCompleteOrder/{merchantCode}/{login}/{key}
Mode 2/v2/Order/ForceCompleteOrder/{merchantCode}
Body
Object OrderReference
Response
bool · HTTP 200
  • Forces the transmission to the warehouse of an order in the « Incomplète » (Incomplete) state (insufficient stock), taking over if needed the reservations of other orders of the merchant not yet transmitted, which then become incomplete again
  • Same condition as the « Forcer la transmission » (Force transmission) button of MyFuturLog: any other order is refused with the corresponding code
  • If the stock is still insufficient, the order remains incomplete and the method returns E_UNABLE_TO_COMPLETE_ORDER
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_ORDERE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNABLE_TO_COMPLETE_ORDERE_UNKNOWN_ERROR
POST

Anonymize an order

Mode 1/Order/AnonymizeOrder/{merchantCode}/{login}/{key}
Mode 2/v2/Order/AnonymizeOrder/{merchantCode}
Body
Object OrderReference
Response
bool · HTTP 200
  • Replaces the recipient's personal data (name, address, phones, e-mail, billing address) of a cancelled or already shipped order, under the GDPR
  • Irreversible
  • Same condition as the « Anonymiser » (Anonymize) button of MyFuturLog: an order being processed is refused with the corresponding code, nothing is modified
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_ORDERE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNKNOWN_ERROR

Returns

POST

Create a new expected return

Mode 1/Order/CreateNewExpectedReturn/{merchantCode}/{login}/{key}
Mode 2/v2/Order/CreateNewExpectedReturn/{merchantCode}
Body
Object ExpectedParcelReturn
Response
bool · HTTP 200
  • Declares an expected customer return on a shipped order: the order and the return move to Retour annoncé (Return announced)
  • A tracking number already carried by a return of the same order is refused; without a tracking number, each call creates a return
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_UNKNOWN_ERRORE_NO_ORDERE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_UNKNOWN_CARRIERE_ALREADY_EXISTING_PARCEL_RETURNE_UNKNOWN_PRODUCT_CODEE_NO_RETURN_LINE_QUANTITYE_UNKNOWN_BRAND
GET

Get the list of returned orders

Mode 1/Order/GetReturns/{merchantCode}/{login}/{key}/{dateFromUtc}
Mode 2/v2/Order/GetReturns/{merchantCode}/{dateFromUtc}
Response
List of OrderReturn · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_UNKNOWN_ERROR
POST

Change the refund state of a return

Mode 1/Order/SetParcelReturnRefundState/{merchantCode}/{login}/{key}
Mode 2/v2/Order/SetParcelReturnRefundState/{merchantCode}
Body
Object ParcelReturnRefundState
Response
bool · HTTP 200
  • Changes the refund state of a customer return: 0 empty, 1 awaiting refund, 2 exchange created, 3 refunded (credit note), 4 refunded (payment method)
  • The return is designated by its FuturLog identifier (takes priority), by its tracking number, or by the order number when the order carries only one return; an order with several returns is refused with E_AMBIGUOUS_PARCEL_RETURN, the details listing the returns with their identifier
  • A value outside 0 to 4, or already in place, is refused, nothing is modified
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_UNKNOWN_PARCEL_RETURNE_AMBIGUOUS_PARCEL_RETURNE_INVALID_REFUND_STATEE_NOTHING_TO_UPDATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNKNOWN_ERROR

Products & stock

POST

Create a new item

Mode 1/Product/CreateNewProduct/{merchantCode}/{login}/{key}
Mode 2/v2/Product/CreateNewProduct/{merchantCode}
Body
Object Product
Response
bool · HTTP 200
  • If the product already exists, it is updated
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_NO_PRODUCT_CODEE_UNKNOWN_PRODUCT_TYPE_CODEE_UNKNOWN_ALCOHOL_TYPE_CODEE_UNKNOWN_CONTAINER_TYPE_CODEE_UNKNOWN_ERROR
POST

Update an existing item

Mode 1/Product/UpdateProduct/{merchantCode}/{login}/{key}
Mode 2/v2/Product/UpdateProduct/{merchantCode}
Body
Object Product
Response
bool · HTTP 200
  • If the product does not exist, it is created
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_NO_PRODUCT_CODEE_UNKNOWN_PRODUCT_TYPE_CODEE_UNKNOWN_ALCOHOL_TYPE_CODEE_UNKNOWN_CONTAINER_TYPE_CODEE_UNKNOWN_ERROR
POST

Create items in bulk

Mode 1/Product/CreateNewProducts/{merchantCode}/{login}/{key}
Mode 2/v2/Product/CreateNewProducts/{merchantCode}
Body
List of Product
Response
bool · HTTP 200
  • If a product already exists, it is updated
  • Note: if an error occurs on one product, no product is saved
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_NO_PRODUCT_CODEE_UNKNOWN_PRODUCT_TYPE_CODEE_UNKNOWN_ALCOHOL_TYPE_CODEE_UNKNOWN_CONTAINER_TYPE_CODEE_UNKNOWN_ERROR
POST

Update existing items in bulk

Mode 1/Product/UpdateProducts/{merchantCode}/{login}/{key}
Mode 2/v2/Product/UpdateProducts/{merchantCode}
Body
List of Product
Response
bool · HTTP 200
  • If a product does not exist, it is created
  • Note: if an error occurs on one product, no product change is saved
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_NO_PRODUCT_CODEE_UNKNOWN_PRODUCT_TYPE_CODEE_UNKNOWN_ALCOHOL_TYPE_CODEE_UNKNOWN_CONTAINER_TYPE_CODEE_UNKNOWN_ERROR
POST

Delete an item

Mode 1/Product/DeleteProduct/{merchantCode}/{login}/{key}/{productCode}
Mode 2/v2/Product/DeleteProduct/{merchantCode}/{productCode}
Parameters
productCode = Code of the product to delete
Response
bool · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_NO_PRODUCT_CODEE_UNKNOWN_PRODUCT_CODEE_UNKNOWN_ERROR
POST

Reactivate an item

Mode 1/Product/EnableProduct/{merchantCode}/{login}/{key}
Mode 2/v2/Product/EnableProduct/{merchantCode}
Body
Object ProductReference
Response
bool · HTTP 200
  • Reactivates a deactivated item (deleted through DeleteProduct or from MyFuturLog): its record is revalidated as at creation, then reintegrated and resent to the warehouse
  • An item already active is refused with the corresponding code, nothing is modified
  • If the record cannot be reintegrated (barcode already carried by another active item, for example), the integration error code is returned and the item stays deactivated
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_UNKNOWN_PRODUCT_CODEE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_ALREADY_EXISTING_BAR_CODEE_UNKNOWN_ERROR
GET

Get the information of a product

Mode 1/Product/GetProductInfo/{merchantCode}/{login}/{key}/{productCode}
Mode 2/v2/Product/GetProductInfo/{merchantCode}/{productCode}
Parameters
productCode = Product code
Response
ProductInfoReturn · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_NO_PRODUCT_CODEE_UNKNOWN_PRODUCT_CODEE_UNKNOWN_ERROR
GET

Get the list of products in error

Mode 1/Product/GetProductErrors/{merchantCode}/{login}/{key}
Mode 2/v2/Product/GetProductErrors/{merchantCode}
Response
List of ProductErrorReturn · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_UNKNOWN_ERROR
POST

Reject an item in error

Mode 1/Product/RejectProductError/{merchantCode}/{login}/{key}
Mode 2/v2/Product/RejectProductError/{merchantCode}
Body
Object ProductReference
Response
bool · HTTP 200
  • Rejects the most recent item awaiting integration (or in error) with this code: it will never be integrated, like the « Rejeter » (Reject) button in the Items in error tab of MyFuturLog
  • An item already integrated or already rejected is refused with the corresponding code, nothing is modified
  • To correct the item instead of rejecting it, resend CreateNewProduct or UpdateProduct with the same code
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_UNKNOWN_TMPPRODUCTE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNKNOWN_ERROR
POST

Resend an item record to the warehouse

Mode 1/Product/ResendProductToLogistics/{merchantCode}/{login}/{key}
Mode 2/v2/Product/ResendProductToLogistics/{merchantCode}
Body
Object ProductReference
Response
bool · HTTP 200
  • Flags the item record to be retransmitted to the warehouse in the next product flow (file or FuturWare), like the « Renvoyer à la logistique » (Resend to logistics) button of MyFuturLog
  • Refused with the corresponding code if the item is deactivated, if it is virtual (never transmitted) or if the product flow to the warehouse is closed for this merchant; nothing is modified
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_UNKNOWN_PRODUCT_CODEE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_ACTION_NOT_SUPPORTED_BY_WAREHOUSEE_UNKNOWN_ERROR
POST

Get the stock status in the brand's unit

Mode 1/Product/GetStocks/{merchantCode}/{login}/{key}
Mode 2/v2/Product/GetStocks/{merchantCode}
Parameters
Requested product and brand that sets the unit of the returned quantities
Body
Object StockRequest
Response
List of StockReturn · HTTP 200
  • The brand code is mandatory when the merchant has several brands
  • When the brand expresses its quantities in consumer sales units, the returned quantities are multiplied by the product's quantity per SKU; otherwise they are returned in stock units
  • A product whose quantity per SKU is not filled in is absent from the response
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_BRAND_MISSINGE_UNKNOWN_BRANDE_UNKNOWN_ERROR
POST

Check the availability of several products

Mode 1/Product/CheckStocks/{merchantCode}/{login}/{key}
Mode 2/v2/Product/CheckStocks/{merchantCode}
Parameters
Brand that sets the unit of the requested quantities, and lines to check
Body
Object StockCheckRequest
Response
StockCheckReturn · HTTP 200
  • Returns IsAvailable = false as soon as a single requested quantity exceeds the available stock, with the details of the missing lines
  • A product code sent several times has its quantities added up, a negative quantity counts as 0
  • When the brand expresses its quantities in consumer sales units, each requested quantity is divided by the product's quantity per SKU before the comparison
  • Snapshot: nothing is reserved between the check and the creation of the order
  • Only checks stock: neither the destination nor the carrier is considered
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_NO_PRODUCT_CODEE_UNKNOWN_PRODUCT_CODEE_STOCKS_TRANSMISSION_DISABLEDE_BRAND_MISSINGE_UNKNOWN_BRANDE_PRODUCT_CONTAINERS_PER_UNIT_REQUIREDE_ORDER_QUANTITY_NOT_DIVISIBLEE_UNKNOWN_ERROR

Receipts

POST

Create a new expected receipt

Mode 1/Product/CreateNewExpectedReceipt/{merchantCode}/{login}/{key}
Mode 2/v2/Product/CreateNewExpectedReceipt/{merchantCode}
Body
Object Receipt
Response
bool · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_UNKNOWN_ERRORE_NO_RECEIPTE_ALREADY_EXISTING_RECEIPTE_NO_RECEIPT_LINEE_NO_SCHEDULED_DATEE_UNKNOWN_PRODUCT_CODEE_NO_RECEIPT_LINE_QUANTITYE_NO_SUPPLIER_NAME
POST

Update an expected receipt

Mode 1/Product/UpdateReceipt/{merchantCode}/{login}/{key}
Mode 2/v2/Product/UpdateReceipt/{merchantCode}
Body
Object ReceiptUpdate
Response
bool · HTTP 200
  • Updates an expected receipt not yet transmitted to the warehouse (state « Reçu informatiquement » (Received in system))
  • A missing field is kept, an empty string clears it; the expected receipt number is changed through NewReceiptNumber with the creation rules (alphanumeric, 12 characters at most, unique); a supplier name equal to that of a registered supplier of the merchant links it; the lines provided replace the expected lines as a whole (active references of the merchant, strictly positive quantities)
  • Never the state or the received quantities
  • An expected receipt already transmitted, being received or closed is refused with the corresponding code, nothing is modified
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_RECEIPTE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_INVALID_RECEIPTNUMBERE_RECEIPT_CODE_TOO_LONGE_ALREADY_EXISTING_RECEIPTE_NO_SUPPLIER_NAMEE_UNKNOWN_SUPPLIERE_NO_RECEIPT_LINEE_NO_RECEIPT_LINE_QUANTITYE_UNKNOWN_PRODUCT_CODEE_NOTHING_TO_UPDATEE_UNKNOWN_ERROR
POST

Cancel an expected receipt

Mode 1/Product/CancelReceipt/{merchantCode}/{login}/{key}
Mode 2/v2/Product/CancelReceipt/{merchantCode}
Body
Object ReceiptReference
Response
bool · HTTP 200
  • Cancels an expected receipt
  • Not yet transmitted to the warehouse: cancelled immediately
  • Already announced to the warehouse: moves to « En annulation » (Being cancelled) and the cancellation is sent through the flow when the warehouse accepts it (MPO and MPM warehouses; elsewhere, cancelling an announced expected receipt goes through MyFuturLog or FuturLog support)
  • An expected receipt being received, completed, settled, blocked or already cancelled is refused with the corresponding code, nothing is modified
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_RECEIPTE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_ACTION_NOT_SUPPORTED_BY_WAREHOUSEE_UNKNOWN_ERROR
POST

Settle an expected receipt

Mode 1/Product/SettleReceipt/{merchantCode}/{login}/{key}
Mode 2/v2/Product/SettleReceipt/{merchantCode}
Body
Object ReceiptReference
Response
bool · HTTP 200
  • Settles an expected receipt being received or completed, accepting the gap between the announced and received quantities: it moves to « Soldé » (Settled)
  • No remainder is created by this method: quantities not received that are still to come are declared again through CreateNewExpectedReceipt
  • An expected receipt not yet being received, already settled or cancelled is refused with the corresponding code, nothing is modified
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_RECEIPTE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNKNOWN_ERROR
GET

Get the list of receipts

Mode 1/Product/GetReceipts/{merchantCode}/{login}/{key}/{dateFromUtc}
Mode 2/v2/Product/GetReceipts/{merchantCode}/{dateFromUtc}
Response
List of ReceiptReturn · HTTP 200
E_UNKNOWN_USER_OR_KEYE_UNKNOWN_MERCHANTE_UNKNOWN_ERROR

Suppliers

POST

Create a supplier

Mode 1/Supplier/CreateSupplier/{merchantCode}/{login}/{key}
Mode 2/v2/Supplier/CreateSupplier/{merchantCode}
Body
Object Supplier
Response
int · HTTP 200
  • Creates a supplier of the merchant
  • Only the name is mandatory; contact details are optional, the country is a 2-letter ISO code
  • Returns the identifier of the created supplier, to keep for UpdateSupplier and ArchiveSupplier
  • No protection against duplicates: two calls with the same name create two suppliers
  • Product links (code at the supplier, lead time) are then set through UpdateSupplier
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_SUPPLIER_NAMEE_INVALID_EMAILE_UNKNOWN_COUNTRY_CODEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNKNOWN_ERROR
POST

Update a supplier

Mode 1/Supplier/UpdateSupplier/{merchantCode}/{login}/{key}
Mode 2/v2/Supplier/UpdateSupplier/{merchantCode}
Body
Object SupplierUpdate
Response
bool · HTTP 200
  • Updates a supplier designated by its identifier (returned by CreateSupplier)
  • A missing field is kept, an empty string clears it (except the name, which cannot be cleared)
  • The product links provided replace the existing links as a whole: a product missing from the list is unlinked; missing list = links kept
  • An archived supplier is refused with the corresponding code, nothing is modified
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_UNKNOWN_SUPPLIERE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_NO_SUPPLIER_NAMEE_INVALID_EMAILE_UNKNOWN_COUNTRY_CODEE_UNKNOWN_PRODUCT_CODEE_NOTHING_TO_UPDATEE_UNKNOWN_ERROR
POST

Archive a supplier

Mode 1/Supplier/ArchiveSupplier/{merchantCode}/{login}/{key}
Mode 2/v2/Supplier/ArchiveSupplier/{merchantCode}
Body
Object SupplierReference
Response
bool · HTTP 200
  • Archives a supplier designated by its identifier: it disappears from the lists and from the expected receipt choices, past expected receipts keep its name
  • A supplier already archived is refused with the corresponding code, nothing is modified
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_UNKNOWN_SUPPLIERE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNKNOWN_ERROR

Bundle manufacturing

POST

Create a bundle manufacturing order

Mode 1/BundleManufacturing/CreateBundleManufacturing/{merchantCode}/{login}/{key}
Mode 2/v2/BundleManufacturing/CreateBundleManufacturing/{merchantCode}
Body
Object BundleManufacturing
Response
string · HTTP 200
  • Creates a manufacturing order: the bundles to manufacture (products with a bill of materials) with their quantity, and comments for the warehouse
  • The number is optional: if missing, FuturLog generates it and returns it in the response; if provided, it is alphanumeric, 12 characters at most and unique for the merchant
  • The order is written as « Reçu informatiquement » (Received in system); the components are reserved and then the warehouse is notified by FuturLog
  • No protection against duplicates when the number is missing
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_STARTING_TOO_LOWE_NO_BUNDLE_MANUFACTURINGE_NO_BUNDLE_MANUFACTURING_NUMBERE_BUNDLE_MANUFACTURING_CODE_TOO_LONGE_ALREADY_EXISTING_BUNDLE_MANUFACTURINGE_NO_BUNDLE_MANUFACTURING_LINEE_NO_BUNDLE_MANUFACTURING_LINE_QUANTITYE_NO_PRODUCT_CODEE_UNKNOWN_PRODUCT_CODEE_PRODUCT_IS_NOT_BUNDLEE_UNKNOWN_ERROR
POST

Update a bundle manufacturing order

Mode 1/BundleManufacturing/UpdateBundleManufacturing/{merchantCode}/{login}/{key}
Mode 2/v2/BundleManufacturing/UpdateBundleManufacturing/{merchantCode}
Body
Object BundleManufacturingUpdate
Response
bool · HTTP 200
  • Updates a manufacturing order not yet transmitted to the warehouse (states Reçu informatiquement, Incomplet, Complet (Received in system, Incomplete, Complete)), designated by its number
  • Comments are a patch: missing, kept; empty, cleared
  • Each line provided replaces the quantity to manufacture of the bundle designated by its code; a bundle not in the order is refused, no line is added or removed
  • The manufactured quantity and the state are never modified through the API
  • Component reservations are realigned and the state recalculated within the call
  • An order transmitted, manufactured or deleted is refused with the corresponding code, nothing is modified
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_BUNDLE_MANUFACTURINGE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_NO_PRODUCT_CODEE_UNKNOWN_PRODUCT_CODEE_NO_BUNDLE_MANUFACTURING_LINE_QUANTITYE_NOTHING_TO_UPDATEE_UNKNOWN_ERROR
POST

Cancel a bundle manufacturing order

Mode 1/BundleManufacturing/CancelBundleManufacturing/{merchantCode}/{login}/{key}
Mode 2/v2/BundleManufacturing/CancelBundleManufacturing/{merchantCode}
Body
Object BundleManufacturingReference
Response
bool · HTTP 200
  • Cancels a manufacturing order designated by its number: it moves to « Supprimé » (Deleted), the components still reserved are released, and the bundles already manufactured are reversed in stock (reverse movements)
  • An order already transmitted to the warehouse or already manufactured can only be cancelled by FuturLog, an order already deleted is refused, and the cancellation is refused when manufactured bundles have already left the stock
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_NO_BUNDLE_MANUFACTURINGE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_ACTION_RESERVED_TO_INTERNAL_ROLEE_CANNOT_DELETE_BUNDLE_MANUFACTURINGE_UNKNOWN_ERROR

Customer service

POST

Open a customer service request

Mode 1/Support/CreateSupportRequest/{merchantCode}/{login}/{key}
Mode 2/v2/Support/CreateSupportRequest/{merchantCode}
Body
Object SupportTicket
Response
long · HTTP 200
  • Opens a ticket with FuturLog customer service on behalf of the authenticated user, who must have access to customer service from MyFuturLog (a technical integration account generally does not: the method then explicitly refuses)
  • Subject and message mandatory
  • Optional attachments: at most 3 files of 5 MB each, types png, jpg, pdf, csv, txt, content in base64
  • Optional linked entities, designated by their reference (order number, product code, expected receipt number, return identifier or tracking number, manufacturing order number): an unknown reference refuses the request
  • Returns the ticket number, to keep for ReplySupportRequest
  • No protection against duplicates: two calls create two tickets
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_SUPPORT_NOT_ACTIVATEDE_ACTION_RESERVED_TO_INTERNAL_ROLEE_INVALID_SUPPORT_REQUESTE_NO_ORDERE_UNKNOWN_PRODUCT_CODEE_UNKNOWN_TMPPRODUCTE_NO_RECEIPTE_UNKNOWN_PARCEL_RETURNE_NO_BUNDLE_MANUFACTURINGE_SUPPORT_UNAVAILABLEE_UNKNOWN_ERROR
POST

Reply to a customer service request

Mode 1/Support/ReplySupportRequest/{merchantCode}/{login}/{key}
Mode 2/v2/Support/ReplySupportRequest/{merchantCode}
Body
Object SupportTicketReply
Response
bool · HTTP 200
  • Adds a reply to an existing ticket of the merchant, designated by its number (returned by CreateSupportRequest), on behalf of the authenticated user, who must have access to customer service from MyFuturLog
  • Message mandatory, optional attachments (at most 3 files of 5 MB, types png, jpg, pdf, csv, txt, base64)
  • A resolved ticket is reopened by the reply; a closed ticket is refused with the corresponding code
  • A ticket that is unknown or belongs to another merchant is not found, without distinction
  • No protection against duplicates: read the thread again before resending a reply after a network error
  • No user permission is granted by default on this method: ask FuturLog to activate it
E_UNKNOWN_USER_OR_KEYE_METHOD_NOT_ALLOWEDE_UNKNOWN_MERCHANTE_SUPPORT_NOT_ACTIVATEDE_ACTION_RESERVED_TO_INTERNAL_ROLEE_UNKNOWN_SUPPORT_REQUESTE_ACTION_NOT_ALLOWED_IN_CURRENT_STATEE_INVALID_SUPPORT_REQUESTE_SUPPORT_UNAVAILABLEE_UNKNOWN_ERROR

Data models

Objects sent / received, exhaustive field list. (M) = mandatory, (M/O) = mandatory or optional depending on your FuturLog settings, string[n] = max length n, ? = nullable. Unannotated fields are optional.

Order request

{
  "OrderNumber": "string[9]",                // (M) unique
  "BrandCode": "string[3]",                  // (M/O) brand code
  "CurrencyCode": "string[3]",               // currency (EUR, USD, ...)
  "CustomerNumber": "string[50]",            // customer order no. (B2B)
  "Language": "string[2]",                   // brand language
  "Incoterm": "string[3]",
  "DateUtc": "datetime?",                    // order date
  "ScheduledTransmissionDate": "datetime?",  // scheduled transmission to logistics
  "MerchantCarrierCode": "string[7]",        // merchant carrier: code
  "MerchantCarrierLabel": "string[50]",      // merchant carrier: name
  "ShippingServiceCode": "string[3]",        // A2P, CIT, BPR, CDI, ACP, DOM, RDV, MRL...
  "SpecificationCode": "string[50]", // B2B specification code (CDC)
  "StockType": "string[3]",              // stock type (STD, DEF, BLQ), STD by default
  "PickerComments": "string[500]",           // picker comment
  "EshopId": "string", "EshopCustom1": "string",     // e-shop ref. / info
  "CustomInvoiceBase64": "string",          // custom invoice (Base64)
  "CustomDocumentBase64": "string",         // custom document (Base64)
  "Address": {                                    // (M) delivery address
    "CorporateName": "string[100]",
    "LastName": "string[50]", "FirstName": "string[50]",
    "Address1": "string[35]",              // (M)
    "Address2": "string[35]", "Address3": "string[35]",
    "ZipCode": "string[10]",               // (M)
    "City": "string[50]",                  // (M)
    "ProvinceCode": "string[2]",            // US / Canada
    "CountryCode": "string[2]",             // (M)
    "MobilePhone": "string[30]",            // (M)
    "Phone": "string[30]",
    "Email": "string[100]",
    "PickupPointNumber": "string[10]",       // pickup point
    "Comments": "string[500]"
  },
  "Billing": {                                    // billing
    "CorporateName": "string[50]",
    "LastName": "string[50]", "FirstName": "string[50]",
    "Address1": "string[35]",              // (M)
    "Address2": "string[35]", "Address3": "string[35]",
    "ZipCode": "string[10]",               // (M)
    "City": "string[50]",                  // (M)
    "ProvinceCode": "string[2]",            // US / Canada
    "CountryCode": "string[2]",             // (M)
    "BillNumber": "string[50]",            // invoice no.
    "TotalAmount": "decimal?",            // (M) order total incl. VAT
    "ShipmentPrice": "decimal?",          // shipping cost incl. VAT
    "ShipmentVAT": "decimal?",            // (M/O) shipping VAT rate
    "Discount": "decimal?", "DiscountHT": "decimal?", "DiscountTTC": "decimal?"  // discount (excl./incl. VAT per settings)
  },
  "Gift": {                                       // gift
    "Message": "string",                   // gift card message
    "PackageType": "int?"                  // gift wrap type
  },
  "OrderLines": [ {                               // (M) order lines
    "ProductCode": "string[30]",            // (M) product ref.
    "InternalProductCode": "string[30]",    // (M) internal ref.
    "ProductLabel": "string[120]",         // (M)
    "ProductBatchNumber": "string[30]",      // batch no.
    "Quantity": 0,                         // (M)
    "UnitPrice": "decimal?", "UnitPriceHT": "decimal?", "UnitPriceTTC": "decimal?",  // (M/O) unit price (excl./incl. VAT per settings)
    "VATRate": "decimal?"                  // (M/O) VAT rate
  } ]
}

Product request

{
  "Code": "string[30]",               // (M) product code
  "Label": "string[120]",            // (M) product label
  "BarCode": "string[60]",           // barcode
  "BrandCode": "string[3]",          // brand code
  "ExternalCode": "string[60]",      // supplier code
  "HsCode": "string[10]",            // customs (HS) code
  "OriginCountryCode": "string[2]",  // country of origin
  "Family": "string[100]",           // product category
  "Model": "string[100]", "Color": "string[50]", "Size": "string[100]",
  "Type": "string[100]",            // 'p' = physical, 'v' = virtual
  "Weight": "decimal?",             // weight in kg
  "Height": "decimal?", "Width": "decimal?", "Length": "decimal?",   // dimensions in cm
  "UnitPriceHT": "decimal?",        // last price excl. VAT
  "TvaRate": "decimal?",            // VAT rate
  "WeePrice": "decimal?",           // eco-participation fee
  "AlertThreshold": 0,               // low-stock alert threshold
  "IsActive": true, "IsLotManaged": false,
  "PictureUrl": "string[300]",       // image URL
  "EshopId": "string", "EshopCustom1": "string",     // e-shop ref. / info
  "Parameter1": "string", "Parameter2": "string",  // custom parameters
  "ProductTypeCode": "string[15]", // STANDARD, ALCOOL, DANGEREUX, BIO (missing = unchanged)
  "SalesUnitsPerStockUnit": "int?", // quantity per SKU, from 1 to 1,000 (missing = 1)
  "AlcoholTypeCode": "string[20]", // (O if ALCOOL) excise category: VIN_TRANQ, VIN_MOUSS, BOISSON_FERM_AUTRE, PROD_INTER_VDN_VDL, PROD_INTER_AUTRES, BIERE, CIDRE, SPIRITUEUX
  "AlcoholDegree": "decimal?",    // (O if ALCOOL) alcohol by volume in % vol
  "ContainerNominalVolumeCl": "decimal?", // (O if ALCOOL) nominal volume of one container in cl
  "AlcoholContainersPerUnit": "int?", // (O if ALCOOL) containers per stock unit, from 1 to 1,000
  "ContainerTypeCode": "string[15]", // (O if ALCOOL) BOUTEILLE, CANETTE, FUT, BAG_IN_BOX, AUTRE
  "AppellationDenomination": "string[100]", // appellation or denomination
  "PlatoDegree": "decimal?",      // Plato degree of a beer
  "ProductsInBundle": [ { "Code": "string[30]", "Quantity": 1 } ]  // components (if this is a bundle)
}

Receipt request expected receipt

{
  "ScheduledDate": "datetime",      // (M) expected receipt date
  "StockType": "string[3]",    // target stock type: STD (default), DEF (defective), BLQ (blocked)
  "SupplierName": "string[100]",    // (M) supplier
  "ReceiptNumber": "string[12]",    // receipt no.
  "CarrierName": "string[100]",     // carrier
  "DeliveryComments": "string[500]", // delivery comment
  "ReceiptLines": [ {                       // (M) receipt lines
    "ProductCode": "string[30]",          // (M) product ref.
    "Quantity": 0                        // (M) announced quantity
  } ]
}

BundleManufacturing request

Body of CreateBundleManufacturing

FieldTypeDescription
BundleManufacturingNumberstring[12]Number of the manufacturing order at the merchant (alphanumeric, unique); if missing: generated by FuturLog and returned in the response
Commentsstring[500]Comments for the warehouse
Lines (O)list<BundleManufacturingLine>Bundles to manufacture: at least one line
Lines[].ProductCode (O)string[100]Code of the bundle product at the merchant (SKU), product with a bill of materials
Lines[].Quantity (O)intQuantity of bundles to manufacture, strictly positive

BundleManufacturingReference request

Body of CancelBundleManufacturing

FieldTypeDescription
BundleManufacturingNumber (O)string[12]Number of the manufacturing order, as transmitted or returned at its creation

BundleManufacturingUpdate request

Body of UpdateBundleManufacturing

FieldTypeDescription
BundleManufacturingNumber (O)string[12]Number of the manufacturing order, as transmitted or returned at its creation
Commentsstring[500]Comments; missing: kept, empty: cleared
Lineslist<BundleManufacturingLine>Bundles whose quantity to manufacture changes (bundle code and new quantity); missing: kept. A bundle not in the order is refused
Lines[].ProductCode (O)string[100]Code of the bundle product at the merchant (SKU), product with a bill of materials
Lines[].Quantity (O)intQuantity of bundles to manufacture, strictly positive

OrderReference request

Body of AnonymizeOrder, CancelOrder, ForceCompleteOrder, RejectOrderError, UnblockOrder

FieldTypeDescription
OrderNumber (O)string[50]Order number at the merchant, as transmitted at its creation

ParcelReturnRefundState request

Body of SetParcelReturnRefundState

FieldTypeDescription
OrderNumberstring[50]Order number at the merchant, if it carries only one return
ParcelReturnIdint<nullable>FuturLog identifier of the return (takes priority over the two other designations); returned in the refusal details when the order carries several returns
RefundState (O)intTarget refund state: 0 empty, 1 awaiting refund, 2 exchange created, 3 refunded (credit note), 4 refunded (payment method)
TrackingNumberstring[50]Tracking number of the return (takes priority over the order number); several returns with the same tracking: the most recent

ProductReference request

Body of EnableProduct, RejectProductError, ResendProductToLogistics

FieldTypeDescription
Code (O)string[100]Product code at the merchant (SKU), as transmitted at its creation

ReceiptReference request

Body of CancelReceipt, SettleReceipt

FieldTypeDescription
ReceiptNumber (O)string[12]Expected receipt number at the merchant, as transmitted at its creation

ReceiptUpdate request

Body of UpdateReceipt

FieldTypeDescription
CarrierNamestring[100]Carrier name; missing: kept, empty: cleared
DeliveryCommentsstring[500]Delivery comment; missing: kept, empty: cleared
NewReceiptNumberstring[12]New expected receipt number (alphanumeric, unique for the merchant); missing: kept
ReceiptNumber (O)string[12]Expected receipt number at the merchant, as transmitted at its creation
ScheduledDatedatetime<nullable>Scheduled receipt date; missing: kept
SupplierNamestring[100]Supplier name; missing: kept
TrackingNumberstring[50]Tracking number; missing: kept, empty: cleared
ReceiptLineslist<ReceiptLine>Expected lines (reference and announced quantity); missing: kept, provided: replaced as a whole
ReceiptLines[].ProductCode (O)string[30]Product reference
ReceiptLines[].Quantity (O)intAnnounced quantity

StockCheckRequest request

Body of CheckStocks

FieldTypeDescription
BrandCodestring[3]Brand code. Optional if the merchant has only one brand, mandatory otherwise
Stocks (O)list<StockCheck>Lines to check: a product code and the requested quantity
Stocks[].Codestring[30]Product code
Stocks[].QuantityintRequested quantity

StockRequest request

Body of GetStocks

FieldTypeDescription
BrandCodestring[3]Brand code. Optional if the merchant has only one brand, mandatory otherwise
ProductCodestring[30]Product code. If not filled in, returns the stock status of all products

Supplier request

Body of CreateSupplier

FieldTypeDescription
Addressstring[255]Postal address
Citystring[100]City
ContactNamestring[100]Name of the contact at the supplier
CountryCodestring[2]ISO country code (2 letters). See the Countries annex.
Emailstring[150]Supplier e-mail address
Name (O)string[100]Supplier name
Phonestring[30]Supplier phone
ZipCodestring[20]Postal code

SupplierReference request

Body of ArchiveSupplier

FieldTypeDescription
Id (O)intSupplier identifier at FuturLog, returned by CreateSupplier

SupplierUpdate request

Body of UpdateSupplier

FieldTypeDescription
Addressstring[255]Postal address; missing: kept, empty: cleared
Citystring[100]City; missing: kept, empty: cleared
ContactNamestring[100]Contact name; missing: kept, empty: cleared
CountryCodestring[2]ISO country code (2 letters); missing: kept, empty: cleared. See the Countries annex.
Emailstring[150]E-mail address; missing: kept, empty: cleared
Id (O)intSupplier identifier at FuturLog, returned by CreateSupplier
Namestring[100]New supplier name; missing: kept
Phonestring[30]Phone; missing: kept, empty: cleared
ZipCodestring[20]Postal code; missing: kept, empty: cleared
ProductLinkslist<SupplierProductLink>Supplier product links; missing: kept, provided: replaced as a whole
ProductLinks[].LeadTimeDaysint<nullable>Lead time in days (0 by default)
ProductLinks[].ProductCode (O)string[100]Product code at the merchant (SKU)
ProductLinks[].SupplierProductCodestring[100]Product code at the supplier

SupportTicket request

Body of CreateSupportRequest

FieldTypeDescription
Message (O)string[10000]Initial message of the ticket (text)
Subject (O)string[200]Ticket subject
Attachmentslist<SupportTicketAttachment>Attachments: at most 3 files of 5 MB each, types png, jpg, pdf, csv, txt
Attachments[].ContentBase64 (O)stringFile content encoded in base64 (5 MB at most once decoded)
Attachments[].FileName (O)string[255]File name with its extension (png, jpg, pdf, csv, txt)
LinkedEntitieslist<SupportTicketLinkedEntity>MyFuturLog entities to attach to the ticket, designated by their reference
LinkedEntities[].Reference (O)string[100]Reference: order number, product code, expected receipt number, return identifier or tracking number, manufacturing order number
LinkedEntities[].Type (O)string[30]Entity type: order, tmpOrder, product, tmpProduct, receipt, parcelReturn or bundleManufacturing

SupportTicketReply request

Body of ReplySupportRequest

FieldTypeDescription
Message (O)string[10000]Reply message (text)
TicketId (O)longTicket number (returned by CreateSupportRequest)
Attachmentslist<SupportTicketAttachment>Attachments: at most 3 files of 5 MB each, types png, jpg, pdf, csv, txt
Attachments[].ContentBase64 (O)stringFile content encoded in base64 (5 MB at most once decoded)
Attachments[].FileName (O)string[255]File name with its extension (png, jpg, pdf, csv, txt)

ExpectedParcelReturn request

Body of CreateNewExpectedReturn

FieldTypeDescription
Brandstring[3]Brand code
CarrierCodestring[7]Carrier service code, known to FuturLog (see « Get my list of carriers »)
OrderNumber (O)string[50]Order number at the merchant, as transmitted at its creation; the order must have been shipped
ReturnReasonTextstring[200]Reason for the return
TrackingNumberstring[50]Tracking number of the return; refused if it is already carried by a return of the same order
Weightdecimal<nullable>Weight in kg; missing: weight of the shipped parcels, capped at 30 kg
ReturnLines (O)list<ReturnLineReturn>Return lines: at least one, products of the order, strictly positive returned quantity
ReturnLines[].DateUtcdatetime<nullable>Date of return to the warehouse
ReturnLines[].ProductBatchNumberstring[30]Product batch
ReturnLines[].ProductCode (O)string[30]Product reference
ReturnLines[].QuantityReturned (O)intReturned quantity
ReturnLines[].QuantityReturnedDamagedintDamaged returned quantity
ReturnLines[].ReturnReasonCodeint<nullable>Return reason code
ReturnLines[].ReturnReasonLabelstring[50]Return reason label

CarrierReturn response

Response of GetCarriers

FieldTypeDescription
Codestring[7]Carrier code
Labelstring[50]Carrier name

OrderErrorReturn response

Response of GetOrderErrors

FieldTypeDescription
Brandstring[3]Brand code
ErrorCodestring[50]Error code. See the Order error codes annex.
ErrorLabelstring[200]Error label
OrderNumberstring[9]Order number

OrderReturn response

Response of GetReturns

FieldTypeDescription
Brandstring[3]Brand code
CreationDateUtcdatetimeDate the return was announced
CustomerNumberstring[50]Customer order number (B2B)
DateUtcdatetime<nullable>Date of return to the warehouse
Languagestring[2]Brand language
MerchantCarrierCodestring[7]Merchant's carrier service code
MerchantCarrierLabelstring[50]Merchant's carrier name
OrderNumberstring[9]Order number
ShippingServiceCodestring[3]Service code (A2P, CIT, BPR, CDI, ACP, DOM, RDV, MRL, DOS, CMT, BDP, ...).
Statestring[50]Parcel state. See the Return states annex.
StateCodeintParcel state code. See the Return states annex.
TrackingNumberstring[50]Tracking number
TrackingUrlstring[200]Tracking URL
AddressAddressAddress
Address.Address1string[35]Delivery address: address
Address.Address2string[35]Delivery address: address line 2
Address.Address3string[35]Delivery address: address line 3
Address.Citystring[50]Delivery address: city
Address.Commentsstring[500]Delivery address: comments
Address.CorporateNamestring[100]Delivery address: company name
Address.CountryCodestring[2]Delivery address: country code. See the Countries annex.
Address.Emailstring[100]Delivery address: e-mail
Address.FirstNamestring[50]Delivery address: customer first name
Address.LastNamestring[50]Delivery address: customer last name
Address.MobilePhonestring[30]Delivery address: mobile number
Address.Phonestring[30]Delivery address: phone number
Address.PickupPointNumberstring[10]Delivery address: pickup point code
Address.ProvinceCodestring[2]Delivery address: province code (US and Canada). See the Provinces annex.
Address.ZipCodestring[10]Delivery address: postal code
BillingBillingBilling attributes
Billing.Address1string[35]Billing address: address
Billing.Address2string[35]Billing address: address line 2
Billing.Address3string[35]Billing address: address line 3
Billing.BillNumberstring[50]Invoice number
Billing.Citystring[50]Billing address: city
Billing.CorporateNamestring[50]Billing address: company name
Billing.CountryCodestring[2]Billing address: country code. See the Countries annex.
Billing.Discountdecimal<nullable>Discount amount (excl. or incl. VAT as specified in your FuturLog settings)
Billing.DiscountHTdecimal<nullable>Discount amount excl. VAT
Billing.DiscountTTCdecimal<nullable>Discount amount incl. VAT
Billing.FirstNamestring[50]Billing address: customer first name
Billing.LastNamestring[50]Billing address: customer last name
Billing.ProvinceCodestring[2]Billing address: province code (US and Canada). See the Provinces annex.
Billing.ShipmentPricedecimal<nullable>Shipping costs incl. VAT
Billing.ShipmentVATdecimal<nullable>VAT rate of the shipping costs
Billing.TotalAmountdecimal<nullable>Total order amount incl. VAT
Billing.ZipCodestring[10]Billing address: postal code
GiftGiftGift attributes
Gift.MessagestringGift card message
Gift.PackageTypeint<nullable>Gift wrapping type
OrderLineslist<OrderLineReturn>Order lines
OrderLines[].InitialQuantityintInitial ordered quantity
OrderLines[].ProductCodestring[30]Product reference
OrderLines[].ShippedBatchesReturnlist<ShippedBatchReturn>List of shipped batches
OrderLines[].ShippedBatchesReturn[].Numberstring[50]Batch number
OrderLines[].ShippedBatchesReturn[].QuantityintShipped quantity
ReturnLineslist<ReturnLineReturn>Return lines
ReturnLines[].DateUtcdatetime<nullable>Date of return to the warehouse
ReturnLines[].ProductBatchNumberstring[30]Product batch
ReturnLines[].ProductCodestring[30]Product reference
ReturnLines[].QuantityReturnedintReturned quantity
ReturnLines[].QuantityReturnedDamagedintDamaged returned quantity
ReturnLines[].ReturnReasonCodeint<nullable>Return reason code
ReturnLines[].ReturnReasonLabelstring[50]Return reason label

ProductErrorReturn response

Response of GetProductErrors

FieldTypeDescription
Codestring[30]Product code
ErrorCodestring[50]Error code. See the Product error codes annex.
ErrorLabelstring[200]Error label

ProductInfoReturn response

Response of GetProductInfo

FieldTypeDescription
AlertThresholdint<nullable>Stock alert threshold
BarCode2string[60]Alternative barcode 2
BarCode3string[60]Alternative barcode 3
BarCode4string[60]Alternative barcode 4
BarCode5string[60]Alternative barcode 5
BarCodeMerchantstring[60]Main barcode (EAN)
BillingPcbdecimal<nullable>PCB (units per case): logistics packaging
Codestring[30]Product code
Colorstring[50]Color
ExternalCodestring[60]Supplier code / external code
Familystring[100]Product family / category
Heightdecimal<nullable>Height in cm (logistics value if filled in, otherwise merchant value)
HsCodestring[10]Customs nomenclature (HS code)
IsActivebooltrue if the product is active (not deleted)
IsFragilebooltrue if the product is declared fragile
IsLotManagedbooltrue if batch management is enabled
IsReplacedByCodestring[30]Code of the substitute product (null if none)
IsReturnablebooltrue if the product is returnable
IsSaleDeadlineManagedbooltrue if sell-by date management is enabled
IsSerialNumberManagedbooltrue if serial number management is enabled
Labelstring[120]Product label
LastUnitPriceHTdecimal<nullable>Last known unit price excl. VAT
Lengthdecimal<nullable>Length in cm (logistics value if filled in, otherwise merchant value)
Modelstring[10]Model
OriginCountryCodestring[2]Country of origin code (ISO 3166-1 alpha-2). See the Countries annex.
PictureUrlstring[300]Product image URL
QuantityAvailableintAvailable quantity (physical minus reserved)
QuantityDamagedintDamaged quantity
QuantityInSupplyintQuantity being received
QuantityOnHandintPhysical quantity in stock
SaleDeadlineFreshnessDelayint<nullable>Guaranteed freshness period in calendar days, used by Houtch warehouses. Empty means 30 days
Sizestring[100]Size
Typestring[10]Product type (p = physical product, v = virtual pack)
UnitPriceHTdecimal<nullable>Unit price excl. VAT
WeePricedecimal<nullable>Eco-contribution (WEEE)
Weightdecimal<nullable>Actual weight in kg (logistics value if filled in, otherwise merchant value)
Widthdecimal<nullable>Width in cm (logistics value if filled in, otherwise merchant value)

ReceiptReturn response

Response of GetReceipts

FieldTypeDescription
EntryDateUtcdatetimeEntry date
ReceiptDatedatetime<nullable>Actual receipt date
ReceiptNumberstring[30]Order number
Statestring[50]Receipt state. See the Receipt states annex.
StateCodeintReceipt state code. See the Receipt states annex.
ReceiptLineslist<ReceiptLineReturn>Receipt lines
ReceiptLines[].ProductCodestring[30]Product reference
ReceiptLines[].QuantityintAnnounced quantity
ReceiptLines[].ReceivedQuantityint<nullable>Received quantity
ReceiptLines[].ReceivedQuantityDamagedint<nullable>Received damaged quantity
ReceiptLines[].ReceiptLinePartialReceptionslist<ReceiptLinePartialReceptionReturn>Partial receipt lines
ReceiptLines[].ReceiptLinePartialReceptions[].DatedatetimeDate
ReceiptLines[].ReceiptLinePartialReceptions[].ProductBatchNumberstring[50]Batch number
ReceiptLines[].ReceiptLinePartialReceptions[].ReceivedQuantityint<nullable>Received quantity
ReceiptLines[].ReceiptLinePartialReceptions[].ReceivedQuantityDamagedint<nullable>Received damaged quantity

ShipmentReturn response

Response of GetShipments

FieldTypeDescription
BrandCodestring[3]Brand code
CustomerNumberstring[50]Customer order number (B2B)
EshopIdstring[100]Internal e-shop ID
OrderNumberstring[30]Order number
Statestring[50]Order state. See the Order states annex.
StateCodeintOrder state code. See the Order states annex.
OrderLineslist<OrderLineReturn>List of order lines
OrderLines[].InitialQuantityintInitial ordered quantity
OrderLines[].ProductCodestring[30]Product reference
OrderLines[].ShippedBatchesReturnlist<ShippedBatchReturn>List of shipped batches
OrderLines[].ShippedBatchesReturn[].Numberstring[50]Batch number
OrderLines[].ShippedBatchesReturn[].QuantityintShipped quantity
Parcelslist<ParcelReturn>List of parcels
Parcels[].CarrierCodestring[7]Carrier code
Parcels[].DepthdecimalDepth
Parcels[].HeightdecimalHeight
Parcels[].PackCodestring[50]Logistics provider carton code
Parcels[].PackNumberstring[50]Internal parcel number
Parcels[].PackTypestring[1]C = Parcel P = Pallet
Parcels[].ShippingDatedatetime<nullable>Shipping date
Parcels[].Statestring[50]Parcel state. See the Order states annex.
Parcels[].StateCodeintParcel state code. See the Order states annex.
Parcels[].TrackingNumberstring[50]Tracking number
Parcels[].TrackingUrlstring[200]Tracking URL
Parcels[].VolumedecimalVolume
Parcels[].WeightdecimalPhysical weight of the parcel in kg: weight reported by the warehouse, otherwise theoretical weight
Parcels[].WidthdecimalWidth
Parcels[].ParcelLineslist<ParcelLineReturn>List of the parcel's products
Parcels[].ParcelLines[].InternalProductCodestring[10]FL internal product code
Parcels[].ParcelLines[].ProductBatchNumberstring[30]Product batch number
Parcels[].ParcelLines[].ProductCodestring[30]Product code
Parcels[].ParcelLines[].QuantityintProduct quantity
Parcels[].ParcelLines[].ShippedSerialNumbersReturnlist<ShippedSerialNumberReturn>List of shipped serial numbers
Parcels[].ParcelLines[].ShippedSerialNumbersReturn[].Numberstring[50]Serial number
ReturnTrackingslist<ReturnTrackingReturn>List of return trackings
ReturnTrackings[].CarrierCodestring[7]Carrier code
ReturnTrackings[].TrackingNumberstring[50]Tracking number
ReturnTrackings[].TrackingUrlstring[200]Tracking URL

StateReturn response

Response of GetStates

FieldTypeDescription
CodeintOrder state code
Labelstring[50]Order state
SortOrderint<nullable>Theoretical order of appearance of the state

StockCheckReturn response

Response of CheckStocks

FieldTypeDescription
IsAvailableboolTrue if all requested quantities are available
MissingLineslist<StockCheckLineReturn>Lines whose requested quantity exceeds the available stock. Empty if everything is available
MissingLines[].AvailableQuantityintAvailable quantity
MissingLines[].Codestring[30]Product code
MissingLines[].MissingQuantityintMissing quantity
MissingLines[].RequestedQuantityintRequested quantity

StockReturn response

Response of GetStocks

FieldTypeDescription
AvailableQuantityintAvailable quantity
BarCodestring[60]Merchant barcode
Codestring[30]Product code
EshopCustom1stringMiscellaneous e-shop information
EshopIdstringInternal e-shop ID
ReservedQuantityintReserved quantity
BatchesStocklist<BatchStockReturn>Batch stock
BatchesStock[].Numberstring[50]Batch number
BatchesStock[].OnHandQuantityintAvailable quantity
The Error object returned on failure is described in the Response envelope section.

Error codes

Returned in the Error.Code object. Main codes by domain:

DomainCodes
AuthenticationE_UNKNOWN_USER_OR_KEY · E_UNKNOWN_MERCHANT
Actions & permissionsE_METHOD_NOT_ALLOWED · E_ACTION_NOT_ALLOWED_IN_CURRENT_STATE · E_ACTION_RESERVED_TO_INTERNAL_ROLE · E_ACTION_NOT_SUPPORTED_BY_WAREHOUSE · E_NOTHING_TO_UPDATE
OrderE_NO_ORDER · E_NO_ORDER_LINE · E_NO_ORDER_NUMBER · E_ORDER_NUMBER_TOO_LONG_50 · E_ALREADY_EXISTING_ORDER · E_PRODUCT_CONTAINERS_PER_UNIT_REQUIRED · E_UNKNOWN_BRAND · E_AMBIGUOUS_ORDER · E_UNABLE_TO_CANCEL_ORDER · E_UNABLE_TO_UNBLOCK_ORDER · E_UNABLE_TO_COMPLETE_ORDER · E_ORDER_NUMBER_TOO_LONG · E_ORDER_NUMBER_PROHIBITED_CHARACTERS · E_NO_COUNTRY_CODE · E_UNKNOWN_COUNTRY_CODE · E_INCOHERENT_CARRIER · E_UNKNOWN_CARRIER · E_BRAND_MISSING · E_NO_PICKUP_POINT_NUMBER · E_UNKNOWN_BILLING_COUNTRY_CODE · E_UNKNOWN_PRODUCT_CODE · E_NO_HS_CODE_OR_ORIGIN_COUNTRY · E_INVALID_VAT · E_NO_LASTNAME_OR_COMPANY · E_NO_ADDRESS · E_NO_ZIPCODE · E_UNKNOWN_ZIPCODE · E_NO_CITY · E_NO_PHONE · E_NO_EMAIL · E_INVALID_EMAIL · E_INVALID_DISCOUNT · E_INVALID_SHIPMENT_PRICE · E_INVALID_SHIPMENT_VAT · E_INVALID_TOTAL_AMOUNT · E_ONLY_VIRTUAL_PRODUCTS · E_ADDRESS1_TOO_LONG · E_ADDRESS2_TOO_LONG · E_ADDRESS3_TOO_LONG · E_BILLING_ADDRESS1_TOO_LONG · E_BILLING_ADDRESS2_TOO_LONG · E_BILLING_ADDRESS3_TOO_LONG · E_BILLING_CITY_TOO_LONG_DPH · E_BILLING_COMPANY_TOO_LONG_DPH · E_BILLING_FIRSTNAME_TOO_LONG_DPH · E_BILLING_LASTNAME_TOO_LONG_DPH · E_CARRIER_COMMENTS_TOO_LONG · E_CITY_PROHIBITED_CHARACTERS · E_CITY_TOO_LONG_DPH · E_COMPANY_TOO_LONG_DPH · E_EORIORVATNUMBER_MISSING · E_FIRSTNAME_PROHIBITED_CHARACTERS · E_FIRSTNAME_TOO_LONG_DPH · E_INCOMPATIBLE_INCOTERM · E_INCORRECT_ADDRESS · E_INCORRECT_MOBILEPHONE · E_INCORRECT_PHONE · E_INVALID_ORDERLINE_AMOUNT · E_INVOICEINFORMATION_ERROR · E_LASTNAME_PROHIBITED_CHARACTERS · E_LASTNAME_TOO_LONG_DPH · E_NO_PALLET_CARRIER · E_NO_PROVINCE_CODE · E_NO_UNITPRICE · E_PICKER_COMMENTS_TOO_LONG · E_PICKUP_POINT_INCOHERENCE · E_PICKUP_POINT_INEXISTANT · E_PICKUP_POINT_UNAVAILABLE · E_SPECIFICATION_CARRIER_ERROR · E_UNKNOWN_PROVINCE_CODE · E_UNKNOWN_SPECIFICATION_CODE · E_ORDER_QUANTITY_NOT_DIVISIBLE
ReturnE_NO_ORDER · E_UNKNOWN_CARRIER · E_ALREADY_EXISTING_PARCEL_RETURN · E_UNKNOWN_PRODUCT_CODE · E_NO_RETURN_LINE_QUANTITY · E_UNKNOWN_BRAND · E_UNKNOWN_PARCEL_RETURN · E_AMBIGUOUS_PARCEL_RETURN · E_INVALID_REFUND_STATE
ProductE_NO_PRODUCT_CODE · E_UNKNOWN_PRODUCT_TYPE_CODE · E_UNKNOWN_ALCOHOL_TYPE_CODE · E_UNKNOWN_CONTAINER_TYPE_CODE · E_UNKNOWN_PRODUCT_CODE · E_ALREADY_EXISTING_BAR_CODE · E_UNKNOWN_TMPPRODUCT · E_BRAND_MISSING · E_UNKNOWN_BRAND · E_STOCKS_TRANSMISSION_DISABLED · E_PRODUCT_CONTAINERS_PER_UNIT_REQUIRED · E_ORDER_QUANTITY_NOT_DIVISIBLE · E_PRODUCT_CODE_TOO_LONG · E_UNKNOWN_HS_CODE · E_UNKNOWN_COUNTRY_CODE · E_ALREADY_EXISTING_BAR_CODE_2 · E_ALREADY_EXISTING_BAR_CODE_3 · E_ALREADY_EXISTING_BAR_CODE_4 · E_ALREADY_EXISTING_BAR_CODE_5 · E_NO_PRODUCT_LABEL · E_CIRCULAR_SUBSTITUTION · E_INCORRECT_BUNDLE_QUANTITY · E_NO_PRODUCT · E_ALCOHOL_NOT_ALLOWED_FOR_MERCHANT · E_PRODUCT_ALCOHOL_FIELDS_REQUIRED · E_ALCOHOL_CONTAINERS_PER_UNIT_OUT_OF_BOUNDS · E_PRODUCT_CODE_PROHIBITED_CHARACTERS_DPH · E_PRODUCT_CODE_TOO_LONG_DPH · E_PRODUCT_CODE_TOO_LONG_FUTURSHIP · E_PRODUCT_CODE_TOO_LONG_GV1_GTM · E_PRODUCT_CONTAINERS_PER_UNIT_OUT_OF_BOUNDS · E_PRODUCT_DANGEROUS_FIELDS_REQUIRED · E_PRODUCT_OVERPACKING_REQUIRED · E_PRODUCT_REPLACEMENT_DELETED · E_UNABLE_TO_MANAGE_BY_BATCH · E_UNABLE_TO_SAVE_PICTURE · E_UNABLE_TO_UNMANAGE_BY_BATCH
ReceiptE_NO_RECEIPT · E_ALREADY_EXISTING_RECEIPT · E_NO_RECEIPT_LINE · E_NO_SCHEDULED_DATE · E_UNKNOWN_PRODUCT_CODE · E_NO_RECEIPT_LINE_QUANTITY · E_NO_SUPPLIER_NAME · E_INVALID_RECEIPTNUMBER · E_RECEIPT_CODE_TOO_LONG · E_UNKNOWN_SUPPLIER
SupplierE_NO_SUPPLIER_NAME · E_INVALID_EMAIL · E_UNKNOWN_COUNTRY_CODE · E_UNKNOWN_SUPPLIER · E_UNKNOWN_PRODUCT_CODE
Bundle manufacturingE_STARTING_TOO_LOW · E_NO_BUNDLE_MANUFACTURING · E_NO_BUNDLE_MANUFACTURING_NUMBER · E_BUNDLE_MANUFACTURING_CODE_TOO_LONG · E_ALREADY_EXISTING_BUNDLE_MANUFACTURING · E_NO_BUNDLE_MANUFACTURING_LINE · E_NO_BUNDLE_MANUFACTURING_LINE_QUANTITY · E_NO_PRODUCT_CODE · E_UNKNOWN_PRODUCT_CODE · E_PRODUCT_IS_NOT_BUNDLE · E_CANNOT_DELETE_BUNDLE_MANUFACTURING
Customer serviceE_SUPPORT_NOT_ACTIVATED · E_INVALID_SUPPORT_REQUEST · E_NO_ORDER · E_UNKNOWN_PRODUCT_CODE · E_UNKNOWN_TMPPRODUCT · E_NO_RECEIPT · E_UNKNOWN_PARCEL_RETURN · E_NO_BUNDLE_MANUFACTURING · E_SUPPORT_UNAVAILABLE · E_UNKNOWN_SUPPORT_REQUEST
GeneralE_UNKNOWN_ERROR
Need integration support? Speak to a Futurlog expert or consult the web services overview.