Durianpay enables you to create invoices for your customers to pay to. We’ll provide the UI, and the payment flow.
A customer can have multiple invoices, and they can pay partially/single invoice/multiple invoices in a single payment
Once a customer pays to his virtual account, you will be notified of the payment using a webhook. In the webhook we will tell you how much amount paid to each invoice for easier reconciliation.
Invoice Life Cycle
Status
Description
outstanding
When you create an invoice, it is in outstanding state. It stays in this state till any transaction is completed against it and the remaining amount is 0
paid
After the successful capture of the transaction when remaining amount is 0, the invoice moves to the paid state. No further transaction requests are permitted once the invoice moves to the paid state. The invoice stays in this state even if the transaction associated with the invoice is refunded
Invoice Entity
Field
Description
id
string The unique identifier of Invoice.
invoice_ref_id
string The unique identifier of Invoice from the merchant.
title
string The title of the invoice.
invoice_url
string This is the url of invoice and will be used for the customer to download the invoice.
amount
string The amount for which the Invoice was created.
remaining_amount
string The remaining amount for which the payment is due for the Invoice.
currency
string The currency associated with the Invoice's amount.
status
string The status of Invoice.
is_live
boolean Flag denoting if the Invoice has been created in sandbox or live mode. Note sandbox mode is not supported as of now.
is_parital_transaction_enabled
boolean Flag denoting if partial transactions are allowed for the Invoice or not.
partial_transaction_config
json object Key-Value pair that can be used to store configuration about partial transactions like minimum acceptable amount for a partial transaction
start_date
timestamp Indicates the date when the Invoice becomes active.
due_date
timestamp Indicates the date for when the payment is due for this Invoice.
is_blocked
boolean Flag denoting if transactions for Invoice are blocked or not.
created_at
timestamp Indicates the timestamp when this Invoice was created.
customer
object Information about the customer for whom the Invoice was created.