Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

og-username-changer

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}/

Requirements

  • Python 3.13+
  • uv

Setup

Install dependencies:

uv sync

Create a .env file in the project root with your Ordergroove API key:

og_staging=your_api_key_here

This value is sent as the x-api-key header. It is required — the script exits with a KeyError if it is missing.

Usage

uv run main.py --merchant-user-id <ID> --external-id <ID> --name "<NAME>"

Options

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.

Example

uv run main.py --merchant-user-id 4815162342 --external-id grantee-abc --name "Jane Doe"

The parsed JSON response is printed to stdout.

Notes

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages