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 = 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_sharing | optional | Cost 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_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 | Afghanistan |
| ALB,AL | Albania |
| DZA,DZ | Algeria |
| ASM,AS | American Samoa |
| AND,AD | Andorra |
| AGO,AO | Angola |
| AIA,AI | Anguilla |
| ATA,AQ | Antartide |
| ATG,AG | Antigua E Barbuda |
| ANT,AN | Antille Olandesi |
| SAU,SA | Arabia Saudita |
| ARG,AR | Argentina |
| ARM,AM | Armenia |
| ABW,AW | Aruba |
| AUS,AU | Australia |
| AUT,AT | Austria |
| AZE,AJ | Azerbaigian |
| BHS,BS | Bahamas |
| BHR,BH | Bahrain |
| BGD,BD | Bangladesh |
| BRB,BB | Barbados |
| BEL,BE | Belgio |
| BLZ,BZ | Belize |
| BEN,BJ | Benin |
| BMU,BM | Bermuda |
| BTN,BT | Bhutan |
| BLR,BY | Bielorussia |
| BOL,BO | Bolivia |
| BIH,BA | Bosnia-erzegovina |
| BWA,BW | Botswana |
| BRA,BR | Brasile |
| BRN,BN | Brunei Darussalam |
| BGR,BG | Bulgaria |
| BFA,BF | Burkina Faso |
| BDI,BI | Burundi |
| KHM,KH | Cambogia |
| CMR,CM | Camerun |
| CAN,CA | Canada |
| CPV,CV | Capo Verde |
| CXR,CX | Christmas Island |
| TCD,TD | Ciad |
| CHL,CL | Cile |
| CHN,CN | Cina |
| CYP,CY | Cipro |
| CCK,CC | Cocos Islands Keeling |
| COL,CO | Colombia |
| COM,KM | Comore |
| COG,CG | Congo |
| COD,ZR | Congo La Repubblica Democratica Del |
| CIV,CI | Costa D'avorio Repubblica Del |
| CRI,CR | Costa Rica |
| HRV,HR | Croazia Hrvatska |
| CUB,CU | Cuba |
| DNK,DK | Danimarca |
| DMA,DM | Dominica |
| ECU,EC | Ecuador |
| EGY,EG | Egitto |
| SLV,SV | El Salvador |
| ARE,AE | Emirati Arabi Uniti |
| ERI,ER | Eritrea |
| EST,EE | Estonia |
| ETH,ET | Etiopia |
| FLK,FK | Falkland Isole Malvinas |
| FRO,FO | Faroe Isole |
| RUS,RU | Federazione Russa |
| FJI,FJ | Fiji |
| PHL,PH | Filippine |
| FIN,FI | Finlandia |
| ATF,TF | Francesi Meridionali Territori |
| FRA,FR | Francia |
| GAB,GA | Gabon |
| GMB,GM | Gambia |
| GEO,GE | Georgia |
| SGS,GS | Georgia Del Sud E Isole Sandwich Del Sud |
| DEU,DE | Germania |
| GHA,GH | Ghana |
| JPN,JP | Giappone |
| GIB,GI | Gibilterra |
| DJI,DJ | Gibuti |
| JOR,JO | Giordania |
| GRC,GR | Grecia |
| GRD,GD | Grenada |
| GRL,GL | Groenlandia |
| GLP,GP | Guadeloupe |
| GUM,GU | Guam |
| GTM,GT | Guatemala |
| GIN,GN | Guinea |
| GNQ,GQ | Guinea Equatoriale |
| GNB,GW | Guinea-bissau |
| GUY,GY | Guyana |
| GUF,GF | Guyana |
| HTI,HT | Haiti |
| HMD,HM | Heard E Mc Donald Isole |
| HND,HN | Honduras |
| HKG,HK | Hong Kong |
| IND,IN | India |
| IDN,ID | Indonesia |
| IRN,IR | Iran |
| IRQ,IQ | Iraq |
| IRL,IE | Irlanda |
| ISL,IS | Islanda |
| BVT,BV | Isola Bouvet |
| CYM,KY | Isole Cayman |
| COK,CK | Isole Cook |
| MNP,MP | Isole Marianne Settentrionali |
| UMI,UM | Isole Minori Esterne Degli Stati Uniti D'amer |
| SLB,SB | Isole Salomone |
| TCA,TC | Isole Turks E Caicos |
| VGB,VG | Isole Vergini Britanniche |
| VIR,VI | Isole Vergini Usa |
| WLF,WF | Isole Wallis E Futuna |
| ISR,IL | Israele |
| ITA,IT | Italia |
| JAM,JM | Jamaica |
| KAZ,KZ | Kazakistan |
| KEN,KE | Kenya |
| KGZ,KG | Kirghizistan |
| KIR,KI | Kiribati |
| KWT,KW | Kuwait |
| LAO,LA | Laos |
| LSO,LS | Lesotho |
| LVA,LV | Lettonia |
| LBN,LB | Libano |
| LBR,LR | Liberia |
| LBY,LY | Libia |
| LIE,LI | Liechtenstein |
| LTU,LT | Lituania |
| LUX,LU | Lussemburgo |
| MAC,MO | Macau |
| MKD,MK | Macedonia |
| MDG,MG | Madagascar |
| MWI,MW | Malawi |
| MYS,MY | Malaysia |
| MDV,MV | Maldive |
| MLI,ML | Mali |
| MLT,MT | Malta |
| MAR,MA | Marocco |
| MHL,MH | Marshall Isole |
| MTQ,MQ | Martinica |
| MRT,MR | Mauritania |
| MUS,MU | Mauritius |
| MYT,YT | Mayotte |
| MEX,MX | Messico |
| FSM,FM | Micronesia Stati Federati Di |
| MDA,MD | Moldova |
| MCO,MC | Monaco |
| MNG,MN | Mongolia |
| MSR,MS | Montserrat |
| MOZ,MZ | Mozambico |
| MMR,MM | Myanmar |
| NAM,NA | Namibia |
| NRU,NR | Nauru |
| NPL,NP | Nepal |
| NIC,NI | Nicaragua |
| NER,NE | Niger |
| NGA,NG | Nigeria |
| NIU,NU | Niue |
| NFK,NF | Norfolk Island |
| NOR,NO | Norvegia |
| NCL,NC | Nuova Caledonia |
| NZL,NZ | Nuova Zelanda |
| OMN,OM | Oman |
| NLD,NL | Paesi Bassi |
| PAK,PK | Pakistan |
| PLW,PW | Palau |
| PAN,PA | Panama |
| PNG,PG | Papua Nuova Guinea |
| PRY,PY | Paraguay |
| PER,PE | Peru |
| PCN,PN | Pitcairn |
| PYF,PF | Polinesia Francese |
| POL,PL | Polonia |
| PRT,PT | Portogallo |
| PRI,PR | Puerto Rico |
| QAT,QA | Qatar |
| GBR,UK | Regno Unito |
| CZE,CZ | Repubblica Ceca |
| CAF,CF | Repubblica Centrafricana |
| KOR,KR | Repubblica Di Corea |
| DOM,DO | Repubblica Dominicana |
| REU,RE | Reunion |
| ROM,RO | Romania |
| RWA,RW | Rwanda |
| ESH,EH | Sahara Occidentale |
| KNA,KN | Saint Kitts E Nevis |
| LCA,LC | Saint Lucia |
| VCT,VC | Saint Vincent E Grenadine |
| WSM,WS | Samoa |
| SMR,SM | San Marino |
| VAT,VA | Santa Sede Vatican City State |
| STP,ST | Sao Tome E Principe |
| SEN,SN | Senegal |
| SRB,RS | Serbia |
| SYC,SC | Seychelles |
| SLE,SL | Sierra Leone |
| SGP,SG | Singapore |
| SYR,SY | Siria |
| SVK,SK | Slovacchia |
| SVN,SI | Slovenia |
| SOM,SO | Somalia |
| ESP,ES | Spagna |
| LKA,LK | Sri Lanka |
| SHN,SH | St. Helena |
| SPM,PM | St. Pierre E Miquelon |
| USA,US | Stati Uniti |
| ZAF,ZA | Sud Africa |
| SDN,SD | Sudan |
| SUR,SR | Suriname |
| SJM,SJ | Svalbard E Jan Mayen Isole |
| SWE,SE | Svezia |
| CHE,CH | Svizzera |
| SWZ,SZ | Swaziland |
| TUR,TR | Tacchino |
| TJK,TJ | Tagikistan |
| TWN,TW | Taiwan |
| TZA,TZ | Tanzania |
| IOT,IO | Territorio Britannico Dell'oceano Indiano |
| PSE,PS | Territorio Palestinese |
| THA,TH | Thailandia |
| TMP,TP | Timor Est |
| TGO,TG | Togo |
| TKL,TK | Tokelau |
| TON,TO | Tonga |
| TTO,TT | Trinidad E Tobago |
| TUN,TN | Tunisia |
| TKM,TM | Turkmenistan |
| TUV,TV | Tuvalu |
| UKR,UA | Ucraina |
| UGA,UG | Uganda |
| HUN,HU | Ungheria |
| URY,UY | Uruguay |
| UZB,UZ | Uzbekistan |
| VUT,VU | Vanuatu |
| VEN,UE | Venezuela |
| VNM,VN | Vietnam |
| YEM,YE | Yemen |
| ZMB,ZM | Zambia |
| ZWE,ZW | Zimbabwe |