scandipwa / quote-graphql

scandipwa/quote-graphql

N/A

  • Alfreds Genkins
  • Ilja Lapkovskis
magento2-module 2.4.6-2.4.9 Compatible Based on composer requirements only QA: failed OSL-3.0, AFL-3.0
Viewing version 1.0.0. Latest version is 3.1.0. Switch to latest

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_id param (or quoteId). 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 the quote_id should be encoded.

saveCartItem

This endpoint allows to submit items to cart following the default API payload schema. In beneath example is a configurable product option addition to cart.

mutation SaveCartItem($cartItem: CartItemInput!) {
    saveCartItem(cartItem: $cartItem) {
        item_id
        name
        price
        product_type
        qty
        quote_id
        sku
    }
}
{
	"cartItem": {
		"sku":"n31189077-1",
		"product_type":"configurable",
		"qty":1,
		"quote_id":"s44Xcnya8dmbysAeNTOozFsZCh8tyCH9",
		"product_option":{
			"extension_attributes":{
				"configurable_item_options":[
					{
						"option_id":"93",
						"option_value":75
					},{
						"option_id":"212",
						"option_value":79
					}
				]
			}
		}
	}
}

removeCartItem

mutation RemoveCartItem($item_id: Int!, $quoteId: String) {
    removeCartItem(item_id: $item_id, quoteId: $quoteId)
}
{
   "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.

Versions
Version Stability QA Status Released
3.1.0 stable Fail 2024-07-14 20:33:06
3.0.6 stable Not tested 2024-04-04 09:09:19
3.0.5 stable Not tested 2022-09-14 14:19:02
3.0.4 stable Not tested 2022-08-04 10:28:11
3.0.3 stable Not tested 2022-08-01 11:38:04
3.0.2 stable Not tested 2022-07-27 11:44:16
3.0.1 stable Not tested 2022-07-27 11:29:11
3.0.0 stable Not tested 2022-07-18 18:37:17
2.19.26 stable Not tested 2022-06-09 19:13:38
2.19.25 stable Not tested 2022-05-26 00:42:46
2.19.24 stable Not tested 2022-05-25 15:34:43
2.19.23 stable Not tested 2022-05-13 16:19:30
2.19.22 stable Not tested 2022-04-13 23:11:26
2.19.21 stable Not tested 2021-11-08 16:46:22
2.19.20 stable Not tested 2021-10-28 17:35:37
2.19.19 stable Not tested 2021-10-25 17:00:29
2.19.18 stable Not tested 2021-10-22 16:30:08
2.19.17 stable Not tested 2021-10-14 19:01:38
2.19.16 stable Not tested 2021-10-08 16:25:26
2.19.15 stable Not tested 2021-09-27 18:07:51
2.19.14 stable Not tested 2021-09-24 17:04:11
2.19.13 stable Not tested 2021-09-22 17:25:30
2.19.12 stable Not tested 2021-09-03 20:38:24
2.19.11 stable Not tested 2021-08-23 09:42:25
2.19.10 stable Not tested 2021-08-03 12:35:28
2.19.9 stable Not tested 2021-07-23 16:46:07
2.19.8 stable Not tested 2021-07-05 09:33:32
2.19.7 stable Not tested 2021-06-15 10:53:25
2.19.6 stable Not tested 2021-06-10 10:20:04
2.19.5 stable Not tested 2021-06-07 08:03:48
2.19.4 stable Not tested 2021-05-21 13:29:11
2.19.3 stable Not tested 2021-05-14 11:46:27
2.19.2 stable Not tested 2021-05-05 13:25:39
2.19.1 stable Not tested 2021-04-26 16:02:37
2.19.0 stable Not tested 2021-04-09 10:16:37
2.18.2 stable Not tested 2021-04-01 09:28:07
2.18.1 stable Not tested 2021-03-30 07:05:19
2.18.0 stable Not tested 2021-03-15 12:34:27
2.17.9 stable Not tested 2021-02-10 12:29:09
2.17.8 stable Not tested 2021-01-21 15:02:11
2.17.7 stable Not tested 2021-01-19 11:49:24
2.17.6 stable Not tested 2020-12-30 14:12:44
2.17.5 stable Not tested 2020-12-28 11:46:06
2.17.4 stable Not tested 2020-12-14 13:26:15
2.17.3 stable Not tested 2020-12-08 10:03:13
2.17.2 stable Not tested 2020-12-02 08:58:08
2.17.1 stable Not tested 2020-11-30 15:14:08
2.17.0 stable Not tested 2020-11-27 15:32:04
2.16.0 stable Not tested 2020-11-26 14:36:04
2.15.2 stable Not tested 2020-11-19 14:21:20
2.15.1 stable Not tested 2020-10-20 09:50:14
2.15.0 stable Not tested 2020-09-07 11:03:35
2.14.1 stable Not tested 2020-08-26 08:23:14
2.14.0 stable Not tested 2020-07-28 10:04:38
2.13.0 stable Not tested 2020-07-15 13:14:41
2.12.1 stable Not tested 2020-06-15 13:42:50
2.12.0 stable Not tested 2020-06-09 15:54:29
2.11.0 stable Not tested 2020-05-18 15:18:51
2.10.2 stable Not tested 2020-01-27 12:23:07
2.10.1 stable Not tested 2020-01-09 16:41:57
2.10.0 stable Not tested 2020-01-07 10:10:21
2.9.2 stable Not tested 2019-12-20 10:04:39
2.9.1 stable Not tested 2019-12-18 18:18:17
2.9.0 stable Not tested 2019-12-05 09:10:03
2.8.0 stable Not tested 2019-12-02 15:27:41
2.7.0 stable Not tested 2019-11-13 10:12:26
2.6.0 stable Not tested 2019-10-16 07:51:36
2.5.0 stable Not tested 2019-10-14 13:30:46
2.4.1 stable Not tested 2019-09-13 07:31:54
2.4.0 stable Not tested 2019-09-12 14:51:49
2.3.0 stable Not tested 2019-08-20 11:08:27
2.2.0 stable Not tested 2019-08-19 10:53:29
2.1.1 stable Not tested 2019-08-01 14:39:49
2.0.0 stable Not tested 2019-07-26 11:31:50
2.0.5 stable Not tested 2019-07-17 07:42:20
2.0.4 stable Not tested 2019-06-10 09:19:20
2.0.3 stable Not tested 2019-05-31 08:20:01
2.0.2 stable Not tested 2019-05-30 11:43:54
2.0.1 stable Not tested 2019-05-30 08:50:23
1.0.6 stable Not tested 2019-05-13 10:23:02
1.0.5 stable Not tested 2019-05-08 10:33:45
1.0.4 stable Not tested 2019-04-18 14:39:16
1.0.2 stable Not tested 2019-04-18 14:18:51
1.0.1 stable Not tested 2019-04-18 11:29:09
1.0.0 stable Not tested 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

No QA results yet

QA pipelines haven't run for this version. Status appears here once the vendor publishes a tagged release that gets ingested.

License
OSL-3.0, AFL-3.0
Authors
Make it pay

Turn 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.