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 = condivisione di un taxi
4 = a piedi
5 = in bicicletta
6 = telelavoro
7 = utilizzo mezzi di trasporto di massa
ex: 145 represents: carpooling walking bicycling
cost_sharingoptionalCost Sharing options:
1 = dividi i costi
2 = fai a turno
3 = condividi caffè
4 = condividi musica
5 = condividi cibo
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,AQAntartide
ATG,AGAntigua E Barbuda
ANT,ANAntille Olandesi
SAU,SAArabia Saudita
ARG,ARArgentina
ARM,AMArmenia
ABW,AWAruba
AUS,AUAustralia
AUT,ATAustria
AZE,AJAzerbaigian
BHS,BSBahamas
BHR,BHBahrain
BGD,BDBangladesh
BRB,BBBarbados
BEL,BEBelgio
BLZ,BZBelize
BEN,BJBenin
BMU,BMBermuda
BTN,BTBhutan
BLR,BYBielorussia
BOL,BOBolivia
BIH,BABosnia-erzegovina
BWA,BWBotswana
BRA,BRBrasile
BRN,BNBrunei Darussalam
BGR,BGBulgaria
BFA,BFBurkina Faso
BDI,BIBurundi
KHM,KHCambogia
CMR,CMCamerun
CAN,CACanada
CPV,CVCapo Verde
CXR,CXChristmas Island
TCD,TDCiad
CHL,CLCile
CHN,CNCina
CYP,CYCipro
CCK,CCCocos Islands Keeling
COL,COColombia
COM,KMComore
COG,CGCongo
COD,ZRCongo La Repubblica Democratica Del
CIV,CICosta D'avorio Repubblica Del
CRI,CRCosta Rica
HRV,HRCroazia Hrvatska
CUB,CUCuba
DNK,DKDanimarca
DMA,DMDominica
ECU,ECEcuador
EGY,EGEgitto
SLV,SVEl Salvador
ARE,AEEmirati Arabi Uniti
ERI,EREritrea
EST,EEEstonia
ETH,ETEtiopia
FLK,FKFalkland Isole Malvinas
FRO,FOFaroe Isole
RUS,RUFederazione Russa
FJI,FJFiji
PHL,PHFilippine
FIN,FIFinlandia
ATF,TFFrancesi Meridionali Territori
FRA,FRFrancia
GAB,GAGabon
GMB,GMGambia
GEO,GEGeorgia
SGS,GSGeorgia Del Sud E Isole Sandwich Del Sud
DEU,DEGermania
GHA,GHGhana
JPN,JPGiappone
GIB,GIGibilterra
DJI,DJGibuti
JOR,JOGiordania
GRC,GRGrecia
GRD,GDGrenada
GRL,GLGroenlandia
GLP,GPGuadeloupe
GUM,GUGuam
GTM,GTGuatemala
GIN,GNGuinea
GNQ,GQGuinea Equatoriale
GNB,GWGuinea-bissau
GUY,GYGuyana
GUF,GFGuyana
HTI,HTHaiti
HMD,HMHeard E Mc Donald Isole
HND,HNHonduras
HKG,HKHong Kong
IND,INIndia
IDN,IDIndonesia
IRN,IRIran
IRQ,IQIraq
IRL,IEIrlanda
ISL,ISIslanda
BVT,BVIsola Bouvet
CYM,KYIsole Cayman
COK,CKIsole Cook
MNP,MPIsole Marianne Settentrionali
UMI,UMIsole Minori Esterne Degli Stati Uniti D'amer
SLB,SBIsole Salomone
TCA,TCIsole Turks E Caicos
VGB,VGIsole Vergini Britanniche
VIR,VIIsole Vergini Usa
WLF,WFIsole Wallis E Futuna
ISR,ILIsraele
ITA,ITItalia
JAM,JMJamaica
KAZ,KZKazakistan
KEN,KEKenya
KGZ,KGKirghizistan
KIR,KIKiribati
KWT,KWKuwait
LAO,LALaos
LSO,LSLesotho
LVA,LVLettonia
LBN,LBLibano
LBR,LRLiberia
LBY,LYLibia
LIE,LILiechtenstein
LTU,LTLituania
LUX,LULussemburgo
MAC,MOMacau
MKD,MKMacedonia
MDG,MGMadagascar
MWI,MWMalawi
MYS,MYMalaysia
MDV,MVMaldive
MLI,MLMali
MLT,MTMalta
MAR,MAMarocco
MHL,MHMarshall Isole
MTQ,MQMartinica
MRT,MRMauritania
MUS,MUMauritius
MYT,YTMayotte
MEX,MXMessico
FSM,FMMicronesia Stati Federati Di
MDA,MDMoldova
MCO,MCMonaco
MNG,MNMongolia
MSR,MSMontserrat
MOZ,MZMozambico
MMR,MMMyanmar
NAM,NANamibia
NRU,NRNauru
NPL,NPNepal
NIC,NINicaragua
NER,NENiger
NGA,NGNigeria
NIU,NUNiue
NFK,NFNorfolk Island
NOR,NONorvegia
NCL,NCNuova Caledonia
NZL,NZNuova Zelanda
OMN,OMOman
NLD,NLPaesi Bassi
PAK,PKPakistan
PLW,PWPalau
PAN,PAPanama
PNG,PGPapua Nuova Guinea
PRY,PYParaguay
PER,PEPeru
PCN,PNPitcairn
PYF,PFPolinesia Francese
POL,PLPolonia
PRT,PTPortogallo
PRI,PRPuerto Rico
QAT,QAQatar
GBR,UKRegno Unito
CZE,CZRepubblica Ceca
CAF,CFRepubblica Centrafricana
KOR,KRRepubblica Di Corea
DOM,DORepubblica Dominicana
REU,REReunion
ROM,RORomania
RWA,RWRwanda
ESH,EHSahara Occidentale
KNA,KNSaint Kitts E Nevis
LCA,LCSaint Lucia
VCT,VCSaint Vincent E Grenadine
WSM,WSSamoa
SMR,SMSan Marino
VAT,VASanta Sede Vatican City State
STP,STSao Tome E Principe
SEN,SNSenegal
SRB,RSSerbia
SYC,SCSeychelles
SLE,SLSierra Leone
SGP,SGSingapore
SYR,SYSiria
SVK,SKSlovacchia
SVN,SISlovenia
SOM,SOSomalia
ESP,ESSpagna
LKA,LKSri Lanka
SHN,SHSt. Helena
SPM,PMSt. Pierre E Miquelon
USA,USStati Uniti
ZAF,ZASud Africa
SDN,SDSudan
SUR,SRSuriname
SJM,SJSvalbard E Jan Mayen Isole
SWE,SESvezia
CHE,CHSvizzera
SWZ,SZSwaziland
TUR,TRTacchino
TJK,TJTagikistan
TWN,TWTaiwan
TZA,TZTanzania
IOT,IOTerritorio Britannico Dell'oceano Indiano
PSE,PSTerritorio Palestinese
THA,THThailandia
TMP,TPTimor Est
TGO,TGTogo
TKL,TKTokelau
TON,TOTonga
TTO,TTTrinidad E Tobago
TUN,TNTunisia
TKM,TMTurkmenistan
TUV,TVTuvalu
UKR,UAUcraina
UGA,UGUganda
HUN,HUUngheria
URY,UYUruguay
UZB,UZUzbekistan
VUT,VUVanuatu
VEN,UEVenezuela
VNM,VNVietnam
YEM,YEYemen
ZMB,ZMZambia
ZWE,ZWZimbabwe