Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

To view the details of an invoice you simply need to send a request to the endpoint below

Endpoint

GET: https://sandbox.monnify.com/api/v1/invoice/{{invoiceReference}}/details

This endpoint is protected with Basic Authentication

Once you send the request, Monnify will return all the details attached to the invoice. Here's a sample response

Get Invoice Details Response
{
    "requestSuccessful": true,
    "responseMessage": "success",
    "responseCode": "0",
    "responseBody": {
        "amount": 999.00,
        "invoiceReference": "1566947845773",
        "invoiceStatus": "PENDING",
        "description": "test invoice",
        "contractCode": "4876165459",
        "customerEmail": "johnsnow@gmail.com",
        "customerName": "John Snow",
        "expiryDate": "2019-10-28 12:18:00",
        "createdBy": "MK_TEST_VR7J3UAACH",
        "createdOn": "2019-08-27 23:17:29",
        "checkoutUrl": "https://sandbox.sdk.monnify.com/checkout/MNFY|20190827231728|000341",
        "accountNumber": "1458456122",
        "accountName": "1566947845773",
        "bankName": "Providus Bank",
        "bankCode": "101"
    }
}


Field Reference

(M) indicates fields that are mandatory in the request body

FieldDescription
amount (M)The amount to be paid by the customer
invoiceStatusStatus of the invoice. Can be either "PAID", "PENDING" or "EXPIRED"
currencyCode (M)The currency of the transaction being initialized. "NGN"
invoiceReference (M)Merchant's Unique reference for the invoice.
customerName (M)Full name of the customer
customerEmail (M)Email address of the customer
apiKey (M)Merchant's API Key (Can be found on the Monnify dashboard)
contractCode (M)Merchant's contract code (Can be found on the Monnify dashboard)
description (M)Description for the transaction. Will be used as the account name for bank transfer paymentsd
expiryDate (M)Expiry date for the invoice. After this date, the customer will no longer be able to pay for that invoice. Format is YYYY-MM-DD HH:MM:SS
checkoutUrl A URL which can be used to display the Monnify payment interface where the customer can then pay for the invoice via bank transfer or card. This is especially useful for card transactions as the account number can and SHOULD be displayed on the invoice directly.
accountNumberThe virtual account number generated for the invoice. This is the account number the customer can transfer to, to pay this invoice
accountNameThe name that will be displayed to the customer when he performs name enquiry on the virtual account. Please note there may be Prefixes
bankNameThe name of the bank where the virtual account number was generated. The customer will be expected to select this bank when doing the bank transfer
bankCodeThe bank code of the bank where the virtual account number was generated



  • No labels