CarpoolWorld REST API - Trip change
→ Developers
→ REST Api
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/IOFormatResource URL
https://www.carpoolworld.com/rest_trip.html/IOFormatParameters
| partner_name | required | Your developer partner name |
| partner_key | required | Your developer partner key |
| traveler_name | required | A traveler name of your choice. Up to 20 characters. Letters (a-z), numbers (0-9) and underscores (_) are allowed |
| traveler_password | required | A 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_id | required | Specify 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. |
| required | A valid email address for the traveler Up to 70 characters. |
|
| work_phone | optional | Telephone number where the traveler can be reached during the day. Up to 20 characters. |
| home_phone | optional | Telephone number where the traveler can be reached at night. Up to 20 characters. |
| home_street | optional | Origin street address Up to 70 characters. |
| home_city | required | Origin city Up to 70 characters. |
| home_state_prov | optional | Origin state or province code Up to 3 characters. |
| home_postal_zip | optional | Origin postal code or zip code Up to 15 characters. |
| home_country | required | Origin country code 6 characters. Refer to the list of valid country codes when specifying the country. |
| home_name | optional | Origin place description, can be a neighborhood, the name of a supermarket, park and ride lot, etc.
Up to 70 characters. |
| olat | required | Latitude of the origin. The valid ranges for latitude is -90.0 to +90.0 (North is positive) inclusive. ex: 35.0226601 Decimal(12,7). |
| olon | required | Longitude 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_street | optional | Destination street address Up to 70 characters. |
| work_city | required | Destination city Up to 70 characters. |
| work_state_prov | optional | Destination state or province code Up to 3 characters. |
| work_postal_zip | optional | Destination postal code or zip code Up to 15 characters. |
| work_country | required | Destination country code 6 characters. Refer to the list of valid country codes when specifying the country. |
| work_name | optional | Destination place description, can be the name of the employer, a subway station, park and ride lot, etc. Up to 70 characters. |
| dlat | required | Destination latitude. The valid ranges for latitude is -90.0 to +90.0 (North is positive) inclusive. ex: 52.0704978 Decimal(12,7). |
| dlon | required | Destination longitude. The valid ranges for longitude is -180.0 to +180.0 (East is positive) inclusive. ex: 4.3006999 Decimal(12,7). |
| leave_origin_time | optional | Desired time of arrival at destination. Time format example: 09:00:00 (12:00:00 is noon, 00:00:00 is midnight) |
| leave_destination_time | optional | Desired time to leave destination Time format example: 17:00:00 (12:00:00 is noon, 00:00:00 is midnight) |
| regular_schedule | required | Type of schedule N=One time trip, Y=Regular schedule, F=Flexible |
| day1 | optional | Monday travel. 1=Yes, I wish to travel Monday. |
| day2 | optional | Tuesday travel. 2=Yes, I wish to travel Tuesday. |
| day3 | optional | Wednesday travel. 3=Yes, I wish to travel Wednesday. |
| day4 | optional | Thursday travel. 4=Yes, I wish to travel Thursday. |
| day5 | optional | Friday travel. 5=Yes, I wish to travel Friday. |
| day6 | optional | Saturday travel. 6=Yes, I wish to travel Saturday. |
| day7 | optional | Sunday travel. 7=Yes, I wish to travel Sunday. |
| days_vary | optional | Days specified can vary. Y=Days can vary N=Days do not vary |
| trip_date | required if one-time trip | Date 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 |
| car | required | Driver or passenger D=Driver, P=Passenger, B=either Driver or Passenger |
| seats_offered | optional | Number of seats offered ex: 1 |
| seats_required | optional | Number of seats required ex: 1 |
| description | optional | Additional details about the trip if applicable. Text |
| smoker | optional | Smoker? Y=Smoker N=Non-Smoker |
| gender | optional | Gender? M=Male F=Female N=Nonbinary |
| sms_email | optional | SMS email Up to 70 characters. ex:8885551212@txt.vtext.com |
| match_outside | optional | Global matching Y=Match with everyone N=Match only with our group |
| status | optional | Trip status ""=active "X"=deleted "D"=passive |
| interested_in_modes | optional | Modes 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_sharing | optional | Cost 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_other | optional | Cost sharing other |
Example request
JSON
XML
Responses
The response is formatted as followsJSON
XML
| Success or error | Status | Description |
|---|---|---|
| 9000 | Invalid partner or partner key | |
| 9001 | Invalid traveler login | |
| 9002 | ERRORlistsallerrors | |
| 0000 | Initialize | |
| 1001 | List trips for traveler traveler_name | |
| 1002 | trip details for traveler traveler_name | |
| 9999 | Finalize |
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,AF | Afghanistan |
| ZAF,ZA | Afrique Du Sud |
| ALB,AL | Albanie |
| DZA,DZ | AlgÉrie |
| DEU,DE | Allemagne |
| AND,AD | Andorre |
| AGO,AO | Angola |
| AIA,AI | Anguilla |
| ATA,AQ | Antarctique |
| ATG,AG | Antigua Et Barbuda |
| ANT,AN | Antilles |
| SAU,SA | Arabie Saoudite |
| ARG,AR | Argentine |
| ARM,AM | Armenie |
| ABW,AW | Aruba |
| AUS,AU | Australie |
| AUT,AT | Autriche |
| AZE,AJ | AzerbaÏ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,BJ | BÉnin |
| BHS,BS | Bahamas |
| BHR,BH | BahreÏn |
| BGD,BD | Bangladesh |
| BRB,BB | Barbade |
| BLR,BY | Belarus |
| BEL,BE | Belgique |
| BLZ,BZ | Belize |
| BMU,BM | Bermuda |
| BTN,BT | Bhoutan |
| BOL,BO | Bolivie |
| BIH,BA | Bosnie Et Herzégovine |
| BWA,BW | Botswana |
| BVT,BV | Bouvet Island |
| BRA,BR | BrÉsil |
| BRN,BN | Brunei Darussalam |
| BGR,BG | Bulgarie |
| BFA,BF | Burkina Faso |
| BDI,BI | Burundi |
| KHM,KH | Cambodge |
| CMR,CM | Cameroun |
| CAN,CA | Canada |
| CPV,CV | Cap-vert |
| CHL,CL | Chili |
| CHN,CN | Chine |
| CXR,CX | Christmas Island |
| CYP,CY | Chypre |
| COL,CO | Colombie |
| COM,KM | Comores |
| COG,CG | Congo |
| COD,ZR | Congo La RÉpublique DÉmocratique Du |
| KOR,KR | CorÉe Du Sud |
| CRI,CR | Costa Rica |
| HRV,HR | Croatie Hrvatska |
| CUB,CU | Cuba |
| DNK,DK | Danemark |
| DJI,DJ | Djibouti |
| DMA,DM | Dominique |
| EGY,EG | Egypte |
| SLV,SV | El Salvador |
| ECU,EC | Equateur |
| ESP,ES | Espagne |
| EST,EE | Estonie |
| ETH,ET | Ethiopie |
| FJI,FJ | Fidji |
| FIN,FI | Finlande |
| FRA,FR | France |
| GAB,GA | Gabon |
| GMB,GM | Gambie |
| GEO,GE | Georgie |
| SGS,GS | Georgie Du Sud Et Les Iles Sandwich Du Sud |
| GHA,GH | Ghana |
| GIB,GI | Gibraltar |
| GRC,GR | GrÈce |
| GRD,GD | Grenade |
| GRL,GL | Groenland |
| GLP,GP | Guadeloupe |
| GUM,GU | Guam |
| GTM,GT | Guatemala |
| GIN,GN | GuinÉe |
| GNQ,GQ | GuinÉe Équatoriale |
| GNB,GW | GuinÉe-bissau |
| GUY,GY | Guyana |
| GUF,GF | Guyane FranÇaise |
| HTI,HT | HaÏti |
| HMD,HM | Heard Et Mc Donald Iles |
| HND,HN | Honduras |
| HKG,HK | Hong Kong |
| HUN,HU | Hongrie |
| CYM,KY | Iles Cayman |
| COK,CK | Iles Cook |
| FLK,FK | Iles Falkland Malvinas |
| MNP,MP | Iles Mariannes Du Nord |
| SLB,SB | Iles Salomon |
| VIR,VI | Iles Vierges Us |
| IND,IN | Inde |
| IDN,ID | Indonesie |
| IRN,IR | Iran |
| IRQ,IQ | Iraq |
| IRL,IE | Irlande |
| ISL,IS | Islande |
| ISR,IL | Israel |
| ITA,IT | Italie |
| JAM,JM | JamaÏque |
| JPN,JP | Japon |
| JOR,JO | Jordanie |
| KAZ,KZ | Kazakhstan |
| KEN,KE | Kenya |
| KGZ,KG | Kirghizistan |
| KIR,KI | Kiribati |
| KWT,KW | Koweit |
| LAO,LA | Laos |
| LSO,LS | Lesotho |
| LVA,LV | Lettonie |
| LBN,LB | Liban |
| LBR,LR | Liberia |
| LBY,LY | Libye |
| LIE,LI | Liechtenstein |
| LTU,LT | Lituanie |
| LUX,LU | Luxembourg |
| MKD,MK | MacÉdoine |
| MAC,MO | Macao |
| MDG,MG | Madagascar |
| MYS,MY | Malaisie |
| MWI,MW | Malawi |
| MDV,MV | Maldives |
| MLI,ML | Mali |
| MLT,MT | Malte |
| MAR,MA | Maroc |
| MTQ,MQ | Martinique |
| MUS,MU | Maurice |
| MRT,MR | Mauritanie |
| MYT,YT | Mayotte |
| MEX,MX | Mexique |
| MDA,MD | Moldova |
| MCO,MC | Monaco |
| MNG,MN | Mongolie |
| MNE,ME | MontÉnÉgro |
| MSR,MS | Montserrat |
| MOZ,MZ | Mozambique |
| MMR,MM | Myanmar |
| NAM,NA | Namibie |
| NRU,NR | Nauru |
| NPL,NP | Nepal |
| NIC,NI | Nicaragua |
| NER,NE | Niger |
| NGA,NG | Nigeria |
| NIU,NU | Niue |
| NFK,NF | Norfolk Island |
| NOR,NO | Norvege |
| NCL,NC | Nouvelle-calÉdonie |
| NZL,NZ | Nouvelle-zÉlande |
| OMN,OM | Oman |
| UGA,UG | Ouganda |
| UZB,UZ | Ouzbekistan |
| PER,PE | PÉrou |
| PAK,PK | Pakistan |
| PLW,PW | Palau |
| PAN,PA | Panama |
| PNG,PG | Papouasie-nouvelle-guinÉe |
| PRY,PY | Paraguay |
| NLD,NL | Pays-bas |
| PHL,PH | Philippines |
| PCN,PN | Pitcairn |
| POL,PL | Pologne |
| PYF,PF | PolynÉsie FranÇaise |
| PRT,PT | Portugal |
| PRI,PR | Puerto Rico |
| QAT,QA | Qatar |
| CAF,CF | RÉpublique Centrafricaine |
| DOM,DO | RÉpublique Dominicaine |
| CZE,CZ | RÉpublique TchÈque |
| CIV,CI | Republique De Cote D'ivoire De La |
| REU,RE | Reunion |
| ROM,RO | Roumanie |
| GBR,UK | Royaume-uni |
| RUS,RU | Russie |
| RWA,RW | Rwanda |
| SEN,SN | SÉnÉgal |
| ESH,EH | Sahara Occidental |
| KNA,KN | Saint-christophe-et-nevis |
| VAT,VA | Saint-siÈge Cité Du Vatican |
| VCT,VC | Saint-vincent-et-les Grenadines |
| LCA,LC | Sainte-lucie |
| WSM,WS | Samoa |
| ASM,AS | Samoa AmÉricaines |
| SMR,SM | San Marino |
| STP,ST | Sao Tome Et Principe |
| SRB,RS | Serbie |
| SYC,SC | Seychelles |
| SLE,SL | Sierra Leone |
| SGP,SG | Singapour |
| SVN,SI | SlovÉnie |
| SVK,SK | Slovaquie |
| SOM,SO | Somalie |
| SDN,SD | Soudan |
| LKA,LK | Sri Lanka |
| SHN,SH | St. Helena |
| SPM,PM | St. Pierre Et Miquelon |
| SWE,SE | SuÈde |
| CHE,CH | Suisse |
| SUR,SR | Suriname |
| SJM,SJ | Svalbard Et Îles Jan Mayen |
| SWZ,SZ | Swaziland |
| SYR,SY | Syrie |
| TJK,TJ | Tadjikistan |
| TWN,TW | Taiwan |
| TZA,TZ | Tanzanie |
| TCD,TD | Tchad |
| ATF,TF | Terres Australes FranÇaises |
| IOT,IO | Territoire Britannique De L'ocean Indien |
| PSE,PS | Territoire Palestinien |
| THA,TH | ThaÏlande |
| TMP,TP | Timor Oriental |
| TGO,TG | Togo |
| TKL,TK | Tokelau |
| TON,TO | Tonga |
| TTO,TT | TrinitÉ-et-tobago |
| TUN,TN | Tunisie |
| TKM,TM | Turkmenistan |
| TUR,TR | Turquie |
| TUV,TV | Tuvalu |
| UKR,UA | Ukraine |
| URY,UY | Uruguay |
| VUT,VU | Vanuatu |
| VEN,UE | Venezuela |
| VNM,VN | Vietnam |
| WLF,WF | Wallis Et Futuna |
| YEM,YE | Yemen |
| ZMB,ZM | Zambie |
| ZWE,ZW | Zimbabwe |