Skip to main content

Wink API

Project description

trip-pay-sdk-payment

Introduction

Welcome to the Wink API - A programmer-friendly way to manage, sell and book travel inventory on the Wink platform. The API gives you all the tools you need to ready your properties and inventory for sale across 1000s of our native sales channels. Integrators, affiliates, travel agents and content creators have the ability search for your travel inventory and promote / sell it in a wide variety of ways.

Integrations

We have already integrated with the most well-known channel managers so you don't have to. To see our current integrations, please go to https://extranet.wink.travel and scroll to Connectivity section. Once your properties are set up, you can finish the setup by mapping your property to Wink using your channel manager partner portal. If your properties don't have a channel manager, you can easily manage rates and availability with this API.

Intended Audience

Programmers are [most likely] a requirement to start integrating with Wink. Companies and organizations that would most benefit from integrating with us are new and existing travel companies that have relationships with suppliers and that need an advanced system from which to manage their travel inventory and get that same inventory out to as many eyeballs as possible at the lowest price possible.

  • Hotel chains
  • Hotel brands
  • Travel tech companies
  • Destination sites
  • Integrators
  • Aggregators
  • Destination management companies
  • Travel agencies
  • OTAs

APIs

Not every integrator needs every API. For that reason, we have separated APIs into context.

Common APIs

  • Analytics: All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics.
  • Channel manager: The Channel Manager API enables external channel manager partners to map, exchange rate / availability information with us as well as be informed of bookings that occur on the Wink platform for one of their properties.
  • Managing Entity: Endpoints that quickly show you which entities you have access to.
  • Notifications: The Notifications API is a way for us to stay in touch with your user, property or affiliate account.
  • Payment: All APIs related to TripPay account management, booking, mapping and integration features.
  • Ping: The Ping API is a quick test endpoint to verify that your credentials work.
  • Reference: All APIs related to retrieving platform-supported taxonomies.
  • User Settings: The User Settings API exposes endpoints to allow 3rd party integrators to communicate with Wink.

Consumer APIs

Consume endpoints are for developers who want to find existing travel inventory and either book it or use it to advertise through one of their Wink affiliate accounts.

  • Configuration: A single endpoint to retrieve whitelabel + customization information for the booking customization.
  • Lookup: All APIs related to locating inventory by region, locale and property flags.
  • Inventory: All APIs related to retrieve known travel inventory as it was found using the Lookup API..
  • Booking: All APIs related to creating bookings on the platform.
  • Travel Agent: The Travel Agent API exposes endpoints to manage agent-facilitated bookings.

Supplier APIs

Produce endpoints are for developers who want to create and manage travel inventory.

Property

  • Property Registration: As a producer, this is, oftentimes, where you start your journey. These endpoints let you create properties on Wink.
  • Property: This collection of property endpoints are mostly management endpoints that let you display, change status and similar for your existing properties.
  • Facilities: This collection of endpoints let you manage facilities; such as room types.
  • Experiences: This collection of endpoints let you manage experiences, such as activities.
  • Monetize: The Monetize API exposes endpoints for managing cancellation polies, rate plans, promotions and more on Wink.
  • Distribution: The Distribution API exposes endpoints for sales channels, connecting with affiliates, managing rates and inventory calendars and more on Wink.
  • Property Booking: The Property Booking API exposes endpoints for managing bookings and reviews at the property-level.

Affiliate

  • Affiliate: This collection of affiliate endpoints are mostly management endpoints that let you display, change status and similar for your existing accounts.
  • Browse: The Browse API exposes endpoints for affiliates to find suppliers and inventory to sell.
  • Inventory: The Inventory API exposes endpoints for affiliates to manage the inventory they want to sell and how they want to sell it.
  • Sales Channel: The Sales Channel API exposes endpoints for affiliates to manage existing sales channels as well as find new ones.
  • WinkLinks: The WinkLinks API exposes endpoints for affiliates to manage their WinkLinks page.

SDKs

We are actively working on supporting the most used languages out there. If you don't see your language here, reach out to us with a request to officially add your language. In the meantime, if you want to roll your own SDK, you can do so by downloading the OpenAPI spec and using one of the many available OpenAPI generators available: https://openapi-generator.tech/docs/generators.

Inventory

Payment

Usage

These features are made available to you via a REST API. This API is language agnostic.

Versioning

We chose to version our endpoints in a way that we hope affects your integration minimally. You request the version of our API you wish to work with via the Wink-Version header. When it's time for you to upgrade, you only have to change the version number to get access to our updated endpoints.

Current version: 2.0 Prior versions: None

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 30.30.3
  • Package version: 0.0.47
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

You can install the package from PyPi using:

pip install trip_pay_payment

Or you can install it directly from the repository using:

pip install git+https://github.com/wink-travel/trip-pay-sdk-python.git@v0.0.47#egg=trip_pay_payment&subdirectory=trip-pay-sdk-payment

(you may need to run pip with root permission: sudo pip install git+https://github.com/wink-travel/trip-pay-sdk-python.git@v0.0.47#egg=trip_pay_payment&subdirectory=trip_pay_payment)

Then import the package:

import trip_pay_payment

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import trip_pay_payment

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import trip_pay_payment
from trip_pay_payment.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.trippay.io
# See configuration.py for a list of all supported configuration parameters.
configuration = trip_pay_payment.Configuration(
    host = "https://api.trippay.io"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
with trip_pay_payment.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = trip_pay_payment.AccountApi(api_client)
    id = 'id_example' # str | 
    wink_version = 'wink_version_example' # str |  (optional)
    accept = 'accept_example' # str |  (optional)

    try:
        # Check Account Status
        api_response = api_instance.check_account_status(id, wink_version=wink_version, accept=accept)
        print("The response of AccountApi->check_account_status:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AccountApi->check_account_status: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.trippay.io

Class Method HTTP request Description
AccountApi check_account_status GET /api/account/{id}/status Check Account Status
AccountApi check_external_account_status GET /api/account/external/{id}/status Check External Account Status
AccountApi create_account POST /api/account Create Account
AccountApi create_account_bank_account POST /api/account/{id}/bank-account Add Bank Account
AccountApi create_external_account_bank_account POST /api/account/external/{id}/bank-account Add Bank Account to External
AccountApi delete_account DELETE /api/account/{id} Delete Account
AccountApi is_account_name_unique GET /api/account/unique/{name} Verify Account Name
AccountApi load_account GET /api/account/{id} Show Account
AccountApi load_account_by_name GET /api/account/name/{name} Show Accounts by Name
AccountApi load_account_by_name_like GET /api/account/name Show Accounts by Name like
AccountApi load_account_grid_for_authenticated_user POST /api/account/grid Show Account Grid for User
AccountApi load_accounts_for_authenticated_user GET /api/account/list Show Account for User
AccountApi load_external_account GET /api/account/external/{externalAccountIdentifier} Show Account for External
AccountApi remove_account_bank_account DELETE /api/account/{id}/bank-account/{bankAccountId} Remove Bank Account
AccountApi remove_external_account_bank_account DELETE /api/account/external/{id}/bank-account/{bankAccountId} Remove Bank Account for External
AccountApi search_account_by_name GET /api/account/search Search Accounts by Name
AccountApi show_accounts_by_owner GET /api/account/owner/list Show Accounts by Owner
AccountApi update_account PATCH /api/account/{id} Update Account
AccountApi update_external_account PATCH /api/account/external/{id} Update External Account
AccountApi update_national_identifier PATCH /api/account/{id}/task/{taskId}/tid Submit Tax ID
AccountApi upsert_account_bank_account PUT /api/account/{id}/bank-account/{bankAccountId} Update Bank Account
AccountApi upsert_external_account_bank_account PUT /api/account/external/{id}/bank-account/{bankAccountId} Update Bank Account for External
AccountApi verify_account PATCH /api/account/{id}/verify Verify Account
AccountMappingsApi create_account_mapping POST /api/account/{accountIdentifier}/mapping Create Account Mapping
AccountMappingsApi load_account_mapping GET /api/account/{accountIdentifier}/mapping/{id} Show Account Mapping
AccountMappingsApi load_account_mapping_grid POST /api/account/{accountIdentifier}/mapping/grid Show Account Mappings
AccountMappingsApi remove_account_mapping DELETE /api/account/{accountIdentifier}/mapping/{id} Delete Account Mapping
AccountMappingsApi update_account_mapping PUT /api/account/{accountIdentifier}/mapping/{id} Update Account Mapping
AffiliateApi show_affiliate_details POST /api/contract/affiliate/details Show Affiliate Details
AgentApi create_agent_sale POST /api/contract/agent Create Agent Payment
ApplicationApi create_application POST /api/application Create Application
ApplicationApi delete_application DELETE /api/application/{id} Delete Application
ApplicationApi load_application GET /api/application/{id} Show Application
ApplicationApi revoke_application GET /api/application/{id}/revoke Revoke Application Credentials
ApplicationApi show_applications_by_user GET /api/application/list Show Applications
ApplicationApi update_application PATCH /api/application/{id} Update Application
ContractApi cancel_booking_contract PATCH /api/contract/{identifier}/cancel Cancel booking
ContractApi cancel_group_booking_contract PATCH /api/contract/list/{traceId}/cancel Cancel group bookings
ContractApi create_payable_contracts POST /api/contract/payable Create payable contracts
ContractApi immediate_group_refund PATCH /api/contract/list/{traceId}/immediate-refund Immediate group refund
ContractApi immediate_refund PATCH /api/contract/{identifier}/immediate-refund Immediate refund
ContractApi is_contract_cancellable POST /api/contract/{identifier}/cancellable Contract cancellable
ContractApi is_group_contract_cancellable POST /api/contract/list/{traceId}/cancellable Group contract cancellable
ContractApi request_refund PATCH /api/contract/{identifier}/request-refund Request refund
ContractApi show_aggregate_booking_contract_data GET /api/account/{accountIdentifier}/contract/aggregate/beneficiary Retrieve aggregate beneficiary data
ContractApi show_aggregate_cancellation_data GET /api/account/{accountIdentifier}/contract/aggregate/cancellation Retrieve aggregate cancellation data
ContractApi show_capture_currencies GET /api/account/{accountIdentifier}/contract/capture Retrieve capture currencies
ContractApi show_contract GET /api/contract/{identifier} Retrieve single contract
ContractApi show_contract_for_external_account GET /api/account/external/{externalAccountIdentifier}/contract/{bookingContractIdentifier} Retrieve single contract for external account
ContractApi show_contract_funds GET /api/account/{accountIdentifier}/contract/funds Retrieve contract funds
ContractApi show_contract_grid POST /api/account/{accountIdentifier}/contract/grid Retrieve contract grid
ContractApi show_contracts GET /api/contract/list/{traceId} Retrieve multiple contracts
ContractApi show_external_contract GET /api/account/external/{externalAccountIdentifier}/contract/external/{externalBookingContractIdentifier} Retrieve single contract for external
ContractApi show_payable_contracts GET /api/contract/payable/{transientContractIdentifier} Load payable contracts
ManagingEntityApi show_managing_entities GET /api/managing-entity/{managingEntityIdentifier} Show Managing Entity
ManagingEntityApi show_managing_entities1 GET /api/managing-entity/list Show Managing Entities
MappingApi create_mapping POST /api/mapping Create Mapping
MappingApi load_mapping GET /api/mapping/{id} Show Mapping
MappingApi load_mapping_by_external_identifier GET /api/mapping/external/{id} Show External Mapping
MappingApi load_mappings GET /api/mapping/list Show Mappings
MappingApi remove_mapping DELETE /api/mapping/{id} Delete Mapping
MappingApi remove_mapping_by_external_identifier DELETE /api/mapping/external/{id} Delete External Mapping
MappingApi update_mapping PATCH /api/mapping/{id} Update Mapping
MappingApi update_mapping_by_external_identifier PATCH /api/mapping/external/{id} Update External Mapping
NotificationApi remove_notification DELETE /api/account/{accountIdentifier}/message/{messageIdentifier} Delete Notification
NotificationApi show_notification GET /api/account/{accountIdentifier}/message/{messageIdentifier} Show Notification
NotificationApi show_notifications GET /api/account/{accountIdentifier}/message/list Show Notifications
NotificationApi show_unread_message_count GET /api/account/{accountIdentifier}/message/count Show Unread Count
PingApi ping GET /api/hello Hello World
PingApi ping_error GET /api/hello/error Hello World Error
WebhookApi create_webhook POST /api/webhook Create Webhook
WebhookApi delete_webhook DELETE /api/webhook/{id} Delete Webhook
WebhookApi load_webhook GET /api/webhook/{id} Show Webhook
WebhookApi show_webhook_events GET /api/webhook/event/list Show Webhook Event List
WebhookApi show_webhooks_by_accounts_by_owner GET /api/webhook/list Show Webhooks
WebhookApi update_webhook PATCH /api/webhook/{id} Update Webhook

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

oauth2ClientCredentials

  • Type: OAuth
  • Flow: application
  • Authorization URL: https://iam.wink.travel/oauth2/authorize
  • Scopes:
  • payment.read: Read TripPay data
  • payment.write: Write TripPay data
  • payment.remove: Remove TripPay data

Author

bjorn@wink.travel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trip_pay_payment-0.0.47.tar.gz (246.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trip_pay_payment-0.0.47-py3-none-any.whl (556.1 kB view details)

Uploaded Python 3

File details

Details for the file trip_pay_payment-0.0.47.tar.gz.

File metadata

  • Download URL: trip_pay_payment-0.0.47.tar.gz
  • Upload date:
  • Size: 246.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for trip_pay_payment-0.0.47.tar.gz
Algorithm Hash digest
SHA256 a96bca5472032411bed9cc0dfe3a5991ef7d9a208162e2e5e5c6e47383376223
MD5 6ec44122b4eb06e5d4043d31dbf8561f
BLAKE2b-256 e63bf76571f7eee20071ed2a68cd9c1fb020f0cfe7993b94aa8a62cf0d50c8b2

See more details on using hashes here.

File details

Details for the file trip_pay_payment-0.0.47-py3-none-any.whl.

File metadata

File hashes

Hashes for trip_pay_payment-0.0.47-py3-none-any.whl
Algorithm Hash digest
SHA256 af6e91487b1994c0d49eb712c7c1d4aaa8259c5d069bc1b0cf2713aec8637d83
MD5 1aa0de6d5f99560b3be016ea495b1178
BLAKE2b-256 27b376d52ccc6fa9beb5e7d05940cda0c64eb11d0168685f8aa6c47cd9fa92a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page