getInvoiceStatus

suspend fun getInvoiceStatus(referenceId: String, apiVersion: String, productSubscriptionKey: String, environment: String): Response<ERROR CLASS: Symbol not found for ResponseBody>

Retrieves the status of a previously created Collection invoice.

Return

A Response whose body contains the invoice status details.

Parameters

referenceId

The UUID V4 reference ID used when calling createInvoice.

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).