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

Fast order Integration (PL)

1. Opis#

Najszybszą metodą wybrania najkorzystniejszej oferty i złożenia zamówienia jest endpoint Simplified order placement - new.
Jest to połączenie kilku punktów z Full Integration (PL) w jeden. Zamiast odpytywać o wszystkie produkty, dodatki i dopiero składać zamówienie, to system sam znjadzie najlepszą (najtańszą) ofertę i weźmie ją do realizacji.
Struktura endpoint jest zbliżona do endpoint'ów Get products, Get order price i Create order.

2. Struktura#

Można wykorzystać opis strategii Full Integration (PL) do zbudowania zapytania, a kluczowe różnice to:
w sekcji shipment:
nie ma productId (nie wskazujemy konkretnego produktu)
pojawia się integrationName - kod przewoźnika, którym chcemy wysłać przesyłkę. Kody można pobrać z endpoint opisanego tutaj: Get carrier data (PL) np. DPD, DHL
w sekcji addons podajemy kategorie usług dodatkowych (dodatków), które nas interesują do zamówienia wraz z przesyłką (lista: Addon categories (PL))
np. "addons": {
"INSURANCE": {
"value": 100
}}

3. Działanie#

System dla podanych parametrów, będzie starał sie znaleźć najtańszą ofertę spełniającą wszystkie warunki. Jeżeli w sekcji senderAddress podany zostanie pointId, to system będzie szukał oferty, która ma nadanie w punkcie (niekoniecznie z możliwym podjazdem kuriera -> zmiast zatem DPD, to wybrana zostanie opcja DPD Pickup).

4. Sterowanie działaniem#

W adresie URL podając parametry createFully oraz onlyPricing decydujemy o rodzaju działania algorytmu:
ParametrDziałanie
onlyPricing = trueSystem zwróci odpowiedź z wyliczonymi stawkami i z informacją o przypisanych dodatkach (analogicznie jak endpoint Get order price)
createFully = trueSystem utworzy automatycznie zlecenie zarówno w systemie Globkurier jak i przekaże do przewoźnika. Analogicznie jak endpoint Create order

5. Błędy odpowiedzi#

Istnieje kilka możliwych odpowiedzi systemu z powodu błędu:
OdpowiedźWyjaśnienie
"fields": {"addons[RETURN_SHIPMENT][id]": "This value is not available"}Nie znajduje takiego dodatku dla podanych parametrów. Należy skasować wskazany dodatek.
{"fields": {"collectionType": "No product was found for the specified collection type."}}Dla podanego rodzaju nadania nie znaleziono produktu (należy zmienić albo kuriera albo typ nadania)
{"fields": {"shipment[integrationName]": "This offer is not available for given carrier."}}Nie ma żadnej oferty dla wybranego kuriera, typu nadania i typu dostawy

6. Odpowiedź prawidłowa#

Po realizacji
Modified at 2025-07-17 12:03:54
Previous
Full Integration (EN)
Next
Fast order Integration (EN)
Built with