For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
  • API Reference
      • GETGet Current Subscription
      • POSTSubscribe
      • POSTCancel Subscription
      • POSTChange Plan
      • POSTCancel Scheduled Change
      • GETList Payment Methods
      • POSTAdd Payment Method
      • DELDelete Payment Method
      • PUTSet Default Payment Method
      • GETGet My Credits
      • GETGet My Plan Limits
      • GETList Invoices
      • GETGet Current Notification Preferences
      • PATCHUpdate Current Notification Preferences
      • GETList My Templates
  • Python SDK
    • Install
    • Usage
    • Errors
  • CLI
    • Overview
LogoLogo
API Referenceusers

List Invoices

GET
/api/v1/users/me/invoices
GET
/api/v1/users/me/invoices
$curl https://api.onepin.ai/api/v1/users/me/invoices \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "data": {
3 "invoices": [
4 {
5 "id": "inv_01F8XYZ1234567890",
6 "number": "INV-2024-0001",
7 "status": "paid",
8 "amount_due": 5000,
9 "amount_paid": 5000,
10 "currency": "USD",
11 "period_start": "2024-04-01T00:00:00Z",
12 "period_end": "2024-04-30T23:59:59Z",
13 "created": "2024-05-01T10:15:30Z",
14 "hosted_invoice_url": "https://billing.onepin.ai/invoices/inv_01F8XYZ1234567890",
15 "invoice_pdf": "https://billing.onepin.ai/invoices/inv_01F8XYZ1234567890.pdf"
16 }
17 ],
18 "has_more": false
19 },
20 "meta": {
21 "request_id": "req_5a7b9c3d2e4f678901234567",
22 "timestamp": "2024-01-15T09:30:00Z"
23 }
24}
List invoices for the current user.
Was this page helpful?
Previous

Get Current Notification Preferences

Next
Built with

Authentication

AuthorizationBearer
Clerk JWT token

Query parameters

limitintegerOptional1-100Defaults to 10
starting_afterstring or nullOptional

Response

Successful Response
dataobject
metaobject

Errors

422
Unprocessable Entity Error