getRefundStatus

@GET(value = "/disbursement/{apiVersion}/refund/{referenceId}")
abstract suspend fun getRefundStatus(@Path(value = "referenceId") referenceId: String, @Path(value = "apiVersion") apiVersion: String, @Header(value = "Ocp-Apim-Subscription-Key") productSubscriptionKey: String, @Header(value = "X-Target-Environment") environment: String): Response<ERROR CLASS: Symbol not found for ResponseBody>

Retrieves the status of a previously initiated refund request.

Return

A Response whose body contains the refund status as a ResponseBody.

Parameters

referenceId

The UUID V4 reference ID used when calling refund.

apiVersion

The API version to target (e.g., v1_0 or v2_0).

productSubscriptionKey

The Ocp-Apim-Subscription-Key for the Disbursements product.

environment

The target environment (e.g., sandbox or production).