UNPKG

@apite/magento2-utility

Version:

Shopgate WebCheckout utility for Magento 2 extensions

61 lines (60 loc) 1.74 kB
{ "config": { "url": null, "method": "post", "data": "{\"query\":\"\\n mutation AddSimpleProducts($cartId: String!, $cartItems: [SimpleProductCartItemInput!]!) {\\n addSimpleProductsToCart(\\n input: {\\n cart_id: $cartId, \\n cart_items: $cartItems\\n }) {\\n cart {\\n id\\n }\\n }\\n }\\n\",\"variables\":{\"cartId\":\"mZoty4WMy0PyY2Oxglqt7FYv6a7mJUK6\",\"cartItems\":[{\"data\":{\"quantity\":9999,\"sku\":\"24-UG06\"}}]}}", "headers": { "Accept": "application/json", "shopgate-check": "true", "Cookie": "XDEBUG_SESSION=1;", "Content-Type": "application/json", "Store": "default", "User-Agent": "axios/0.21.4", "Content-Length": 388 }, "baseURL": "http://192.168.1.33/graphql", "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "withCredentials": true, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false } }, "data": { "errors": [ { "message": "Could not add the product with SKU 24-UG06 to the shopping cart: The requested qty is not available", "locations": [ { "line": 3, "column": 5 } ], "path": [ "addSimpleProductsToCart" ], "extensions": { "category": "graphql-input" } } ], "data": { "addSimpleProductsToCart": null } }, "request": { "method": "POST", "path": "/graphql" } }