GlobKurier
  1. Integration via the Globkurier API
GlobKurier
  • Integration via the Globkurier API
    • Introduction (PL)
    • Introduction (EN)
    • Integration Strategy (PL)
    • Integration Strategy (EN)
    • Full Integration (PL)
    • Full Integration (EN)
    • Fast order Integration (PL)
    • Fast order Integration (EN)
    • Pricing Summary before ordering (PL)
    • Pricing Summary before ordering (EN)
    • Shipment search (PL)
    • Shipment search (EN)
    • Crossborder / Points (PL)
    • Crossborder / Points (EN)
    • Labels (PL)
    • Labels (EN)
    • Tracking (PL)
    • Tracking (EN)
    • Get carrier data (PL)
    • Get carrier data (EN)
    • Addon categories (PL)
    • Addon categories (EN)
    • Order with customs (PL)
    • FAQ (PL)
    • FAQ (EN)
    • Endpoints
      • Dictionary
        • Addresses
          • Get list of countries
          • Get states for country
          • Get shipment/receiving points
          • Get Polish addresses
          • Get list of cities
        • Carriers
          • Get available carrier list
          • Get shipment/receiving points
        • Finance
          • Get available currency list
        • Orders
          • Get available order content
        • Agreements
          • Get agreements
      • Authentication
        • Generate token
        • Refresh token
        • Remove token
      • Fast order
        • Simplified order placement (bestprice)
      • Full integration
        • Get products
        • Get addons for product
        • Get discount code information
        • Get available courier arrival times to the sender for the shipment
        • Get payments
        • Get bank account numbers
        • Get order price
        • Get custom required fields
        • Create order
        • Partial order validation
        • Create order for courier pick up
      • Payments
        • Get list of available methods
        • Generate form data for online order payment
        • Prepaid top-up
        • Changing payment method for online order
      • Orders
        • Get order
        • Get list of orders for the protocol
        • Get protocol
        • Get labels
        • Get shipment statuses
      • User
        • Get user data
        • Get user coupon data
        • Register user
        • Edit user
        • Get company information
        • Get user invoice list
        • Get invoice
        • Get compressed list of invoices
        • Get invoice email
        • Get account and payment statistics
        • Get list of payment methods
        • Get selected payment method
        • Create selected payment method
        • Remove selected payment method
        • Get order statistics
        • Get list of customs documents for the order
        • Get list of options for saving user preferences
        • Save user preferences
        • Send SMS with a verification code
      • Users
        • AddressBook
          • Edit sender contact in address book
          • Add sender contact in address book
          • Delete sender contact from address book
          • Edit receiver contact in address book
          • Add receiver contact in address book
          • Delete receiver contact from address book
          • Get senders contacts from address book
          • Get receiver contacts from address book
          • Import sender contacts to address book
          • Import receiver contacts to address book
        • get company for user
        • Update user currency
        • User return carrier list
        • Manage user return carrier list
      • AddressBook
        • Add sender contact to address book
        • Add receiver contact to address book
        • Get senders address book
        • Get receivers address book
        • Edit sender contact into address book
        • Edit receiver contact into address book
        • Delete sender contact from address book
        • Delete receiver contact from address book Copy
      • Order templates
        • Add template
        • Get tempalate list
        • Edit template
        • Delete template
  1. Integration via the Globkurier API

Full Integration (EN)

In order to achieve full integration, search for the best offers, add-ons, and place orders, please follow the steps below:

1. Authentication:#

An account in the globkurier.pl system is required. You can create an account through the portal https://globkurier.pl
Endpoint authentication allows you to retrieve a token that authorizes all endpoint calls in the system.
Use endpoint: Generate token

2. Search for offers:#

With a token, you can run a product search with prices assigned to the logged-in user.
Use endpoint: Get products
Key information must be provided:
Data on dimensions (cm), weight (kg) and number of packages: width,height,length,weight,quantity
ID of the country from which and to which we ship (download the list via: Get list of countries: senderCountryId,receiverCountryId
Optionally, you can enter location postcodes for greater search accuracy: senderPostCode,receiverPostCode
Optionally, you can also specify the shipment type packageType, transport type transportType (constants from Introduction)
Key information - shipping method (courier pickup, parcel locker / branch / point, crossborder): collectionTypes - multiple values (collectionTypes[]=1&collectionTypes[]=2)
Key information - delivery method (courier pickup, parcel locker / branch / point, crossborder): deliveryTypes - multiple values (deliveryTypes[]=1&deliveryTypes[]=2)

3. Product selection#

From the response, we retrieve the ID of the product we want to order. The response contains key information for product selection:
product name for the customer: name
integration name and service code (optional data): carrierName, serviceCode
net shipping amount: netPrice
gross amount with fuel surcharge: grossPrice
currency: currency
is the product for companies only: forCompany
possible add-on categories for the product: addonsCategories (e.g., COD - "CASH_ON_DELIVERY", Insurance - "INSURANCE"...)

4. Downloading add-ons for the selected product#

After selecting the product, you need to download the entire dictionary of add-ons available for the product (endpoint: Get addons for product) passing parameters:
product ID: productId
the same dimensions, dimensions, and number of packages as for the product search (the system will calculate the appropriate surcharge amounts)
the same country IDs and postal codes (the system will adjust and calculate the appropriate surcharge amounts)
optionally, you can add COD and insurance parameters to select the appropriate surcharge and amount to match the COD and insurance values

5. Selection of additions from the answers#

In response, we'll receive a list of all add-ons that meet the parameters.
From the list of responses, select the add-ons you'd like to order.
The response contains key information:
add-on ID: id
name: addonName
description: description
net price: price
gross price: priceGross
currency: currency
category: category
whether an add-on is required for the order: isRequired
whether insurance is required: insuranceRequired
for COD - number of days for return: daysToReturn

7. Payment#

We suggest using prepaid payments (earlier payments on your Globkurier account) - id = 3.
Otherwise, you must integrate payment methods (e.g. online):
downloading a list of payment methods: Get list of payment methods
for online payments you can download the url for the payment form: Generate form data for online order payment. The required data is:
orderHash - hash after placing an order
returnLink - general address to which the user should be redirected from the payment gateway, e.g. "https://test-url.com"
returnSuccessLink - optionally, the address to which the user should be redirected from the payment gateway after successful payment, e.g. "https://test-url.com/success"
returnFailureLink - optionally, the address to which the user should be redirected after an incorrect payment from the payment gateway, e.g. "https://test-url.com/failure"
payment other than prepaid must be made after the order is placed

8. Partial and full data validation#

At each stage of collecting data for placing an order, you can verify the accuracy of the data (e.g. after collecting address data).
This saves the customer time when trying to place an order and correcting data.
Endpoint: Partial order validation

9. Summarized amounts#

You can download a summary of the amounts for all collected data (Pricing Summary before ordering (EN))

10. Placing an order#

Once all data has been validated and the user has confirmed all the summaries, an order can be created in the system.
Endpoint Create order:
Key elements sent in the body:
in the shipment section: dimensions, overall dimensions, number of packages as when searching for products, productId - the exact ID selected by the user.
in the senderAddress section:
countryId - country id as in product search
pointId - code of the point / PUDO / terminal where the shipment will be sent (if applicable for the selected product) - optional.
in the receiverAddress section:
countryId - country id as in product search
pointId - code of the point / PUDO / terminal where the shipment will be collected (if applicable for the selected product) - mandatory.
in the general section:
content - contents of the shipment
paymentId - payment method (for prepaid: id=3 or id=9) the shipment will be paid immediately and a waybill will be generated, for id=2 - online - payment integration must be completed - point 7)
agreements - consents are required to process the order. Currently required consents can be retrieved via the endpoint.: Get agreements for the filters parameter[module] = order e.g.
"receiveElectronicBills": true,
"processingPersonalData": true
},
in the addons section exactly the same additional services as in the quote. The IDs of additional services are crucial.
{
"id": 1578,
"value": 1000
},
{
"id": 632,
"value": 500,
"bankAccountNumber": "PL00000000000000000000000",
"name": "Name",
"addressLine1": "Address line 1",
"swiftCode": "CCFRFRPP"
}
purpose - purpose of shipment (e.g. GIFT, SOLD, ...)
collectionType, deliveryType - type of sending and receiving
referenceNumber - customer system order number

11. Response after placing an order#

After generating the order, the response will contain information about the order number and the order hash. These numbers are used for further processing.

12. Get the label Labels (EN)#

13. Tracking statuses Tracking (EN)#

Modified at 2025-07-21 07:42:30
Previous
Full Integration (PL)
Next
Fast order Integration (PL)
Built with