Refund
Execute a refund.
Authorizations
Body
Execute a refund for a consumer offer bill.
Bango-generated Request ID (UUID v4). Should be returned in the API response.This allows correalating individual requests and responses.
Date the bill was generated for.
Bill type
PRO_RATED_REFUND: the amount of the refund is lower than the amount of the original charge.FULL_REFUND: the amount of the refund equals the amount of the original charge.
PRO_RATED_REFUND, FULL_REFUND Bango-generated unique bill identifier (UUID v4).If the initial charge fails, all subsequent retries will have the same billId.
Charge amount, in minor units
Currency code (ISO 4217)
Type of resource that is being refunded.
"CONSUMER_OFFER"Consumer with billing identifier.
- ConsumerWithBillingIdentifier
- ConsumerWithPhoneNumber
Bango-generated unique identifier of the charge transaction (UUID v4) that is being refunded.
"c699aa49-35ea-4a23-9c3e-4479413db91d"
Bango-generated unique identifier of the refund transaction (UUID v4). There could be more than one partial refund per charge.
"d56442de-ca64-411f-8585-830291b3d6cf"
Refund attempt. 0 if it's the first attempt, 1 for the first retry...
0
Whether this is a retry of a charge
false
Consumer offer details
Billing details
List of line items
Line item details - pro-ration caused by an entitlement tier change.
- LineItemForCancellationProration
- LineItemForWithdrawalCancellation
- LineItemForTierChangeProration
Partner-generated identifier of the authorization for recurring charges.
Reseller generated unique identifier of the charge that is being refunded.
Response
OK
- RefundApprovedResponse
- RefundDeclinedResponse
Refund approved response.
Bango-generated Request ID (UUID v4). Should be returned in the API response.This allows correalating individual requests and responses.
Result of the operation
"APPROVED"Unique identifier of the refund operation, generated by reseller.

