Schemas
CreateShipmentRequest
Sender address. Omitted → filled from the account default sender.
Recipient address
Packages. Omitted → filled from the account default package.
pickupBranchCode of the pickup branch (parcel point where the sender drops off the shipment), or "1" to use the account default pickup branch. Requires carrierCode.
deliveryBranchCode of the delivery branch (parcel point where the recipient collects the shipment). Requires carrierCode.
autoDeliveryBranchAutomatically pick the nearest delivery point to the recipient address
serviceIdService (tariff) ID. Omitted → cheapest selectable service is chosen automatically.
referenceNumberReference number / variable symbol
currencyCurrency
carrierCodeCarrier code, lowercase: ppl, dpd, gls, gls-sk, ups, fedex, toptrans, wedo, zasilkovna, balikovna, sps, liftago. GLS Slovakia is gls-sk; the API v1 code GLS_SK is not accepted here.
typePickup type
pickupDatePickup date (Y-m-d), must not be in the past
fromTimeEarliest pickup time (H:i)
Shipment-level additional services
Customs declaration (for international shipments)
CreateShipmentResponse
idID of the created draft shipment
sourceShipment source
referenceNumberReference number / variable symbol, echoed back
errorsBusiness validation messages; null when the draft is valid
ratesComputed price offers; null until the async quote job finishes
modifiedLast modification timestamp (Y-m-d H:i:s)
CancelRequest
carrierValid carrier code.
dateRunIntegrationsResponse
integrationsCountNumber of active e-shop integrations that were run
integrationsFailedCountNumber of integrations whose run failed, e.g. because the e-shop was unreachable or refused the connection; details are available in the integration log in the client zone
importedShipmentsCountTotal number of new orders downloaded and saved as draft shipments into the shipment cart
CreateHandoverRequest
shipmentsZaslat tracking numbers of the shipments the courier will pick up together. All shipments must belong to your account, be carried by Zásilkovna and already have a Zásilkovna packet number. Between 1 and 500 items, e.g. ["IZ3F9A2C71B4", "IZ8D01E6F2A9"].
formatOutput format: PDF (default) returns a printable A4 handover sheet, JSON returns the batches as JSON.
HandoverResponse
Handover batches with barcodes. Shipments that were already in a batch keep their original barcode, newly added shipments get a new batch, so the courier may need to scan more than one code.
Shipments Zásilkovna refused to include (already handed over or returns). Empty when everything was accepted.
CreateWebhookRequest
urlHTTPS URL we POST the events to. It must be reachable from the internet: private, local and reserved addresses are refused.
eventEvent to subscribe to. Currently the only event is shipment.status_changed (default).
secretYour own signing secret, 16 to 128 characters. When omitted, we generate a random secret and return it once in the response.
WebhookResponse
idWebhook ID, use it in the detail, update, deliveries and delete endpoints
urlURL the events are sent to
eventSubscribed event
activeWhether events are currently being sent. false either because you paused the webhook or because we disabled it after it kept failing (see disabledAt).
createdAtWhen the webhook was created (ISO 8601)
failureCountConsecutive failed delivery attempts since the last successful delivery. Reset to 0 by a success or by re-enabling the webhook.
lastSuccessAtLast successful delivery (ISO 8601), null when nothing was delivered yet
lastFailureAtLast failed delivery attempt (ISO 8601), null when none failed yet
disabledAtWhen we disabled the webhook automatically because deliveries had been failing for 24 hours (ISO 8601). null while the webhook is active or when you paused it yourself. Cleared when you re-enable the webhook.
secretSigning secret used for the X-Zaslat-Signature header. Returned only once, in the response of the create endpoint; everywhere else it is null. Store it, it cannot be retrieved later.
WebhookEvent
eventEvent type the webhook was registered for
eventIdUnique identifier of this event. Every retry of the same event carries the same eventId, use it to ignore duplicates.
versionPayload schema version. Breaking changes of data increase it.
occurredAtWhen the change happened (ISO 8601 with timezone)
testtrue for events sent by the test endpoint with made-up shipment data, false for real shipment events. Skip test events in your production processing.
Event payload
UpdateWebhookRequest
urlNew HTTPS URL of the webhook. The same rules as on create apply. Omit to keep the current URL.
activefalse pauses the webhook (no events are sent), true resumes it. Omit to keep the current state.
WebhookDeliveryListResponse
Most recent delivery attempts of the webhook, newest first
WebhookTestResponse
eventIdeventId of the test event that was sent, look it up in the deliveries endpoint
deliveredtrue when your endpoint answered with a 2xx status
statusCodeHTTP status your endpoint returned, null when it did not respond (timeout, connection error)
errorWhy the delivery failed, null on success