Invoices
Get a paginated list of invoices with optional filtering
Number of items to return
Specifies the cursor after which to start returning results. For the first page, this should be left empty. For subsequent pages, use the value of the end_cursor field from the previous response.
Specifies the cursor before which to return results. Use this to paginate backwards. For example, to load the previous page, provide the value of the start_cursor field from the last response.
Filter by creation date start (RFC3339 format)
Filter by creation date end (RFC3339 format)
Filter by due date start (RFC3339 format)
Filter by due date end (RFC3339 format)
Filter by customer ID
Filter by invoice status
OK
Bad Request
GET /invoices HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"created_at": "text",
"currency": "text",
"customer_id": "text",
"due_date": "text",
"id": "text",
"line_items": [
{
"amount": 1,
"description": "text",
"quantity": 1
}
],
"status": "text",
"sub_total": 1,
"total": 1
}
],
"end_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH"
}
Create a new invoice with line items
@enum USD
USD
Possible values: 2025-01-01
Created
Bad Request
Unprocessable Entity
POST /invoices HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 125
{
"currency": "USD",
"customer_id": "text",
"due_date": "2025-01-01",
"line_items": [
{
"amount": 1,
"description": "text",
"quantity": 1
}
]
}
{
"created_at": "text",
"currency": "text",
"customer_id": "text",
"due_date": "text",
"id": "text",
"line_items": [
{
"amount": 1,
"description": "text",
"quantity": 1
}
],
"status": "text",
"sub_total": 1,
"total": 1
}
Get invoice details by ID
Invoice ID
OK
Not Found
GET /invoices/{id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"created_at": "text",
"currency": "text",
"customer_id": "text",
"due_date": "text",
"id": "text",
"line_items": [
{
"amount": 1,
"description": "text",
"quantity": 1
}
],
"status": "text",
"sub_total": 1,
"total": 1
}
Archive an invoice
Invoice ID
OK
Bad Request
Not Found
Internal Server Error
DELETE /invoices/{id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"created_at": "text",
"currency": "text",
"customer_id": "text",
"due_date": "text",
"id": "text",
"line_items": [
{
"amount": 1,
"description": "text",
"quantity": 1
}
],
"status": "text",
"sub_total": 1,
"total": 1
}
Get a payment link for the specified invoice
Invoice ID
OK
Bad Request
Not Found
GET /invoices/{id}/payment-link HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"url": "text"
}
Get a signed PDF URL for the specified invoice
Invoice ID
OK
Bad Request
Not Found
GET /invoices/{id}/pdf-link HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"url": "text"
}
Was this helpful?