/v1/orderOrder several services
Create an order and invoice for several items at once (service plans, domains, certificates), paid with pay_method. Per-item errors come back as HTTP 200 with error = ["item_error", {code, message, item}] (item: position in items); hosting plans need a domain. Requires both orders:write and billing:write: missing either returns 403 insufficient_scope.
Call it through the gateway https://api.tino.vn/v1 with a token that has the orders:write scope; see Calling the Tino API.
Authentication
Send the token in the header Authorization:
Authorization: Bearer <token>
Tokens that can call it: app tokens (tinoat_, Sign in with Tino) or personal API tokens (tinopat_).
Scopes
orders:write
Parameters
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
pay_method | integer | Optional | Payment method ID |
ignore_errors | boolean | Optional | Process order even if some of the items were rejected due to errors |
items | array | Optional | list with order items |
aff_id | integer | Optional | Affiliate ID |
Response
No live sample: the route changes real data or the test account has no data for it. The answer is a JSON object; errors follow the common shape in Calling the Tino API.
Error codes
| Error code | Description |
|---|---|
401 · invalid_token | The token is wrong, expired or revoked. |
403 · insufficient_scope | The token lacks the orders:write scope. |
403 · ip_not_allowed | A personal API token called from an IP outside its allow-list. |
Business errors of a route usually come as HTTP 200 with {"error": ["<code>"]}; see common error codes.