@apite/magento2-utility
Version:
Shopgate WebCheckout utility for Magento 2 extensions
49 lines (48 loc) • 4.15 kB
JSON
{
"url": null,
"method": "post",
"data": {
"query": "{customerCart {\n id,\n email,\n shipping_addresses {\n selected_shipping_method {\n amount {\n value\n },\n carrier_title,\n method_title\n }\n }\n items {\n id,\n errors {\n code,\n message\n }\n ... on SimpleCartItem {\n customizable_options {\n label\n values {\n label,\n value\n }\n }\n }\n ... on ConfigurableCartItem {\n configurable_options {\n option_label,\n value_label\n }\n customizable_options {\n label,\n values {\n label,\n value\n }\n }\n configured_variant {\n name,\n sku,\n thumbnail {\n url\n }\n }\n }\n product {\n name,\n id,\n sku,\n type_id,\n small_image {\n url\n },\n image {\n url\n },\n thumbnail {\n url\n },\n price_range {\n minimum_price {\n final_price {\n value\n },\n regular_price {\n value\n }\n },\n maximum_price {\n final_price {\n value\n },\n regular_price {\n value\n }\n } \n }\n },\n prices {\n row_total_including_tax {\n value\n },\n price {\n value\n }\n discounts {\n label,\n amount {\n value\n }\n }\n },\n quantity\n },\n applied_coupons {\n code\n },\n prices {\n discounts {\n amount {\n value,\n currency\n },\n label\n },\n subtotal_excluding_tax {\n value,\n currency\n },\n applied_taxes {\n label,\n amount {\n value,\n currency\n }\n },\n grand_total {\n value,\n currency\n }\n }\n }}"
},
"headers": {
"common": {
"Accept": "application/json, text/plain, */*",
"shopgate-check": "true",
"Cookie": "XDEBUG_SESSION=1;"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"Accept": "application/json",
"Content-Type": "application/json",
"Store": "default",
"Authorization": "Bearer eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ.eyJ1aWQiOjEsInV0eXBpZCI6MywiaWF0IjoxNzI2MDUxNDA4LCJleHAiOjE3NTc1ODc0MDh9.f7gleO3BqhVrNJiXKmpHG2l357xFkudC1dTzyQ0QyuQ"
},
"baseURL": "http://192.168.2.165/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
}
}