Search Documentation
Search for a documentation page...
Addons API
REST API endpoints for managing carrier addons (GLS, InPost, Furgonetka).
Addons are carrier integrations that extend checkout with features like parcel-shop pickers and shipment tracking. YNS supports three shipping addons:
- GLS — GLS Poland (ADE-Plus WebAPI). Connectable via API.
- InPost — InPost Paczkomat (ShipX v1). Connectable via API.
- Furgonetka — Multi-carrier broker. Connects via OAuth in the admin panel only; the API can read status and disconnect it.
Once connected, link a carrier to a shipping method by passing addonName when creating or updating a Shipping Method.
List Addons
Returns all connected addons plus any API-managed shipping addons that are not yet connected (so you can discover what to enable).
Query Parameters
| Parameter | Type | Description |
|---|---|---|
type | string | Filter by addon category: shipping, analytics, products, invoicing, or orders |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
name | string | Addon identifier (gls, inpost, furgonetka) |
type | string | Addon category (currently always shipping) |
connected | boolean | Whether the addon has been configured for this store |
manageable | boolean | Whether the API can connect/disconnect this addon (false for Furgonetka — OAuth only) |
environments | object | null | Per-environment status (live/test), each with configured: boolean |
config | object | null | Addon-specific configuration (GLS returns labelMode) |
Get GLS Addon
Returns the GLS addon status for the authenticated store.
Response
Connect GLS Addon
Saves GLS ADE WebAPI credentials for the specified environment. Credentials are verified against the GLS API before being stored.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
environment | "live" | "test" | Yes | Which store environment these credentials are for |
login | string | Yes | GLS ADE WebAPI login (a dedicated API login, not the ADE panel login) |
password | string | Yes | GLS ADE WebAPI password. Write-only — never returned by the API. |
trackApiUser | string | No | Track & Trace API user (a separate GLS-issued pair). Omit to disable status polling. |
trackApiPassword | string | No | Track & Trace API password |
labelMode | string | No | Store-wide label format. See Label Modes. |
GLS Label Modes
| Value | Description |
|---|---|
one_label_on_a4_pdf | Single label on an A4 PDF |
four_labels_on_a4_pdf | Four labels on an A4 PDF |
four_labels_on_a4_right_pdf | Four labels on the right side of an A4 PDF |
roll_160x100_pdf | 160x100mm roll label (PDF) |
roll_160x100_zebra | 160x100mm roll label (Zebra ZPL) |
roll_160x100_zebra_epl | 160x100mm roll label (Zebra EPL) |
roll_160x100_datamax | 160x100mm roll label (Datamax DPL) |
Response (200)
Returns the updated addon status (same shape as Get GLS Addon).
Error Responses
| Status | Description |
|---|---|
400 | Invalid request data or GLS rejected the credentials |
502 | GLS ADE could not verify the credentials — try again shortly |
Disconnect GLS Addon
Disconnects GLS entirely, or clears credentials for a single environment.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
environment | "live" | "test" | Clear only this environment's credentials (keeps the addon connected). Omit to disconnect entirely. |
Response (200)
Error Responses
| Status | Description |
|---|---|
404 | GLS is not connected to this store |
409 | Cannot disconnect because shipping methods still use it. Delete or unlink those shipping methods first. |
Get InPost Addon
Returns the InPost addon status for the authenticated store. Same response shape as GLS (without config.labelMode).
Connect InPost Addon
Saves InPost ShipX credentials for the specified environment. Credentials are verified against the ShipX API before being stored.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
environment | "live" | "test" | Yes | Which store environment these credentials are for |
token | string | Yes | ShipX API token from the InPost Parcel Manager API tab. Write-only. |
orgId | string | Yes | InPost organization ID from the Parcel Manager |
geowidgetToken | string | No | Geowidget token for the checkout map tab. Omitting or blanking this clears a stored token — resend it on every update. |
Response (200)
Returns the updated addon status.
Error Responses
| Status | Description |
|---|---|
400 | Invalid request data or InPost rejected the credentials |
502 | ShipX could not verify the credentials — try again shortly |
Disconnect InPost Addon
Same behavior as Disconnect GLS Addon — supports the environment query parameter.
Get Furgonetka Addon
Returns the Furgonetka addon status. Furgonetka connects via OAuth in the admin panel, so the API can only read its status.
Connect Furgonetka Addon
Returns 400 — Furgonetka connects via OAuth and cannot be enabled with an API key. Connect it in the admin: Add-ons > Furgonetka. Once connected, you can list its status, link shipping methods to it, and disconnect it via the API.
Disconnect Furgonetka Addon
Disconnects the Furgonetka OAuth integration from the store.
Response (200)
Error Responses
| Status | Description |
|---|---|
404 | Furgonetka is not connected to this store |
409 | Cannot disconnect because shipping methods still use it |