@apite/magento2-utility
Version:
Shopgate WebCheckout utility for Magento 2 extensions
57 lines (56 loc) • 1.69 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\":\"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",
"User-Agent": "axios/0.21.4",
"Content-Length": 397
},
"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: The fewest you may purchase is 2.",
"locations": [
{
"line": 3,
"column": 5
}
],
"path": [
"addSimpleProductsToCart"
],
"extensions": {
"category": "graphql-input"
}
}
],
"data": {
"addSimpleProductsToCart": null
}
}
}