graycore / magento2-guest-orders-graphql
A Magento 2 module that adds a GraphQL orders endpoint for guest carts.
Fund package maintenance!
graycoreio
Installs: 8 960
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 4
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: *
- magento/module-graph-ql: *
- magento/module-quote: *
- magento/module-sales: *
- magento/module-sales-graph-ql: >=100.4.0 <100.4.8
- magento/module-store: *
Requires (Dev)
- magento/magento-coding-standard: >=6.0
- phpunit/phpunit: ^8.2 || ^9.0
- squizlabs/php_codesniffer: ^3.4
README
A Magento 2 module that adds a GraphQL orders endpoint for guest carts. This closely follows the API for the official customer orders endpoint.
This should only be used for >= Magento 2.4.1. If you need an orders endpoint for < Magento 2.4.1, please use magento2-orders-graphql.
Important
As of Magento v2.4.7, this package is no longer necessary. However, it is still usable with v2.4.7. It will no longer be usable in v2.4.8. As such, this package is archived.
Installation
composer require graycore/magento2-guest-orders-graphql
Usage
Guest Orders
For guest carts, use the graycoreGuestOrders
query and pass in the cart ID as cartId
:
query GetGuestOrders { graycoreGuestOrders(cartId: "dsfg67dsfg65sd6fgs8dhffdgs") { items { id } } }
Schema
Refer to the GraphQL schema for documentation about the types available in the queries.