fulfillmenttools
  • Welcome to the fulfillmenttools Platform Documentation
  • Getting Started
    • Setup your access to fulfillmenttools
    • Make your first API Calls
      • Add your first facility
      • Add your first listing
      • Place your first order
    • Core concepts & terminology
      • Order Flow
    • Postman Collection
    • Client SDKs
    • FAQ
  • Clients
    • Backoffice
      • First steps - Registration
      • Network view
        • Home
        • Orders
          • Unroutable orders
          • Pre-orders & Backorders
          • Order History
        • Inventory Management
          • Stock Overview
          • Channel Inventory
        • Facilities
        • Users
        • Returns
        • DOMS configuration
        • Settings
        • Analytics
          • DOMS Pages
          • Fulfillment Operations Pages
          • Inventory Pages
          • Downloads Page
      • Facility view
        • Home
        • Inbound
        • Tasks
        • Listings
        • Storage Locations
        • Facility
        • Users
    • Inventory app
      • Registration Inventory App
      • App sections
        • Inbound
        • Storage and relocation
    • Operations app
      • Android
        • Manual Registration
        • Android Enterprise Registration
        • Sections
          • Picking
            • Load Units (legacy)
            • Substitute items
            • Weighed or measured products
            • Scanning configuration
            • Picking Methods
              • Batch Picking
              • Multi Order Picking
          • Packing
          • Handover
          • Returns (legacy)
        • Printing
        • Notifications
      • Webapp
        • Packing
      • Overview features Android & Webapp
    • Technical requirements
      • Zebra Hardware Scanner Configuration
      • Honeywell Hardware Scanner Configuration
      • Supported barcodes for camera scanning
      • Requirements for fft applications
      • Zebra printer
    • Returns app
      • Handle unannounced returns
      • Handle announced returns
  • Products
    • Core Functionality
      • Process
        • External actions
      • Add and manage facilities
      • Notification Center
      • Checking on features
      • Tags and Stickers Concept
      • GDPR
      • Remote Configuration
      • Expiry
      • Target time
      • Time calculation for queries of future availabilities (LPS-calculation)
      • Interfacility Transfer
    • Carrier Management
      • Overview
        • Available Carriers
      • Concepts
        • Carrier Country Service Mapping (CCSM)
        • Non-delivery-days
        • Custom Carrier & Headless operation of Carriers
      • Providing needed data
    • Fulfillment Options
      • Fulfillability Check
      • Checkout Options
        • Available fulfillment options based on basket
        • Earliest possible delivery date
        • Available delivery dates within time-period
        • Availability for delivery date
      • Delivery Promise
    • Inventory Management
      • Configurations
      • Entities
        • Listing
        • Stock
          • Stock Properties
        • Storage Location
        • Zone
      • Global Inventory
        • Stock availability
        • Channel Inventory
        • Expected stock
        • Inbound Process
        • Reservations
        • Safety Stock
      • Inventory Control
        • Inventory Traits
        • Measurement Units
        • Outbound Inventory Tracking
        • Storage Location Recommendations
    • Order Fulfillment
      • Headless Order Fulfillment
      • Pick Jobs
      • Zone picking
      • Load Units
      • Custom Service
      • Handover Jobs
      • Add External Documents
      • Configurations
        • Picking Configuration
          • Picking methods
          • Short Pick Reasons
        • Packing Configuration
          • Packing Container Types
        • Print / Document Configuration
        • Tag Configurations
          • Parcel Tag Configuration
        • Handover Configuration
        • Operative Container Types
    • Order Routing
      • Entities
        • Ship-from-Store Orders
        • Click-and-Collect Orders
        • Locked Orders
        • Custom Services Orders
          • Simple Custom Service Order
          • Complex Custom Service Order
      • Fences
      • Ratings
      • Order Split
        • Order split - initial routing
        • Order split after shortpick
        • Item bundles
      • Reroute
      • Shape the routing with the DOMS Toolkit
      • Decision logs
    • Returns Management
      • Returns legacy
        • Available status
      • Returns 2.0
        • Return Reasons
        • Item Conditions
        • Integrating Returns with Events
    • Use Cases
      • Demand-Driven Replenishment
      • Expected stock in availability
      • Multi Order Picking
      • Interfacility transfer
      • Assigned Users
  • Connecting to fulfillmenttools
    • General Topics
      • Use external identity providers to authenticate to fulfillmenttools
        • Microsoft Entra ID / Azure Active Directory (AD)
      • Public Event Export
      • Available Regions
      • Backup Policies
    • GraphQL API
    • RESTful API
      • General Topics
        • API Release Life Cycle
        • Versioning
        • Authorization
        • Customization via Attributes
        • Update Guarantees
        • Rate Limits
        • Resource Timestamps
        • Pagination Interface
        • Localization
        • Custom Attributes
      • OpenAPI Specification
        • Swagger UI
        • OpenAPI 3.0 Spec
    • Eventing
      • Structure of an Event
      • Available Events
      • Tutorial
    • commercetools Connect
    • Integration Tutorial
      • Adding facilities
      • Adding listings to facilities
      • Configuring stocks
      • Carrier configuration
      • Placing orders
      • Checkout Options
      • Distributed Order Management System (Routing)
      • Local fulfillment configuration
  • Incident Reporting
    • How to report incidents in fulfillmenttools
    • How to define incident priorities
  • Release Notes
    • Release Summary – May 2024
    • Release Summary – June 2024
    • Release Summary – July 2024
    • Release Summary – August 2024
    • Release Summary – September 2024
    • Release Summary – October 2024
Powered by GitBook
On this page
  • What is a carrier?
  • Adding the first carrier
  • Connect a facility to a CEP partner

Was this helpful?

  1. Connecting to fulfillmenttools
  2. Integration Tutorial

Carrier configuration

For handling ship from store orders, a carrier comes in handy. In this part of our tutorial, we'll learn how to add and configure them.

PreviousConfiguring stocksNextPlacing orders

Last updated 5 months ago

Was this helpful?

This page is outdated. Please go to our new documentation under .

What is a carrier?

Inside the fulfillmenttools platform, a carrier is the entity enabling you to connect Courier, Express and Parcel services (in short CEP services). you can find a list containing the CEP service providers the platform has integrated. If your favorite provider is not yet listed, talk to your sales or professional services representative to find a solution to get it listed.

Adding the first carrier

LU.XY uses two carriers for fulfilling orders. For orders inside of Germany, the CEP service provider DHL is used. For other orders, they use UPS. Let's add DHL as a first carrier to the tenant. To make it simple, we'll assume that usually the parcels have a weight of 2 kilograms.

With an API call to the , a new CEP partner can be added:

curl --location 'https://your.api.fulfillmenttools.com/api/carriers' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN>' \
--data '{
  "key": "DHL_V2",
  "name": "LU.XY services DHL account",
  "status": "ACTIVE",
  "defaultParcelWeightInGram": 2000,
  "credentials": {
    "key": "DHL_V2",
    "apiKey": "myApiKey",
    "fallback": {
      "key": "DHL_V2",
      "billingNumber": "123456",
      "retoureBillingNumber": "optional123345",
      "dhlBusinessPassword": "mycoolandsecretpw",
      "dhlBusinessUsername": "mycreativeusername"
    }
  }
}'

The key property defines which carrier to add, see this list to check which key to use for which carrier. The name can be defined freely. The status can either be ACTIVE or INACTIVE. When creating the CEP partner as an ACTIVE one, it can immediately be used after creation. When setting the defaultParcelWeightInGram to 2000, labels are created with that weight. The credentials are received by the CEP partner.

When everything was correct in your request, you'll receive a 201 CREATED response. In this response you'll find the ID of that carrier.

After successful creating DHL, let's create UPS as a carrier. Here, the same API endpoint is used, only the payload differs a bit:

curl --location 'https://your.api.fulfillmenttools.com/api/carriers' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN>' \
--data '{
    "key": "UPS",
    "name": "LU.XY UPS account",
    "status": "ACTIVE",
    "credentials": {
                "key": "UPS",
                "user": "VCE_worldwide_username",
                "password": "VCE_password"
    }
}'

You might have noticed that this looks similar to the DHL creation, but that the username and password have a prefix called "VCE". This is our technology partner enabling us to faster provide some of the CEP service providers. The credentials for this technology partner will be provided by your professional services representative.

Connect a facility to a CEP partner

After we created the carriers in the fulfillmenttools platform, we need to create a connection between the facility and the carrier. This might have several reasons, for example some contract topics or the issue that some CEP is not supported in a country. Therefore you first need to create a connection between a carrier and a facility.

curl --location 'https://your.api.fulfillmenttools.com/api/facilities/<YOUR-FACILITY-ID>/carriers/<YOUR-CARRIER-ID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN>' \
--data '{ }'

For the connection we need the ID of the carrier which we created above and the facility ID from the creation of the facility. When the connection was made successfully, the response should be 200 OK with a payload like this:

{
    "version": 1,
    "name": "UPS",
    "status": "INACTIVE",
    "cutoffTime": {
        "hour": 12,
        "minute": 0
    },
    "carrierRef": "77214fbf-415c-407b-a682-0fa901ed7848",
    "key": "UPS",
    "deliveryType": "DELIVERY",
    "deliveryAreas": [],
    "facilityRef": "946f17d0-2d14-48f0-a912-d358f2c70e8f",
    "id": "946f17d0-2d14-48f0-a912-d358f2c70e8f_77214fbf-415c-407b-a682-0fa901ed7848",
    "created": "2024-01-24T09:19:44.048Z",
    "lastModified": "2024-01-24T09:19:44.048Z"
}

Now we just need to activate that connection, the endpoint stays the same, only the verb changes from POST to PUT:

curl --location --request PUT 'https://your.api.fulfillmenttools.com/api/facilities/<YOUR-FACILITY-ID>/carriers/<YOUR-CARRIER-ID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN>' \
--data '{
    "version": 1,
    "status": "ACTIVE",
    "name": "UPS"
}
'

You might have noticed, that w used version 1 for the call here. It is crucial to use the same version the carrier has in the payload you received. Again, the response ist a 200 OK like that:

{
    "version": 3,
    "name": "UPS",
    "status": "ACTIVE",
    "cutoffTime": {
        "hour": 12,
        "minute": 0
    },
    "carrierRef": "77214fbf-415c-407b-a682-0fa901ed7848",
    "key": "UPS",
    "deliveryType": "DELIVERY",
    "deliveryAreas": [],
    "facilityRef": "946f17d0-2d14-48f0-a912-d358f2c70e8f",
    "id": "946f17d0-2d14-48f0-a912-d358f2c70e8f_77214fbf-415c-407b-a682-0fa901ed7848",
    "configuration": null,
    "parcelLabelClassifications": null,
    "tags": null,
    "created": "2024-01-24T09:19:44.048Z",
    "lastModified": "2024-01-24T13:47:48.324Z"
}

Now that we have made the first connection between a carrier and a facility, we need to do that with the other ones as well.

This is done by an easy API call to the . In our case, an empty JSON for the payload is good here:

https://docs.fulfillmenttools.com/documentation
Here
carrier endpoint
endpoint for facility carrier connections