Get Invoice
Last updated
Last updated
GET
/payments/invoices/{invoice_reference}
Content-Type
application/json
irembopay-secretKey
secretKey
X-API-Version
2
Body
invoice_reference
String
Yes
Invoice number of the payment request or the unique transaction identifier provided by the merchant when creating the invoice.
For this endpoint, the "data" payload in the response will have the fields below:
invoiceNumber
String
Yes
Identifier of the invoice that the end-user will use to do the payment
transactionId
String
Yes
Transaction Identifier provided during the creation of the invoice.
paymentAccountIdentifier
String
Yes
Identifier of the Payment Account where the money will be deposited
paymentItems
Array
Yes
Products for which this invoice has been created
paymentStatus
String
Yes
Payment status of the invoice:
NEW
: invoice created and not paid yet.
PAID
: paid invoice.
amount
double
Yes
Amount of the invoice. Calculation method : Sum of (Product unit amount x quantity)
currency
String
Yes
Currency of the invoice which is the same as the currency of the payment account identifier. Possible values: "RWF", "EUR", "GBP", "USD".
type
String
Yes
SINGLE
or BATCH
createdAt
String
Yes
updatedAt
String
No
paidAt
String
No
expiryAt
String
No
childInvoices
Array
No
If this invoice is a batch invoice, this is an array of invoice numbers which are included in the batch.
customer
Object
No
An optional customer object who will be notified about this invoice.
description
String
No
Optional description provided at invoice creation
paymentReference
String
No
Reference provided after the payment.
paymentMethod
String
No
Possible values : MTN_MOMO
, AIRTEL_MONEY
, EQUITY
, BK
, ONLINE_CARD
language
String
No
Language provided during the creation of the invoice.
Possible values: FR
, EN
, RW
batchNumber
String
No
Batch invoice number (only for invoice with type: BATCH
)
paymentLinkUrl
String
Yes
A URL that directs the merchants' end-user to a checkout page where they can make a payment
404
INVOICE_NOT_FOUND
An invoice provided does not exist under the merchant.
In .
eg.2022-11-27T16:24:51.000+02:00
In .
eg.2022-11-27T16:24:51.000+02:00
In .
eg.2022-11-27T16:24:51.000+02:00
In .
eg.2022-11-27T16:24:51.000+02:00
This endpoint retrieves the details of a specific invoice based on the provided invoice reference.
Invoice number or unique transaction identifier provided by the merchant when creating the invoice.