Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.99 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.99 KB

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.

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.