API by router
Finance
Internal List Invoices
Path Parameters
instance_idInstance Id
Format
uuidQuery Parameters
customer_idCustomer Id
Format
uuidstatus?Status
limit?Limit
Default
50Range
1 <= value <= 200offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/invoices?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=string&limit=50&offset=0"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal Create Invoice
Path Parameters
instance_idInstance Id
Format
uuidclient_email?Client Email
client_name?Client Name
customer_idCustomer Id
Format
uuiddescription?Description
due_date?Due Date
invoice_number?Invoice Number
line_items?Line Items
notes?Notes
Response Body
curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/invoices" \ -H "Content-Type: application/json" \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal Get Invoice
Path Parameters
instance_idInstance Id
Format
uuidinvoice_idInvoice Id
Format
uuidResponse Body
curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal Update Invoice
Path Parameters
instance_idInstance Id
Format
uuidinvoice_idInvoice Id
Format
uuidclient_email?Client Email
client_name?Client Name
description?Description
due_date?Due Date
notes?Notes
status?Status
One of: ('draft', 'sent', 'paid', 'overdue', 'void')
xero_invoice_id?Xero Invoice Id
Response Body
curl -X PATCH "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal List Quotes
Path Parameters
instance_idInstance Id
Format
uuidQuery Parameters
customer_idCustomer Id
Format
uuidstatus?Status
limit?Limit
Default
50Range
1 <= value <= 200offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/quotes?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=string&limit=50&offset=0"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal Create Quote
Path Parameters
instance_idInstance Id
Format
uuidclient_email?Client Email
client_name?Client Name
customer_idCustomer Id
Format
uuiddescription?Description
expires_at?Expires At
job_id?Job Id
line_items?Line Items
margin_pct?Margin Pct
notes?Notes
quote_number?Quote Number
Response Body
curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/quotes" \ -H "Content-Type: application/json" \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal Get Quote
Path Parameters
instance_idInstance Id
Format
uuidquote_idQuote Id
Format
uuidResponse Body
curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/quotes/497f6eca-6276-4993-bfeb-53cbbbba6f08"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal Update Quote
Path Parameters
instance_idInstance Id
Format
uuidquote_idQuote Id
Format
uuidclient_email?Client Email
client_name?Client Name
description?Description
expires_at?Expires At
margin_pct?Margin Pct
notes?Notes
status?Status
One of: ('draft', 'sent', 'accepted', 'declined', 'expired')
Response Body
curl -X PATCH "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/quotes/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal List Timesheets
Path Parameters
instance_idInstance Id
Format
uuidQuery Parameters
customer_idCustomer Id
Format
uuidperson_id?Person Id
approval_status?Approval Status
date_from?Date From
date_to?Date To
limit?Limit
Default
50Range
1 <= value <= 200offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/timesheets?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&person_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&approval_status=string&date_from=2019-08-24&date_to=2019-08-24&limit=50&offset=0"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal Create Timesheet
Path Parameters
instance_idInstance Id
Format
uuidcustomer_idCustomer Id
Format
uuiddateDate
Format
datedescription?Description
hoursHours
Range
0 < valuejob_id?Job Id
person_id?Person Id
rate?Rate
shift_id?Shift Id
Response Body
curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/timesheets" \ -H "Content-Type: application/json" \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "date": "2019-08-24", "hours": 0 }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Internal Approve Timesheet
Path Parameters
instance_idInstance Id
Format
uuidentry_idEntry Id
Format
uuidapproval_statusApproval Status
One of: ('pending', 'approved', 'rejected')
approved_by?Approved By
Response Body
curl -X PATCH "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/timesheets/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve" \ -H "Content-Type: application/json" \ -d '{ "approval_status": "string" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Tenant List Invoices
AuthorizationBearer <token>
In: header
Query Parameters
customer_id?Customer Id
status?Status
limit?Limit
Default
50Range
1 <= value <= 200offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/v1/invoices?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=string&limit=50&offset=0"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Tenant List Quotes
AuthorizationBearer <token>
In: header
Query Parameters
customer_id?Customer Id
status?Status
limit?Limit
Default
50Range
1 <= value <= 200offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/v1/quotes?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=string&limit=50&offset=0"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Tenant List Timesheets
AuthorizationBearer <token>
In: header
Query Parameters
customer_id?Customer Id
approval_status?Approval Status
limit?Limit
Default
50Range
1 <= value <= 200offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/v1/timesheets?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&approval_status=string&limit=50&offset=0"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}