CharterOpsCharterOps
Sign inSign up

API reference

Marketplace

Read the trip requests brokers post, and the offers on them, and make an offer with your aircraft.

List Offers

GET/v1/marketplace/offers

Scope
read
Quota
Counts toward your allowance

Query parameters

  • statusstring

    One ofsubmittedreplacedwithdrawnexpiredrequest_changedunavailablebookedlostcancelledclosed

  • booked_fromdate-time

  • booked_beforedate-time

  • activeboolean

    Defaults to false.

  • wonboolean

    Defaults to false.

  • trip_request_idUUID

  • from_datedate

  • to_datedate

  • qstring

    Up to 120 characters.

  • sortstring

    Defaults to -updated_at.

    One of-updated_atupdated_atroute-routedepart_date-depart_datebroker-brokeraircraft-aircraftamount_cents-amount_centsstatus-status

  • cursorstring

    Up to 2,000 characters.

  • limitinteger

    From 1 to 100. Defaults to 25.

Response

200 OK

Returns a page of offer objects in items, with next_cursor and total.

Errors

  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not found
  • 409 Conflict
  • 422 Unprocessable content
  • 429 Too many requests

Example request

curl "https://api.charterops.com/v1/marketplace/offers" \
  --header "Authorization: Bearer $CHARTEROPS_API_KEY"

Offer Detail

GET/v1/marketplace/offers/{id}

Scope
read
Quota
Counts toward your allowance

Path parameters

  • idUUIDRequired

Response

200 OK

Returns the offer object.

Errors

  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not found
  • 409 Conflict
  • 422 Unprocessable content
  • 429 Too many requests

Example request

curl "https://api.charterops.com/v1/marketplace/offers/$ID" \
  --header "Authorization: Bearer $CHARTEROPS_API_KEY"

Requests

GET/v1/marketplace/requests

Scope
read
Quota
Counts toward your allowance

Query parameters

  • departure_continentstring

    Departure airport's OurAirports continent; All includes unknown airports.

    One ofAFANASEUNAOCSA

  • departure_countrystring

    Departure airport's country; All includes unknown airports. Matches ^[A-Z]{2}$.

  • sourcestring

    Defaults to all.

    One ofallorganizationnbaa_airmail

  • qstring

    Up to 120 characters.

  • fromstring

    Up to 20 characters.

  • tostring

    Up to 20 characters.

  • from_datedate

  • to_datedate

  • arrival_fromdate-time

  • arrival_todate-time

  • categorystring

    One ofpistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopter

  • broker_idUUID

  • saved_brokersboolean

    Defaults to false.

  • saved_onlyboolean

    Defaults to false.

  • sortstring

    Defaults to departure.

    One ofdeparture-departureroute-routepax-paxbroker-brokerpublished_at-published_attrip-trip

  • cursorstring

    Up to 2,000 characters.

  • limitinteger

    From 1 to 100. Defaults to 25.

Response

200 OK

Returns a page of marketplace request objects in items, with next_cursor and total.

Errors

  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not found
  • 409 Conflict
  • 422 Unprocessable content
  • 429 Too many requests

Example request

curl "https://api.charterops.com/v1/marketplace/requests" \
  --header "Authorization: Bearer $CHARTEROPS_API_KEY"

Detail

GET/v1/marketplace/requests/{id}

Scope
read
Quota
Counts toward your allowance

Path parameters

  • idUUIDRequired

Response

200 OK

Returns the marketplace request object.

Errors

  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not found
  • 409 Conflict
  • 422 Unprocessable content
  • 429 Too many requests

Example request

curl "https://api.charterops.com/v1/marketplace/requests/$ID" \
  --header "Authorization: Bearer $CHARTEROPS_API_KEY"

Request Offers

GET/v1/marketplace/requests/{id}/offers

Scope
read
Quota
Counts toward your allowance

Path parameters

  • idUUIDRequired

Query parameters

  • statusstring

    One ofsubmittedreplacedwithdrawnexpiredrequest_changedunavailablebookedlostcancelledclosed

  • booked_fromdate-time

  • booked_beforedate-time

  • activeboolean

    Defaults to false.

  • wonboolean

    Defaults to false.

  • trip_request_idUUID

  • from_datedate

  • to_datedate

  • qstring

    Up to 120 characters.

  • sortstring

    Defaults to -updated_at.

    One of-updated_atupdated_atroute-routedepart_date-depart_datebroker-brokeraircraft-aircraftamount_cents-amount_centsstatus-status

  • cursorstring

    Up to 2,000 characters.

  • limitinteger

    From 1 to 100. Defaults to 25.

Response

200 OK

Returns a page of offer objects in items, with next_cursor and total.

Errors

  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not found
  • 409 Conflict
  • 422 Unprocessable content
  • 429 Too many requests

Example request

curl "https://api.charterops.com/v1/marketplace/requests/$ID/offers" \
  --header "Authorization: Bearer $CHARTEROPS_API_KEY"

Create Offer

POST/v1/marketplace/requests/{id}/offers

Scope
write
Quota
Counts toward your allowance

Path parameters

  • idUUIDRequired

Headers

  • Idempotency-KeystringRequired

    1 to 200 characters.

Request body

  • amount_centsintegerRequired

    0 or more.

  • valid_untildate-timeRequired

  • aircraft_idUUID

  • copilot_namestring

    Up to 120 characters.

  • crew_notesstring

    Up to 2,000 characters.

  • line_itemsarray of objects

    Up to 20 items.

    5 fields in line_items
    • amount_centsintegerRequired

      0 or more.

    • labelstringRequired

      1 to 80 characters.

    • kindstring

      Defaults to custom.

      One ofaircraft_timecrew_dayovernightcateringground_transporttaxes_feescustom

    • quantitynumber

      More than 0 and up to 10,000. Defaults to 1.

    • rate_centsinteger

      0 or more.

  • pilot_namestring

    Up to 120 characters.

  • termsstring

    Up to 2,000 characters.

Response

201 Created

Returns the offer object.

Errors

  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not found
  • 409 Conflict
  • 422 Unprocessable content
  • 429 Too many requests

Example request

curl --request POST "https://api.charterops.com/v1/marketplace/requests/$ID/offers" \
  --header "Authorization: Bearer $CHARTEROPS_API_KEY" \
  --header "Idempotency-Key: $(uuidgen)" \
  --json @body.json

Create Inquiry

POST/v1/empty-legs/{id}/inquiries

Scope
write
Quota
Counts toward your allowance

Path parameters

  • idUUIDRequired

Headers

  • Idempotency-KeystringRequired

    1 to 200 characters.

Request body

  • messagestringRequired

    1 to 2,000 characters.

  • trip_request_idUUIDRequired

Response

201 Created

Returns the inquiry object.

Errors

  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not found
  • 409 Conflict
  • 422 Unprocessable content
  • 429 Too many requests

Example request

curl --request POST "https://api.charterops.com/v1/empty-legs/$ID/inquiries" \
  --header "Authorization: Bearer $CHARTEROPS_API_KEY" \
  --header "Idempotency-Key: $(uuidgen)" \
  --json @body.json

Publication

POST/v1/trip-requests/{id}/publication

Scope
write
Quota
Counts toward your allowance

Path parameters

  • idUUIDRequired

Headers

  • Idempotency-KeystringRequired

    1 to 200 characters.

Request body

  • publishedbooleanRequired

Response

200 OK

Returns the publication object.

Errors

  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not found
  • 409 Conflict
  • 422 Unprocessable content
  • 429 Too many requests

Example request

curl --request POST "https://api.charterops.com/v1/trip-requests/$ID/publication" \
  --header "Authorization: Bearer $CHARTEROPS_API_KEY" \
  --header "Idempotency-Key: $(uuidgen)" \
  --json @body.json

Objects

Offer

  • aircraftobjectCan be null

    3 fields in aircraft
    • idUUID

    • registrationstring

    • typeobjectCan be null

      5 fields in type
      • categorystring

        One ofpistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopter

      • icao_designatorstring

      • idUUID

      • manufacturerstring

      • modelstring

  • aircraft_heldbooleanCan be null

  • aircraft_typeobjectCan be null

    5 fields in aircraft_type
    • categorystring

      One ofpistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopter

    • icao_designatorstring

    • idUUID

    • manufacturerstring

    • modelstring

  • amount_centsinteger

  • booking_cancelledboolean

  • booking_undoneboolean

  • brokerobjectCan be null

    2 fields in broker
    • idUUID

    • namestring

  • contactobjectCan be null

    2 fields in contact
    • emailstring

    • namestring

  • copilot_namestringCan be null

  • created_atdate-time

  • crew_notesstringCan be null

  • currencystring

  • first_legobjectCan be null

    12 fields in first_leg
    • arrive_atdate-timeCan be null

    • depart_datedate

    • depart_timetimeCan be null

    • depart_timezonestringCan be null

    • distance_nminteger

    • fromobject

      11 fields in from
      • citystringCan be null

      • codestring

      • countrystring

      • iatastringCan be null

      • icaostringCan be null

      • idUUID

      • latitudenumber

      • longitudenumber

      • namestring

      • regionstringCan be null

      • timezonestringCan be null

    • idUUID

    • latest_depart_datedateCan be null

    • paxintegerCan be null

    • seqinteger

    • timezonestring

    • toobject

      11 fields in to
      • citystringCan be null

      • codestring

      • countrystring

      • iatastringCan be null

      • icaostringCan be null

      • idUUID

      • latitudenumber

      • longitudenumber

      • namestring

      • regionstringCan be null

      • timezonestringCan be null

  • idUUID

  • inquiry_idUUIDCan be null

  • is_ownboolean

  • line_itemsarray of objectsCan be null

    5 fields in line_items
    • amount_centsinteger

    • kindstring

      One ofaircraft_timecrew_dayovernightcateringground_transporttaxes_feescustom

    • labelstring

    • quantitynumber

    • rate_centsinteger

  • operatorobjectCan be null

    5 fields in operator
    • dba_namestringCan be null

    • designatorstring

    • idUUID

    • legal_namestring

    • slugstringCan be null

  • paxintegerCan be null

  • photosarray of objects

    6 fields in photos
    • heightinteger

    • idUUID

    • seqinteger

    • thumbnail_urlstring

    • urlstring

    • widthinteger

  • pilot_namestringCan be null

  • quote_idUUIDCan be null

  • quotedboolean

  • request_openboolean

  • routestringCan be null

  • sellerobject

    2 fields in seller
    • idUUID

    • namestring

  • statusstring

    One ofsubmittedreplacedwithdrawnexpiredrequest_changedunavailablebookedlostcancelledclosed

  • termsstringCan be null

  • trip_request_idUUID

  • updated_atdate-time

  • valid_untildate-time

Marketplace request

  • also_categoriesarray of strings

    The other sizes the broker's client would also fly.

    One ofpistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopter

  • askedboolean

    The broker asked your company for a quote directly, at a member's address: your own request, shown here even when it is not on the marketplace. published_at is then when it was asked.

  • brokerobjectCan be null

    Who posted it. Null on the free Marketplace plan, unless the broker asked your company directly or booked your offer.

    2 fields in broker
    • idUUID

    • namestring

  • broker_savedboolean

  • contact_emailstringCan be null

  • has_offerboolean

    Your organization has a live offer on this request.

  • idUUID

  • is_ownboolean

  • is_savedboolean

  • legsarray of objects

    12 fields in legs
    • arrive_atdate-timeCan be null

    • depart_datedate

    • depart_timetimeCan be null

    • depart_timezonestringCan be null

    • distance_nminteger

    • fromobject

      11 fields in from
      • citystringCan be null

      • codestring

      • countrystring

      • iatastringCan be null

      • icaostringCan be null

      • idUUID

      • latitudenumber

      • longitudenumber

      • namestring

      • regionstringCan be null

      • timezonestringCan be null

    • idUUID

    • latest_depart_datedateCan be null

    • paxintegerCan be null

    • seqinteger

    • timezonestring

    • toobject

      11 fields in to
      • citystringCan be null

      • codestring

      • countrystring

      • iatastringCan be null

      • icaostringCan be null

      • idUUID

      • latitudenumber

      • longitudenumber

      • namestring

      • regionstringCan be null

      • timezonestringCan be null

  • matched_legobject

    12 fields in matched_leg
    • arrive_atdate-timeCan be null

    • depart_datedate

    • depart_timetimeCan be null

    • depart_timezonestringCan be null

    • distance_nminteger

    • fromobject

      11 fields in from
      • citystringCan be null

      • codestring

      • countrystring

      • iatastringCan be null

      • icaostringCan be null

      • idUUID

      • latitudenumber

      • longitudenumber

      • namestring

      • regionstringCan be null

      • timezonestringCan be null

    • idUUID

    • latest_depart_datedateCan be null

    • paxintegerCan be null

    • seqinteger

    • timezonestring

    • toobject

      11 fields in to
      • citystringCan be null

      • codestring

      • countrystring

      • iatastringCan be null

      • icaostringCan be null

      • idUUID

      • latitudenumber

      • longitudenumber

      • namestring

      • regionstringCan be null

      • timezonestringCan be null

  • notestringCan be null

    The broker's note on the request it sent your company directly; null otherwise.

  • paxintegerCan be null

  • preferred_categorystringCan be null

    One ofpistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopter

  • published_atdate-time

  • slugstringCan be null

  • sourcestring

    One oforganizationnbaa_airmail

  • versioninteger

Inquiry

  • brokerobject

    2 fields in broker
    • idUUID

    • namestring

  • contactobjectCan be null

    2 fields in contact
    • emailstring

    • namestring

  • created_atdate-time

  • empty_leg_idUUID

  • idUUID

  • is_sellerboolean

  • legsarray of objects

    12 fields in legs
    • arrive_atdate-timeCan be null

    • depart_datedate

    • depart_timetimeCan be null

    • depart_timezonestringCan be null

    • distance_nminteger

    • fromobject

      11 fields in from
      • citystringCan be null

      • codestring

      • countrystring

      • iatastringCan be null

      • icaostringCan be null

      • idUUID

      • latitudenumber

      • longitudenumber

      • namestring

      • regionstringCan be null

      • timezonestringCan be null

    • idUUID

    • latest_depart_datedateCan be null

    • paxintegerCan be null

    • seqinteger

    • timezonestring

    • toobject

      11 fields in to
      • citystringCan be null

      • codestring

      • countrystring

      • iatastringCan be null

      • icaostringCan be null

      • idUUID

      • latitudenumber

      • longitudenumber

      • namestring

      • regionstringCan be null

      • timezonestringCan be null

  • needs_replyboolean

  • notestringCan be null

  • paxintegerCan be null

  • sellerobject

    2 fields in seller
    • idUUID

    • namestring

  • slugstringCan be null

  • statusstring

    One ofpendingoffereddeclinedwithdrawnbookedclosed

  • trip_request_idUUID

  • updated_atdate-time

Publication

  • idUUID

  • publishedboolean

  • published_atdate-timeCan be null

  • versioninteger