API reference
Endpoint overview
On this page
Every call of the GroKeeper API (20 calls in 6 resources). All addresses start with /api/v1 on the address of the store you connect to. Press a name to see its fields, examples and errors.
Each call needs a key with the scope shown. The scopes are explained under Authentication.
Categories#
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /categories | List categories | read:categories |
| GET | /categories/{id} | Get a category | read:categories |
Products#
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /products | List products | read:products |
| GET | /products/{id} | Get a product | read:products |
| POST | /products | Create a product | write:products |
| PATCH | /products/{id} | Update a product | write:products |
| DELETE | /products/{id} | Archive a product | write:products |
Sizes (variants)#
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /products/{id}/variants | List the sizes of a product | read:products |
| POST | /products/{id}/variants | Add a size | write:products |
| PATCH | /products/{id}/variants/{variantId} | Update a size | write:products |
Inventory#
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /inventory | List stock levels | read:inventory |
| GET | /inventory/movements | List stock history | read:inventory |
| POST | /inventory/adjustments | Add, remove or set stock | write:inventory |
Orders#
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /orders | List orders | read:orders |
| GET | /orders/{number} | Get an order | read:orders |
| PATCH | /orders/{number} | Change an order's status | write:orders |
| POST | /orders/{number}/shipment | Add shipment details | write:orders |
| POST | /orders/{number}/notes | Add an internal note | write:orders |
Customers#
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /customers | List customers (contacts) | read:customers |
| GET | /customers/{id} | Get a customer | read:customers |
Good to know
There are no checkout, cart, payment, refund or coupon calls, and nothing is deleted. See What the API will never do.