API2Cart

FREE
By stefan.skliarov
Updated 4 months ago
eCommerce
3/10
Popularity Score
101ms
Latency
100%
Success Rate

API2Cart API Documentation

Connect your app with shopping carts.

View API Details
POSTaddAttribute
POSTaddCartCoupon
POSTaddCartGiftcard
POSTaddCategory
POSTaddCurrency
POSTaddCustomer
POSTaddImageToCategory
POSTaddOrder
POSTaddOrderShipment
POSTaddProduct
POSTaddProductImage
POSTaddProductManufacturer
POSTaddProductOption
POSTaddProductOptionValue
POSTaddProductPrice
POSTaddProductVariant
POSTaddProductVariantPrice
POSTaddStore
POSTaddWebhook
POSTassignAttributeToGroup
POSTassignAttributeToSet
POSTassignCategory
POSTassignProductOption
POSTassignProductOptionValue
POSTclearCartCache
POSTcountAttributes
POSTcountCartCoupons
POSTcountCartGiftcards
POSTcountCategories
POSTcountCustomers
POSTcountOrders
POSTcountProductVariants
POSTcountProducts
POSTcountWebhooks
POSTdeleteAttribute
POSTdeleteCart
POSTdeleteCartCoupon
POSTdeleteCategory
POSTdeleteCustomer
POSTdeleteImageForCategory
POSTdeleteProductImage
POSTdeleteProductPrice
POSTdeleteProductVariant
POSTdeleteProductVariantPrice
POSTdeleteWebhook
POSTdisconnectCart
POSTfindCategory
POSTfindCustomer
POSTfindOrders
POSTfindProduct
POSTgetCartBridge
POSTgetCartInfo
POSTgetProductInfo
POSTgetProductVariantInfo
POSTgetSingleAttribute
POSTgetSingleCategory
POSTgetSingleCustomer
POSTgetSingleOrder
POSTgetTaxClassInfo
POSTlistAbandonedOrders
POSTlistAttributeGroups
POSTlistAttributeSets
POSTlistAttributes
POSTlistCartConfigs
POSTlistCartCoupons
POSTlistCartGiftcards
POSTlistCartMethods
POSTlistCartPlugins
POSTlistCarts
POSTlistCategories
POSTlistCurrency
POSTlistCustomers
POSTlistFailedWebhooks
POSTlistFinancialStatuses
POSTlistOrderStatuses
POSTlistOrders
POSTlistOrdersShipments
POSTlistProductAttributes
POSTlistProductChildItems
POSTlistProductFields
POSTlistProductOptions
POSTlistProductVariants
POSTlistProducts
POSTlistSupportedAttributes
POSTlistSupportedCarts
POSTlistWebhooks
POSTlistWebhooksEvents
POSTsetProductAttributeValue
POSTunassignAttributeFromGroup
POSTunassignAttributeFromSet
POSTunassignCategory
POSTupdateCartConfig
POSTupdateCategory
POSTupdateConfig
POSTupdateCustomer
POSTupdateImageForCategory
POSTupdateOptionValue
POSTupdateOrder
POSTupdateOrderShipment
POSTupdateProduct
POSTupdateProductImage
POSTupdateProductPrice
POSTupdateProductVariant
POSTupdateProductVariantPrice
POSTupdateWebhook
POSTvalidateCart
POSTaddAttribute

Add new attribute

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
storeKeySTRING
REQUIREDAPI2Cart store key
typeSTRING
REQUIREDAttribute type
apiKeyCREDENTIALS
REQUIREDYour API key
nameSTRING
REQUIREDAttribute name
Optional Parameters
langIdNUMBER
OPTIONALLanguage id
isGlobalSELECT
OPTIONALAttribute saving scope
isHtmlAllowedOnFrontSELECT
OPTIONALAllow HTML Tags on Frontend
isUsedForPromoRulesSELECT
OPTIONALUse for Promo Rule Conditions
isConfigurableSELECT
OPTIONALUse To Create Configurable Product
requiredSELECT
OPTIONALDefines if the option is required
usedForSortBySELECT
OPTIONALUsed for Sorting in Product Listing
isFilterableSELECT
OPTIONALUse In Layered Navigation
positionNUMBER
OPTIONALDefines attribute position in the list
applyToSTRING
OPTIONALTypes of products which can have this attribute
isSearchableSELECT
OPTIONALUse attribute in Quick Search
storeIdSTRING
OPTIONALStore Id
isComparableSELECT
OPTIONALComparable on Front-end
visibleSELECT
OPTIONALFilter items by visibility status
isVisibleInAdvancedSearchSELECT
OPTIONALUse in Advanced Search
usedInProductListingSELECT
OPTIONALUsed in Product Listing
isFilterableInSearchSELECT
OPTIONALUse In Search Results Layered Navigation
Code Snippet
unirest.post("https://API2Cartstefan-skliarovV1.p.rapidapi.com/addAttribute")
.header("X-RapidAPI-Host", "API2Cartstefan-skliarovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://API2Cartstefan-skliarovV1.p.rapidapi.com/addAttribute
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://API2Cartstefan-skliarovV1.p.rapidapi.com/addAttribute")
.header("X-RapidAPI-Host", "API2Cartstefan-skliarovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication