post
https://api.clerk.io/v2/orders
Add or update orders.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Add or update orders by sending a JSON body with key, private_key, and an orders array. Each entry is an order object.
Each order requires id, products, time, and customer. Each products entry includes id, quantity, and unit price; profit is optional. time is a Unix timestamp in seconds.
Use the same identifier when updating a record. Use PATCH /orders to update selected attributes.
A response with status ok acknowledges the request. Changes may not be visible immediately; use GET /orders to verify the stored result.
Check status in the response body even when HTTP 200 is returned. Keep your private API key on your server.
