Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

A Magento 2 module that adds a GraphQL orders endpoint for guest carts.

License

Notifications You must be signed in to change notification settings

graycoreio/magento2-guest-orders-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

329fb5e · Apr 14, 2025

History

28 Commits
Apr 11, 2025
Jun 14, 2023
Oct 20, 2020
Feb 21, 2022
Jun 26, 2022
Apr 14, 2025
Apr 14, 2025
Oct 20, 2020
Apr 14, 2025
Apr 14, 2025
Feb 21, 2022
Feb 21, 2022
Oct 20, 2020
Jun 14, 2023

Repository files navigation

magento2-guest-orders-graphql

Packagist Downloads Packagist Version Packagist License Unit Test Integration Test Installation Test

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.