{ "opencollection": "1.0.0", "info": { "name": "VirtoCommerce.Cart Catalog Shopping Cart API", "version": "v1" }, "items": [ { "info": { "name": "Shopping Cart", "type": "folder" }, "items": [ { "info": { "name": "CartModule_GetCart", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/carts/:storeId/:customerId/:cartName/:currency/:cultureName/current", "params": [ { "name": "storeId", "value": "", "type": "path" }, { "name": "customerId", "value": "", "type": "path" }, { "name": "cartName", "value": "", "type": "path" }, { "name": "currency", "value": "", "type": "path" }, { "name": "cultureName", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_GetCartItemsCount", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/carts/:cartId/itemscount", "params": [ { "name": "cartId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_AddItemToCart", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/carts/:cartId/items", "params": [ { "name": "cartId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_ChangeCartItem", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/carts/:cartId/items", "params": [ { "name": "cartId", "value": "", "type": "path" }, { "name": "lineItemId", "value": "", "type": "query" }, { "name": "quantity", "value": "", "type": "query" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_ClearCart", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/carts/:cartId/items", "params": [ { "name": "cartId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_RemoveCartItem", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/carts/:cartId/items/:lineItemId", "params": [ { "name": "cartId", "value": "", "type": "path" }, { "name": "lineItemId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "Get shopping cart by id", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/carts/:cartId", "params": [ { "name": "cartId", "value": "", "type": "path", "description": "Shopping cart id" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get shopping cart by id" }, { "info": { "name": "CartModule_MergeWithCart", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/carts/:cartId", "params": [ { "name": "cartId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_GetAvailableShippingRates", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/carts/:cartId/availshippingrates", "params": [ { "name": "cartId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_GetAvailableShippingRatesByContext", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/carts/availshippingrates", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_GetAvailablePaymentMethods", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/carts/:cartId/availpaymentmethods", "params": [ { "name": "cartId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_AddCartCoupon", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/carts/:cartId/coupons/:couponCode", "params": [ { "name": "cartId", "value": "", "type": "path" }, { "name": "couponCode", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_RemoveCartCoupon", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/carts/:cartId/coupons/:couponCode", "params": [ { "name": "cartId", "value": "", "type": "path" }, { "name": "couponCode", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_AddOrUpdateCartShipment", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/carts/:cartId/shipments", "params": [ { "name": "cartId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "CartModule_AddOrUpdateCartPayment", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/carts/:cartId/payments", "params": [ { "name": "cartId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } } }, { "info": { "name": "Search shopping carts by given criteria", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/carts/search", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Search shopping carts by given criteria" }, { "info": { "name": "Create shopping cart", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/carts", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Create shopping cart" }, { "info": { "name": "Update shopping cart", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/carts", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Update shopping cart" }, { "info": { "name": "Delete shopping carts by ids", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/carts", "params": [ { "name": "ids", "value": "", "type": "query", "description": "Array of shopping cart ids" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Delete shopping carts by ids" }, { "info": { "name": "Calculates totals for cart.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/carts/recalculate", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Calculates totals for cart." }, { "info": { "name": "Partial update for the specified ShoppingCart by id", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/carts/patch/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "ShoppingCart id" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Partial update for the specified ShoppingCart by id" }, { "info": { "name": "Partial update for the specified ShoppingCart LineItem by id", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/carts/patch/:cartId/items/:lineItemId", "params": [ { "name": "cartId", "value": "", "type": "path", "description": "ShoppingCart id" }, { "name": "lineItemId", "value": "", "type": "path", "description": "LineItem id" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Partial update for the specified ShoppingCart LineItem by id" }, { "info": { "name": "Partial update for the specified ShoppingCart Shipment by id", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/carts/patch/:cartId/shipments/:shipmentId", "params": [ { "name": "cartId", "value": "", "type": "path", "description": "ShoppingCart id" }, { "name": "shipmentId", "value": "", "type": "path", "description": "Shipment id" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Partial update for the specified ShoppingCart Shipment by id" }, { "info": { "name": "Partial update for the specified ShoppingCart Payment by id", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/carts/patch/:cartId/payments/:paymentId", "params": [ { "name": "cartId", "value": "", "type": "path", "description": "ShoppingCart id" }, { "name": "paymentId", "value": "", "type": "path", "description": "Payment id" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Partial update for the specified ShoppingCart Payment by id" } ] } ], "bundled": true }