---
agentTools:
  projectIndex: https://developers.commerce.busha.co/llms.txt
---

# List all invoices

This endpoint allows you to retrieve a list of invoices with optional sorting, pagination and limiting.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Commerce",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.commerce.busha.co"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/invoices": {
      "get": {
        "summary": "List all invoices",
        "description": "This endpoint allows you to retrieve a list of invoices with optional sorting, pagination and limiting.",
        "operationId": "list-all-invoices",
        "parameters": [
          {
            "name": "X-BC-API-KEY",
            "in": "header",
            "description": "Your business secret key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "asc or desc",
            "schema": {
              "type": "string",
              "default": "desc"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "20"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": \"success\",\n    \"message\": \"invoices were successfully retrieved\",\n    \"pagination\": {\n        \"page\": 1,\n        \"per_page\": 5,\n        \"offset\": 0,\n        \"total_entries_size\": 40,\n        \"current_entries_size\": 5,\n        \"total_pages\": 8\n    },\n    \"data\": [\n        {\n            \"id\": \"26b89ade-5635-4b10-a4d6-1e880459f8c8\",\n            \"business_id\": \"169c9ff2-4af1-4115-a7eb-363827022624\",\n            \"name\": \"The Sovereign Individual\",\n            \"description\": \"Mastering the Transition to the Information Age\",\n            \"customer_name\": \"Sarah Shaw\",\n            \"customer_email\": \"sarah.shaw@example.co\",\n            \"local_amount\": \"7009\",\n            \"local_currency\": \"NGN\",\n            \"status\": \"NEW\",\n            \"reference\": \"INV_W83JkL0oWK\",\n            \"created_at\": \"2023-02-24T14:06:53.144733+01:00\",\n            \"updated_at\": \"2023-02-24T14:06:53.144733+01:00\",\n            \"due_date\": null\n        },\n        {\n            \"id\": \"cf8e614e-5050-441a-993f-a1e1566228a3\",\n            \"business_id\": \"169c9ff2-4af1-4115-a7eb-363827022624\",\n            \"name\": \"The Sovereign Individual\",\n            \"description\": \"Mastering the Transition to the Information Age\",\n            \"customer_name\": \"Sarah Shaw\",\n            \"customer_email\": \"sarah.shaw@example.co\",\n            \"local_amount\": \"700\",\n            \"local_currency\": \"NGN\",\n            \"status\": \"NEW\",\n            \"reference\": \"INV_tp2qgo1gjd\",\n            \"created_at\": \"2023-02-24T14:06:43.278238+01:00\",\n            \"updated_at\": \"2023-02-24T14:06:43.278238+01:00\",\n            \"due_date\": null\n        },\n        {\n            \"id\": \"490f8a30-79c7-4e8e-a310-8eeb1e8f91a8\",\n            \"business_id\": \"169c9ff2-4af1-4115-a7eb-363827022624\",\n            \"name\": \"The Sovereign Individual\",\n            \"description\": \"Mastering the Transition to the Information Age\",\n            \"customer_name\": \"Sarah Shaw\",\n            \"customer_email\": \"sarah.shaw@example.co\",\n            \"local_amount\": \"200\",\n            \"local_currency\": \"NGN\",\n            \"status\": \"NEW\",\n            \"reference\": \"INV_x179YNXP3T\",\n            \"created_at\": \"2023-02-24T14:06:38.990242+01:00\",\n            \"updated_at\": \"2023-02-24T14:06:38.990243+01:00\",\n            \"due_date\": null\n        },\n        {\n            \"id\": \"93335f4a-8134-4957-b814-2fa73393a487\",\n            \"business_id\": \"169c9ff2-4af1-4115-a7eb-363827022624\",\n            \"name\": \"The Sovereign Individual\",\n            \"description\": \"Mastering the Transition to the Information Age\",\n            \"customer_name\": \"Sarah Shaw\",\n            \"customer_email\": \"sarah.shaw@example.co\",\n            \"local_amount\": \"100\",\n            \"local_currency\": \"NGN\",\n            \"status\": \"NEW\",\n            \"reference\": \"INV_R2b0O80BBL\",\n            \"created_at\": \"2023-02-24T14:06:35.535884+01:00\",\n            \"updated_at\": \"2023-02-24T14:06:35.535884+01:00\",\n            \"due_date\": \"2023-03-24T14:06:35.535884+01:00\"\n        },\n        {\n            \"id\": \"8f0c42c1-2620-4f7c-b382-e8968ca60d81\",\n            \"business_id\": \"169c9ff2-4af1-4115-a7eb-363827022624\",\n            \"name\": \"The Sovereign Individual\",\n            \"description\": \"Mastering the Transition to the Information Age\",\n            \"customer_name\": \"Sarah Shaw\",\n            \"customer_email\": \"sarah.shaw@example.co\",\n            \"local_amount\": \"100\",\n            \"local_currency\": \"NGN\",\n            \"status\": \"NEW\",\n            \"reference\": \"INV_v2NQjWflPO\",\n            \"created_at\": \"2023-02-24T14:06:34.983887+01:00\",\n            \"updated_at\": \"2023-02-24T14:06:34.983888+01:00\",\n            \"due_date\": \"2023-03-24T14:06:35.535884+01:00\"\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "message": {
                      "type": "string",
                      "example": "invoices were successfully retrieved"
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "per_page": {
                          "type": "integer",
                          "example": 5,
                          "default": 0
                        },
                        "offset": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "total_entries_size": {
                          "type": "integer",
                          "example": 40,
                          "default": 0
                        },
                        "current_entries_size": {
                          "type": "integer",
                          "example": 5,
                          "default": 0
                        },
                        "total_pages": {
                          "type": "integer",
                          "example": 8,
                          "default": 0
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "26b89ade-5635-4b10-a4d6-1e880459f8c8"
                          },
                          "business_id": {
                            "type": "string",
                            "example": "169c9ff2-4af1-4115-a7eb-363827022624"
                          },
                          "name": {
                            "type": "string",
                            "example": "The Sovereign Individual"
                          },
                          "description": {
                            "type": "string",
                            "example": "Mastering the Transition to the Information Age"
                          },
                          "customer_name": {
                            "type": "string",
                            "example": "Sarah Shaw"
                          },
                          "customer_email": {
                            "type": "string",
                            "example": "sarah.shaw@example.co"
                          },
                          "local_amount": {
                            "type": "string",
                            "example": "7009"
                          },
                          "local_currency": {
                            "type": "string",
                            "example": "NGN"
                          },
                          "status": {
                            "type": "string",
                            "example": "NEW"
                          },
                          "reference": {
                            "type": "string",
                            "example": "INV_W83JkL0oWK"
                          },
                          "created_at": {
                            "type": "string",
                            "example": "2023-02-24T14:06:53.144733+01:00"
                          },
                          "updated_at": {
                            "type": "string",
                            "example": "2023-02-24T14:06:53.144733+01:00"
                          },
                          "due_date": {}
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": {\n    \"name\": \"unauthorized\",\n    \"message\": \"Invalid Authentication\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "unauthorized"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid Authentication"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "63f94c2f2017a0005783edff:63fc6df97fe6ce001f3058e3"
}
```