A small CLI for updating the name on an Ordergroove grantee via the Ordergroove REST API.
It issues a PATCH to:
https://restapi.ordergroove.com/customers/{merchant_user_id}/grantees/{external_id}/
- Python 3.13+
- uv
Install dependencies:
uv syncCreate a .env file in the project root with your Ordergroove API key:
og_staging=your_api_key_hereThis value is sent as the x-api-key header. It is required — the script exits
with a KeyError if it is missing.
uv run main.py --merchant-user-id <ID> --external-id <ID> --name "<NAME>"| Option | Required | Description |
|---|---|---|
--merchant-user-id |
yes | Ordergroove merchant user ID of the customer. |
--external-id |
yes | External ID of the grantee to update. |
--name |
yes | New name to set on the grantee. |
uv run main.py --merchant-user-id 4815162342 --external-id grantee-abc --name "Jane Doe"The parsed JSON response is printed to stdout.
The og_staging key points at Ordergroove's staging environment. Running this
against production requires swapping in a production API key, so double-check
which key is in your .env before running it against real customer records.