Zum Inhalt springen
NimbusNexus

Abrechnung

Abgerechnet wird pro Workspace. Diese Endpoints lesen, wie das Konto des Workspaces steht, und pflegen seine Rechnungsdaten:

  • GET /api/v1/billing/public/balances — ausstehende Postpaid-Kosten, verfügbares Aktionsguthaben und das Prepaid-Guthaben, in einer Momentaufnahme.
  • GET /api/v1/billing/public/accrued_charges — die Summe der bisher angefallenen Kosten, die noch nicht beglichen sind.
  • GET /api/v1/billing/public/cash_balance — das Prepaid-Guthaben, mit dem Zeitpunkt seiner letzten Änderung.
  • GET /api/v1/billing/public/promotion_grants — aktives Aktionsguthaben, mit dem Restbetrag jeder Gutschrift und ihrem Ablaufdatum.
  • GET und PATCH /api/v1/billing/public/billing_info — die Rechnungsadresse, der Firmenname und die E-Mail-Adressen, die Kontoauszüge und Zahlungsbelege erhalten.

Die Rechnungen selbst sind über die API nicht verfügbar.

Diese Aufrufe brauchen eine angemeldete Sitzung, gesendet als Authorization: Bearer oder als Sitzungs-Cookie. Ein API-Key kann sie nicht ausführen.

Nächste Schritte

  • Zahlungsmethoden — die Karten, mit denen das Prepaid-Guthaben aufgeladen wird.
  • Preisdaten — die Preise pro Ressource hinter den Kosten.

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 →