CarpoolWorld REST API - Trip change

Version:

REST API: Trip change

Changes a trip request.

Resource information

https://www.carpoolworld.com/rest_trip.html
Request/Response Formats (IOFormat)
XML or JSON
HTTP Methods
POST

Resource description

Use POST https://www.carpoolworld.com/rest_trip.html/IOFormat

Resource URL

https://www.carpoolworld.com/rest_trip.html/IOFormat

Parameters

partner_namerequiredYour developer partner name
partner_keyrequiredYour developer partner key
traveler_namerequiredA traveler name of your choice.
Up to 20 characters. Letters (a-z), numbers (0-9) and underscores (_) are allowed
traveler_passwordrequiredA traveler password of your choice, if this is an existing traveler, the passwords must match. The password are stored encrypted in the carpoolworld database
Up to 20 characters.
trip_idrequiredSpecify a valid trip number to change the data for the trip specified, use the trip_list specification to retrieve a list of trips and the details of each trip.
emailrequiredA valid email address for the traveler
Up to 70 characters.
work_phoneoptionalTelephone number where the traveler can be reached during the day.
Up to 20 characters.
home_phoneoptionalTelephone number where the traveler can be reached at night.
Up to 20 characters.
home_streetoptionalOrigin street address
Up to 70 characters.
home_cityrequiredOrigin city
Up to 70 characters.
home_state_provoptionalOrigin state or province code
Up to 3 characters.
home_postal_zipoptionalOrigin postal code or zip code
Up to 15 characters.
home_countryrequiredOrigin country code
6 characters. Refer to the list of valid country codes when specifying the country.
home_nameoptionalOrigin place description, can be a neighborhood, the name of a supermarket, park and ride lot, etc.
Up to 70 characters.
olatrequiredLatitude of the origin. The valid ranges for latitude is -90.0 to +90.0 (North is positive) inclusive. ex: 35.0226601
Decimal(12,7).
olonrequiredLongitude of the origin. The valid ranges for longitude is -180.0 to +180.0 (East is positive) inclusive. ex:-106.4750121
Decimal(12,7).
work_streetoptionalDestination street address
Up to 70 characters.
work_cityrequiredDestination city
Up to 70 characters.
work_state_provoptionalDestination state or province code
Up to 3 characters.
work_postal_zipoptionalDestination postal code or zip code
Up to 15 characters.
work_countryrequiredDestination country code
6 characters. Refer to the list of valid country codes when specifying the country.
work_nameoptionalDestination place description, can be the name of the employer, a subway station, park and ride lot, etc.
Up to 70 characters.
dlatrequiredDestination latitude. The valid ranges for latitude is -90.0 to +90.0 (North is positive) inclusive. ex: 52.0704978
Decimal(12,7).
dlonrequiredDestination longitude. The valid ranges for longitude is -180.0 to +180.0 (East is positive) inclusive. ex: 4.3006999
Decimal(12,7).
leave_origin_timeoptionalDesired time of arrival at destination.
Time format example: 09:00:00 (12:00:00 is noon, 00:00:00 is midnight)
leave_destination_timeoptionalDesired time to leave destination
Time format example: 17:00:00 (12:00:00 is noon, 00:00:00 is midnight)
regular_schedulerequiredType of schedule
N=One time trip, Y=Regular schedule, F=Flexible
day1optionalMonday travel.
1=Yes, I wish to travel Monday.
day2optionalTuesday travel.
2=Yes, I wish to travel Tuesday.
day3optionalWednesday travel.
3=Yes, I wish to travel Wednesday.
day4optionalThursday travel.
4=Yes, I wish to travel Thursday.
day5optionalFriday travel.
5=Yes, I wish to travel Friday.
day6optionalSaturday travel.
6=Yes, I wish to travel Saturday.
day7optionalSunday travel.
7=Yes, I wish to travel Sunday.
days_varyoptionalDays specified can vary.
Y=Days can vary N=Days do not vary
trip_daterequired if one-time tripDate of one-time trip, required if this is a one-time trip. For example 2013-01-23 is January 23, 2013
Date format YYYY-MM-DD
carrequiredDriver or passenger
D=Driver, P=Passenger, B=either Driver or Passenger
seats_offeredoptionalNumber of seats offered
ex: 1
seats_requiredoptionalNumber of seats required
ex: 1
descriptionoptionalAdditional details about the trip if applicable.
Text
smokeroptionalSmoker?
Y=Smoker N=Non-Smoker
genderoptionalGender?
M=Male F=Female N=Nonbinary
sms_emailoptionalSMS email
Up to 70 characters. ex:8885551212@txt.vtext.com
match_outsideoptionalGlobal matching
Y=Match with everyone N=Match only with our group
statusoptionalTrip status
""=active "X"=deleted "D"=passive
interested_in_modesoptionalModes of transportations:
1 = carpooling
2 = vanpooling
3 = sharing a taxi
4 = walking
5 = bicycling
6 = telecommuting
7 = taking mass transportation
ex: 145 represents: carpooling walking bicycling
cost_sharingoptionalCost Sharing options:
1 = split costs
2 = take turns
3 = share coffee
4 = share music
5 = share food
ex: 24 represents: take turns share music
cost_sharing_otheroptionalCost sharing other

Example request

JSON

XML

Responses

The response is formatted as follows

JSON

XML

Success or errorStatusDescription
9000Invalid partner or partner key
9001Invalid traveler login
9002ERRORlistsallerrors
0000Initialize
1001List trips for traveler traveler_name
1002trip details for traveler traveler_name
9999Finalize

List of valid country codes

AFG,AFAfghanistan
ALB,ALAlbania
DZA,DZAlgeria
ASM,ASAmerican Samoa
AND,ADAndorra
AGO,AOAngola
AIA,AIAnguilla
ATA,AQAntarctica
ATG,AGAntigua And Barbuda
ARG,ARArgentina
ARM,AMArmenia
ABW,AWAruba
AUS,AUAustralia
AUT,ATAustria
AZE,AJAzerbaijan
BHS,BSBahamas
BHR,BHBahrain
BGD,BDBangladesh
BRB,BBBarbados
BLR,BYBelarus
BEL,BEBelgium
BLZ,BZBelize
BEN,BJBenin
BMU,BMBermuda
BTN,BTBhutan
BOL,BOBolivia
BIH,BABosnia And Herzegowina
BWA,BWBotswana
BVT,BVBouvet Island
BRA,BRBrazil
IOT,IOBritish Indian Ocean Territory
BRN,BNBrunei Darussalam
BGR,BGBulgaria
BFA,BFBurkina Faso
BDI,BIBurundi
KHM,KHCambodia
CMR,CMCameroon
CAN,CACanada
CPV,CVCape Verde
CYM,KYCayman Islands
CAF,CFCentral African Republic
TCD,TDChad
CHL,CLChile
CHN,CNChina
CXR,CXChristmas Island
CCK,CCCocos Islands Keeling
COL,COColombia
COM,KMComoros
COG,CGCongo
COD,ZRCongo The Democratic Republic Of The
COK,CKCook Islands
CRI,CRCosta Rica
HRV,HRCroatia Hrvatska
CUB,CUCuba
CYP,CYCyprus
CZE,CZCzech Republic
DNK,DKDenmark
DJI,DJDjibouti
DMA,DMDominica
DOM,DODominican Republic
TMP,TPEast Timor
ECU,ECEcuador
EGY,EGEgypt
SLV,SVEl Salvador
GNQ,GQEquatorial Guinea
ERI,EREritrea
EST,EEEstonia
ETH,ETEthiopia
FLK,FKFalkland Islands Malvinas
FRO,FOFaroe Islands
FJI,FJFiji
FIN,FIFinland
FRA,FRFrance
GUF,GFFrench Guiana
PYF,PFFrench Polynesia
ATF,TFFrench Southern Territories
GAB,GAGabon
GMB,GMGambia
GEO,GEGeorgia
DEU,DEGermany
GHA,GHGhana
GIB,GIGibraltar
GRC,GRGreece
GRL,GLGreenland
GRD,GDGrenada
GLP,GPGuadeloupe
GUM,GUGuam
GTM,GTGuatemala
GIN,GNGuinea
GNB,GWGuinea-bissau
GUY,GYGuyana
HTI,HTHaiti
HMD,HMHeard And Mc Donald Islands
VAT,VAHoly See Vatican City State
HND,HNHonduras
HKG,HKHong Kong
HUN,HUHungary
ISL,ISIceland
IND,INIndia
IDN,IDIndonesia
IRN,IRIran
IRQ,IQIraq
IRL,IEIreland
ISR,ILIsrael
ITA,ITItaly
CIV,CIIvory Coast Republic Of The
JAM,JMJamaica
JPN,JPJapan
JOR,JOJordan
KAZ,KZKazakhstan
KEN,KEKenya
KIR,KIKiribati
KWT,KWKuwait
KGZ,KGKyrgyzstan
LAO,LALaos
LVA,LVLatvia
LBN,LBLebanon
LSO,LSLesotho
LBR,LRLiberia
LBY,LYLibya
LIE,LILiechtenstein
LTU,LTLithuania
LUX,LULuxembourg
MAC,MOMacau
MKD,MKMacedonia
MDG,MGMadagascar
MWI,MWMalawi
MYS,MYMalaysia
MDV,MVMaldives
MLI,MLMali
MLT,MTMalta
MHL,MHMarshall Islands
MTQ,MQMartinique
MRT,MRMauritania
MUS,MUMauritius
MYT,YTMayotte
MEX,MXMexico
FSM,FMMicronesia Federated States Of
MDA,MDMoldova
MCO,MCMonaco
MNG,MNMongolia
MNE,MEMontenegro
MSR,MSMontserrat
MAR,MAMorocco
MOZ,MZMozambique
MMR,MMMyanmar
NAM,NANamibia
NRU,NRNauru
NPL,NPNepal
NLD,NLNetherlands
ANT,ANNetherlands Antilles
NCL,NCNew Caledonia
NZL,NZNew Zealand
NIC,NINicaragua
NER,NENiger
NGA,NGNigeria
NIU,NUNiue
NFK,NFNorfolk Island
MNP,MPNorthern Mariana Islands
NOR,NONorway
OMN,OMOman
PAK,PKPakistan
PLW,PWPalau
PSE,PSPalestinian Territory
PAN,PAPanama
PNG,PGPapua New Guinea
PRY,PYParaguay
PER,PEPeru
PHL,PHPhilippines
PCN,PNPitcairn
POL,PLPoland
PRT,PTPortugal
PRI,PRPuerto Rico
QAT,QAQatar
REU,REReunion
ROM,RORomania
RUS,RURussian Federation
RWA,RWRwanda
KNA,KNSaint Kitts And Nevis
LCA,LCSaint Lucia
VCT,VCSaint Vincent And The Grenadines
WSM,WSSamoa
SMR,SMSan Marino
STP,STSao Tome And Principe
SAU,SASaudi Arabia
SEN,SNSenegal
SRB,RSSerbia
SYC,SCSeychelles
SLE,SLSierra Leone
SGP,SGSingapore
SVK,SKSlovakia
SVN,SISlovenia
SLB,SBSolomon Islands
SOM,SOSomalia
ZAF,ZASouth Africa
SGS,GSSouth Georgia And The South Sandwich Islands
KOR,KRSouth Korea
ESP,ESSpain
LKA,LKSri Lanka
SHN,SHSt. Helena
SPM,PMSt. Pierre And Miquelon
SDN,SDSudan
SUR,SRSuriname
SJM,SJSvalbard And Jan Mayen Islands
SWZ,SZSwaziland
SWE,SESweden
CHE,CHSwitzerland
SYR,SYSyria
TWN,TWTaiwan
TJK,TJTajikistan
TZA,TZTanzania
THA,THThailand
TGO,TGTogo
TKL,TKTokelau
TON,TOTonga
TTO,TTTrinidad And Tobago
TUN,TNTunisia
TUR,TRTurkey
TKM,TMTurkmenistan
TCA,TCTurks And Caicos Islands
TUV,TVTuvalu
UGA,UGUganda
UKR,UAUkraine
ARE,AEUnited Arab Emirates
GBR,UKUnited Kingdom
USA,USUnited States
UMI,UMUnited States Minor Outlying Islands
URY,UYUruguay
UZB,UZUzbekistan
VUT,VUVanuatu
VEN,UEVenezuela
VNM,VNVietnam
VGB,VGVirgin Islands British
VIR,VIVirgin Islands Us
WLF,WFWallis And Futuna Islands
ESH,EHWestern Sahara
YEM,YEYemen
ZMB,ZMZambia
ZWE,ZWZimbabwe