https://github.com/graycoreio/magento2-guest-orders-graphql
A Magento 2 module that adds a GraphQL orders endpoint for guest carts.
https://github.com/graycoreio/magento2-guest-orders-graphql
Last synced: 5 months ago
JSON representation
A Magento 2 module that adds a GraphQL orders endpoint for guest carts.
- Host: GitHub
- URL: https://github.com/graycoreio/magento2-guest-orders-graphql
- Owner: graycoreio
- License: mit
- Created: 2020-10-20T03:42:49.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-07-01T17:31:05.000Z (about 1 year ago)
- Last Synced: 2025-09-28T21:28:27.537Z (9 months ago)
- Language: PHP
- Size: 104 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# magento2-guest-orders-graphql
[](https://packagist.org/packages/graycore/magento2-guest-orders-graphql/stats)
[](https://packagist.org/packages/graycore/magento2-guest-orders-graphql)
[](https://github.com/graycoreio/magento2-guest-orders-graphql/blob/master/LICENSE)
[](https://github.com/graycoreio/magento2-guest-orders-graphql/actions/workflows/unit.yaml)
[](https://github.com/graycoreio/magento2-guest-orders-graphql/actions/workflows/integration.yaml)
[](https://github.com/graycoreio/magento2-cors/actions/workflows/install.yaml)
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](https://github.com/graycoreio/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
```sh
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`:
```gql
query GetGuestOrders {
graycoreGuestOrders(cartId: "dsfg67dsfg65sd6fgs8dhffdgs") {
items {
id
}
}
}
```
### Schema
Refer to the [GraphQL schema](etc/schema.graphqls) for documentation about the types available in the queries.