AerScheduler

Invoices

Billing for completed flights.

7 endpoints · base URL https://api.aerscheduler.com

get/invoices

List invoices

Every invoice in the organization. Administrators only — this is the whole membership's payment history plus revenue aggregates, so it is treated as a financial surface rather than an operational one. Dispatchers get the per-reservation invoice instead.

Query parameters

startDatestringStart of the window, ISO 8601. Include an offset or Z.
endDatestringEnd of the window, ISO 8601.
qstringFree-text filter. Matches the fields a person would search on.
paidbooleanFilter on paid state.

Responses

200OKThe invoices.{ data: Invoice[] }
400Bad RequestThe date range is unparseable.
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/invoices \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
get/invoices/{invoiceId}

Get an invoice

One invoice with its line items.

Path parameters

invoiceIdrequiredintegerThe invoice id.

Responses

200OKSuccess.{ data: Invoice }
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
404Not FoundNo such invoice.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/invoices/:invoiceId \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
patch/invoices/{invoiceId}

Update an invoice

Adjusts line items or marks it paid. Requires the admin role.

Path parameters

invoiceIdrequiredintegerThe invoice id.

Responses

200OKSuccess.{ data: Invoice }
400Bad RequestValidation failed.
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl -X PATCH https://api.aerscheduler.com/invoices/:invoiceId \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
post/invoices/{invoiceId}/remind

Send a payment reminder

Emails the member about an outstanding invoice. Requires the admin role.

Path parameters

invoiceIdrequiredintegerThe invoice id.

Responses

200OKSuccess.{ data: object }
204No ContentSuccess. No body.
400Bad RequestAlready paid, or reminded too recently.
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl -X POST https://api.aerscheduler.com/invoices/:invoiceId/remind \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
get/invoices/orgUsers/{orgUserId}

List a member's invoices

Your own, or anyone's if you are an administrator.

Path parameters

orgUserIdrequiredintegerThe membership id.

Query parameters

startDatestringStart of the window, ISO 8601. Include an offset or Z.
endDatestringEnd of the window, ISO 8601.
paidbooleanFilter on paid state.

Responses

200OKThe invoices.{ data: Invoice[] }
400Bad RequestNot your invoices, and you are not an administrator.
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/invoices/orgUsers/:orgUserId \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
get/invoices/reservation/{reservationId}

Get a reservation's invoice

The bill for one flight. Dispatchers can read this even though they cannot list the organization's invoices.

Path parameters

reservationIdrequiredintegerThe reservation id.

Responses

200OKSuccess.{ data: Invoice }
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
404Not FoundThat flight has not been invoiced.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/invoices/reservation/:reservationId \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
get/invoices/reservation/{reservationId}/invoiceTotals

Get a reservation's totals

What the flight comes to, broken down, without creating an invoice.

Path parameters

reservationIdrequiredintegerThe reservation id.

Responses

200OKSuccess.{ data: object }
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
404Not FoundNo such reservation.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/invoices/reservation/:reservationId/invoiceTotals \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"