CarpoolWorld REST API - Trip create
→ Developers
→ REST Api
REST API: Trip create
Creates 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 | 0. Specify the number 0 to create a new 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 = carpool 2 = vanpool 3 = compartir un taxi 4 = a pie 5 = andar en bicicleta 6 = teletrabajo 7 = tomar el transporte masivo ex: 145 represents: carpooling walking bicycling |
| cost_sharing | optional | Cost Sharing options: 1 = compartir costos 2 = turnarse 3 = compartir café 4 = compartir música 5 = compartir comida 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 | |
| 1000 | SUCCESS - trip added trip id | |
| 1001 | List trips for traveler traveler_name | |
| 1002 | trip details for traveler traveler_name | |
| 9999 | Finalize |
List of valid country codes
| AFG,AF | AfganistÁn |
| ALB,AL | Albania |
| DEU,DE | Alemania |
| ASM,AS | American Samoa |
| AND,AD | Andorra |
| AGO,AO | Angola |
| AIA,AI | Anguila |
| ATA,AQ | AntÁrtida |
| ATG,AG | Antigua Y Barbuda |
| ANT,AN | Antillas Holandesas |
| SAU,SA | Arabia Saudita |
| DZA,DZ | Argelia |
| ARG,AR | Argentina |
| ARM,AM | Armenia |
| ABW,AW | Aruba |
| AUS,AU | Australia |
| AUT,AT | Austria |
| AZE,AJ | AzerbaiyÁn |
| BEL,BE | BÉlgica |
| BHS,BS | Bahamas |
| BHR,BH | Bahrein |
| BGD,BD | Bangladesh |
| BRB,BB | Barbados |
| BLZ,BZ | Belice |
| BEN,BJ | Benin |
| BMU,BM | Bermuda |
| BTN,BT | BhutÁn |
| BLR,BY | Bielorrusia |
| BOL,BO | Bolivia |
| BIH,BA | Bosnia Y Herzegovina |
| BWA,BW | Botsuana |
| BRA,BR | Brasil |
| BRN,BN | Brunei Darussalam |
| BGR,BG | Bulgaria |
| BFA,BF | Burkina Faso |
| BDI,BI | Burundi |
| CPV,CV | Cabo Verde |
| KHM,KH | Camboya |
| CMR,CM | CamerÚn |
| CAN,CA | CanadÁ |
| TCD,TD | Chad |
| CHL,CL | Chile |
| CHN,CN | China |
| CYP,CY | Chipre |
| COL,CO | Colombia |
| COM,KM | Comoras |
| COG,CG | Congo |
| COD,ZR | Congo RepÚblica DemocrÁtica Del |
| CRI,CR | Costa Rica |
| HRV,HR | Croacia Hrvatska |
| CUB,CU | Cuba |
| DNK,DK | Dinamarca |
| DMA,DM | Dominica |
| ECU,EC | Ecuador |
| EGY,EG | Egipto |
| SLV,SV | El Salvador |
| ARE,AE | Emiratos Arabes Unidos |
| ERI,ER | Eritrea |
| SVK,SK | Eslovaquia |
| SVN,SI | Eslovenia |
| ESP,ES | EspaÑa |
| FSM,FM | Estados Federados De Micronesia |
| USA,US | Estados Unidos |
| UMI,UM | Estados Unidos Islas Menores |
| EST,EE | Estonia |
| ETH,ET | EtiopÍa |
| RUS,RU | FederaciÓn De Rusia |
| PHL,PH | Filipinas |
| FIN,FI | Finlandia |
| FJI,FJ | Fiyi |
| FRA,FR | Francia |
| GAB,GA | GabÓn |
| GMB,GM | Gambia |
| GEO,GE | Georgia |
| SGS,GS | Georgia Del Sur E Islas Sandwich Del Sur |
| GHA,GH | Ghana |
| GIB,GI | Gibraltar |
| GRD,GD | Granada |
| GRC,GR | Grecia |
| GRL,GL | Groenlandia |
| GUM,GU | Grupo Guam |
| GLP,GP | Guadalupe |
| GTM,GT | Guatemala |
| GUF,GF | Guayana Francesa |
| GIN,GN | Guinea |
| GNQ,GQ | Guinea Ecuatorial |
| GNB,GW | Guinea-bissau |
| GUY,GY | Guyana |
| HTI,HT | HaitÍ |
| HND,HN | Honduras |
| HKG,HK | Hong Kong |
| HUN,HU | HungrÍa |
| IND,IN | India |
| IDN,ID | Indonesia |
| IRN,IR | IrÁn |
| IRQ,IQ | Iraq |
| IRL,IE | Irlanda |
| BVT,BV | Isla Bouvet |
| CXR,CX | Isla De Navidad |
| NFK,NF | Isla Norfolk |
| ISL,IS | Islandia |
| CYM,KY | Islas CaimÁn |
| CCK,CC | Islas Cocos Keeling |
| COK,CK | Islas Cook |
| FRO,FO | Islas Feroe |
| FLK,FK | Islas Malvinas Malvinas |
| MNP,MP | Islas Marianas Del Norte |
| MHL,MH | Islas Marshall |
| SLB,SB | Islas SalomÓn |
| SJM,SJ | Islas Svalbard Y Jan Mayen |
| TCA,TC | Islas Turcas Y Caicos |
| VGB,VG | Islas Vírgenes Británicas |
| WLF,WF | Islas Wallis Y Futuna |
| ISR,IL | Israel |
| ITA,IT | Italia |
| JAM,JM | Jamaica |
| JPN,JP | JapÓn |
| JOR,JO | Jordania |
| KAZ,KZ | KazajstÁn |
| KEN,KE | Kenia |
| KIR,KI | Kiribati |
| KWT,KW | Kuwait |
| KGZ,KG | Kyrgyzstan |
| LBN,LB | LÍbano |
| LAO,LA | Laos |
| VIR,VI | Las Islas VÍrgenes De Ee.uu. |
| LSO,LS | Lesotho |
| LVA,LV | Letonia |
| LBR,LR | Liberia |
| LBY,LY | Libia |
| LIE,LI | Liechtenstein |
| LTU,LT | Lituania |
| LUX,LU | Luxemburgo |
| MEX,MX | México |
| MAC,MO | Macao |
| MKD,MK | Macedonia |
| MDG,MG | Madagascar |
| MLI,ML | MalÍ |
| MYS,MY | Malasia |
| MWI,MW | Malawi |
| MDV,MV | Maldivas |
| MLT,MT | Malta |
| MAR,MA | Marruecos |
| MTQ,MQ | Martinica |
| MUS,MU | Mauricio |
| MRT,MR | Mauritania |
| MYT,YT | Mayotte |
| MDA,MD | Moldavia |
| MCO,MC | Monaco |
| MNG,MN | Mongolia |
| MSR,MS | Montserrat |
| MOZ,MZ | Mozambique |
| MMR,MM | Myanmar |
| NER,NE | NÍger |
| NAM,NA | Namibia |
| NRU,NR | Nauru |
| NPL,NP | Nepal |
| NIC,NI | Nicaragua |
| NGA,NG | Nigeria |
| NIU,NU | Niue |
| NOR,NO | Noruega |
| NCL,NC | Nueva Caledonia |
| NZL,NZ | Nueva Zelanda |
| HMD,HM | OÍdo Y Mc Donald Islas |
| OMN,OM | OmÁn |
| NLD,NL | PaÍses Bajos |
| PAK,PK | PakistÁn |
| PLW,PW | Palau |
| PAN,PA | PanamÁ |
| PNG,PG | Papua Nueva Guinea |
| PRY,PY | Paraguay |
| PER,PE | PerÚ |
| PCN,PN | Pitcairn |
| PYF,PF | Polinesia Francesa |
| POL,PL | Polonia |
| PRT,PT | Portugal |
| PRI,PR | Puerto Rico |
| QAT,QA | Qatar |
| GBR,UK | Reino Unido |
| CAF,CF | RepÚblica Centroafricana |
| CZE,CZ | RepÚblica Checa |
| KOR,KR | RepÚblica De Corea |
| CIV,CI | RepÚblica De Marfil Costa De La |
| DOM,DO | RepÚblica Dominicana |
| REU,RE | Reunion |
| RWA,RW | Ruanda |
| ROM,RO | Rumania |
| ESH,EH | Sahara Occidental |
| KNA,KN | Saint Kitts Y Nevis |
| WSM,WS | Samoa |
| SMR,SM | San Marino |
| VCT,VC | San Vicente Y Las Granadinas |
| LCA,LC | Santa LucÍa |
| VAT,VA | Santa Sede Ciudad Del Vaticano |
| STP,ST | Santo TomÉ Y PrÍncipe |
| SEN,SN | Senegal |
| SRB,RS | Serbia |
| SYC,SC | Seychelles |
| SLE,SL | Sierra Leona |
| SGP,SG | Singapur |
| SYR,SY | Siria |
| SOM,SO | Somalia |
| LKA,LK | Sri Lanka |
| SHN,SH | St. Helena |
| SPM,PM | St. Pedro Y Miquelón |
| ZAF,ZA | SudÁfrica |
| SDN,SD | SudÁn |
| SWE,SE | Suecia |
| CHE,CH | Suiza |
| SUR,SR | Surinam |
| SWZ,SZ | Swazilandia |
| THA,TH | Tailandia |
| TWN,TW | Taiwan |
| TZA,TZ | Tanzania |
| TUN,TN | TÚnez |
| TJK,TJ | TayikistÁn |
| IOT,IO | Territorio Británico Del Océano |
| PSE,PS | Territorio Palestino |
| ATF,TF | Territorios Del Sur De Francia |
| TMP,TP | Timor Oriental |
| TGO,TG | Togo |
| TKL,TK | Tokelau |
| TON,TO | Tonga |
| TTO,TT | Trinidad Y Tobago |
| TKM,TM | TurkmenistÁn |
| TUR,TR | TurquÍa |
| TUV,TV | Tuvalu |
| UKR,UA | Ucrania |
| UGA,UG | Uganda |
| URY,UY | Uruguay |
| UZB,UZ | UzbekistÁn |
| VUT,VU | Vanuatu |
| VEN,UE | Venezuela |
| VNM,VN | Vietnam |
| YEM,YE | Yemen |
| DJI,DJ | Yibuti |
| ZMB,ZM | Zambia |
| ZWE,ZW | Zimbabwe |