Customer API
Shop
Let customers browse the organisation's products and pay from their wallet
If the organisation has set up a product catalog, your frontend can show it and let customers buy with their wallet balance. Orders are managed by the bank in its dashboard.
| Method | Path | Purpose |
|---|---|---|
GET | /customer/products | Browse |
GET | /customer/products/:id | Product detail (options, shipping) |
POST | /customer/products/:id/purchase | Buy |
GET | /customer/products/orders | My orders |
GET | /customer/products/orders/:id | One order |
Buy
curl -X POST https://api.uverusbanking.com/api/v1/customer/products/<id>/purchase \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{ "quantity": 1, "pin": "1234" }'quantity defaults to 1. pin is required. You can also send:
source_wallet_id— the wallet to pay from (defaults to the primary active wallet)- the selected variant options, answers to the product's questions, and a shipping option, when the product has them
The total — price, discount and shipping — is always computed by the API. Never send or trust a total from the client. Stock is reserved before the money moves, so a product can't oversell; if the charge fails, the stock is put back.
Purchases are currently available to Live customers only; products are not shown to Sandbox customers.
Full schemas: Customer API reference.