createInvoice
suspend fun createInvoice(invoice: Invoice, apiVersion: String, productSubscriptionKey: String, environment: String, uuid: String): Response<Unit>
Creates a Collection invoice.
Return
A Response with an empty body; HTTP 202 indicates the invoice was accepted.
Parameters
invoice
The invoice payload containing amount, currency, and optional payer details.
apiVersion
The version of the API to use.
productSubscriptionKey
The subscription key for the Collection product.
environment
The API environment (e.g., sandbox or production).
uuid
A UUID V4 used as the X-Reference-Id; poll getInvoiceStatus with the same ID.