Retrieve Invoices
GET/invoices
Returns a list of Invoices.
Request
Query Parameters
Possible values: <= 255 characters
Entity field used to sort the results
Possible values: [asc, desc]
Direction to use when sorting records
Possible values: >= 1
Number to indicate how many records should be returned per page
Possible values: >= 1
Page number to retrieve records
Possible values: <= 255 characters
Query to filter records. Query will search the following fields: customer_id status
Responses
- 200
- 401
- 403
- 409
- 422
- 500
Invoices retrieved
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Possible values: [success]
data
object[]
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: [draft, open, processing, paid, uncollectible, void]
total_amount
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
subtotal_amount
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Name of the customer the invoice is linked to.
Possible values: <= 255 characters
Email Address
Unix timestamp representing the date
When true the invoice can be finialized as it meets minimum required data.
If the invoice cannot be finalized, errors will be returned here.
Whether the invoice can be edited or not.
Whether the invoice can be paid or not.
Whether the invoice can be sent through email or not.
line_items
object[]
nullable
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Description of the line item
Possible values: >= 1
Quantity. The total will be calculated by multiplying the quantity and the unit_amount
unit_amount
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
total_amount
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
discounted_total
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
Unix timestamp representing the date
Possible values: [200]
Possible values: [Successful request]
pagination
object
{
"status": "success",
"data": [
{
"id": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
"status": "draft",
"total_amount": {
"value": 99,
"currency": "USD"
},
"subtotal_amount": {
"value": 99,
"currency": "USD"
},
"customer_id": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
"customer_name": "string",
"customer_email": "peter@pathly.io",
"due_date": 1656656767,
"can_finalize": true,
"finalize_errors": "string",
"can_be_edited": true,
"can_be_paid": true,
"can_be_sent": true,
"line_items": [
{
"id": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
"description": "Web design service hour",
"quantity": 5,
"unit_amount": {
"value": 99,
"currency": "USD"
},
"total_amount": {
"value": 99,
"currency": "USD"
},
"discounted_total": {
"value": 99,
"currency": "USD"
}
}
],
"created_on": 1656656767
}
],
"code": 200,
"message": "Successful request",
"pagination": {
"total_records": 0,
"page": 0,
"records_per_page": 0
}
}
Access token is missing or invalid
Access denied
Payment Method not found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [fail]
Possible values: [409]
Failure reason
{
"status": "fail",
"code": 409,
"message": "Entity with Id already exists"
}
Request failed due to invalid data provided
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [error]
Possible values: [422]
{
"status": "error",
"data": {
"dob": {
"day": "Value expected to be 'integer', 'string' given."
}
},
"code": 422,
"message": "cannot process the provided entity"
}
Server error