Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

WeTravel Orders API

The Orders API from WeTravel — 7 operation(s) for orders.

WeTravel Orders API is one of 17 APIs that WeTravel publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Orders. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 7 operations across 7 paths, and defines 12 schemas. It is described by OpenAPI 3.0.1, at version 2.0.0.

Requests are made against 2 base URLs: https://api.wetravel.com/v2, https://api.demo.wetravel.to/v2.

7 operations 7 paths 12 schemas 3 GET4 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
2.0.0
Base URL
https://api.wetravel.com/v2
Authentication
HTTP Bearer, API Key
Resource Areas
1

Authentication & Security 2

WeTravel Orders API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). An API key is passed in the header as X-Api-Key (tokenAuth). By default, every request must be authenticated.

Paths & Operations 7

Across 7 paths, the API surfaces 7 operations — 3 GET, 4 PUT. Each is listed below with its method, path, parameters, and response codes.

Orders 7
PUT
/bookings/orders/{order_id}/edit_payment_plan
Edit payment plan for an order
editPaymentPlanByOrderId 1 param body → 200
PUT
/bookings/orders/batch/edit_payment_plan
Edit payment plans for multiple orders
editPaymentPlanByOrderIds body → 200
GET
/bookings/trips/{trip_uuid}/orders/{order_id}
Get an order
getOrderById 2 params → 200
GET
/bookings/trips/{trip_uuid}/bookings
List orders
getOrders 2 params → 200
GET
/bookings/trips/{trip_uuid}/bookings/{buyer_id}
List a buyer's orders
getOrdersByBuyer 3 params → 200
PUT
/bookings/orders/{order_id}/set_custom_price
Set a custom price for an order
setCustomPriceByOrderId 1 param body → 200
PUT
/bookings/orders/batch/set_custom_price
Set custom prices for multiple orders
setCustomPriceByOrderIds body → 200

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are Order (34 properties), OrderSummary (22 properties), Option (9 properties), Pagination (6 properties). Each schema is shown below with its type and property counts.

EsignDocumentSummary
object
EsignDocument object
2 properties
Installment
object
2 properties 2 required
Order
object
Order object
34 properties
Donation
object
Donation object
6 properties
CustomPrice
object
3 properties 2 required
BatchCustomPrice
object
4 properties 3 required
Buyer
object
Buyer object
3 properties
SnowflakeId
string
64-bit Snowflake identifier encoded as a decimal string
OrderSummary
object
OrderSummary object
22 properties
Option
object
Add-on model
9 properties 3 required
PaymentPlan
object
PaymentPlan model
4 properties
Pagination
object
Pagination object
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

wetravel-orders-api-openapi.yml Raw ↑

Other APIs WeTravel publishes across the network.

WeTravel Access token API
WeTravel Add-ons API
WeTravel Discounts API
WeTravel Images API
WeTravel Included items API
WeTravel Leads API
WeTravel Not Included items API
WeTravel Packages API
WeTravel Paragraphs API
WeTravel Participant Information API
WeTravel Payment Links API
WeTravel Payment Plans API