API by router
Finance
GET
instance_id*Instance IdFormat
uuidcustomer_id*Customer IdFormat
uuidstatus?string|nulllimit?LimitRange
1 <= value <= 200Default
50offset?OffsetRange
0 <= valueDefault
0Successful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/invoices?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
nullPOST
instance_id*Instance IdFormat
uuidapplication/json- body
client_email?|nullclient_name?|nullcustomer_id*Customer IdFormat
uuiddescription?string|nulldue_date?|nullinvoice_number?|nullline_items?array<>|nullnotes?string|nullSuccessful Response
response?unknownapplication/jsoncurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/invoices' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e"}'Example Response
nullGET
instance_id*Instance IdFormat
uuidinvoice_id*Invoice IdFormat
uuidSuccessful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
nullPATCH
instance_id*Instance IdFormat
uuidinvoice_id*Invoice IdFormat
uuidapplication/json- body
client_email?|nullclient_name?|nulldescription?string|nulldue_date?|nullnotes?string|nullstatus?|One of: ('draft', 'sent', 'paid', 'overdue', 'void')
xero_invoice_id?|nullSuccessful Response
response?unknownapplication/jsoncurl -X PATCH 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
nullGET
instance_id*Instance IdFormat
uuidcustomer_id*Customer IdFormat
uuidstatus?string|nulllimit?LimitRange
1 <= value <= 200Default
50offset?OffsetRange
0 <= valueDefault
0Successful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/quotes?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
nullPOST
instance_id*Instance IdFormat
uuidapplication/json- body
client_email?|nullclient_name?|nullcustomer_id*Customer IdFormat
uuiddescription?string|nullexpires_at?|nulljob_id?|nullline_items?array<>|nullmargin_pct?number|nullnotes?string|nullquote_number?|nullSuccessful Response
response?unknownapplication/jsoncurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/quotes' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e"}'Example Response
nullGET
instance_id*Instance IdFormat
uuidquote_id*Quote IdFormat
uuidSuccessful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/quotes/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
nullPATCH
instance_id*Instance IdFormat
uuidquote_id*Quote IdFormat
uuidapplication/json- body
client_email?|nullclient_name?|nulldescription?string|nullexpires_at?|nullmargin_pct?number|nullnotes?string|nullstatus?|One of: ('draft', 'sent', 'accepted', 'declined', 'expired')
Successful Response
response?unknownapplication/jsoncurl -X PATCH 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/quotes/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
nullGET
instance_id*Instance IdFormat
uuidcustomer_id*Customer IdFormat
uuidperson_id?|nullapproval_status?string|nulldate_from?|nulldate_to?|nulllimit?LimitRange
1 <= value <= 200Default
50offset?OffsetRange
0 <= valueDefault
0Successful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/timesheets?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
nullPOST
instance_id*Instance IdFormat
uuidapplication/json- body
customer_id*Customer IdFormat
uuiddate*DateFormat
datedescription?string|nullhours*HoursRange
0 < valuejob_id?|nullperson_id?|nullrate?number|nullshift_id?|nullSuccessful Response
response?unknownapplication/jsoncurl -X POST 'https://example.com/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": 1}'Example Response
nullPATCH
instance_id*Instance IdFormat
uuidentry_id*Entry IdFormat
uuidapplication/json- body
approval_status*Approval StatusOne of: ('pending', 'approved', 'rejected')
approved_by?|nullSuccessful Response
response?unknownapplication/jsoncurl -X PATCH 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/timesheets/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve' \ -H 'Content-Type: application/json' \ -d '{ "approval_status": "string"}'Example Response
nullGET
HTTPBearerheader
AuthorizationBearer <token>customer_id?|nullstatus?string|nulllimit?LimitRange
1 <= value <= 200Default
50offset?OffsetRange
0 <= valueDefault
0Successful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/v1/invoices'Example Response
nullGET
HTTPBearerheader
AuthorizationBearer <token>customer_id?|nullstatus?string|nulllimit?LimitRange
1 <= value <= 200Default
50offset?OffsetRange
0 <= valueDefault
0Successful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/v1/quotes'Example Response
nullGET
HTTPBearerheader
AuthorizationBearer <token>customer_id?|nullapproval_status?string|nulllimit?LimitRange
1 <= value <= 200Default
50offset?OffsetRange
0 <= valueDefault
0Successful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/v1/timesheets'Example Response
null