Documentation menu

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 Business
List and filter workspace orders.
GET/orders/:idPro or Business
Read one order scoped to the workspace.
POST/orders/:id/resend-emailPro or Business
Repeats 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

StatusMeaning
PAIDPayment was verified and the order was recorded.
REFUNDEDOrder 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.