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
statusstringOne of
submittedreplacedwithdrawnexpiredrequest_changedunavailablebookedlostcancelledclosedbooked_fromdate-timebooked_beforedate-timeactivebooleanDefaults to
false.wonbooleanDefaults to
false.trip_request_idUUIDfrom_datedateto_datedateqstringUp to 120 characters.
sortstringDefaults to
-updated_at.One of
-updated_atupdated_atroute-routedepart_date-depart_datebroker-brokeraircraft-aircraftamount_cents-amount_centsstatus-statuscursorstringUp to 2,000 characters.
limitintegerFrom 1 to 100. Defaults to
25.
Response
200 OK
Returns a page of offer objects in items, with next_cursor and total.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too 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
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too 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_continentstringDeparture airport's OurAirports continent; All includes unknown airports.
One of
AFANASEUNAOCSAdeparture_countrystringDeparture airport's country; All includes unknown airports. Matches
^[A-Z]{2}$.sourcestringDefaults to
all.One of
allorganizationnbaa_airmailqstringUp to 120 characters.
fromstringUp to 20 characters.
tostringUp to 20 characters.
from_datedateto_datedatearrival_fromdate-timearrival_todate-timecategorystringOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopterbroker_idUUIDsaved_brokersbooleanDefaults to
false.saved_onlybooleanDefaults to
false.sortstringDefaults to
departure.One of
departure-departureroute-routepax-paxbroker-brokerpublished_at-published_attrip-tripcursorstringUp to 2,000 characters.
limitintegerFrom 1 to 100. Defaults to
25.
Response
200 OK
Returns a page of marketplace request objects in items, with next_cursor and total.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too 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
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too 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
statusstringOne of
submittedreplacedwithdrawnexpiredrequest_changedunavailablebookedlostcancelledclosedbooked_fromdate-timebooked_beforedate-timeactivebooleanDefaults to
false.wonbooleanDefaults to
false.trip_request_idUUIDfrom_datedateto_datedateqstringUp to 120 characters.
sortstringDefaults to
-updated_at.One of
-updated_atupdated_atroute-routedepart_date-depart_datebroker-brokeraircraft-aircraftamount_cents-amount_centsstatus-statuscursorstringUp to 2,000 characters.
limitintegerFrom 1 to 100. Defaults to
25.
Response
200 OK
Returns a page of offer objects in items, with next_cursor and total.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too 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-KeystringRequired1 to 200 characters.
Request body
amount_centsintegerRequired0 or more.
valid_untildate-timeRequiredaircraft_idUUIDcopilot_namestringUp to 120 characters.
crew_notesstringUp to 2,000 characters.
line_itemsarray of objectsUp to 20 items.
5 fields in line_items
amount_centsintegerRequired0 or more.
labelstringRequired1 to 80 characters.
kindstringDefaults to
custom.One of
aircraft_timecrew_dayovernightcateringground_transporttaxes_feescustomquantitynumberMore than 0 and up to 10,000. Defaults to
1.rate_centsinteger0 or more.
pilot_namestringUp to 120 characters.
termsstringUp to 2,000 characters.
Response
201 Created
Returns the offer object.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too 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.jsonCreate Inquiry
POST/v1/empty-legs/{id}/inquiries
- Scope
write- Quota
- Counts toward your allowance
Path parameters
idUUIDRequired
Headers
Idempotency-KeystringRequired1 to 200 characters.
Request body
messagestringRequired1 to 2,000 characters.
trip_request_idUUIDRequired
Response
201 Created
Returns the inquiry object.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too 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.jsonPublication
POST/v1/trip-requests/{id}/publication
- Scope
write- Quota
- Counts toward your allowance
Path parameters
idUUIDRequired
Headers
Idempotency-KeystringRequired1 to 200 characters.
Request body
publishedbooleanRequired
Response
200 OK
Returns the publication object.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too 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.jsonObjects
Offer
aircraftobjectCan be null3 fields in aircraft
idUUIDregistrationstringtypeobjectCan be null5 fields in type
categorystringOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicoptericao_designatorstringidUUIDmanufacturerstringmodelstring
aircraft_heldbooleanCan be nullaircraft_typeobjectCan be null5 fields in aircraft_type
categorystringOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicoptericao_designatorstringidUUIDmanufacturerstringmodelstring
amount_centsintegerbooking_cancelledbooleanbooking_undonebooleanbrokerobjectCan be null2 fields in broker
idUUIDnamestring
contactobjectCan be null2 fields in contact
emailstringnamestring
copilot_namestringCan be nullcreated_atdate-timecrew_notesstringCan be nullcurrencystringfirst_legobjectCan be null12 fields in first_leg
arrive_atdate-timeCan be nulldepart_datedatedepart_timetimeCan be nulldepart_timezonestringCan be nulldistance_nmintegerfromobject11 fields in from
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringregionstringCan be nulltimezonestringCan be null
idUUIDlatest_depart_datedateCan be nullpaxintegerCan be nullseqintegertimezonestringtoobject11 fields in to
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringregionstringCan be nulltimezonestringCan be null
idUUIDinquiry_idUUIDCan be nullis_ownbooleanline_itemsarray of objectsCan be null5 fields in line_items
amount_centsintegerkindstringOne of
aircraft_timecrew_dayovernightcateringground_transporttaxes_feescustomlabelstringquantitynumberrate_centsinteger
operatorobjectCan be null5 fields in operator
dba_namestringCan be nulldesignatorstringidUUIDlegal_namestringslugstringCan be null
paxintegerCan be nullphotosarray of objects6 fields in photos
heightintegeridUUIDseqintegerthumbnail_urlstringurlstringwidthinteger
pilot_namestringCan be nullquote_idUUIDCan be nullquotedbooleanrequest_openbooleanroutestringCan be nullsellerobject2 fields in seller
idUUIDnamestring
statusstringOne of
submittedreplacedwithdrawnexpiredrequest_changedunavailablebookedlostcancelledclosedtermsstringCan be nulltrip_request_idUUIDupdated_atdate-timevalid_untildate-time
Marketplace request
also_categoriesarray of stringsThe other sizes the broker's client would also fly.
One of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopteraskedbooleanThe 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 nullWho posted it. Null on the free Marketplace plan, unless the broker asked your company directly or booked your offer.
2 fields in broker
idUUIDnamestring
broker_savedbooleancontact_emailstringCan be nullhas_offerbooleanYour organization has a live offer on this request.
idUUIDis_ownbooleanis_savedbooleanlegsarray of objects12 fields in legs
arrive_atdate-timeCan be nulldepart_datedatedepart_timetimeCan be nulldepart_timezonestringCan be nulldistance_nmintegerfromobject11 fields in from
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringregionstringCan be nulltimezonestringCan be null
idUUIDlatest_depart_datedateCan be nullpaxintegerCan be nullseqintegertimezonestringtoobject11 fields in to
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringregionstringCan be nulltimezonestringCan be null
matched_legobject12 fields in matched_leg
arrive_atdate-timeCan be nulldepart_datedatedepart_timetimeCan be nulldepart_timezonestringCan be nulldistance_nmintegerfromobject11 fields in from
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringregionstringCan be nulltimezonestringCan be null
idUUIDlatest_depart_datedateCan be nullpaxintegerCan be nullseqintegertimezonestringtoobject11 fields in to
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringregionstringCan be nulltimezonestringCan be null
notestringCan be nullThe broker's note on the request it sent your company directly; null otherwise.
paxintegerCan be nullpreferred_categorystringCan be nullOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopterpublished_atdate-timeslugstringCan be nullsourcestringOne of
organizationnbaa_airmailversioninteger
Inquiry
brokerobject2 fields in broker
idUUIDnamestring
contactobjectCan be null2 fields in contact
emailstringnamestring
created_atdate-timeempty_leg_idUUIDidUUIDis_sellerbooleanlegsarray of objects12 fields in legs
arrive_atdate-timeCan be nulldepart_datedatedepart_timetimeCan be nulldepart_timezonestringCan be nulldistance_nmintegerfromobject11 fields in from
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringregionstringCan be nulltimezonestringCan be null
idUUIDlatest_depart_datedateCan be nullpaxintegerCan be nullseqintegertimezonestringtoobject11 fields in to
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringregionstringCan be nulltimezonestringCan be null
needs_replybooleannotestringCan be nullpaxintegerCan be nullsellerobject2 fields in seller
idUUIDnamestring
slugstringCan be nullstatusstringOne of
pendingoffereddeclinedwithdrawnbookedclosedtrip_request_idUUIDupdated_atdate-time
Publication
idUUIDpublishedbooleanpublished_atdate-timeCan be nullversioninteger