API v1

Schema

orders

One row per customer order, holding its latest status and total.

student_ro:SELECT

Columns#

ColumnTypeNullableNotes
idbigintNoPrimary key.
user_idbigintNoReferences users.id.
statustextNoOne of Cancelled, Complete, Processing, Returned, Shipped.
total_amountnumeric(12,2)NoOrder total in USD.
created_attimestamptzNoWhen the row was created. Indexed.
updated_attimestamptzNoWhen the row was last modified. Equals created_at until the row changes. May not be indexed.

Example query#

SQL
SELECT id, user_id, status, total_amount, updated_at
FROM orders
WHERE updated_at >= '2026-03-01'
  AND updated_at <  '2026-03-02'
ORDER BY updated_at, id;

Loading tips#

Filter on updated_at for incremental loads — see Incremental loading.

© 2026 StyleHub · Developer Platform