Workspace API

Ustawienia koszyka

Endpointy „Ustawienia koszyka” Zanfia Workspace API — ze schematami i przykładami kodu.

2 min czytaniaOstatnia aktualizacja: 26 lip 2026

Ustawienia strony koszyka na poziomie całego workspace: teksty prawne (regulamin/polityka prywatności, linkiem lub tekstem), klauzula informacyjna, identyfikatory śledzenia (Google Analytics, GTM, Facebook Pixel, TikTok Pixel), promowanie cen netto i miejsce wariantów cen. To JEDYNA wartość domyślna, z której korzysta każda strona koszyka, chyba że pojedyncza oferta ją nadpisze (zobacz Oferty). customConsents nie ma tu jeszcze własnego endpointu — zarządzaj nim z panelu. Wszystkie endpointy wymagają nagłówka Authorization: Bearer — zobacz Uwierzytelnianie.

Pobierz ustawienia koszyka

GET/checkout-settings

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Query Parameters

language?"pl"
Default"pl"

Value in

  • "pl"

Response Body

application/json

application/json

curl -X GET "https://example.com/checkout-settings"
{  "termsUrl": "string",  "privacyPolicyUrl": "string",  "claim": "string",  "googleAnalyticsId": "string",  "facebookPixelId": "string",  "customConsents": [    {      "label": "string",      "url": "string",      "required": true,      "name": "string",      "applyToProducts": [        "string"      ],      "applyToCheckouts": [        "string"      ]    }  ],  "creator": "string",  "embeddedForm": {    "variant": "basic",    "scheme": "auto",    "buttonText": "string",    "emailPlaceholder": "string",    "headerText": "string",    "successMessage": "string",    "descriptionText": "string",    "color": "string",    "background": "string",    "claim": "string",    "privacyPolicyUrl": "string",    "showClaim": true,    "showHeader": true,    "showDescription": true,    "showPrivacyPolicyInfo": true,    "showFirstNameInput": true,    "firstNameRequired": true,    "showPhoneNumberInput": true,    "phoneNumberRequired": true,    "customDomain": "string",    "termsAndPrivacyPolicyConsentRequired": true,    "showTermsUrl": true,    "termsUrl": "string"  },  "checkoutTheme": "indigo",  "termsContent": "string",  "privacyPolicyContent": "string",  "termsSlug": "string",  "privacyPolicySlug": "string",  "promoteNetPrices": true,  "googleAnalyticsGtmId": "string",  "tiktokPixelId": "string",  "cartTheme": {    "enabled": true,    "selectedTheme": "light",    "customColors": {      "light": {        "accent": "string",        "gray": "string",        "background": "string"      },      "dark": {        "accent": "string",        "gray": "string",        "background": "string"      }    },    "customCheckoutColors": {      "light": {        "checkoutLeftBackground": "string",        "checkoutRightBackground": "string",        "checkoutLeftTextColor": "string",        "checkoutLeftPriceColor": "string",        "accent": "string"      },      "dark": {        "checkoutLeftBackground": "string",        "checkoutRightBackground": "string",        "checkoutLeftTextColor": "string",        "checkoutLeftPriceColor": "string",        "accent": "string"      }    },    "theme": "tomato"  },  "priceVariantsPlacement": "belowDescription",  "language": "pl"}
{  "error": "string"}

Aktualizuj ustawienia koszyka

PATCH/checkout-settings

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

PATCH /checkout-settings — partial update of the workspace cart/checkout settings. Every field is optional; an omitted field keeps its stored value (server-side deep merge — sibling fields, including customConsents, are never clobbered by a partial patch). language defaults to 'pl'.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/checkout-settings" \  -H "Content-Type: application/json" \  -d '{}'
{  "termsUrl": "string",  "privacyPolicyUrl": "string",  "claim": "string",  "googleAnalyticsId": "string",  "facebookPixelId": "string",  "customConsents": [    {      "label": "string",      "url": "string",      "required": true,      "name": "string",      "applyToProducts": [        "string"      ],      "applyToCheckouts": [        "string"      ]    }  ],  "creator": "string",  "embeddedForm": {    "variant": "basic",    "scheme": "auto",    "buttonText": "string",    "emailPlaceholder": "string",    "headerText": "string",    "successMessage": "string",    "descriptionText": "string",    "color": "string",    "background": "string",    "claim": "string",    "privacyPolicyUrl": "string",    "showClaim": true,    "showHeader": true,    "showDescription": true,    "showPrivacyPolicyInfo": true,    "showFirstNameInput": true,    "firstNameRequired": true,    "showPhoneNumberInput": true,    "phoneNumberRequired": true,    "customDomain": "string",    "termsAndPrivacyPolicyConsentRequired": true,    "showTermsUrl": true,    "termsUrl": "string"  },  "checkoutTheme": "indigo",  "termsContent": "string",  "privacyPolicyContent": "string",  "termsSlug": "string",  "privacyPolicySlug": "string",  "promoteNetPrices": true,  "googleAnalyticsGtmId": "string",  "tiktokPixelId": "string",  "cartTheme": {    "enabled": true,    "selectedTheme": "light",    "customColors": {      "light": {        "accent": "string",        "gray": "string",        "background": "string"      },      "dark": {        "accent": "string",        "gray": "string",        "background": "string"      }    },    "customCheckoutColors": {      "light": {        "checkoutLeftBackground": "string",        "checkoutRightBackground": "string",        "checkoutLeftTextColor": "string",        "checkoutLeftPriceColor": "string",        "accent": "string"      },      "dark": {        "checkoutLeftBackground": "string",        "checkoutRightBackground": "string",        "checkoutLeftTextColor": "string",        "checkoutLeftPriceColor": "string",        "accent": "string"      }    },    "theme": "tomato"  },  "priceVariantsPlacement": "belowDescription",  "language": "pl"}
{  "error": "string"}

Czy ten artykuł był pomocny?

Powiązane artykuły

Coś się nie zgadza? Napisz do nas na support@zanfia.com.