# Billing

Invoices, estimates, balance, top-ups and payments.

Every route is called through the gateway `https://api.tino.vn/v1` with `Authorization: Bearer <token>`; see [Calling the Tino API](/en/docs/api).

## Invoices & payments

| Method | Path | Name | Scope |
| --- | --- | --- | --- |
| `GET` | `/v1/addfunds` | [Top-up information](/en/docs/api/get-addfunds) | `billing:read` |
| `POST` | `/v1/addfunds` | [Top up](/en/docs/api/post-addfunds) | `billing:write` |
| `GET` | `/v1/balance` | [Account balance](/en/docs/api/get-balance) | `billing:read` |
| `GET` | `/v1/billing/@invoice_id/pay/@gateway_id` | [Invoice payment link](/en/docs/api/get-billing-invoice-id-pay-gateway-id) | `billing:write` |
| `POST` | `/v1/billing/addfunds` | [Top up (billing)](/en/docs/api/post-billing-addfunds) | `billing:write` |
| `GET` | `/v1/billing/creditlogs` | [Credit balance history](/en/docs/api/get-billing-creditlogs) | `billing:read` |
| `POST` | `/v1/billing/creditvoucher` | [Redeem top-up code](/en/docs/api/post-billing-creditvoucher) | `billing:write` |
| `GET` | `/v1/estimate/@id/pdf` | [Download estimate PDF](/en/docs/api/get-estimate-id-pdf) | `billing:read` |
| `GET` | `/v1/estimates` | [List estimates](/en/docs/api/get-estimates) | `billing:read` |
| `GET` | `/v1/estimates/@id` | [Estimate details](/en/docs/api/get-estimates-id) | `billing:read` |
| `GET` | `/v1/invoice` | [List invoices](/en/docs/api/get-invoice) | `billing:read` |
| `GET` | `/v1/invoice/@id` | [Invoice details](/en/docs/api/get-invoice-id) | `billing:read` |
| `DELETE` | `/v1/invoice/@id` | [Delete invoice](/en/docs/api/delete-invoice-id) | `billing:write` |
| `POST` | `/v1/invoice/@id/credit` | [Pay invoice with balance](/en/docs/api/post-invoice-id-credit) | `billing:write` |
| `GET` | `/v1/invoice/@id/pdf` | [Download invoice PDF](/en/docs/api/get-invoice-id-pdf) | `billing:read` |
| `GET` | `/v1/invoices` | [List invoices (paginated)](/en/docs/api/get-invoices) | `billing:read` |
| `GET` | `/v1/invoices/due` | [Due invoices](/en/docs/api/get-invoices-due) | `billing:read` |
| `POST` | `/v1/invoices/payall` | [Pay invoices together](/en/docs/api/post-invoices-payall) | `billing:write` |
| `GET` | `/v1/payment` | [Payment methods](/en/docs/api/get-payment) | `billing:read` |
| `GET` | `/v1/payment/fees` | [Payment method fees](/en/docs/api/get-payment-fees) | `billing:read` |

## Orders

| Method | Path | Name | Scope |
| --- | --- | --- | --- |
| `POST` | `/v1/carts` | [Create a cart](/en/docs/api/post-carts) | `orders:write` |
| `GET` | `/v1/carts/@uuid` | [Get a cart](/en/docs/api/get-carts-uuid) | `orders:write` |
| `PUT` | `/v1/carts/@uuid` | [Update a cart](/en/docs/api/put-carts-uuid) | `orders:write` |
| `POST` | `/v1/carts/@uuid/confirm` | [Place the order from a cart](/en/docs/api/post-carts-uuid-confirm) | `orders:write` |
| `GET` | `/v1/carts/latest` | [Latest cart](/en/docs/api/get-carts-latest) | `orders:write` |
| `POST` | `/v1/order` | [Order several services](/en/docs/api/post-order) | `orders:write` |
| `POST` | `/v1/order/@product_id` | [Order one service](/en/docs/api/post-order-product-id) | `orders:write` |
| `POST` | `/v1/quote` | [Get an order quote](/en/docs/api/post-quote) | `orders:write` |
