Wink Payment API
Project description
trip-pay-sdk-payment
A programmatic way to create bookings, receive reactive 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
- Follow updates on Github: https://github.com/wink-travel/wink-sdk-java/blob/master/CHANGELOG.md
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 30.17.11
- Package version: 0.0.21
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.8+
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.21#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.21#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 |
| ActivityStreamApi | create_activity | POST /api/activity-stream | Create Activity Stream |
| ActivityStreamApi | show_stream | GET /api/activity-stream/{entityIdentifier}/list | Show Activity Stream |
| 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 |
| SendNotificationControllerApi | create_notification | POST /api/administration/notification |
Documentation For Models
- Account
- AccountStatusResponse
- AcquirerCredentials
- ActivityStream
- ActivityStreamUser
- Address
- AffiliateDetailsRequest
- AffiliateInformation
- AggregateBookingContractCancellationState
- AggregateBookingContractCaptureCurrenciesByAccountResponse
- AggregateDescriptor
- Application
- AuthenticatedUser
- AvailableFunds
- BankAccount
- Beneficiary
- BeneficiaryAggregateData
- BeneficiaryCharge
- BookingContract
- BookingContractCancellableResponse
- BookingContractGridResponse
- BookingContractItem
- BookingContractPaymentDetails
- CancelBookingContractRequest
- CompositeFilterDescriptor
- Contact
- CountResponse
- CountryLightweight
- CreateAccountRequest
- CreateAgentSaleRequest
- CreateApplicationResponse
- CreateMappingRequest
- CustomMonetaryAmount
- ExternalBookingContract
- FilterDescriptor
- GeoJsonPoint
- GeoNameLightweight
- GroupDescriptor
- GuestUser
- ImmediateRefundRequest
- Integrator
- KeyValuePair
- ManagingEntity
- Mapping
- MultiBookingContractResponse
- Notification
- PageAccount
- PageBookingContract
- PageMapping
- PageableObject
- PayableContract
- PayableContractRequest
- PayableContractResponse
- PayableContractSupplier
- PayableContractSupplierItem
- PayableContractSupplierItemBeneficiary
- Personal
- Preferences
- PricedSupplierContractWithAcquirer
- ProfileLightweight
- ProfileUser
- QuoteLightweight
- RefundRequest
- RemoveEntryResponse
- RevokeClientIdResponse
- SendNotification
- SetTaxIdentifierRequest
- SimpleDateTimeItinerary
- SortDescriptor
- SortObject
- State
- SubCountryLightweight
- SubSubCountryLightweight
- SupplierContractItemPolicy
- TotalAggregateFunds
- UniqueResult
- UpdateApplicationResponse
- UpdateMappingRequest
- UpsertAccountMappingRequest
- UpsertAccountRequest
- UpsertActivityStreamRequest
- UpsertAddressRequest
- UpsertApplicationRequest
- UpsertBankAccountRequest
- UpsertCityOnlyAddressRequest
- UpsertWebhookRequest
- VerifyAccountRequest
- Webhook
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trip_pay_payment-0.0.21.tar.gz.
File metadata
- Download URL: trip_pay_payment-0.0.21.tar.gz
- Upload date:
- Size: 209.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
369738138acd3799558ce4abaf4f2503a1a6154e5cb5b9d2118f13a8ff9bef65
|
|
| MD5 |
4d6767098474ca5c54bded727cf7e54d
|
|
| BLAKE2b-256 |
d68932151d489ed5e0861b0ea0e4dcbff3c6f6ee934ae8262806ccda71b02b64
|
File details
Details for the file trip_pay_payment-0.0.21-py3-none-any.whl.
File metadata
- Download URL: trip_pay_payment-0.0.21-py3-none-any.whl
- Upload date:
- Size: 415.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1aeab0090c1042099e82dcf74b4ab4d73471782b285250bc44b340cf82c10e2
|
|
| MD5 |
9d3e9e164edc2bfa67ebd29190de3acd
|
|
| BLAKE2b-256 |
697fb67b55d50ebe28926d1c3243846ef986140eb7903bdc6a7575992b3eda31
|