Apaczka integration through the Web API

VulCode, a software house from Cracow, Poland, connects Apaczka, a Polish courier aggregator, to custom-built stores and warehouses through its official API (Web API v2), and every request is signed (HMAC). Checkout prices delivery across several couriers for the real parcel, the customer picks a point, and the warehouse prints labels and the batch handover document from your panel. The Apaczka integration costs from PLN 999 (about EUR 220) and usually takes 2-3 days, and the free quote comes back within an hour.

From pricing to tracking

The order of Web API v2 calls in a typical shipment. Each step is a separate endpoint.

  1. Stage 01

    Service structure

    We check which services, options and point types you have (service_structure).

    Outputa courier list for checkout

  2. Stage 02

    Points

    We fetch the drop-off and pickup points of a given type, and the customer picks one (points/:type).

    Outputa point chosen at checkout

  3. Stage 03

    Pricing

    Checkout prices the shipment for the chosen services (order_valuation).

    Outputa delivery price at checkout

  4. Stage 04

    Order

    We create the shipment with the parcel data and the point (order_send).

    Outputan Apaczka order number

  5. Stage 05

    Label

    We fetch the label for printing (waybill).

    Outputa parcel label

  6. Stage 06

    Courier pickup

    We check the hours when the courier can collect the parcels (pickup_hours).

    Outputa pickup time

  7. Stage 07

    Handover

    At the end of the day you get a batch handover confirmation as a PDF (turn_in).

    Outputa handover document

  8. Stage 08

    Tracking

    Shipment statuses go onto the order (tracking).

    Outputa status on the order

The Web API v2 endpoints we use

Selected endpoints for a store shipping through Apaczka.

EndpointWhat for
service_structure/Services, options, package and point types, and whether a courier pickup is needed.
points/:typeDispatch and pickup points of a given type.
order_valuation/Pricing a shipment before ordering it.
order_send/Ordering a shipment.
waybill/:order_id/The waybill for printing.
turn_in/A batch handover confirmation as PDF.
pickup_hours/Hours a courier can pick up parcels.
tracking/:waybill_number/Shipment statuses.
cancel_order/:order_id/Cancelling a shipment.

What flows between the store and Apaczka

The store sends shipment data; Apaczka returns prices, documents and statuses.

Your storeApaczka

Delivery prices

pricing at checkout

Pickup points

the customer choosing a point

Shipment order

packing an order

Labels and handover document

printing while packing, end of day

Shipment statuses

periodic tracking checks

A plugin or an API integration

On popular platforms a ready connection usually does. We write code for custom stores and systems.

Configure the platform integration. No code needed.

A Web API v2 module in your code, with signatures and error handling.

  1. 01 A ready platform connection
  2. 02 An integration through the Web API

When

  1. The store runs on WooCommerce, Shoper (a Polish store platform) or Shopify.
  2. You handle shipping in the Apaczka panel.
  1. The store or warehouse is custom-built.
  2. Delivery prices should be calculated live at checkout.
  3. Labels and documents should live in your panel.

A ready platform connection

When

  • The store runs on WooCommerce, Shoper (a Polish store platform) or Shopify.
  • You handle shipping in the Apaczka panel.

Configure the platform integration. No code needed.

An integration through the Web API

When

  • The store or warehouse is custom-built.
  • Delivery prices should be calculated live at checkout.
  • Labels and documents should live in your panel.

A Web API v2 module in your code, with signatures and error handling.

05

What we watch out for with Apaczka

The most common reasons requests get rejected.

  1. 01

    Signature

    The same data string in signature and body

    Re-serialising the JSON after signing changes characters and breaks the signature.

  2. 02

    The server clock

    Expiry is counted from server time. A network-synced clock avoids puzzling errors.

  3. 03

    Services from service_structure

    Service and option ids come from that endpoint, never hard-coded.

  4. 04

    Whether a courier pickup is needed

    The service structure says whether a courier pickup is possible or required. The dispatch screen depends on it.

How we will do it: a store with live delivery pricing

The rollout, step by step.

Store
Custom-built, varied parcel sizes
Problem
One flat delivery rate that loses money on large parcels
Shipping
Several couriers through Apaczka
  1. 1

    Dimensions in the catalogue

    Products get weight and dimensions the checkout builds the parcel from.

  2. 2

    Pricing at checkout

    Checkout asks for pricing for the available services and shows real prices.

  3. 3

    Dispatch from the panel

    The warehouse orders the shipment, prints the label and, at day's end, the handover document.

  4. 4

    Statuses for the customer

    Tracking reaches the order and the client panel.

The delivery price matches the parcel, and the warehouse no longer retypes addresses into another panel.

Common questions about Apaczka

Click a question to see the answer.

How much does the Apaczka integration cost?
The Apaczka integration costs from PLN 999 (about EUR 220). The figure grows with the number of systems, data directions and exceptions to handle. A typical integration takes 2-3 days, and the free quote comes back within an hour. We quote it under our API and integrations service.
How long does it take?
Usually 2-3 days. The exact dated schedule comes with the free quote, and if anything is going to move, you know in advance.
Will the customer see the delivery price before buying?
Yes, if checkout uses API pricing. The price then reflects the real parcel rather than one flat rate.
Can I print labels in bulk?
Yes. We fetch labels per shipment and a batch handover document at the end of the day.
Apaczka or Furgonetka: which one to choose?
It depends on your rates and carriers. Apaczka and Furgonetka are Polish courier aggregators: one contract and many carriers. We integrate both, and the amount of work is comparable. A comparison of carriers and aggregators is on the Couriers page.
Will the Apaczka integration code be mine?
Yes. Once the work is accepted and paid in full, the economic copyright in the code passes to you. You have access to the repository from the first day, and after acceptance you get it with run instructions. Open source libraries keep their own licences.
How do you check the Apaczka integration before launch?
On the provider's test environment or on a copy of your system. We run real scenarios, including errors, cancellations and returns, and only then switch the integration on in production.
What if the Apaczka integration stops working?
The integration retries failed operations by itself and logs every one, and when the problem does not go away you get a notification. We fix bugs that come from our work under warranty, and you get 90 days of support included after launch.
What if Apaczka changes its API?
Apaczka announces changes in advance. We follow those notices and adapt the integration under a maintenance plan or as a separate short order, before the old version stops working.

Sources

Technical details come from the Apaczka Web API documentation.

Describe your project.

A free quote comes back within an hour during working hours.