Sandbox#
The Trip API Sandbox allows for testing your integration with the Trip API. The sandbox mocks all services, returning static responses for all RPCs, as outlined below. It is reachable via the URL documented in the Introduction.
ServiceAreaService#
ListServiceAreas#
Returns a successful response with one static Service Area.
GetServiceArea#
Returns a successful response with one static Service Area.
ListServiceHours#
Returns a successful response with one static Time Interval.
CustomerService#
CreateCustomer#
Returns a successful response with the given customer data and a static customer_id
.
DeleteCustomer#
Returns a successful response, independent of the given customer_id
.
GetCustomer#
Returns one static Customer with the given customer_id
.
ListCustomers#
Returns one static Customer, independent of previous calls to CreateCustomer
and DeleteCustomer
.
AddCustomerFlag#
Returns a successful response, independent of the given customer_id
.
RemoveCustomerFlag#
Returns a successful response, independent of the given customer_id
.
ListCustomerFlags#
Returns one static customer flag, independent of the given customer_id
and previous calls to AddCustomerFlag
and RemoveCustomerFlag
.
TripService#
RequestTripOffers#
Returns offers with the following tokens, independent of the given customer_id
:
accepted-trip-offer-token
rejected-trip-offer-token
OrderTrip#
Fails, unless given one of the following offer tokens, independent of the given customer_id
:
Offer Token |
Trip ID |
---|---|
|
|
|
|
GetTrip#
Fails, unless given one of the following trip IDs, independent of the given customer_id
:
Trip ID |
Response |
---|---|
|
A static trip in state |
|
A static trip in state |
CancelTripAsCustomer#
Fails, unless given the accepted-trip-id
, independent of the given customer_id
.
CancelTripAsIntegrator#
Fails, unless given the accepted-trip-id
, independent of the given customer_id
.
ListBoardingAuthenticationMethods#
Fails, unless given one of the following trip IDs, independent on the given customer_id
:
Trip ID |
Boarding Authentication Methods |
---|---|
|
|
|
(none) |
AuthenticateForBoarding#
Fails, unless given the accepted-trip-id
, independent of the given customer_id
.
FeedbackService#
ListPendingCustomerFeedbackForms#
Returns one FeedbackForm
with no questions, independent of the given customer_id
.
SubmitCustomerFeedback#
Returns a successful response, independent of the given customer_id
and feedback.
RefundService#
ListRefunds#
Returns one static Refund, independent of the given customer_id
.
GetRefund#
Returns one static Refund, requested by a provided refund_id
.