Skip to content

Swagger API2Cart API

by api2cart.com

API keyShopping
Open documentation ↗

Overview

API2Cart API Documentation. Develop the best shopping platform and marketplace integrations easily using API2Cart unified API.

Swagger API2Cart is a shopping API from api2cart.com. Requests are authenticated with an API key. It is served over plain HTTP. Its OpenAPI description documents 146 endpoints.

At a glance

Authentication
API key
HTTPS
No
CORS
Unknown
Category
Shopping
Base URL
https://api.api2cart.com/v1.1
Version
1.1
Endpoints
146
Spec updated
2023-03-06

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.api2cart.com/v1.1/account.cart.list.json" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.api2cart.com/v1.1/account.cart.list.json", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.api2cart.com/v1.1/account.cart.list.json",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
POST/account.cart.add.jsonAdd store to the account
GET/account.cart.list.jsonGet list of carts.
PUT/account.config.update.jsonUpdate configs in the API2Cart database.
GET/account.failed_webhooks.jsonList webhooks that was not delivered to the callback.
GET/account.supported_platforms.jsonGet list of supported platforms
POST/attribute.add.jsonAdd new attribute
POST/attribute.assign.group.jsonAssign attribute to the group
POST/attribute.assign.set.jsonAssign attribute to the attribute set
GET/attribute.attributeset.list.jsonGet attribute_set list
GET/attribute.count.jsonGet attributes count
DELETE/attribute.delete.jsonDelete attribute from store
GET/attribute.group.list.jsonGet attribute group list
GET/attribute.info.jsonGet attribute info
GET/attribute.list.jsonGet attributes list
GET/attribute.type.list.jsonGet list of supported attributes types
POST/attribute.unassign.group.jsonUnassign attribute from group
POST/attribute.unassign.set.jsonUnassign attribute from attribute set
POST/attribute.update.jsonUpdate attribute data
GET/basket.info.jsonRetrieve basket information.
POST/basket.item.add.jsonAdd item to basket
POST/basket.live_shipping_service.create.jsonCreate live shipping rate service. (Beta)
DELETE/basket.live_shipping_service.delete.jsonDelete live shipping rate service. (Beta)
GET/basket.live_shipping_service.list.jsonRetrieve a list of live shipping rate services. (Beta)
POST/bridge.delete.jsonDelete bridge from the store.
GET/bridge.download.fileDownload bridge for store
POST/bridge.update.jsonUpdate bridge in the store.
GET/cart.bridge.jsonGet bridge key and store key
GET/cart.catalog_price_rules.count.jsonGet count of cart catalog price rules discounts.
GET/cart.catalog_price_rules.list.jsonGet cart catalog price rules discounts.
POST/cart.clear_cache.jsonClear cache on store.
GET/cart.config.jsonGet list of cart configs
PUT/cart.config.update.jsondeprecatedUse this API method to update custom data in client database.
POST/cart.coupon.add.jsonCreate new coupon
POST/cart.coupon.condition.add.jsonCreate new coupon condition
GET/cart.coupon.count.jsonGet cart coupons count.
DELETE/cart.coupon.delete.jsonDelete coupon
GET/cart.coupon.list.jsonGet cart coupon discounts.
POST/cart.create.jsondeprecatedAdd store to the account
DELETE/cart.delete.jsonRemove store from API2Cart
GET/cart.disconnect.jsondeprecatedDisconnect with the store and clear store session data.
POST/cart.giftcard.add.jsonCreate new gift card
GET/cart.giftcard.count.jsonGet gift cards count.
GET/cart.giftcard.list.jsonGet gift cards list.
GET/cart.info.jsonGet cart information
GET/cart.list.jsondeprecatedGet list of supported carts
GET/cart.meta_data.list.jsonGet entity meta data
POST/cart.meta_data.set.jsonSet meta data for a specific entity
DELETE/cart.meta_data.unset.jsonUnset meta data for a specific entity
GET/cart.methods.jsonGet list of cart methods
GET/cart.plugin.list.jsonGet list of installed plugins
POST/cart.script.add.jsonAdd new script to the storefront
DELETE/cart.script.delete.jsonRemove script from the storefront
GET/cart.script.list.jsonGet scripts installed to the storefront
GET/cart.shipping_zones.list.jsonGet list of shipping zones
GET/cart.validate.jsonCheck store availability, bridge connection for the downloadable carts, identify DB prefix, validate API accesses for API carts.
POST/category.add.jsonAdd new category in store
POST/category.assign.jsonAssign category to product
GET/category.count.jsonCount categories in store.
DELETE/category.delete.jsonDelete category in store
GET/category.find.jsonSearch category in store. "Laptop" is specified here by default.
POST/category.image.add.jsonAdd image to category
DELETE/category.image.delete.jsonDelete image
GET/category.info.jsonGet category info about category ID*** or specify other category ID.
GET/category.list.jsonGet list of categories from store.
POST/category.unassign.jsonUnassign category to product
PUT/category.update.jsonUpdate category in store
POST/customer.add.jsonAdd customer into store.
GET/customer.attribute.list.jsonGet attributes for specific customer
GET/customer.count.jsonGet number of customers from store.
GET/customer.find.jsonFind customers in store.
POST/customer.group.add.jsonCreate customer group.
GET/customer.group.list.jsonGet list of customers groups.
GET/customer.info.jsonGet customers' details from store.
GET/customer.list.jsonGet list of customers from store.
PUT/customer.update.jsonUpdate information of customer in store.
GET/order.abandoned.list.jsonGet list of orders that were left by customers before completing the order.
POST/order.add.jsonAdd a new order to the cart.
GET/order.count.jsonCount orders in store
GET/order.financial_status.list.jsonRetrieve list of financial statuses
GET/order.find.jsondeprecatedThis method is deprecated and won't be supported in the future. Please use "order.list" instead.
GET/order.fulfillment_status.list.jsonRetrieve list of fulfillment statuses
GET/order.info.jsonInfo about a specific order by ID
GET/order.list.jsonGet list of orders from store.
POST/order.preestimate_shipping.list.jsonRetrieve list of order preestimated shipping methods
POST/order.refund.add.jsonAdd a refund to the order.
POST/order.shipment.add.jsonAdd a shipment to the order.
DELETE/order.shipment.delete.jsonDelete order's shipment.
GET/order.shipment.info.jsonGet information of shipment.
GET/order.shipment.list.jsonGet list of shipments by orders.
POST/order.shipment.tracking.add.jsonAdd order shipment's tracking info.
PUT/order.shipment.update.jsonUpdate order's shipment information.
GET/order.status.list.jsonRetrieve list of statuses
GET/order.transaction.list.jsonRetrieve list of order transaction
PUT/order.update.jsonUpdate existing order.
POST/product.add.jsonAdd new product to store.
GET/product.attribute.list.jsonGet list of attributes and values.
POST/product.attribute.value.set.jsonSet attribute value to product.
POST/product.attribute.value.unset.jsonRemoves attribute value for a product.
GET/product.brand.list.jsonGet list of brands from your store.
GET/product.child_item.find.jsonSearch product child item (bundled item or configurable product variant) in store catalog.

Showing the first 100 of 146 endpoints; the full list is in the documentation.

Questions

Does the Swagger API2Cart API need an API key?

Yes. The Swagger API2Cart API uses API key authentication; the documentation explains how to get credentials.

Does the Swagger API2Cart API support HTTPS?

The Swagger API2Cart API is listed as HTTP only, so avoid sending secrets to it.

How many endpoints does the Swagger API2Cart API have?

Its OpenAPI description lists 146 endpoints in version 1.1. The first 100 are shown on this page.

What are alternatives to the Swagger API2Cart API?

Other Shopping APIs include Etsy, eBay, Flipkart Marketplace, Inventory Management, Intel Product Catalogue Service.

Compare alternatives →

Listed from APIs.guru (CC0).