Search Documentation
Search for a documentation page...
Addons API
REST API endpoints for managing carrier addons (GLS, InPost, FedEx, Furgonetka) and tracking addons (Google Tag Manager, Meta Pixel, TikTok Pixel).
Addons are carrier integrations that extend checkout with features like parcel-shop pickers and shipment tracking. These shipping addons are managed through the API:
- GLS – GLS Poland (ADE-Plus WebAPI). Connectable via API.
- InPost – InPost Paczkomat (ShipX v1). Connectable via API.
- FedEx – FedEx REST APIs (courier labels within Poland). 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 }, InPost returns { fallbackTemplate }. |
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, with config.fallbackTemplate instead of config.labelMode.
Response
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. |
fallbackTemplate | string | No | Store-wide fallback parcel size: small, medium, or large. Used when creating a shipment without an explicit template and product dimensions can't determine one. Environment-independent. |
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 FedEx Addon
Returns the FedEx addon status: which environments are connected and the store-wide settings. The API key, secret key and account number are write-only and never returned.
Response
Connect FedEx Addon
Saves the keys of a project on the FedEx Developer Portal for one environment. The API key and secret key are checked with FedEx (an access token request) before they are stored; the account number is checked on the first label.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
environment | "live" | "test" | Yes | live takes a production project's keys, test a sandbox project's keys |
apiKey | string | Yes | The project's API key |
secretKey | string | Yes | The project's secret key. Write-only. |
accountNumber | string | Yes | FedEx account number the shipments are billed to (digits only) |
defaultPickupAddressId | string | No | Id of the store pickup address shipments are sent from (Pickup Locations). Checked before anything is saved. Environment-independent. |
labelFormat | string | No | Store-wide label format: label_pdf (10×15 cm PDF, default), label_zpl (Zebra) or letter_pdf (top half of a Letter page). Environment-independent. |
trackingEnabled | boolean | No | Update live orders from FedEx's tracking every 30 minutes (off by default). FedEx may charge your FedEx account for tracking. Environment-independent. |
customs | object | No | Defaults for parcels leaving Poland: description (English), hsCode (4–10 digits), origin (2-letter country of manufacture; null = the pickup address's country) and dutiesPayer (recipient, the default, or sender). Replaced whole. Environment-independent. |
Error Responses
| Status | Description |
|---|---|
400 | Invalid request data, an unknown pickup address, or FedEx rejected the keys (details.fieldErrors) |
502 | FedEx could not verify the keys – try again shortly |
FedEx delivery methods need the FedEx service their labels are sent with: create them with addonName: "fedex" and addonData: { "carrier": "fedex", "name": "…", "service": "fedex", "serviceType": "FEDEX_PRIORITY" }. Within Poland FedEx offers FEDEX_PRIORITY, FEDEX_PRIORITY_EXPRESS and FEDEX_FIRST, depending on the account.
To price a FedEx delivery method from FedEx at checkout, add liveRate: { "enabled": true, "markupPercent": 10, "markupFixed": "500" } to its addonData. Carts in PLN then pay what FedEx charges your account for the parcel and the buyer's address (net), plus markupPercent (percent) and markupFixed (net, in grosze, as a string). The method's price stays the fallback when FedEx doesn't answer, and the price for carts in other currencies. With liveRate on, serviceType: "CHEAPEST" uses the cheapest service FedEx offers for the address, and the order keeps the service it was priced with.
Disconnect FedEx 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 |
Tracking Addons
Google Tag Manager, Meta Pixel and TikTok Pixel put tracking on the storefront without touching its code. Published storefronts pick up a change within about ten minutes, with no republish.
| Addon | Path | name in the addon list |
|---|---|---|
| Google Tag Manager | /api/v1/addons/gtm | gtm |
| Meta Pixel | /api/v1/addons/meta-pixel | metaPixel |
| TikTok Pixel | /api/v1/addons/tiktok-pixel | tiktokPixel |
Each path supports GET (status), PUT (connect or update) and DELETE (disconnect, 404 when not connected). Reading needs the settings:read scope, writing settings:write.
Connect Google Tag Manager
| Field | Type | Required | Description |
|---|---|---|---|
tagId | string | Yes | A Tag Manager container id (GTM-XXXXXXX) or a Google tag id (G-XXXXXXXXXX for Google Analytics 4, AW-… for Google Ads) |
serverSideEnabled | boolean | No | Load the tag through the store's own domain. Omit to keep the stored value (off by default). |
Connect Meta Pixel or TikTok Pixel
| Field | Type | Required | Description |
|---|---|---|---|
pixelId | string | Yes | Meta: the numeric Pixel (dataset) ID. TikTok: the Pixel ID from TikTok Events Manager. |
accessToken | string | null | No | Conversions API (Meta) or Events API (TikTok) token. When set, the same events are also sent server-side. Omit to keep the stored token, null to remove it. |
testEventCode | string | null | No | Sends server events to the Test events tab while you check the setup. Omit to keep it, null to remove it. |
The token is write-only. Responses report only whether one is stored:
Error Responses
| Status | Description |
|---|---|
400 | The tag or pixel id is not in the platform's format |
404 | DELETE on an addon that is not connected |
InstaView Account Images
Returns the Instagram images mirrored into YNS for a connected InstaView account, newest first. The handle is matched case-insensitively and a leading @ is ignored.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 48 | Images per page (max 96) |
cursor | string | – | Cursor from the previous response's nextCursor |
Response
Pass nextCursor back as cursor to fetch the next page. A null nextCursor means you've reached the end.
Errors
| Status | Meaning |
|---|---|
404 | No InstaView account matches the handle |