Invoice Operations
Invoice Lifecycle
The following flow illustrates the typical invoice management lifecycle.1. Get Invoice
Use the Get Invoice API to retrieve the details of a specific invoice. This can be used when the merchant needs to:- Retrieve invoice details.
- Check the invoice status.
- View invoice amount and currency.
- Retrieve customer and billing information.
- Check payment or transaction details associated with the invoice.
2. Get All Invoice
Use the Get All Invoice API to retrieve invoices associated with the merchant. This can be used when the merchant needs to:- Display invoices in an internal dashboard.
- Retrieve multiple invoices.
- Track invoice statuses.
- Search or manage invoice records.
3. Update Draft Invoice
Use the Update Draft Invoice API to modify an invoice while it is in theDRAFT state.
A merchant can use this API when invoice details need to be updated before the invoice is approved.
Typical Use Cases
- Update the invoice amount based on actual usage.
- Add or modify billing information.
- Update invoice items.
- Apply the final billing amount before approval.
Draft invoice details should be updated before the invoice is approved. Once the invoice has progressed beyond the draft stage, the applicable invoice update rules apply.
4. Approve Draft Invoice
Use the Approve Draft Invoice API to approve a draft invoice after the merchant has completed the required updates. Once approved, the invoice can proceed to the applicable payment collection process.Example Scenario
For a postpaid subscription, the merchant may receive the customer’s usage information after the billing period. For example:
The merchant can update the draft invoice with the final amount and then approve it for collection.
5. Refund Invoice
Use the Refund Invoice API when the merchant needs to refund a payment associated with an invoice.Typical Use Cases
- Customer requests a refund.
- Order or service is cancelled.
- Duplicate payment.
- Incorrect amount charged.
- Merchant decides to provide a full or applicable partial refund.
Refund Flow
The refund amount and applicable refund rules should follow the parameters and business rules defined for the Refund Invoice API.
When to Initiate a Refund
A refund can be initiated when a payment has been successfully collected but the corresponding service has not been delivered to the customer. Refunds are currently supported at the invoice level.Partial refunds are not supported for now.
- A refund can only be created for a successfull transaction.
- Refund for Transaction status as Failed, howevere amount has been debited
- Customer makes the payment.
- Payment is initiated successfully and amount is debited.
- The session remains in the
OPENstate, however the trasnaction status shows as failed due to an issue with the acquirer or PSP end. - The payment is automatically refunded to the customer.
- The refund is credited to the customer’s account within the applicable banking timeframe, generally up to 5-7 business days.
Ways to Initiate Refund
A merchant can initiate a refund using either of the following methods:- Admin Panel: The merchant can initiate the refund from the Transact Bridge Admin Panel.
- API: The merchant can initiate the refund programmatically using the Refund API.
- Back to source
- Account Transfer (where merchant needs to provide the customer account number for refund)
If credit adjustments have been made then there will be no refund avialable for that invoice.
6. Email Invoice
Use the Email Invoice API to send an invoice to the customer through email. This can be used when the merchant wants to:- Send an invoice to the customer’s registered email address.
- Resend an invoice.
- Provide the customer with invoice details after payment.
- Share an invoice for record-keeping purposes.