Перейти до вмісту
NimbusNexus

Білінг

Білінг ведеться окремо для кожного робочого простору. Ці ендпоінти показують фінансовий стан робочого простору й зберігають його платіжні дані:

  • GET /api/v1/billing/public/balances — неоплачені нарахування за постоплатою, доступний промокредит і баланс передоплати, усе в одному зрізі.
  • GET /api/v1/billing/public/accrued_charges — загальна сума нарахувань на цей момент, яку ще не сплачено.
  • GET /api/v1/billing/public/cash_balance — баланс передоплати й час його останньої зміни.
  • GET /api/v1/billing/public/promotion_grants — активний промокредит: скільки лишилося від кожного гранту і коли він спливає.
  • GET і PATCH /api/v1/billing/public/billing_info — платіжна адреса, назва компанії та адреси електронної пошти, на які надходять виписки й квитанції.

Самі рахунки через API недоступні.

Ці виклики потребують сесії, у яку ви ввійшли, переданої як Authorization: Bearer або як cookie сесії. API-ключем їх викликати не можна.

Що далі

Reference

GET/api/v1/billing/public/accrued_charges

Accrued Charges

Returns the total charges accrued by the current customer that have not yet been settled.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/billing/public/accrued_charges" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/billing/public/balances

Get Balances

Returns the customer's outstanding postpaid charges, available promotional credit, and prepaid cash balance in a single snapshot.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/billing/public/balances" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/billing/public/billing_info

Get Billing Info

Retrieves the billing address and notification email addresses for the current customer.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/billing/public/billing_info" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PATCH/api/v1/billing/public/billing_info

Update Billing Info

Updates the billing address, company name, and notification email addresses for the current customer.

Request body

FieldTypeDescription
companystring | null—
addressAddressModel | null—
statement_emailstring | null—
receipt_emailstring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/billing/public/billing_info" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
GET/api/v1/billing/public/cash_balance

Get Cash Balance

Returns the current prepaid cash balance for the customer along with the timestamp it was last updated.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/billing/public/cash_balance" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/billing/public/promotion_grants

List Promotion Grants

Lists the customer's active promotional credit grants with their remaining amounts and expiration dates.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/billing/public/promotion_grants" \
  -H "Authorization: Bearer $NIMBUS_KEY"

Need to make a real call? Try these endpoints in the live Swagger UI →