scandipwa / quote-graphql
scandipwa/quote-graphql
N/A
ScandiPWA_QuoteGraphQl
QuoteGraphQl provides basic types and resolvers for Checkout steps.
Endpoint description
All endpoints here should accept the same data as the API does. For an api reference, please follow this link
IMPORTANT NOTE: every following mutation and query work without specifying the
quote_idparam (orquoteId). If none quote id is specified the resolver will attempt to load the quote id from Auth header, where auth token should be present. If quoteId is passed, it will treat it as a guest request, so thequote_idshould be encoded.
IMPORTANT NOTE: this endpoint is an alternative for Magento 2 GraphQL Quote endpoint that is storing
quote_idfor authorized customer on server (using state-full approach).
getCartForCustomer
This endpoint allows to get full cart data (items + totals).
query GetCartForCustomer ($_guestCartId_0: String) {
getCartForCustomer(guestCartId: $_guestCartId_0) {
id
tax_amount
subtotal
discount_amount
subtotal_with_discount
grand_total
items {
item_id
qty
product {
price {
maximalPrice {
amount {
value
currency
}
adjustments {
code
amount {
value
currency
}
}
}
}
}
}
}
}
{
"_guestCartId_0":"xIXmScRLWb5ntIEsYe2ymzrVXYraivGx"
}
saveCartItem
type cartItem now implements sub-type of CartItemId, that allows to reference by one of many:
item_id or product SKU. This will become non-nullable in the future releases, when "sku" and "item_id" will be dropped.
This endpoint allows to submit items to cart following the default API payload schema. In beneath example is a simple product option addition to cart.
mutation SaveCartItem ($_cartItem_0: CartItemInput!, $_guestCartId_0: String) {
saveCartItem(cartItem: $_cartItem_0, guestCartId: $_guestCartId_0) {
getCartForCustomer(guestCartId: $_guestCartId_0) {
id
tax_amount
subtotal
discount_amount
subtotal_with_discount
grand_total
items {
item_id
qty
product {
price {
maximalPrice {
amount {
value
currency
}
adjustments {
code
amount {
value
currency
}
}
}
}
}
}
}
}
}
{
"_cartItem_0":{
"sku":"Test simple product",
"product_type":"simple",
"qty":1,
"product_option": {
"extension_attributes":{}
}
},
"_guestCartId_0":"xIXmScRLWb5ntIEsYe2ymzrVXYraivGx"
}
removeCartItem
mutation RemoveCartItem($item_id: Int!, $_guestCartId_0: String) {
removeCartItem(item_id: $item_id, guestCartId: $_guestCartId_0) {
getCartForCustomer(guestCartId: $_guestCartId_0) {
id
tax_amount
subtotal
discount_amount
subtotal_with_discount
grand_total
items {
item_id
qty
product {
price {
maximalPrice {
amount {
value
currency
}
adjustments {
code
amount {
value
currency
}
}
}
}
}
}
}
}
}
{
"item_id": 1,
"quoteId": "s44Xcnya8dmbysAeNTOozFsZCh8tyCH9"
}
estimateShippingCosts
mutation EstimateShippingCosts(
$guestCartId: String!
$address: EstimateShippingCostsAddress!
) {
estimateShippingCosts(address: $address, guestCartId: $guestCartId) {
carrier_code
method_code
carrier_title
method_title
error_message
amount
base_amount
price_excl_tax
price_incl_tax
available
}
}
{
"guestCartId": "s44Xcnya8dmbysAeNTOozFsZCh8tyCH9",
"address": {
"region": "New York",
"region_id": 43,
"region_code": "NY",
"country_id": "US",
"street": [
"123 Oak Ave"
],
"postcode": "10577",
"city": "Purchase",
"firstname": "Jane",
"lastname": "Doe",
"customer_id": 4,
"email": "[email protected]",
"telephone": "(512) 555-1111",
"same_as_billing": 1
}
}
saveAddressInformation
mutation SaveAddressInformation(
$addressInformation: SaveAddressInformation!
$guestCartId: String
) {
saveAddressInformation(
addressInformation: $addressInformation,
guestCartId: $guestCartId
) {
payment_methods {
code
title
}
totals {
grand_total
items {
name
qty
}
}
}
}
{
"guestCartId": "s44Xcnya8dmbysAeNTOozFsZCh8tyCH9",
"addressInformation":{
"shipping_address":{
"region":"New York",
"region_id":43,
"region_code":"NY",
"country_id":"US",
"street":[
"123 Oak Ave"
],
"postcode":"10577",
"city":"Purchase",
"firstname":"Jane",
"lastname":"Doe",
"email":"[email protected]",
"telephone":"512-555-1111"
},
"billing_address":{
"region":"New York",
"region_id":43,
"region_code":"NY",
"country_id":"US",
"street":[
"123 Oak Ave"
],
"postcode":"10577",
"city":"Purchase",
"firstname":"Jane",
"lastname":"Doe",
"email":"[email protected]",
"telephone":"512-555-1111"
},
"shipping_carrier_code":"flatrate",
"shipping_method_code":"flatrate"
}
}
savePaymentInformationAndPlaceOrder
mutation SavePaymentInformationAndPlaceOrder(
$paymentInformation: PaymentInformation!,
$guestCartId: String,
) {
savePaymentInformationAndPlaceOrder(
paymentInformation: $paymentInformation,
guestCartId: $guestCartId
) {
orderID
}
}
{
"guestCartId": "s44Xcnya8dmbysAeNTOozFsZCh8tyCH9",
"paymentInformation": {
"paymentMethod": {
"method": "checkmo"
},
"billing_address":{
"region":"New York",
"region_id":43,
"region_code":"NY",
"country_id":"US",
"street":[
"123 Oak Ave"
],
"postcode":"10577",
"city":"Purchase",
"firstname":"Jane",
"lastname":"Doe",
"email":"[email protected]",
"telephone":"512-555-1111"
}
}
}
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 3.1.0 | stable | Fail | Not compatible Details | 2024-07-14 20:33:06 |
| 3.0.6 | stable | Not tested | Not yet tested Details | 2024-04-04 09:09:19 |
| 3.0.5 | stable | Not tested | Not yet tested Details | 2022-09-14 14:19:02 |
| 3.0.4 | stable | Not tested | Not yet tested Details | 2022-08-04 10:28:11 |
| 3.0.3 | stable | Not tested | Not yet tested Details | 2022-08-01 11:38:04 |
| 3.0.2 | stable | Not tested | Not yet tested Details | 2022-07-27 11:44:16 |
| 3.0.1 | stable | Not tested | Not yet tested Details | 2022-07-27 11:29:11 |
| 3.0.0 | stable | Not tested | Not yet tested Details | 2022-07-18 18:37:17 |
| 2.19.26 | stable | Not tested | Not yet tested Details | 2022-06-09 19:13:38 |
| 2.19.25 | stable | Not tested | Not yet tested Details | 2022-05-26 00:42:46 |
| 2.19.24 | stable | Not tested | Not yet tested Details | 2022-05-25 15:34:43 |
| 2.19.23 | stable | Not tested | Not yet tested Details | 2022-05-13 16:19:30 |
| 2.19.22 | stable | Not tested | Not yet tested Details | 2022-04-13 23:11:26 |
| 2.19.21 | stable | Not tested | Not yet tested Details | 2021-11-08 16:46:22 |
| 2.19.20 | stable | Not tested | Not yet tested Details | 2021-10-28 17:35:37 |
| 2.19.19 | stable | Not tested | Not yet tested Details | 2021-10-25 17:00:29 |
| 2.19.18 | stable | Not tested | Not yet tested Details | 2021-10-22 16:30:08 |
| 2.19.17 | stable | Not tested | Not yet tested Details | 2021-10-14 19:01:38 |
| 2.19.16 | stable | Not tested | Not yet tested Details | 2021-10-08 16:25:26 |
| 2.19.15 | stable | Not tested | Not yet tested Details | 2021-09-27 18:07:51 |
| 2.19.14 | stable | Not tested | Not yet tested Details | 2021-09-24 17:04:11 |
| 2.19.13 | stable | Not tested | Not yet tested Details | 2021-09-22 17:25:30 |
| 2.19.12 | stable | Not tested | Not yet tested Details | 2021-09-03 20:38:24 |
| 2.19.11 | stable | Not tested | Not yet tested Details | 2021-08-23 09:42:25 |
| 2.19.10 | stable | Not tested | Not yet tested Details | 2021-08-03 12:35:28 |
| 2.19.9 | stable | Not tested | Not yet tested Details | 2021-07-23 16:46:07 |
| 2.19.8 | stable | Not tested | Not yet tested Details | 2021-07-05 09:33:32 |
| 2.19.7 | stable | Not tested | Not yet tested Details | 2021-06-15 10:53:25 |
| 2.19.6 | stable | Not tested | Not yet tested Details | 2021-06-10 10:20:04 |
| 2.19.5 | stable | Not tested | Not yet tested Details | 2021-06-07 08:03:48 |
| 2.19.4 | stable | Not tested | Not yet tested Details | 2021-05-21 13:29:11 |
| 2.19.3 | stable | Not tested | Not yet tested Details | 2021-05-14 11:46:27 |
| 2.19.2 | stable | Not tested | Not yet tested Details | 2021-05-05 13:25:39 |
| 2.19.1 | stable | Not tested | Not yet tested Details | 2021-04-26 16:02:37 |
| 2.19.0 | stable | Not tested | Not yet tested Details | 2021-04-09 10:16:37 |
| 2.18.2 | stable | Not tested | Not yet tested Details | 2021-04-01 09:28:07 |
| 2.18.1 | stable | Not tested | Not yet tested Details | 2021-03-30 07:05:19 |
| 2.18.0 | stable | Not tested | Not yet tested Details | 2021-03-15 12:34:27 |
| 2.17.9 | stable | Not tested | Not yet tested Details | 2021-02-10 12:29:09 |
| 2.17.8 | stable | Not tested | Not yet tested Details | 2021-01-21 15:02:11 |
| 2.17.7 | stable | Not tested | Not yet tested Details | 2021-01-19 11:49:24 |
| 2.17.6 | stable | Not tested | Not yet tested Details | 2020-12-30 14:12:44 |
| 2.17.5 | stable | Not tested | Not yet tested Details | 2020-12-28 11:46:06 |
| 2.17.4 | stable | Not tested | Not yet tested Details | 2020-12-14 13:26:15 |
| 2.17.3 | stable | Not tested | Not yet tested Details | 2020-12-08 10:03:13 |
| 2.17.2 | stable | Not tested | Not yet tested Details | 2020-12-02 08:58:08 |
| 2.17.1 | stable | Not tested | Not yet tested Details | 2020-11-30 15:14:08 |
| 2.17.0 | stable | Not tested | Not yet tested Details | 2020-11-27 15:32:04 |
| 2.16.0 | stable | Not tested | Not yet tested Details | 2020-11-26 14:36:04 |
| 2.15.2 | stable | Not tested | Not yet tested Details | 2020-11-19 14:21:20 |
| 2.15.1 | stable | Not tested | Not yet tested Details | 2020-10-20 09:50:14 |
| 2.15.0 | stable | Not tested | Not yet tested Details | 2020-09-07 11:03:35 |
| 2.14.1 | stable | Not tested | Not yet tested Details | 2020-08-26 08:23:14 |
| 2.14.0 | stable | Not tested | Not yet tested Details | 2020-07-28 10:04:38 |
| 2.13.0 | stable | Not tested | Not yet tested Details | 2020-07-15 13:14:41 |
| 2.12.1 | stable | Not tested | Not yet tested Details | 2020-06-15 13:42:50 |
| 2.12.0 | stable | Not tested | Not yet tested Details | 2020-06-09 15:54:29 |
| 2.11.0 | stable | Not tested | Not yet tested Details | 2020-05-18 15:18:51 |
| 2.10.2 | stable | Not tested | Not yet tested Details | 2020-01-27 12:23:07 |
| 2.10.1 | stable | Not tested | Not yet tested Details | 2020-01-09 16:41:57 |
| 2.10.0 | stable | Not tested | Not yet tested Details | 2020-01-07 10:10:21 |
| 2.9.2 | stable | Not tested | Not yet tested Details | 2019-12-20 10:04:39 |
| 2.9.1 | stable | Not tested | Not yet tested Details | 2019-12-18 18:18:17 |
| 2.9.0 | stable | Not tested | Not yet tested Details | 2019-12-05 09:10:03 |
| 2.8.0 | stable | Not tested | Not yet tested Details | 2019-12-02 15:27:41 |
| 2.7.0 | stable | Not tested | Not yet tested Details | 2019-11-13 10:12:26 |
| 2.6.0 | stable | Not tested | Not yet tested Details | 2019-10-16 07:51:36 |
| 2.5.0 | stable | Not tested | Not yet tested Details | 2019-10-14 13:30:46 |
| 2.4.1 | stable | Not tested | Not yet tested Details | 2019-09-13 07:31:54 |
| 2.4.0 | stable | Not tested | Not yet tested Details | 2019-09-12 14:51:49 |
| 2.3.0 | stable | Not tested | Not yet tested Details | 2019-08-20 11:08:27 |
| 2.2.0 | stable | Not tested | Not yet tested Details | 2019-08-19 10:53:29 |
| 2.1.1 | stable | Not tested | Not yet tested Details | 2019-08-01 14:39:49 |
| 2.0.0 | stable | Not tested | Not yet tested Details | 2019-07-26 11:31:50 |
| 2.0.5 | stable | Not tested | Not yet tested Details | 2019-07-17 07:42:20 |
| 2.0.4 | stable | Not tested | Not yet tested Details | 2019-06-10 09:19:20 |
| 2.0.3 | stable | Not tested | Not yet tested Details | 2019-05-31 08:20:01 |
| 2.0.2 | stable | Not tested | Not yet tested Details | 2019-05-30 11:43:54 |
| 2.0.1 | stable | Not tested | Not yet tested Details | 2019-05-30 08:50:23 |
| 1.0.6 | stable | Not tested | Not yet tested Details | 2019-05-13 10:23:02 |
| 1.0.5 | stable | Not tested | Not yet tested Details | 2019-05-08 10:33:45 |
| 1.0.4 | stable | Not tested | Not yet tested Details | 2019-04-18 14:39:16 |
| 1.0.2 | stable | Not tested | Not yet tested Details | 2019-04-18 14:18:51 |
| 1.0.1 | stable | Not tested | Not yet tested Details | 2019-04-18 11:29:09 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2019-04-18 11:21:30 |
Requires 16
| Package | Constraint |
|---|---|
| magento/framework | * |
| magento/module-authorization | * |
| magento/module-customer | * |
| magento/module-webapi | * |
| magento/module-sales | * |
| magento/module-integration | * |
| magento/module-catalog-rule | * |
| magento/module-checkout | * |
| magento/module-inventory-configuration-api | * |
| magento/module-inventory-reservations-api | * |
| magento/module-inventory-sales-api | * |
| magento/module-quote | * |
| magento/module-bundle | * |
| magento/module-quote-graph-ql | ^100.3 |
| magento/module-bundle-graph-ql | ^100.3 |
| scandipwa/performance | ^1.0 |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 119 | 1 error, 118 warnings (ruleset: Magento2) — 75 auto-fixable with phpcbf |
| PHPMD | Warning | 55 | 55 rule violations (UnusedFormalParameter:44, MissingImport:7, UnusedLocalVariable:3, ExcessiveParameterList:1) |
| Cpd | Pass | 0 | |
| Composer validate | Info | 13 | valid; 13 advisory notes (composer validate --strict) |
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from scandipwa
View vendorTurn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.