Skip to main content

Wink Payment API

Project description

trip-pay-sdk-payment

A programmatic way to create bookings, receive payment and disburse funds globally.

APIs

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

  • Affiliate: All APIs related to selling travel inventory as an affiliate.
  • Analytics: All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics.
  • Booking: All APIs related to creating platform bookings.
  • Channel Manager: All APIs related to channel managers who want to integrate with our platform.
  • Extranet: All APIs related to managing travel inventory and suppliers.
  • Inventory: All APIs related to retrieve known travel inventory as it was found using the Lookup API..
  • Lookup: All APIs related to locating inventory by region, locale and property flags.
  • Reference: All APIs related to retrieving platform-supported taxonomies.
  • TripPay: All APIs related to TripPay account management, booking, mapping and integration features.

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.

Usage

These features are made available to you via a REST API. This API is language agnostic. We will link to SDKs for the most popular programming languages on this page as they become available.

Versioning

We chose to version our endpoints in a way that we hope affects your integration with us the least. 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.

Release history

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

  • API version: 30.22.2
  • Package version: 0.0.34
  • Generator version: 7.15.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.34#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.34#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.34.tar.gz (212.6 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.34-py3-none-any.whl (417.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for trip_pay_payment-0.0.34.tar.gz
Algorithm Hash digest
SHA256 68e9aa6da9aa63e26991263adc1112d94ff52fb715da5911ea91555a21ead3b6
MD5 05bef05815e70c17af4360697bffe016
BLAKE2b-256 3a4a35f8646afeccc790d8876813d971106cafc765894fc0f8210d6a8e8ec891

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trip_pay_payment-0.0.34-py3-none-any.whl
Algorithm Hash digest
SHA256 8bdc28c64e3fdace61c246f94c3e3277038690c4733472da91c3cbe864218560
MD5 d82e68dd943a49be307d9742b6ae9c33
BLAKE2b-256 76f6ff9d0ea1d38951ccc410e6d77477bddf3ed41d99ef021541e81693910993

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