curl --location 'https://api-sandbox.saaslogic.io/v1/invoices//refunds/calculate' \
--header 'Authorization: Bearer ' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"effectiveDate": "2025-11-27T00:00:00"
}'{
"invoiceId": "ac6dc6f7-b604-4528-86b7-678b451671a5",
"effectiveDate": "2025-11-26T05:00:00",
"currencyIsoCode": "INR",
"invoiceTotalAmount": 10.0000,
"maxRefundAmount": 10.00,
"isEligibleForRefund": true,
"refundBreakdown": [
{
"type": "MANUAL",
"maximumRefundAmount": 10.00,
"requiresMerchantAction": true
}
],
"proratedRefund": {
"refundAmount": 0.65,
"billingCycleStartDate": "2025-10-28T04:00:00",
"billingCycleEndDate": "2025-11-28T05:00:00"
}
}