LogoLogo
  • LiquidCommerce Documentation
  • πŸ”Authentication API Integration
    • Get Access Token
  • Services
    • πŸ—ΊοΈAddress API
      • Autocomplete
      • Details
    • πŸ‘₯Users API
      • Session
      • Fetch User
      • Delete User
      • Create/Update Address
      • Delete Address
      • Add Payment
      • Update Default Payment
      • Delete Payment
    • πŸ—ƒοΈCatalog API
      • Search
      • Availability
    • πŸ›’Cart API
      • Create/Update Cart
    • πŸ›οΈCheckout API
      • Prepare
      • Complete
    • πŸ“Orders API
      • Authentication
      • Get Order
  • CLOUD SDK
    • Overview
    • Methods & Usage
  • EVENTS & ERRORS
    • Overview
    • Cart Events
    • Checkout Status Codes
  • EVENT BRIDGE (WEBHOOKS)
    • Orders
  • Types
    • Loc
    • Catalog
    • Catalog Filters
    • Product
    • Cart
    • User
    • Retailer
    • Checkout
    • Order
Powered by GitBook
On this page
  • Overview
  • Key Features
  • Authentication
  • Error Handling
  • Rate Limiting
  • Best Practices
Export as PDF
  1. Services

Cart API

The LiquidCommerce Cart API provides comprehensive cart management capabilities with real-time pricing, inventory verification, and multi-retailer support

Overview

This API provides functionality for adding items to a cart, updating quantities, applying promotional codes, and calculating totals based on product prices, shipping fees, and other applicable charges.

Key Features

  • Create and update shopping carts

  • Add, remove, or modify items in the cart

  • Apply promotional codes

  • Calculate totals including product prices, shipping fees, and platform fees

  • Support for multiple retailers and fulfillment methods

Authentication

Before using the API, you need to obtain an access token from the Authentication API. Include this token in the Authorization header of all API requests:

Authorization: Bearer <YOUR_ACCESS_TOKEN>

Error Handling

The API uses standard HTTP response codes to indicate the success or failure of requests. In case of an error, the response body will contain a JSON object with more details about the error.

Rate Limiting

The Cart API is subject to rate limiting to ensure fair usage and maintain performance. If you exceed the rate limit, you'll receive a 429 (Too Many Requests) response.

Best Practices

  1. Always include the loc object to ensure accurate pricing and availability.

  2. Use the id field to update an existing cart rather than creating a new one for each update.

  3. Handle the events array in the response to manage any warnings or informational messages.

  4. Regularly update the cart to reflect any changes in product availability or pricing.

PreviousAvailabilityNextCreate/Update Cart

Last updated 6 months ago

πŸ›’

Support

Our dedicated support team is available to assist you with API integration and usage. For any questions or issues, please contact solutions@liquidapp.co.