api2cart / api2cart-php-sdk
2.1.4
2023-12-03 16:25 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-dom: *
- ext-json: *
- ext-mbstring: *
- friendsofphp/php-cs-fixer: *
- guzzlehttp/guzzle: *
- phpunit/phpunit: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-03 18:17:15 UTC
README
- API版本: 1.1
需求
PHP 5.6 及以上
安装与使用
Composer
composer require api2cart/api2cart-php-sdk
授权文档
api_key
- 类型: API密钥
- API密钥参数名: api_key
- 位置: URL查询字符串
store_key
- 类型: API密钥
- API密钥参数名: store_key
- 位置: URL查询字符串
API端点文档
所有URI均相对于 https://api.api2cart.com/v1.1
| 类 | 方法 | HTTP请求 | 描述 |
|---|---|---|---|
| AccountApi | accountCartAdd | POST /account.cart.add.json | |
| AccountApi | accountCartList | GET /account.cart.list.json | |
| AccountApi | accountConfigUpdate | PUT /account.config.update.json | |
| AccountApi | accountFailedWebhooks | GET /account.failed_webhooks.json | |
| AccountApi | accountSupportedPlatforms | GET /account.supported_platforms.json | |
| AttributeApi | attributeAdd | POST /attribute.add.json | |
| AttributeApi | attributeAssignGroup | POST /attribute.assign.group.json | |
| AttributeApi | attributeAssignSet | POST /attribute.assign.set.json | |
| AttributeApi | attributeAttributesetList | GET /attribute.attributeset.list.json | |
| AttributeApi | attributeCount | GET /attribute.count.json | |
| AttributeApi | attributeDelete | DELETE /attribute.delete.json | |
| AttributeApi | attributeGroupList | GET /attribute.group.list.json | |
| AttributeApi | attributeInfo | GET /attribute.info.json | |
| AttributeApi | attributeList | GET /attribute.list.json | |
| AttributeApi | attributeTypeList | GET /attribute.type.list.json | |
| AttributeApi | attributeUnassignGroup | POST /attribute.unassign.group.json | |
| AttributeApi | attributeUnassignSet | POST /attribute.unassign.set.json | |
| BasketApi | basketInfo | GET /basket.info.json | |
| BasketApi | basketItemAdd | POST /basket.item.add.json | |
| BasketApi | basketLiveShippingServiceCreate | POST /basket.live_shipping_service.create.json | |
| BasketApi | basketLiveShippingServiceDelete | DELETE /basket.live_shipping_service.delete.json | |
| BasketApi | basketLiveShippingServiceList | GET /basket.live_shipping_service.list.json | |
| BridgeApi | bridgeDelete | POST /bridge.delete.json | |
| BridgeApi | bridgeUpdate | POST /bridge.update.json | |
| CartApi | bridgeDownload | GET /bridge.download.file | |
| CartApi | cartBridge | GET /cart.bridge.json | |
| CartApi | cartClearCache | POST /cart.clear_cache.json | |
| CartApi | cartConfig | GET /cart.config.json | |
| CartApi | cartConfigUpdate | PUT /cart.config.update.json | |
| CartApi | cartCouponAdd | POST /cart.coupon.add.json | |
| CartApi | cartCouponConditionAdd | POST /cart.coupon.condition.add.json | |
| CartApi | cartCouponCount | GET /cart.coupon.count.json | |
| CartApi | cartCouponDelete | DELETE /cart.coupon.delete.json | |
| CartApi | cartCouponList | GET /cart.coupon.list.json | |
| CartApi | cartCreate | POST /cart.create.json | |
| CartApi | cartDelete | DELETE /cart.delete.json | |
| CartApi | cartDisconnect | GET /cart.disconnect.json | |
| CartApi | cartGiftcardAdd | POST /cart.giftcard.add.json | |
| CartApi | cartGiftcardCount | GET /cart.giftcard.count.json | |
| CartApi | cartGiftcardList | GET /cart.giftcard.list.json | |
| CartApi | cartInfo | GET /cart.info.json | |
| CartApi | cartList | GET /cart.list.json | |
| CartApi | cartMethods | GET /cart.methods.json | |
| CartApi | cartPluginList | GET /cart.plugin.list.json | |
| CartApi | cartScriptAdd | POST /cart.script.add.json | |
| CartApi | cartScriptDelete | DELETE /cart.script.delete.json | |
| CartApi | cartScriptList | GET /cart.script.list.json | |
| CartApi | cartShippingZonesList | GET /cart.shipping_zones.list.json | |
| CartApi | cartValidate | GET /cart.validate.json | |
| CategoryApi | 类别添加 | POST /category.add.json | |
| CategoryApi | 类别分配 | POST /category.assign.json | |
| CategoryApi | 类别数量 | GET /category.count.json | |
| CategoryApi | 类别删除 | DELETE /category.delete.json | |
| CategoryApi | 类别查找 | GET /category.find.json | |
| CategoryApi | 类别图片添加 | POST /category.image.add.json | |
| CategoryApi | 类别图片删除 | DELETE /category.image.delete.json | |
| CategoryApi | 类别信息 | GET /category.info.json | |
| CategoryApi | 类别列表 | GET /category.list.json | |
| CategoryApi | 类别取消分配 | POST /category.unassign.json | |
| CategoryApi | 类别更新 | PUT /category.update.json | |
| 客户API | 客户添加 | POST /customer.add.json | |
| 客户API | 客户数量 | GET /customer.count.json | |
| 客户API | 客户查找 | GET /customer.find.json | |
| 客户API | 客户分组添加 | POST /customer.group.add.json | |
| 客户API | 客户分组列表 | GET /customer.group.list.json | |
| 客户API | 客户信息 | GET /customer.info.json | |
| 客户API | 客户列表 | GET /customer.list.json | |
| 订单API | 已废弃订单列表 | GET /order.abandoned.list.json | |
| 订单API | 订单添加 | POST /order.add.json | |
| 订单API | 订单数量 | GET /order.count.json | |
| 订单API | 订单财务状态列表 | GET /order.financial_status.list.json | |
| 订单API | 订单查找 | GET /order.find.json | |
| 订单API | 订单信息 | GET /order.info.json | |
| 订单API | 订单列表 | GET /order.list.json | |
| 订单API | 订单退款添加 | POST /order.refund.add.json | |
| 订单API | 订单发货添加 | POST /order.shipment.add.json | |
| 订单API | 订单发货列表 | GET /order.shipment.list.json | |
| 订单API | 订单发货追踪添加 | POST /order.shipment.tracking.add.json | |
| 订单API | 订单发货更新 | PUT /order.shipment.update.json | |
| 订单API | 订单状态列表 | GET /order.status.list.json | |
| 订单API | 订单更新 | PUT /order.update.json | |
| 产品API | 产品添加 | POST /product.add.json | |
| 产品API | 产品属性列表 | GET /product.attribute.list.json | |
| 产品API | 产品属性值设置 | POST /product.attribute.value.set.json | |
| 产品API | 产品属性值取消设置 | POST /product.attribute.value.unset.json | |
| 产品API | 产品品牌列表 | GET /product.brand.list.json | |
| 产品API | 产品子项查找 | GET /product.child_item.find.json | |
| 产品API | 产品子项信息 | GET /product.child_item.info.json | |
| 产品API | 产品子项列表 | GET /product.child_item.list.json | |
| 产品API | 产品数量 | GET /product.count.json | |
| 产品API | 产品货币添加 | POST /product.currency.add.json | |
| 产品API | 产品货币列表 | GET /product.currency.list.json | |
| 产品API | 产品删除 | DELETE /product.delete.json | |
| 产品API | 产品字段 | GET /product.fields.json | |
| 产品API | 产品查找 | GET /product.find.json | |
| 产品API | 产品图片添加 | POST /product.image.add.json | |
| 产品API | 产品图片删除 | DELETE /product.image.delete.json | |
| 产品API | 产品图片更新 | PUT /product.image.update.json | |
| 产品API | 产品信息 | GET /product.info.json | |
| 产品API | 产品列表 | GET /product.list.json | |
| 产品API | 产品制造商添加 | POST /product.manufacturer.add.json | |
| 产品API | 产品选项添加 | POST /product.option.add.json | |
| 产品API | 产品选项分配 | POST /product.option.assign.json | |
| 产品API | 产品选项列表 | GET /product.option.list.json | |
| 产品API | 产品选项值添加 | POST /product.option.value.add.json | |
| 产品API | 产品选项值分配 | POST /product.option.value.assign.json | |
| 产品API | 产品选项值更新 | PUT /product.option.value.update.json | |
| 产品API | 产品价格添加 | POST /product.price.add.json | |
| 产品API | 产品价格删除 | DELETE /product.price.delete.json | |
| 产品API | 产品价格更新 | PUT /product.price.update.json | |
| 产品API | 产品评论列表 | GET /product.review.list.json | |
| 产品API | 产品店铺分配 | POST /product.store.assign.json | |
| 产品API | 产品税添加 | POST /product.tax.add.json | |
| 产品API | 产品更新 | PUT /product.update.json | |
| 产品API | 产品变体添加 | POST /product.variant.add.json | |
| 产品API | 产品变体数量 | GET /product.variant.count.json | |
| 产品API | 产品变体删除 | DELETE /product.variant.delete.json | |
| 产品API | 产品变体信息 | GET /product.variant.info.json | |
| 产品API | productVariantList | GET /product.variant.list.json | |
| 产品API | productVariantPriceAdd | POST /product.variant.price.add.json | |
| 产品API | productVariantPriceDelete | DELETE /product.variant.price.delete.json | |
| 产品API | productVariantPriceUpdate | PUT /product.variant.price.update.json | |
| 产品API | productVariantUpdate | PUT /product.variant.update.json | |
| SubscriberApi | subscriberList | GET /subscriber.list.json | |
| TaxApi | taxClassInfo | GET /tax.class.info.json | |
| WebhookApi | webhookCount | GET /webhook.count.json | |
| WebhookApi | webhookCreate | POST /webhook.create.json | |
| WebhookApi | webhookDelete | DELETE /webhook.delete.json | |
| WebhookApi | webhookEvents | GET /webhook.events.json | |
| WebhookApi | webhookList | GET /webhook.list.json | |
| WebhookApi | webhookUpdate | PUT /webhook.update.json |
模型文档说明
- A2CDateTime
- BaseCustomer
- Basket
- BasketItem
- BasketItemOption
- BasketLiveShippingService
- Brand
- Carrier
- Cart
- CartConfigUpdate
- CartCouponAdd
- CartShippingZone
- CartStoreInfo
- CartWarehouse
- Category
- Child
- ChildCombination
- Country
- Coupon
- CouponAction
- CouponCode
- CouponCondition
- CouponHistory
- Currency
- Customer
- CustomerAdd
- CustomerAddAddress
- CustomerAddress
- CustomerGroup
- GiftCard
- Image
- Info
- InlineResponse200
- InlineResponse2001
- InlineResponse20010
- InlineResponse20010Result
- InlineResponse20011
- InlineResponse20011Result
- InlineResponse20012
- InlineResponse20012Result
- InlineResponse20013
- InlineResponse20013Result
- InlineResponse20014
- InlineResponse20015
- InlineResponse20015Result
- InlineResponse20016
- InlineResponse20016Result
- InlineResponse20017
- InlineResponse20017Result
- InlineResponse20018
- InlineResponse20018Result
- InlineResponse20019
- InlineResponse20019Result
- InlineResponse2001Result
- InlineResponse2002
- InlineResponse20020
- InlineResponse20020Result
- InlineResponse20021
- InlineResponse20021Result
- InlineResponse20022
- InlineResponse20023
- InlineResponse20023Result
- InlineResponse20024
- InlineResponse20024Result
- InlineResponse20025
- InlineResponse20026
- InlineResponse20026Result
- InlineResponse20026ResultCarts
- InlineResponse20027
- InlineResponse20027Result
- InlineResponse20028
- InlineResponse20028Result
- InlineResponse20028ResultWebhook
- InlineResponse20029
- InlineResponse20029Result
- InlineResponse2002Result
- InlineResponse2003
- InlineResponse20030
- InlineResponse20030Result
- InlineResponse20031
- InlineResponse20031Result
- InlineResponse20032
- InlineResponse20033
- InlineResponse20033Result
- InlineResponse20033ResultProduct
- InlineResponse20034
- InlineResponse20034Result
- InlineResponse20035
- InlineResponse20035Result
- InlineResponse20036
- InlineResponse20036Result
- InlineResponse20037
- InlineResponse20037Result
- InlineResponse20038
- InlineResponse20039
- InlineResponse20039Result
- InlineResponse20039ResultCategory
- InlineResponse2003Result
- InlineResponse2003ResultEvents
- InlineResponse2004
- InlineResponse20040
- InlineResponse20040Result
- InlineResponse20041
- InlineResponse20041Result
- InlineResponse20042
- InlineResponse20043
- InlineResponse20043Result
- InlineResponse20044
- InlineResponse20044Result
- InlineResponse20045
- InlineResponse20045Result
- InlineResponse20045ResultCartOrderStatuses
- InlineResponse20046
- InlineResponse20046Result
- InlineResponse20047
- InlineResponse20047Result
- InlineResponse20048
- InlineResponse20048Result
- InlineResponse20049
- InlineResponse20049Result
- InlineResponse2004Result
- InlineResponse2005
- InlineResponse20050
- InlineResponse20050Result
- InlineResponse20051
- InlineResponse20052
- InlineResponse20052Result
- InlineResponse20053
- InlineResponse20053Result
- InlineResponse20054
- InlineResponse20055
- InlineResponse20055Result
- InlineResponse20056
- 行内响应20056结果
- 行内响应20057
- 行内响应20057结果
- 行内响应20058
- 行内响应20059
- 行内响应20059结果
- 行内响应2005结果
- 行内响应2006
- 行内响应20060
- 行内响应20060结果
- 行内响应20061
- 行内响应20061结果
- 行内响应20062
- 行内响应20062结果
- 行内响应20063
- 行内响应20064
- 行内响应20064结果
- 行内响应20065
- 行内响应20065结果
- 行内响应20066
- 行内响应20066结果
- 行内响应20067
- 行内响应20067结果
- 行内响应20068
- 行内响应20068结果
- 行内响应20069
- 行内响应20069结果
- 行内响应2006结果
- 行内响应2007
- 行内响应20070
- 行内响应20070结果
- 行内响应20071
- 行内响应20071结果
- 行内响应20072
- 行内响应20072结果
- 行内响应20073
- 行内响应20074
- 行内响应20074结果
- 行内响应20075
- 行内响应20075结果
- 行内响应20076
- 行内响应20076结果
- 行内响应20077
- 行内响应20077结果
- 行内响应20078
- 行内响应20078结果
- 行内响应20079
- 行内响应20079结果
- 行内响应2007结果
- 行内响应2008
- 行内响应20080
- 行内响应20080结果
- 行内响应20081
- 行内响应20082
- 行内响应20082结果
- 行内响应20083
- 行内响应20083结果
- 行内响应2008结果
- 行内响应2008结果支持的购物车
- 行内响应2009
- 行内响应2009结果
- 行内响应200结果
- 语言
- 模型响应购物车优惠券列表
- 模型响应购物车礼品卡列表
- 模型响应购物车脚本列表
- 模型响应分类列表
- 模型响应客户组列表
- 模型响应客户列表
- 模型响应订单放弃列表
- 模型响应订单列表
- 模型响应订单发货列表
- 模型响应产品属性列表
- 模型响应产品子项列表
- 模型响应产品列表
- 订单
- 订单放弃
- 订单添加
- 订单添加订单项
- 订单添加订单项选项
- 订单添加订单项属性
- 订单项
- 订单项选项
- 订单支付方式
- 订单退款
- 订单退款添加
- 订单退款添加项目
- 订单发货添加
- 订单发货添加项目
- 订单发货添加跟踪号码
- 订单发货跟踪添加
- 订单发货更新
- 订单发货方式
- 订单状态
- 订单状态历史项
- 订单状态退款
- 订单状态退款项
- 订单总计
- 订单总计
- 订单总计新折扣
- 分页
- 插件
- 插件列表
- 产品
- 产品添加
- 产品添加价格组
- 产品添加发货详情
- 产品添加层级价格
- 产品高级价格
- 产品属性
- 产品价格组
- 产品库存
- 产品选项
- 产品选项项
- 产品价格添加
- 产品价格更新
- 产品价格更新价格组
- 产品评论
- 产品评论评分
- 产品税费添加
- 产品税费添加税率
- 产品层级价格
- 产品变体添加
- 产品变体价格添加
- 产品变体价格更新
- 响应购物车优惠券列表结果
- 响应购物车礼品卡列表结果
- 响应购物车脚本列表结果
- 响应分类列表结果
- 响应客户组列表结果
- 响应客户列表结果
- 响应订单放弃列表结果
- 响应订单列表结果
- 响应订单发货列表结果
- 响应产品属性列表结果
- 响应产品子项列表结果
- 响应产品列表结果
- 脚本
- 发货
- 发货项目
- 发货跟踪号码
- 特别价格
- 状态
- 商店属性
- 商店属性组
- 订阅者
- 税费类别
- 税费类别税率
- Webhook
作者
contact@api2cart.com