# Firmly API - [Firmly API](https://firmly.mintlify.app/introduction.md): Enable commerce at the point of inspiration - [How Firmly Works](https://firmly.mintlify.app/concepts/how-firmly-works.md): Understand the core architecture and flow of the Firmly Cart API - [Cart Lifecycle](https://firmly.mintlify.app/concepts/cart-lifecycle.md): Understanding cart states and transitions in the Firmly API - [Multi-Shipment Structure](https://firmly.mintlify.app/concepts/multi-shipment.md): Understanding shipments in the Full Cart API - [1-Step Checkout](https://firmly.mintlify.app/guides/one-step-checkout.md): Implement frictionless checkout in minutes with Firmly's place-order API - [Choosing Your API](https://firmly.mintlify.app/guides/choosing-your-api.md): Simple Cart API vs Full Cart API - Making the right choice - [Simple Cart API Implementation](https://firmly.mintlify.app/guides/simple-cart-api-guide.md): Complete guide for standard e-commerce checkout - [Full Cart API Implementation](https://firmly.mintlify.app/guides/full-cart-api-guide.md): The complete checkout flow for complex fulfillment scenarios. - [Ask Agent SDK](https://firmly.mintlify.app/ask-agent/overview.md): Build your own UI on top of Firmly's embeddable AI shopping assistant - [Quickstart](https://firmly.mintlify.app/ask-agent/quickstart.md): Wire up @firmly/ask-agent-sdk and render your first Ask Agent turn - [SDK Reference](https://firmly.mintlify.app/ask-agent/reference.md): Every export from @firmly/ask-agent-sdk, plus the GET /api/embed/capabilities endpoint - [API Reference](https://firmly.mintlify.app/api-reference/overview.md): Complete reference documentation for Firmly APIs - [Browser Session](https://firmly.mintlify.app/api-reference/authentication/browser-session.md): Generates an access token for Cart API authentication - [Server-to-Server Authentication](https://firmly.mintlify.app/api-reference/authentication/server-to-server.md): Authenticate backend services to make API requests on behalf of devices - [Discovery API Overview](https://firmly.mintlify.app/api-reference/discovery/overview.md): Find and discover products across merchant catalogs - [Search Products](https://firmly.mintlify.app/api-reference/discovery/search.md): Search for products across merchant catalogs using keyword-based queries with optional filters - [Catalog API Overview](https://firmly.mintlify.app/api-reference/catalog/overview.md): Browse and retrieve product information from merchant stores - [Get a Product](https://firmly.mintlify.app/api-reference/catalog/get-product.md): Retrieves detailed information about a specific product - [Get All Products](https://firmly.mintlify.app/api-reference/catalog/get-all-products.md): Returns all products from a merchant's catalog - [Get Product from URL](https://firmly.mintlify.app/api-reference/catalog/get-product-from-url.md): Extracts product information from a merchant's product page URL - [Get Cart](https://firmly.mintlify.app/api-reference/simple-cart-api/cart/get-cart.md): Retrieves the current shopping cart - [Add Item to Cart](https://firmly.mintlify.app/api-reference/simple-cart-api/cart/add-item.md): Adds a product to the shopping cart - [Update Item Quantity](https://firmly.mintlify.app/api-reference/simple-cart-api/cart/update-item.md): Updates the quantity of an item in the cart - [Clear Cart](https://firmly.mintlify.app/api-reference/simple-cart-api/cart/clear-cart.md): Removes all items from the shopping cart - [Set Shipping Info](https://firmly.mintlify.app/api-reference/simple-cart-api/checkout/set-shipping-info.md): Sets the shipping address and gets available shipping methods - [Set Shipping Method](https://firmly.mintlify.app/api-reference/simple-cart-api/checkout/set-shipping-method.md): Sets the shipping method for the order - [Overview](https://firmly.mintlify.app/api-reference/cart-management/overview.md): Endpoints for managing shopping carts - [Get Cart](https://firmly.mintlify.app/api-reference/cart-management/get-cart.md): Retrieves the current state of a shopping cart with all line items, shipments, pricing, and addon information - [Add Line Item](https://firmly.mintlify.app/api-reference/cart-management/add-line-item.md): Adds a product variant to the cart with automatic shipment grouping based on fulfillment requirements - [Update Line Item](https://firmly.mintlify.app/api-reference/cart-management/update-line-item.md): Updates the quantity of an existing line item in the shopping cart - [Clear Cart](https://firmly.mintlify.app/api-reference/cart-management/clear-cart.md): Removes all line items from the cart, returning an empty cart - [Overview](https://firmly.mintlify.app/api-reference/checkout/overview.md): Complete the checkout process - [Set Shipping Info](https://firmly.mintlify.app/api-reference/checkout/set-shipping-info.md): Sets customer shipping information and calculate shipping costs - [Set Billing Info](https://firmly.mintlify.app/api-reference/checkout/set-billing-info.md): Sets customer billing information for payment processing - [Get Consents](https://firmly.mintlify.app/api-reference/checkout/get-consents.md): Retrieves consent settings for the current cart session - [Set Consents](https://firmly.mintlify.app/api-reference/checkout/set-consents.md): Updates consent preferences for the current cart session - [Overview](https://firmly.mintlify.app/api-reference/shipment-configuration/overview.md): Configure shipment fulfillment and delivery options - [Set Fulfillment Type](https://firmly.mintlify.app/api-reference/shipment-configuration/set-fulfillment-type.md): Changes the fulfillment method for a specific shipment to one of the available options - [Set Shipping Method](https://firmly.mintlify.app/api-reference/shipment-configuration/set-shipping-method.md): Selects a shipping method for a specific shipment and recalculates cart totals - [Get Availability](https://firmly.mintlify.app/api-reference/shipment-configuration/get-availability.md): Retrieves available delivery dates and time slots for scheduled delivery shipments - [Overview](https://firmly.mintlify.app/api-reference/promotions/overview.md): Apply and manage promotional codes - [Add Promo Codes](https://firmly.mintlify.app/api-reference/promotions/add-promo-codes.md): Applies promotional codes to the cart for discounts - [Clear Promo Codes](https://firmly.mintlify.app/api-reference/promotions/clear-promo-codes.md): Removes all promotional codes from the cart - [Overview](https://firmly.mintlify.app/api-reference/addon-management/overview.md): Flexible addon system for value-added services - [Add Addon](https://firmly.mintlify.app/api-reference/addon-management/add-addon.md): Applies addon services to your cart - [Remove Addon](https://firmly.mintlify.app/api-reference/addon-management/remove-addon.md): Removes addon services from your cart by addon identifier - [Get Public Key](https://firmly.mintlify.app/api-reference/payment/get-public-key.md): Retrieves the public key for encrypting credit card information - [Complete Order](https://firmly.mintlify.app/api-reference/payment/complete-order-v1.md): Completes checkout and places an order with encrypted payment information - [Place Order](https://firmly.mintlify.app/api-reference/payment/place-order-v1.md): Creates a cart and places an order in a single operation - [Complete Order](https://firmly.mintlify.app/api-reference/payment/complete-order-v2.md): Completes checkout for Full Cart API with advanced features - [Place Order](https://firmly.mintlify.app/api-reference/payment/place-order-v2.md): Creates a cart and place an order with Full Cart API features - [Express Checkout](https://firmly.mintlify.app/api-reference/payment/express-checkout/overview.md): Place an order with Klarna, PayPal, Google Pay or Apple Pay - [Start Klarna Checkout](https://firmly.mintlify.app/api-reference/payment/express-checkout/start-klarna.md): Creates a Klarna payment session and returns client credentials for the Klarna widget - [Authorize Klarna Checkout](https://firmly.mintlify.app/api-reference/payment/express-checkout/authorize-klarna.md): Confirms the Klarna authorization token after customer approval in the Klarna widget - [Complete Klarna Order](https://firmly.mintlify.app/api-reference/payment/express-checkout/complete-order-klarna.md): Finalizes the order using the Klarna authorization token - [Start PayPal Checkout](https://firmly.mintlify.app/api-reference/payment/express-checkout/start-paypal.md): Creates a PayPal Express Checkout order and returns the PayPal token and approval URL - [Authorize PayPal Checkout](https://firmly.mintlify.app/api-reference/payment/express-checkout/authorize-paypal.md): Confirms the PayPal payment after buyer approval and stores the PayPal credentials for Complete Order - [Complete PayPal Order](https://firmly.mintlify.app/api-reference/payment/express-checkout/complete-order-paypal.md): Finalizes the order using the PayPal token and payer id - [Integrate Google Pay](https://firmly.mintlify.app/api-reference/payment/express-checkout/google-pay-integration.md): Integrate Google Pay with Google's SDK and route the order through Firmly - [Complete Google Pay Order](https://firmly.mintlify.app/api-reference/payment/express-checkout/complete-order-google-pay.md): Places the order using the token minted by the Google Pay sheet - [Validate Apple Pay Merchant](https://firmly.mintlify.app/api-reference/payment/express-checkout/validate-merchant-apple-pay.md): Performs Apple Pay merchant validation and returns the merchant session - [Complete Apple Pay Order](https://firmly.mintlify.app/api-reference/payment/express-checkout/complete-order-apple-pay.md): Places the order using the Apple Pay payment token - [Get Order Status](https://firmly.mintlify.app/api-reference/orders/get-order-status.md): Retrieves real-time order status including tracking, fulfillments, returns, and refunds from the merchant platform - [Overview](https://firmly.mintlify.app/api-reference/session/overview.md): Session management endpoints for multi-domain cart tracking and postal code preferences - [Set Postal Code](https://firmly.mintlify.app/api-reference/session/set-postal-code.md): Updates the postal code preference for the current session - [Get Postal Code](https://firmly.mintlify.app/api-reference/session/get-postal-code.md): Retrieves the postal code preference for the current session - [Get Active Domains](https://firmly.mintlify.app/api-reference/session/get-active-domains.md): Retrieves all domains with active cart sessions - [Get Active Carts](https://firmly.mintlify.app/api-reference/session/get-active-carts.md): Retrieves all active cart sessions across multiple merchant domains - [Session Transfer](https://firmly.mintlify.app/api-reference/session/session-transfer.md): Transfers an external merchant session to Firmly's cart system - [Merchant onboarding requirements](https://firmly.mintlify.app/firmly-connect/merchant-onboarding/requirements.md): Information and merchant actions required to onboard a storefront with Firmly. - [Network access and allowlisting](https://firmly.mintlify.app/firmly-connect/merchant-onboarding/network-access.md): Allow Firmly traffic through merchant CDN, WAF, bot-management, and rate-limiting controls. - [Overview](https://firmly.mintlify.app/firmly-connect/sso/overview.md): Authenticate firmly Connect Dashboard users through your own Identity Provider. - [Verify a Domain](https://firmly.mintlify.app/firmly-connect/sso/domain-verification.md): Register and prove ownership of an email domain so it can be bound to an SSO Identity Provider. - [Generic OIDC](https://firmly.mintlify.app/firmly-connect/sso/generic-oidc.md): Configure any OpenID Connect–compliant Identity Provider in firmly Connect. - [Generic SAML 2.0](https://firmly.mintlify.app/firmly-connect/sso/generic-saml.md): Configure any SAML 2.0–compliant Identity Provider in firmly Connect. - [Error Codes](https://firmly.mintlify.app/resources/error-codes.md): Understanding API error codes and responses ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.