REST vs GraphQL
Key differences for developers moving between Ordergroove's two APIs
This document covers the key differences between Ordergroove’s REST API and GraphQL API for developers familiar with one and moving to the other.
Field Naming
The REST API uses snake_case. The GraphQL API uses camelCase. When mapping fields between both APIs you will need to convert between the naming conventions.
Examples
DateTime Format
All DateTime fields in the GraphQL API conform to ISO 8601 standards and include an explicit America/Chicago UTC offset. The correct offset is determined per value.
Date-only fields
Some fields represent a calendar date with no meaningful time component. Because GraphQL exposes them as DateTime, they will always carry T00:00:00 in the response:
For these fields, only the date portion is meaningful — the time can be ignored.