Skip to main content

Method

GET /v1/billing/invoices/provider

Query Parameters

string
required
Invoice series (e.g. INV).
string
required
Invoice number inside the series.
uuid
Workspace ID (optional if derived from API key).
uuid
Booking ID used to infer the provider when multiple are configured.
string
Provider hint (defaults to smartbill).

Headers

string
Bearer token with billing:read scope.

Request Example

Response

  • 200 OK – Binary PDF stream with content-type: application/pdf and content-disposition: inline; filename=....
  • 400 Bad Request – Missing required parameters (series, number, or workspace context).
  • 404 Not Found – Workspace or provider configuration not found.
  • 500 Internal Server Error – KMS not configured or provider failure.
This endpoint decrypts provider credentials using Google Cloud KMS. Ensure the environment is configured with GCP_KMS_INTEGRATIONS_KEY_NAME + access token, a service account key, or the fallback integrations KMS before calling it.