@apite/magento2-utility
Version:
Shopgate WebCheckout utility for Magento 2 extensions
62 lines (61 loc) • 1.92 kB
JSON
{
"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",
"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 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"
}
}