Commerce
Read confirmed purchases and repeat delivery.
An order is created after a payment-link confirmation succeeds. Orders retain buyer, provider, amount, product, and delivery context.
Routes
GET
/ordersPro or BusinessList and filter workspace orders.
GET
/orders/:idPro or BusinessRead one order scoped to the workspace.
POST
/orders/:id/resend-emailPro or BusinessRepeats the buyer email when the order has a deliverable email address.
typescript
import { veritas } from "@/lib/veritas";
const query = new URLSearchParams({
page: "1",
pageSize: "25",
status: "PAID",
provider: "telebirr",
});
const orders = await veritas(`/orders?${query}`);
const order = await veritas("/orders/order_id");
await veritas("/orders/order_id/resend-email", {
method: "POST",
});Statuses
| Status | Meaning |
|---|---|
| PAID | Payment was verified and the order was recorded. |
| REFUNDED | Order was marked refunded; this does not itself move funds at the provider. |
Listing
Order listing supports route-defined filters and pagination. Use the returned product and payment-link context rather than assuming every order belongs to a product.