UNPKG

@apite/magento2-utility

Version:

Shopgate WebCheckout utility for Magento 2 extensions

58 lines (57 loc) 1.9 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\":\"nuoWw1J1CXexP8TlRFAbGtBUKNg5qs8s\",\"cartItems\":[{\"data\":{\"quantity\":1,\"sku\":\"SG-CREATED-SIMPLE-2\"}}]}}", "headers": { "Accept": "application/json", "shopgate-check": "true", "Cookie": "XDEBUG_SESSION=1;", "Content-Type": "application/json", "Store": "default", "Authorization": "Bearer eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ.eyJ1aWQiOjEsInV0eXBpZCI6MywiaWF0IjoxNzI1OTczMzI2LCJleHAiOjE3NTc1MDkzMjZ9.AtXHcfCnUe0I2FzqTostLbytJATt6fqg65FsHDGeEa8", "User-Agent": "axios/0.21.4", "Content-Length": 368 }, "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 SG-CREATED-SIMPLE-2 to the shopping cart: Product that you are trying to add is not available.", "locations": [ { "line": 3, "column": 5 } ], "path": [ "addSimpleProductsToCart" ], "extensions": { "category": "graphql-input" } } ], "data": { "addSimpleProductsToCart": null } } }