Overview
The Openfront platform provides GraphQL queries to retrieve customer data, including user information, orders, accounts, and invoices.Get Customer Orders
Retrieve a list of orders for the authenticated customer.GraphQL Query
Maximum number of orders to return
Number of orders to skip for pagination
Response
Returns a JSON object containing:Example
Get Customer Order
Retrieve details for a specific order.GraphQL Query
Unique identifier of the order
Secret key for guest order access (required for unauthenticated orders)
Response
Returns a JSON object with complete order details:Order unique identifier
Human-readable order number
Current order status
Array of items in the order
Delivery address details
Payment information for the order
Get Customer Accounts
Retrieve business accounts associated with the authenticated customer.GraphQL Query
Maximum number of accounts to return
Number of accounts to skip for pagination
Response
Get Customer Account
Retrieve details for a specific business account.GraphQL Query
Unique identifier of the account
Response
Returns detailed account information including line items and payment history.Get Customer Paid Invoices
Retrieve paid invoices for the authenticated customer.GraphQL Query
Maximum number of invoices to return
Number of invoices to skip for pagination
Response
Standard User Queries
Query users directly using the KeystoneJS GraphQL API:Virtual Fields
Extracted from the user’s full name
Extracted from the user’s full name
ID of the user’s current active cart (if exists)
Primary billing address