API Reference · v1
JSON over HTTPS. Bearer token auth. Stable, versioned endpoints.
https://api.visionhub.app/v1Auth: Bearer <token>Rate limit: 600 req/min99.98% uptime SLA/v1/auth/sessionCreate a session for the current user.
/v1/auth/sessionTerminate the active session.
/v1/auth/meReturn the authenticated user profile.
{
"id": "u_9f3", "role": "seller",
"sellerId": "s_1", "email": "rafael@visionhub.app"
}/v1/sellersRegister a new seller (standard, full_service, b2b).
/v1/sellersList sellers. Supports ?status=pending|approved|rejected|blocked.
/v1/sellers/:idFetch a single seller.
/v1/sellers/:id/statusApprove, reject or block. Admin only.
{
"status": "approved"
}/v1/sellers/:id/commissionOverride marketplace commission for this seller.
/v1/productsSearch products across the marketplace.
/v1/productsCreate a product (seller only).
/v1/products/:idUpdate fields.
/v1/products/:idDelete a product.
/v1/ordersPlace an order. Automatically split into suborders.
/v1/ordersScoped to caller: customers get own, sellers get suborders, admins get all.
/v1/orders/:idFetch an order with its suborders.
/v1/orders/:id/suborders/:sellerIdUpdate fulfillment status.
{
"status": "shipped",
"trackingCode": "BR934821761"
}/v1/commissionsFetch global marketplace commission.
/v1/commissionsUpdate global commission percent. Admin only.
/v1/settlementsList settlements (filter by sellerId).
/v1/settlementsCreate a settlement entry for a seller balance.
/v1/settlements/:id/paidMark settlement as paid.
/v1/shipping/quoteCalculate shipping options for a CEP.
/v1/shipping/labelsGenerate a shipping label for a suborder.
/v1/shipping/track/:codeFetch tracking events for a shipment.
/v1/consent/currentReturn the current active policy version.
/v1/consent/acceptRecord a versioned consent for the user.
/v1/consent/historyImmutable history for the authenticated user.