For Tech Specialists
- Home
- All courses
- For Tech Specialists
- Introduction Course for eCommerce Tech Specialists
- Home
- Courses
- For Tech Specialists
- Introduction Course for eCommerce Tech Specialists
API methods to work with carts
The main API methods to work with stores. With their help, you can add, delete, and disconnect stores.
It allows connecting an e-store to your API2Cart account.
Response structure:
{
"return_code": int,
"return_message": string,
"result":{
"store_key": string
}
}
2. cart.delete method
It allows deleting your store from API2Cart.
Response structure:
{
"return_code": int,
"return_message": string,
"result":{
"store": string
}
}
3. cart.methods
It returns the list of all supported store’s methods.
Response structure:
{
"return_code": int,
"return_message": string,
"result":{
"method":[ array
"cart.create",
...
"product.currency.add",
]
}
}
4. cart.info method
It returns a store’s information.
Response structure:
{
"return_code": int,
"return_message": string,
"result":{
"name": string,
"url": string,
"db_prefix": string,
"version": string,
"stores_info":[ array
{
"store_info":[ array
{
"store_id": string,
"name": string,
"language": string,
"currency":[ array
{
"name": string,
"iso3": string,
"symbol": string
}
],
"timezone": string,
"country": string,
"root_category_id": string,
"multi_store_url": string,
"active": string,
"weight_unit": string,
"dimension_unit": string,
"prices_include_tax": string,
"additional_fields":[ array ],
"carrier_info":[ array
{
"id": string,
"name": string,
"active": bool
},
...
],
"store_owner_info": [ array
{
"owner": string,
"phone": string,
"country": string,
"state": string,
"email": string,
"zip_code": string,
"street_address": string,
"street_address_line_2": string,
}
]
},
...
]
}
],
"shipping_zones":[ array
{
"shipping_zone":[ array
{
"id": string,
"code": string,
"country": string
},
...
]
}
]
}
}
The whole list of API methods to work with stores and their details you can find here: Cart