API
  • Introduction
  • Authentication
  • Error Handling
  • API ENDPOINTS
    • Payment
    • Invoices
      • Create Invoice
      • Re-send Invoice
      • Get Invoice - customerEmail
      • Get Invoice - invoiceNo
      • Get Invoice - orderNo
    • Payment Link
      • Create Link
      • Get Link
      • Update Link
      • Delete Link
    • Charge Token
      • Create Token
      • Get Token
      • Charge Token
      • Bulk Charge
      • Query Bulk Charge with BacthId
    • Subscriptions
      • Create Subscription
      • Charge Subscription
      • Get Customer Subscription
      • Update Customer Subscription
      • Get Merchant Subscription
    • Virtual Account
      • Create Virtual Account
      • Get Virtual Account
      • Delete Virtual Account
      • Get Payment
    • Pay with Transfer
    • Pay with USSD
    • Mobile Money Payments
    • Bank Account Payments
    • Card Payment
      • Initializing a Card Payment
      • Scenario 1 (Verve Card Type)
      • Scenario 2 (Master Card and Visa Card Type)
      • Scenario 3
Powered by GitBook
On this page
  • /customer/customerEmail
  • /customer/customerEmail
  1. API ENDPOINTS
  2. Invoices

Get Invoice - customerEmail

Fetch Invoice using customer's email

/customer/customerEmail

GET https://seerbitapi.com/invoice/{{publicKey}}/customer/{{customerEmail}}

This endpoint allows you to fetch a list of invoice available to a customer

Path Parameters

Name
Type
Description

customerEmail*

String

customer email

publicKey

String

merchant public key

Headers

Name
Type
Description

Authorization*

String

Bearer token

{
    "payload": [
        {
            "invoiceId": 66,
            "invoiceNo": "SBT-INV-000066",
            "totalAmount": 529.75,
            "subTotal": 500.00,
            "tax": 29.75,
            "dueDate": "2022-10-22",
            "currency": "NGN",
            "invoiceItems": [
                {
                    "itemName": "Bag",
                    "unitPrice": 100,
                    "vat": 5.95,
                    "amount": 100,
                    "quantity": 4
                },
                {
                    "itemName": "Bag",
                    "unitPrice": 400,
                    "vat": 23.80,
                    "amount": 400,
                    "quantity": 4
                }
            ],
            "customer": {
                "externalIdentify": "289276",
                "businessName": "Jane Smith Ent",
                "customerName": "Jane Smith",
                "customerEmail": "js@emaildomian.com",
                "businessId": "00000051",
                "id": 19
            },
            "billingCycle": false,
            "payButtonOnInvoices": false,
            "enableAdvancedOptions": false,
            "partialPayment": false,
            "status": "DRAFT",
            "createdAt": "2022-10-18T17:23:13.259"
        },
        {
            "invoiceId": 67,
            "invoiceNo": "SBT-INV-000067",
            "totalAmount": 529.75,
            "subTotal": 500.00,
            "tax": 29.75,
            "dueDate": "2022-10-23",
            "currency": "NGN",
            "invoiceItems": [
                {
                    "itemName": "Bag",
                    "unitPrice": 100.00,
                    "vat": 5.95,
                    "amount": 100.00,
                    "quantity": 4
                },
                {
                    "itemName": "Bag",
                    "unitPrice": 400.00,
                    "vat": 23.80,
                    "amount": 400.00,
                    "quantity": 4
                }
            ],
            
    "code": "00"
}

/customer/customerEmail

GET https://seerbitapi.com/invoice/{{publicKey}}/customer/{{customerEmail}}

Path Parameters

Name
Type
Description

customerEmail*

String

8xMKC83iKpLI

Headers

Name
Type
Description

Authorization*

String

yJunjDFJ1GIr

PreviousRe-send InvoiceNextGet Invoice - invoiceNo

Last updated 10 months ago