Invoices
Get a paginated list of invoices with optional filtering
Provide your access token returned from /oauth/token prefixed with Bearer. Example: Authorization: Bearer YOUR_TOKEN
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
Provide your access token returned from /oauth/token prefixed with Bearer. Example: Authorization: Bearer YOUR_TOKEN
@enum USD
USDPossible values: 2025-01-01Created
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
Provide your access token returned from /oauth/token prefixed with Bearer. Example: Authorization: Bearer YOUR_TOKEN
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
Provide your access token returned from /oauth/token prefixed with Bearer. Example: Authorization: Bearer YOUR_TOKEN
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
Provide your access token returned from /oauth/token prefixed with Bearer. Example: Authorization: Bearer YOUR_TOKEN
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
Provide your access token returned from /oauth/token prefixed with Bearer. Example: Authorization: Bearer YOUR_TOKEN
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"
}Last updated
Was this helpful?
