API: Account, billing and support

The wallet, invoices, plans and renewal, tickets, team members and connected AI assistants.

GET /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
GET /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
POST /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 fieldValuesMeaning
methodRequired wallet | gateway wallet or gateway.
curl -X POST -H "Authorization: Bearer $KEY" \
  https://my.cloud9.ir/api/customer/v1/billing/invoices/9f2c1a7b3d4e5f60/pay
POST /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
POST /billing/topup billing.manage

Top up the wallet

Makes a top-up invoice (201); pay it with gateway.

Body fieldValuesMeaning
amountRequired Text Amount in rials.
curl -X POST -H "Authorization: Bearer $KEY" \
  https://my.cloud9.ir/api/customer/v1/billing/topup
POST /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 fieldValuesMeaning
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
POST /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 fieldValuesMeaning
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
GET /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
POST /tickets tickets

Open a ticket

With up to 5 attachments as base64; domain is required for keys limited to some domains.

Body fieldValuesMeaning
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
GET /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
POST /tickets/{id}/reply tickets

Answer a ticket

Adds a message; a closed ticket opens again.

Body fieldValuesMeaning
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
POST /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
GET /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
POST /team team

Invite a member

Sends an invitation mail; the person accepts it to join with the role.

Body fieldValuesMeaning
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
POST /team/{id} team

Change or remove a member

Send role to change it, or action remove.

Body fieldValuesMeaning
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
GET /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
DELETE /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