Get Invoices
Changed onRetrieves the invoices.
Request
- Base URLhttps://api.sellauth.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"page": 1
}Response
Example response
{
"current_page": 1,
"data": [
{
"id": 4,
"status": "completed",
"price": "14.99",
"currency": "USD",
"paid": "0.00",
"paid_usd": "0.00",
"gateway": null,
"payment_method_id": null,
"email": "customer@sellauth.test",
"salt": "caedc9891db67",
"manual": false,
"created_at": "2026-11-01T20:00:51.000000Z",
"completed_at": "2026-11-01T20:00:51.000000Z",
"archived_at": null,
"shop_customer_id": 1,
"tax_rate": "0.00",
"ip": "127.0.0.1",
"country_code": null,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
"asn": null,
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"utm_term": null,
"utm_content": null,
"referrer_host": null,
"has_open_dispute": false,
"has_open_late_payment": false,
"unique_id": "caedc9891db67-0000000000004",
"product": null,
"variant": null,
"items": [
{
"id": 3,
"invoice_id": 4,
"product_id": 1,
"variant_id": 1,
"custom_name": null,
"quantity": 1,
"product": {
"id": 1,
"name": "License Keys",
"images": [
{
"id": 1,
"cloudflare_image_id": null,
"url": "http://static.mysellauth.test/storage/images/1.webp",
"pivot": {
"product_id": 1,
"image_id": 1,
"order": 0
}
}
]
},
"variant": {
"id": 1,
"name": "Standard"
}
}
],
"payment_method": null
},
{
"id": 2,
"status": "completed",
"price": "14.99",
"currency": "USD",
"paid": "0.00",
"paid_usd": "0.00",
"gateway": null,
"payment_method_id": null,
"email": "reseller@sellauth.test",
"salt": "7a40790c24db2",
"manual": false,
"created_at": "2026-11-01T20:00:51.000000Z",
"completed_at": "2026-11-01T20:00:51.000000Z",
"archived_at": null,
"shop_customer_id": 3,
"tax_rate": "0.00",
"ip": "127.0.0.1",
"country_code": null,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
"asn": null,
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"utm_term": null,
"utm_content": null,
"referrer_host": null,
"has_open_dispute": false,
"has_open_late_payment": false,
"unique_id": "7a40790c24db2-0000000000002",
"product": null,
"variant": null,
"items": [
{
"id": 2,
"invoice_id": 2,
"product_id": 1,
"variant_id": 1,
"custom_name": null,
"quantity": 1,
"product": {
"id": 1,
"name": "License Keys",
"images": [
{
"id": 1,
"cloudflare_image_id": null,
"url": "http://static.mysellauth.test/storage/images/1.webp",
"pivot": {
"product_id": 1,
"image_id": 1,
"order": 0
}
}
]
},
"variant": {
"id": 1,
"name": "Standard"
}
}
],
"payment_method": null
},
{
"id": 1,
"status": "completed",
"price": "14.99",
"currency": "USD",
"paid": "14.99",
"paid_usd": "14.99",
"gateway": "STRIPE",
"payment_method_id": 1,
"email": "customer@sellauth.test",
"salt": "667e99ffee7e5",
"manual": false,
"created_at": "2026-11-01T20:00:51.000000Z",
"completed_at": "2026-11-01T20:00:51.000000Z",
"archived_at": null,
"shop_customer_id": 1,
"tax_rate": "0.00",
"ip": "127.0.0.1",
"country_code": null,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
"asn": null,
"utm_source": "newsletter",
"utm_medium": "email",
"utm_campaign": "spring_sale",
"utm_term": null,
"utm_content": null,
"referrer_host": "example.com",
"has_open_dispute": true,
"has_open_late_payment": false,
"unique_id": "667e99ffee7e5-0000000000001",
"product": null,
"variant": null,
"items": [
{
"id": 1,
"invoice_id": 1,
"product_id": 1,
"variant_id": 1,
"custom_name": null,
"quantity": 1,
"product": {
"id": 1,
"name": "License Keys",
"images": [
{
"id": 1,
"cloudflare_image_id": null,
"url": "http://static.mysellauth.test/storage/images/1.webp",
"pivot": {
"product_id": 1,
"image_id": 1,
"order": 0
}
}
]
},
"variant": {
"id": 1,
"name": "Standard"
}
}
],
"payment_method": {
"id": 1,
"name": "Stripe",
"icon_image_id": null,
"icon_image_url": null,
"icon_image": null
}
}
],
"first_page_url": "http://api.sellauth.test/v1/shops/1/invoices?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://api.sellauth.test/v1/shops/1/invoices?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "http://api.sellauth.test/v1/shops/1/invoices?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"next_page_url": null,
"path": "http://api.sellauth.test/v1/shops/1/invoices",
"per_page": 20,
"prev_page_url": null,
"to": 3,
"total": 3
}Changes
- breaking
request property
/was restricted to a list of enum values - breaking
request property
/was restricted to a list of enum values - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
////became nullable for the status - breaking
the response property
///////became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
added the new
cancelledenum value to the request property/ - info
added the new
charged_backenum value to the request property/ - info
added the new
completedenum value to the request property/ - info
added the new
confirmingenum value to the request property/ - info
added the new
deliveredenum value to the request property/ - info
added the new
expiredenum value to the request property/ - info
added the new
failedenum value to the request property/ - info
added the new
partially_completedenum value to the request property/ - info
added the new
pendingenum value to the request property/ - info
added the new
processingenum value to the request property/ - info
added the new
refundedenum value to the request property/ - info
added the new
shippedenum value to the request property/ - info
added the new
unfulfilledenum value to the request property/ - info
added the optional property
//to the response with the status
- breaking
- info
added the new optional request property
- info
added the optional property
//to the response with the status
- info