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 = covoiturage
2 = covoiturage par fourgonnette
3 = partager un taxi
4 = marche
5 = vélo
6 = télétravail
7 = prendre les transports en commun
ex: 145 represents: carpooling walking bicycling
cost_sharingoptionalCost Sharing options:
1 = partager les coûts
2 = conduire à tour de rôle
3 = partager un café
4 = partager la musique
5 = partager un repas
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

ARE,AEÉmirats Arabes Unis
ERI,ERÉrythrÉe
FSM,FMÉtats FÉdÉrÉs De MicronÉsie
USA,USÉtats-unis
UMI,UMÉtats-unis Iles Mineures ÉloignÉes
AFG,AFAfghanistan
ZAF,ZAAfrique Du Sud
ALB,ALAlbanie
DZA,DZAlgÉrie
DEU,DEAllemagne
AND,ADAndorre
AGO,AOAngola
AIA,AIAnguilla
ATA,AQAntarctique
ATG,AGAntigua Et Barbuda
ANT,ANAntilles
SAU,SAArabie Saoudite
ARG,ARArgentine
ARM,AMArmenie
ABW,AWAruba
AUS,AUAustralie
AUT,ATAutriche
AZE,AJAzerbaÏdjan
CCK,CCÎles Cocos Keeling
FRO,FOÎles FÉroÉ
MHL,MHÎles Marshall
TCA,TCÎles Turques Et CaÏques
VGB,VGÎles Vierges Britanniques
BEN,BJBÉnin
BHS,BSBahamas
BHR,BHBahreÏn
BGD,BDBangladesh
BRB,BBBarbade
BLR,BYBelarus
BEL,BEBelgique
BLZ,BZBelize
BMU,BMBermuda
BTN,BTBhoutan
BOL,BOBolivie
BIH,BABosnie Et Herzégovine
BWA,BWBotswana
BVT,BVBouvet Island
BRA,BRBrÉsil
BRN,BNBrunei Darussalam
BGR,BGBulgarie
BFA,BFBurkina Faso
BDI,BIBurundi
KHM,KHCambodge
CMR,CMCameroun
CAN,CACanada
CPV,CVCap-vert
CHL,CLChili
CHN,CNChine
CXR,CXChristmas Island
CYP,CYChypre
COL,COColombie
COM,KMComores
COG,CGCongo
COD,ZRCongo La RÉpublique DÉmocratique Du
KOR,KRCorÉe Du Sud
CRI,CRCosta Rica
HRV,HRCroatie Hrvatska
CUB,CUCuba
DNK,DKDanemark
DJI,DJDjibouti
DMA,DMDominique
EGY,EGEgypte
SLV,SVEl Salvador
ECU,ECEquateur
ESP,ESEspagne
EST,EEEstonie
ETH,ETEthiopie
FJI,FJFidji
FIN,FIFinlande
FRA,FRFrance
GAB,GAGabon
GMB,GMGambie
GEO,GEGeorgie
SGS,GSGeorgie Du Sud Et Les Iles Sandwich Du Sud
GHA,GHGhana
GIB,GIGibraltar
GRC,GRGrÈce
GRD,GDGrenade
GRL,GLGroenland
GLP,GPGuadeloupe
GUM,GUGuam
GTM,GTGuatemala
GIN,GNGuinÉe
GNQ,GQGuinÉe Équatoriale
GNB,GWGuinÉe-bissau
GUY,GYGuyana
GUF,GFGuyane FranÇaise
HTI,HTHaÏti
HMD,HMHeard Et Mc Donald Iles
HND,HNHonduras
HKG,HKHong Kong
HUN,HUHongrie
CYM,KYIles Cayman
COK,CKIles Cook
FLK,FKIles Falkland Malvinas
MNP,MPIles Mariannes Du Nord
SLB,SBIles Salomon
VIR,VIIles Vierges Us
IND,INInde
IDN,IDIndonesie
IRN,IRIran
IRQ,IQIraq
IRL,IEIrlande
ISL,ISIslande
ISR,ILIsrael
ITA,ITItalie
JAM,JMJamaÏque
JPN,JPJapon
JOR,JOJordanie
KAZ,KZKazakhstan
KEN,KEKenya
KGZ,KGKirghizistan
KIR,KIKiribati
KWT,KWKoweit
LAO,LALaos
LSO,LSLesotho
LVA,LVLettonie
LBN,LBLiban
LBR,LRLiberia
LBY,LYLibye
LIE,LILiechtenstein
LTU,LTLituanie
LUX,LULuxembourg
MKD,MKMacÉdoine
MAC,MOMacao
MDG,MGMadagascar
MYS,MYMalaisie
MWI,MWMalawi
MDV,MVMaldives
MLI,MLMali
MLT,MTMalte
MAR,MAMaroc
MTQ,MQMartinique
MUS,MUMaurice
MRT,MRMauritanie
MYT,YTMayotte
MEX,MXMexique
MDA,MDMoldova
MCO,MCMonaco
MNG,MNMongolie
MNE,MEMontÉnÉgro
MSR,MSMontserrat
MOZ,MZMozambique
MMR,MMMyanmar
NAM,NANamibie
NRU,NRNauru
NPL,NPNepal
NIC,NINicaragua
NER,NENiger
NGA,NGNigeria
NIU,NUNiue
NFK,NFNorfolk Island
NOR,NONorvege
NCL,NCNouvelle-calÉdonie
NZL,NZNouvelle-zÉlande
OMN,OMOman
UGA,UGOuganda
UZB,UZOuzbekistan
PER,PEPÉrou
PAK,PKPakistan
PLW,PWPalau
PAN,PAPanama
PNG,PGPapouasie-nouvelle-guinÉe
PRY,PYParaguay
NLD,NLPays-bas
PHL,PHPhilippines
PCN,PNPitcairn
POL,PLPologne
PYF,PFPolynÉsie FranÇaise
PRT,PTPortugal
PRI,PRPuerto Rico
QAT,QAQatar
CAF,CFRÉpublique Centrafricaine
DOM,DORÉpublique Dominicaine
CZE,CZRÉpublique TchÈque
CIV,CIRepublique De Cote D'ivoire De La
REU,REReunion
ROM,RORoumanie
GBR,UKRoyaume-uni
RUS,RURussie
RWA,RWRwanda
SEN,SNSÉnÉgal
ESH,EHSahara Occidental
KNA,KNSaint-christophe-et-nevis
VAT,VASaint-siÈge Cité Du Vatican
VCT,VCSaint-vincent-et-les Grenadines
LCA,LCSainte-lucie
WSM,WSSamoa
ASM,ASSamoa AmÉricaines
SMR,SMSan Marino
STP,STSao Tome Et Principe
SRB,RSSerbie
SYC,SCSeychelles
SLE,SLSierra Leone
SGP,SGSingapour
SVN,SISlovÉnie
SVK,SKSlovaquie
SOM,SOSomalie
SDN,SDSoudan
LKA,LKSri Lanka
SHN,SHSt. Helena
SPM,PMSt. Pierre Et Miquelon
SWE,SESuÈde
CHE,CHSuisse
SUR,SRSuriname
SJM,SJSvalbard Et Îles Jan Mayen
SWZ,SZSwaziland
SYR,SYSyrie
TJK,TJTadjikistan
TWN,TWTaiwan
TZA,TZTanzanie
TCD,TDTchad
ATF,TFTerres Australes FranÇaises
IOT,IOTerritoire Britannique De L'ocean Indien
PSE,PSTerritoire Palestinien
THA,THThaÏlande
TMP,TPTimor Oriental
TGO,TGTogo
TKL,TKTokelau
TON,TOTonga
TTO,TTTrinitÉ-et-tobago
TUN,TNTunisie
TKM,TMTurkmenistan
TUR,TRTurquie
TUV,TVTuvalu
UKR,UAUkraine
URY,UYUruguay
VUT,VUVanuatu
VEN,UEVenezuela
VNM,VNVietnam
WLF,WFWallis Et Futuna
YEM,YEYemen
ZMB,ZMZambie
ZWE,ZWZimbabwe