# Get Invoice - customerEmail

## /customer/customerEmail

<mark style="color:blue;">`GET`</mark> `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<mark style="color:red;">\*</mark> | String | customer email      |
| publicKey                                       | String | merchant public key |

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer token |

{% tabs %}
{% tab title="200: OK successful" %}

```javascript
{
    "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"
}
```

{% endtab %}
{% endtabs %}

## /customer/customerEmail

<mark style="color:blue;">`GET`</mark> `https://seerbitapi.com/invoice/{{publicKey}}/customer/{{customerEmail}}`

#### Path Parameters

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| customerEmail<mark style="color:red;">\*</mark> | String | 8xMKC83iKpLI |

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | String | yJunjDFJ1GIr |

{% tabs %}
{% tab title="200: OK successful" %}

{% endtab %}
{% endtabs %}
