API: Account, billing and support
The wallet, invoices, plans and renewal, tickets, team members and connected AI assistants.
/billing billing.read Wallet and invoices
Balance, VAT, whether online payment is ready, the last wallet entries, invoices and each domain's plan. Amounts in rials. A key limited to some domains sees only their invoices and no balance.
curl -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/billing /billing/invoices/{id} billing.read One invoice
An invoice with its lines and state.
curl -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/billing/invoices/9f2c1a7b3d4e5f60 /billing/invoices/{id}/pay billing.manage Pay an invoice
wallet pays at once; gateway returns pay_url, an address a person opens to pay at the bank.
| Body field | Values | Meaning |
|---|---|---|
methodRequired | wallet | gateway | wallet or gateway. |
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/billing/invoices/9f2c1a7b3d4e5f60/pay /billing/invoices/{id}/cancel billing.manage Cancel an invoice
Unpaid invoices only.
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/billing/invoices/9f2c1a7b3d4e5f60/cancel /billing/topup billing.manage Top up the wallet
Makes a top-up invoice (201); pay it with gateway.
| Body field | Values | Meaning |
|---|---|---|
amountRequired | Text | Amount in rials. |
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/billing/topup /domains/{domain}/plan billing.manage Order a plan
A plan for the domain for 1, 3, 6 or 12 months, with an optional discount code; answers 201 with the invoice.
| Body field | Values | Meaning |
|---|---|---|
planRequired | Text | The plan id. |
periodRequired | monthly | quarterly | semiannual | yearly | How long to pay for. |
coupon | Text | A discount code. |
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/domains/example.com/plan /domains/{domain}/plan/renewal billing.manage Renewal
auto_on or auto_off renews from the wallet or not; cancel ends with the paid period; resume undoes it.
| Body field | Values | Meaning |
|---|---|---|
actionRequired | auto_on | auto_off | cancel | resume | auto_on, auto_off, cancel or resume. |
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/domains/example.com/plan/renewal /tickets tickets List tickets
The account's tickets (a key limited to some domains: only those domains).
curl -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/tickets /tickets tickets Open a ticket
With up to 5 attachments as base64; domain is required for keys limited to some domains.
| Body field | Values | Meaning |
|---|---|---|
subjectRequired | Text | Subject. |
department | support | technical | billing | sales | Which team gets it. |
priority | Text | Priority. |
domain | Text | The domain it is about. |
bodyRequired | Text | The message. |
attachments | Text | List of {name, content (base64)}, at most 5. |
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/tickets /tickets/{id} tickets Read a ticket
The ticket with its messages.
curl -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/tickets/9f2c1a7b3d4e5f60 /tickets/{id}/reply tickets Answer a ticket
Adds a message; a closed ticket opens again.
| Body field | Values | Meaning |
|---|---|---|
bodyRequired | Text | The message. |
attachments | Text | List of {name, content (base64)}, at most 5. |
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/tickets/9f2c1a7b3d4e5f60/reply /tickets/{id}/close tickets Close a ticket
Closes the ticket.
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/tickets/9f2c1a7b3d4e5f60/close /team team Team members
Members with their email, name, role and state.
curl -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/team /team team Invite a member
Sends an invitation mail; the person accepts it to join with the role.
| Body field | Values | Meaning |
|---|---|---|
emailRequired | Text | The person's email. |
roleRequired | manager | editor | viewer | billing | manager, editor, viewer or billing. |
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/team /team/{id} team Change or remove a member
Send role to change it, or action remove.
| Body field | Values | Meaning |
|---|---|---|
role | manager | editor | viewer | billing | manager, editor, viewer or billing. |
action | remove | remove, to take the member out. |
curl -X POST -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/team/9f2c1a7b3d4e5f60 /ai-connections team Connected AI assistants
Assistants connected over MCP, with their permissions and domains.
curl -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/ai-connections /ai-connections/{id} team Remove an AI connection
The assistant can no longer use the account.
curl -X DELETE -H "Authorization: Bearer $KEY" \
https://my.cloud9.ir/api/customer/v1/ai-connections/9f2c1a7b3d4e5f60 No answer here? Sign in to the portal and open a ticket. Open a ticket