Due to the nature of our system, and the fact that a publisher can only create one side of a matching reservation, testing your integration with our system can be a little tricky. In order to help with that we have created a few fictitious accounts that can be used by everyone. We colloquially refer to these at the Gemstone Accounts (see below).

You will see these test entities in the user portal as well, and just like other partners, you must subscribe to the bundles for these accounts in order to get subscription messages for them. All communication to and from these accounts will not incur any actual charges to your account, regardless of the cost set on the subscriptions. They are for testing only.

Current set of testing accounts

Entity Industry
Sapphire Airlines air
Emerald Suites hotel
Topaz Car Rental car

In order to test the bundles that you want to subscribe to, you will need to create reservations with customer data that matches up with the gemstone customers. You will also need to create a reservation in one of the gemstone accounts that will have similar locations and dates.

Customer Data

We have created a set of 100 customers just for testing, and have uploaded them to all of the gemstone accounts. When you create test customers and reservations in your system, using any of these customer data sets will ensure a proper match with all test accounts. See the customer list below.

Reservation Data

Once you create a reservation and it is sent to Dihedral, you can trigger a companion reservation in one of the gemstone accounts and force a match on both of them. The reservation generator will bypass the typical location comparison and forcibly trigger the match. All subscribed bundles will then be processed, and sent as they arrive.

Generate Script

There is a simple api endpoint that will help trigger the creation of testing reservations and other events from the gemstone accounts. Since it has the same authentication criteria as the publish api, we have created a simple script that will generate the message and authentication for you. You just need to supply your api key and secret.

Python v2.x:
n/a - let us know if you need a version for v2, we will port it
Python v3.x:
generate.py

Generate Request Fields

Industry
Which industry (ie which Gemstone account) does the action apply to
Action
Which action to invoke, which events to create
ReservationId
The Id of the reservation that you are going to match to
CustomerId
The Id of the customer that you are going to match to

Action Codes

booking
Create a new booking
cancel
Cancel an existing booking
checkin
Create a Check In event (or the closest to a check in for the industry)
checkout
Create a Check Out event (or the closest to a check out for the industry)
flightstatus
Create an AirFlightStatus event (only valid for air industry)

Example Invocation

If, for example, you are a hotel publisher, and you published a reservation with the id 10000006 for a customer with id 10000005, you could create a matched air reservation in our staging environment with the following command:

generate.py -i air -a booking -c 10000005 -r 10000006 -S \
  -k ecc21f08-5428-407f-be22-f59628b946c3 \
  -s KUv5kFx9mLa3FFk3YGx2dqw4tCB8Dam2VYy3bKS4Ooy6hKk4Ogw4nWT7dmX2tkc9

After that, you could trigger a check in with the following command:

generate.py -i air -a checkin -c 10000005 -r 10000006 -S \
  -k ecc21f08-5428-407f-be22-f59628b946c3 \
  -s KUv5kFx9mLa3FFk3YGx2dqw4tCB8Dam2VYy3bKS4Ooy6hKk4Ogw4nWT7dmX2tkc9

Using Postman

If you prefer to use the Postman API request generation tool, we've created a Postman collection with sample code for publishing and generating events in staging and production through the API. You can download the file and import it directly into Postman with minimal configuration.

To make a POST request to the endpoints in the collection, you will need to add the client_key and secret_key variables to the top level folder under the Variables tab.

On top of the necessary endpoints and sample JSON body, the postman collection also includes a pre-request Script that will generate the HMAC Authentication header for each request.

Postman:
download page
Postman collection:
partner_onboarding.postman_collection.json

Customer Data

The list of test customers entered into the gemstone accounts was generated via Mockaroo.com. The entire customer list is provided below for your convenience. You can also download the entire customers.csv file.

We can also import a set of customers from your system into the gemstone accounts. If you export your customers as a csv file in the same format, we can easily upload them into our system.

Any similarity with real people or companies, was purely coincidental.

CustomerId FirstName LastName Email Phone Address Dob Gender
10000001 Karie Bradnam kbradnam0@bbb.org 915-752-1851 521 Colorado Way El Paso TX 88569 1992-10-16 female
10000002 Sigfrid Chevolleau schevolleau1@spiegel.de 574-507-1059 383 Cascade Center South Bend IN 46634 1988-01-04 male
10000003 Gerhard Tailby gtailby2@is.gd 915-607-1565 701 Hovde Hill El Paso TX 79968 1986-01-05 male
10000004 Yank Pitceathly ypitceathly3@mapquest.com 714-852-5008 6 Cambridge Center Anaheim CA 92812 1959-11-17 male
10000005 Ban Pigden bpigden4@nymag.com 415-402-5215 2734 Darwin Parkway San Francisco CA 94121 1991-07-18 male
10000006 Drake Farnfield dfarnfield5@opensource.org 716-693-8523 6 Basil Hill Buffalo NY 14225 1968-02-15 male
10000007 Aretha Demongeot ademongeot6@gnu.org 234-451-0830 97920 Heffernan Place Akron OH 44393 1975-11-19 female
10000008 Tessie Bikker tbikker7@nytimes.com 772-757-1574 4 Boyd Pass Vero Beach FL 32964 1950-07-26 female
10000009 Erda Binding ebinding8@un.org 770-844-2062 79 Sunfield Place Decatur GA 30089 1977-11-07 female
10000010 Terrie Adamowitz tadamowitz9@berkeley.edu 203-943-5832 34 Lake View Alley Waterbury CT 06726 1956-05-01 female
10000011 Ennis Conti econtia@is.gd 810-978-0687 47636 Cordelia Avenue Flint MI 48555 1952-07-09 male
10000012 Natale Heibl nheiblb@lycos.com 559-142-2563 42 Summer Ridge Hill Visalia CA 93291 1997-09-04 male
10000013 Sallie Claxton sclaxtonc@newsvine.com 513-281-6491 8978 Claremont Trail Cincinnati OH 45296 1958-02-12 female
10000014 Berky MacMorland bmacmorlandd@xrea.com 404-699-9309 79441 Welch Street Decatur GA 30033 2010-07-07 male
10000015 Irv Lewsie ilewsiee@howstuffworks.com 559-864-6973 98 Red Cloud Court Fresno CA 93709 1994-12-21 male
10000016 Neale Wildes nwildesf@elpais.com 213-574-3336 1 Farwell Lane Van Nuys CA 91499 1953-08-01 male
10000017 Loutitia Paulou lpauloug@fda.gov 318-398-1243 74578 Russell Pass Shreveport LA 71130 1996-03-22 female
10000018 Freddy Olensby folensbyh@netlog.com 775-451-8700 93 Larry Parkway Sparks NV 89436 1984-03-06 male
10000019 Alane Ambrodi aambrodii@ucoz.ru 214-871-3975 2 Ruskin Junction Dallas TX 75372 1981-07-11 female
10000020 Colette Tayspell ctayspellj@independent.co.uk 412-238-5458 3 Utah Street Pittsburgh PA 15240 1957-05-09 female
10000021 Cathi Gosker cgoskerk@godaddy.com 239-873-9632 70979 Lake View Court Naples FL 34114 1983-06-22 female
10000022 Fremont Gulleford fgullefordl@friendfeed.com 214-142-3598 3 Dixon Lane Dallas TX 75372 1995-12-18 male
10000023 Othello Hobble ohobblem@bing.com 518-544-9701 0 Huxley Terrace Albany NY 12227 1978-11-26 male
10000024 Darby Omand domandn@buzzfeed.com 570-136-3618 102 3rd Terrace Scranton PA 18505 1966-05-12 female
10000025 Neila Northage nnorthageo@domainmarket.com 303-131-1108 314 Dennis Street Denver CO 80291 1956-10-31 female
10000026 Carine Fomichyov cfomichyovp@about.me 410-924-4936 030 Ruskin Pass Baltimore MD 21265 1995-03-22 female
10000027 Hyacinthe McCaskell hmccaskellq@oaic.gov.au 414-567-6364 14 Holy Cross Court Milwaukee WI 53215 1995-04-27 female
10000028 Collie Grinikhin cgrinikhinr@eventbrite.com 704-847-0638 50 Marquette Hill Charlotte NC 28215 1975-02-08 female
10000029 Jaquenette Tampling jtamplings@redcross.org 775-323-9927 116 Buhler Hill Carson City NV 89714 1990-10-31 female
10000030 Delphinia Harkins dharkinst@tmall.com 281-100-9038 9223 Glacier Hill Place Houston TX 77095 1987-07-21 female
10000031 Hyacintha Camilio hcamiliou@usatoday.com 310-499-0545 8 Scoville Hill Anaheim CA 92805 1990-08-07 female
10000032 Lari Sheather lsheatherv@chicagotribune.com 816-723-2061 7860 Express Circle Kansas City MO 64153 1998-02-03 female
10000033 Pet Ceney pceneyw@webmd.com 904-909-7619 1 Shopko Terrace Jacksonville FL 32259 1966-07-08 female
10000034 Tiphani Petriello tpetriellox@princeton.edu 434-568-3385 3128 Spaight Court Manassas VA 22111 1969-01-02 female
10000035 Launce Petrik lpetriky@omniture.com 773-599-5687 96965 Spenser Pass Chicago IL 60641 1982-08-13 male
10000036 Ingaberg Gillyett igillyettz@princeton.edu 605-660-8136 728 Macpherson Avenue Sioux Falls SD 57193 2007-01-29 female
10000037 Peirce Pendle ppendle10@stumbleupon.com 469-740-0771 7 Roth Lane Dallas TX 75251 1988-10-25 male
10000038 Ajay Rist arist11@si.edu 781-984-0126 38700 Corscot Road Lynn MA 01905 1975-09-01 female
10000039 Carina Day cday12@ebay.com 775-113-6644 3 Acker Road Carson City NV 89706 1994-07-09 female
10000040 Ailina Foldes afoldes13@csmonitor.com 619-572-7586 761 Golf Course Street Chula Vista CA 91913 1984-11-26 female
10000041 Moyra Obray mobray14@pagesperso-orange.fr 215-497-0140 7445 Ramsey Crossing Philadelphia PA 19131 1966-11-14 female
10000042 Minne Mullineux mmullineux15@chronoengine.com 971-291-2370 02 Tennessee Street Portland OR 97240 1998-02-08 female
10000043 Cairistiona Pengelly cpengelly16@weebly.com 605-938-4490 70 Loomis Lane Sioux Falls SD 57110 1954-10-29 female
10000044 Farrell Kimm fkimm17@instagram.com 915-670-9629 765 Division Place El Paso TX 88514 1976-01-22 male
10000045 Heidi Vigietti hvigietti18@huffingtonpost.com 407-558-2645 35850 Amoth Place Winter Haven FL 33884 1959-03-03 female
10000046 Merrick Fortye mfortye19@blogs.com 360-396-3776 372 Oak Crossing Seattle WA 98109 1973-07-22 male
10000047 Rouvin Rowlinson rrowlinson1a@disqus.com 570-780-9380 0064 Surrey Park Wilkes Barre PA 18768 1983-04-27 male
10000048 Bobbie Fishley bfishley1b@google.fr 217-733-2521 1 Vernon Junction Springfield IL 62705 1987-08-22 male
10000049 Rosamond Burdge rburdge1c@about.me 203-732-4305 035 Gulseth Crossing Stamford CT 06912 1959-09-12 female
10000050 Early Holley eholley1d@cam.ac.uk 202-971-5671 914 Leroy Center Washington DC 20057 1953-11-30 male
10000051 Fred Prozescky fprozescky1e@addtoany.com 336-730-0112 529 Iowa Park Greensboro NC 27499 1964-11-05 male
10000052 Calvin Penquet cpenquet1f@istockphoto.com 330-711-1098 3976 Lien Park Warren OH 44485 1958-11-27 male
10000053 Grata Powling gpowling1g@shareasale.com 850-148-0461 0839 Quincy Center Pensacola FL 32575 1975-03-31 female
10000054 Natty Quant nquant1h@hud.gov 212-942-3917 0682 Waubesa Trail Brooklyn NY 11254 1954-09-05 female
10000055 Lyndel Oldcote loldcote1i@sakura.ne.jp 678-967-9427 58 Buell Drive Atlanta GA 30306 1969-11-13 female
10000056 Gabey Martyntsev gmartyntsev1j@economist.com 678-864-8565 811 Holmberg Crossing Alpharetta GA 30022 1975-11-30 female
10000057 Shell Nockells snockells1k@symantec.com 724-748-2596 04 Kipling Place Pittsburgh PA 15235 1965-03-13 male
10000058 Cicely Westnedge cwestnedge1l@nasa.gov 937-662-7020 0 Armistice Way Dayton OH 45403 1987-06-17 female
10000059 Henriette Lindell hlindell1m@tiny.cc 260-936-8982 63 Helena Way Fort Wayne IN 46852 1977-08-09 female
10000060 Cosimo Jickles cjickles1n@cornell.edu 602-354-7661 9 Hermina Avenue Phoenix AZ 85077 1950-12-08 male
10000061 Richy Cattenach rcattenach1o@businessinsider.com 785-336-5437 793 Crownhardt Point Topeka KS 66642 1957-05-04 male
10000062 Tildi Regnard tregnard1p@cdbaby.com 559-142-3247 93 Vahlen Junction Fresno CA 93715 1979-04-05 female
10000063 King Dakhov kdakhov1q@reverbnation.com 309-695-8048 3 Doe Crossing Center Peoria IL 61629 1979-03-17 male
10000064 Johnna Cater jcater1r@goodreads.com 915-301-1028 55956 1st Road El Paso TX 88584 1965-12-17 female
10000065 Moselle Wimmers mwimmers1s@360.cn 717-576-6465 83274 Pierstorff Circle Harrisburg PA 17126 1988-05-02 female
10000066 Kaye Lanfranconi klanfranconi1t@google.it 414-173-9412 5030 John Wall Pass Milwaukee WI 53220 1966-12-24 female
10000067 Verile Langhorne vlanghorne1u@berkeley.edu 865-627-8578 64346 Declaration Park Knoxville TN 37939 1992-02-25 female
10000068 Haskell Styan hstyan1v@harvard.edu 917-287-7599 22 Killdeer Point Bronx NY 10464 1980-11-05 male
10000069 Bernadine Castro bcastro1w@de.vu 716-657-6315 62713 Artisan Court Buffalo NY 14210 1986-09-29 female
10000070 Krystal Lowerson klowerson1x@mlb.com 941-473-6811 4 Daystar Road North Port FL 34290 1982-04-04 female
10000071 Rosalynd Zanelli rzanelli1y@cdbaby.com 520-308-2101 64 Continental Park Tucson AZ 85748 1963-09-18 female
10000072 Rolando Bryns rbryns1z@squidoo.com 214-702-1015 3 Bayside Court Dallas TX 75323 2002-10-26 male
10000073 Alfonso Tutton atutton20@addthis.com 989-794-1105 937 Northport Street Midland MI 48670 1959-06-21 male
10000074 Christoper Dowman cdowman21@eventbrite.com 509-407-3165 75 Hoepker Park Spokane WA 99252 1993-12-11 male
10000075 Nobe Scholtz nscholtz22@studiopress.com 404-780-0849 449 Moose Center Atlanta GA 30392 1962-03-12 male
10000076 Dave Kasper dkasper23@hp.com 303-341-7831 11101 Welch Hill Denver CO 80279 1989-06-11 male
10000077 Lelia Allsup lallsup24@ow.ly 203-392-7023 218 Starling Plaza Bridgeport CT 06673 1964-10-01 female
10000078 Ebeneser Causier ecausier25@reverbnation.com 651-884-3043 9 Melby Parkway Saint Paul MN 55123 1966-05-09 male
10000079 Elsbeth Roderham eroderham26@usgs.gov 971-819-5964 62 Linden Place Portland OR 97229 1953-06-26 female
10000080 Grazia Bodleigh gbodleigh27@canalblog.com 203-606-8482 489 Ruskin Drive New Haven CT 06510 1994-03-07 female
10000081 Tull Sherwill tsherwill28@patch.com 650-888-1084 6054 Delladonna Trail Sunnyvale CA 94089 1970-03-23 male
10000082 Wilone O'Fogarty wofogarty29@mapquest.com 516-491-8990 887 La Follette Avenue New Hyde Park NY 11044 1984-07-27 female
10000083 Thorny Simants tsimants2a@mtv.com 213-271-9085 00 Red Cloud Court Van Nuys CA 91499 2001-02-11 male
10000084 Abdel Bravington abravington2b@slashdot.org 818-694-4378 8 Porter Crossing Northridge CA 91328 1982-12-01 male
10000085 Smith Knapman sknapman2c@upenn.edu 303-295-0377 0 Corben Circle Aurora CO 80044 1997-07-17 male
10000086 Ab Pegler apegler2d@simplemachines.org 202-539-2110 28 Knutson Center Alexandria VA 22309 2005-02-19 male
10000087 Eryn Petersen epetersen2e@vistaprint.com 512-457-4101 41 Gerald Street Austin TX 78764 2004-12-29 female
10000088 Janeen Liddicoat jliddicoat2f@cdc.gov 419-842-3140 9255 Graedel Plaza Toledo OH 43666 1966-10-14 female
10000089 Jecho Farrance jfarrance2g@ca.gov 515-950-6313 3 Alpine Circle Des Moines IA 50347 2008-10-08 male
10000090 Matthiew Stamper mstamper2h@fda.gov 513-479-5145 5 Towne Hill Cincinnati OH 45218 1988-04-23 male
10000091 Herculie Bartocci hbartocci2i@bizjournals.com 317-343-1597 7768 Chive Point Indianapolis IN 46226 1987-01-20 male
10000092 Bradan Siderfin bsiderfin2j@sciencedirect.com 313-146-9715 44403 Redwing Terrace Detroit MI 48211 1957-05-07 male
10000093 Trudy Ricciardiello tricciardiello2k@youku.com 404-966-4124 41692 Comanche Point Atlanta GA 30375 1995-09-14 female
10000094 Ingrid Joule ijoule2l@businessweek.com 214-159-9566 90 Esker Park Dallas TX 75221 1955-08-17 female
10000095 Bellina Bidmead bbidmead2m@go.com 206-118-5574 20601 Parkside Court Seattle WA 98115 1952-08-11 female
10000096 Claudie Giabucci cgiabucci2n@mayoclinic.com 903-379-3773 15 Vera Way Tyler TX 75710 1966-02-10 female
10000097 Jakie Forge jforge2o@trellian.com 806-101-7425 49826 Everett Court Lubbock TX 79405 2005-11-16 male
10000098 Russ Abram rabram2p@go.com 202-406-9764 39542 Vermont Junction Washington DC 20508 1973-07-28 male
10000099 Olin Brockton obrockton2q@storify.com 281-645-7125 340 Monica Court Galveston TX 77554 1990-12-10 male
10000100 Archaimbaud Yallowley ayallowley2r@list-manage.com 256-758-8103 250 Straubel Alley Huntsville AL 35815 1950-05-02 male