Client for splitit-web-api-v3
Project description
splitit-web-python-sdk
Splitit's Web API
Requirements
Python >=3.7
Installing
pip install splitit-web-python-sdk==2.6.0
Getting Started
from pprint import pprint
from splitit_client import Splitit, ApiException
splitit = Splitit(
# Defining the host is optional and defaults to https://web-api-v3.production.splitit.com
# See configuration.py for a list of all supported configuration parameters.
host="https://web-api-v3.production.splitit.com",
# Configure OAuth2 access token for authorization: oauth
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
try:
cancel_response = splitit.installment_plan.cancel(
installment_plan_number="installmentPlanNumber_example", # required
x_splitit_idempotency_key="X-Splitit-IdempotencyKey_example", # required
x_splitit_touch_point="", # required
)
pprint(cancel_response.body)
pprint(cancel_response.body["installment_plan_number"])
pprint(cancel_response.headers)
pprint(cancel_response.status)
pprint(cancel_response.round_trip_time)
except ApiException as e:
print("Exception when calling InstallmentPlanApi.cancel: %s\n" % e)
pprint(e.body)
if e.status == 401:
pprint(e.body["trace_id"])
pprint(e.body["error"])
if e.status == 500:
pprint(e.body["trace_id"])
pprint(e.body["error"])
if e.status == 403:
pprint(e.body["trace_id"])
pprint(e.body["error"])
if e.status == 404:
pprint(e.body["trace_id"])
pprint(e.body["error"])
pprint(e.headers)
pprint(e.status)
pprint(e.reason)
pprint(e.round_trip_time)
Async
async support is available by prepending a to any method.
import asyncio
from pprint import pprint
from splitit_client import Splitit, ApiException
splitit = Splitit(
# Defining the host is optional and defaults to https://web-api-v3.production.splitit.com
# See configuration.py for a list of all supported configuration parameters.
host="https://web-api-v3.production.splitit.com",
# Configure OAuth2 access token for authorization: oauth
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
async def main():
try:
cancel_response = await splitit.installment_plan.acancel(
installment_plan_number="installmentPlanNumber_example", # required
x_splitit_idempotency_key="X-Splitit-IdempotencyKey_example", # required
x_splitit_touch_point="", # required
)
pprint(cancel_response.body)
pprint(cancel_response.body["installment_plan_number"])
pprint(cancel_response.headers)
pprint(cancel_response.status)
pprint(cancel_response.round_trip_time)
except ApiException as e:
print("Exception when calling InstallmentPlanApi.cancel: %s\n" % e)
pprint(e.body)
if e.status == 401:
pprint(e.body["trace_id"])
pprint(e.body["error"])
if e.status == 500:
pprint(e.body["trace_id"])
pprint(e.body["error"])
if e.status == 403:
pprint(e.body["trace_id"])
pprint(e.body["error"])
if e.status == 404:
pprint(e.body["trace_id"])
pprint(e.body["error"])
pprint(e.headers)
pprint(e.status)
pprint(e.reason)
pprint(e.round_trip_time)
asyncio.run(main())
Documentation for API Endpoints
All URIs are relative to https://web-api-v3.production.splitit.com
| Tag | Method | HTTP request | Description |
|---|---|---|---|
| InstallmentPlan | cancel | POST /api/installmentplans/{installmentPlanNumber}/cancel | |
| InstallmentPlan | check_eligibility | POST /api/installmentplans/check-eligibility | |
| InstallmentPlan | get | GET /api/installmentplans/{installmentPlanNumber} | |
| InstallmentPlan | post | POST /api/installmentplans/initiate | |
| InstallmentPlan | post2 | POST /api/installmentplans | |
| InstallmentPlan | refund | POST /api/installmentplans/{installmentPlanNumber}/refund | |
| InstallmentPlan | search | GET /api/installmentplans/search | |
| InstallmentPlan | update_order | PUT /api/installmentplans/{installmentPlanNumber}/updateorder | |
| InstallmentPlan | update_order2 | PUT /api/installmentplans/updateorder | |
| InstallmentPlan | verify_authorization | GET /api/installmentplans/{installmentPlanNumber}/verifyauthorization |
Documentation For Models
- AddressData
- AddressDataModel
- AuthorizationModel
- BluesnapVaultedShopperToken
- CardBrand
- CardData
- CardType
- CheckInstallmentsEligibilityRequest
- Error
- ErrorExtended
- EventsEndpointsModel
- FailedResponse
- GatewayTokenData
- GwAuthorizationStatus
- IdentifierContract
- IdentifierContractExtendedParams
- InitiatePlanResponse
- InitiatePlanResponseExtendedParams
- InitiateRedirectionEndpointsModel
- Installment
- InstallmentPlanCancelResponse
- InstallmentPlanCreateRequest
- InstallmentPlanCreateResponse
- InstallmentPlanCreateResponseExtendedParams
- InstallmentPlanGetResponse
- InstallmentPlanGetResponseExtendedParams
- InstallmentPlanInitiateRequest
- InstallmentPlanRefundRequest
- InstallmentPlanRefundResponse
- InstallmentPlanSearchResponse
- InstallmentPlanUpdateRequest
- InstallmentPlanUpdateRequestByIdentifier
- InstallmentPlanUpdateResponse
- InstallmentStatus
- InstallmentsEligibilityResponse
- LinksData
- LinksModel
- MockerShopperToken
- PaymentMethodModel
- PaymentMethodType
- PaymentPlanOptionModel
- PlanData
- PlanDataAllowedInstallmentOptions
- PlanDataModel
- PlanDataModelExtendedParams
- PlanDataTags
- PlanErrorResponse
- PlanStatus
- ProcessingData
- ProcessingData2
- PurchaseMethod
- RedirectionEndpointsModel
- RefundModel
- RefundStatus
- RefundStrategy
- RefundSummary
- SearchInstallmentPlanResponseItem
- SearchInstallmentPlanResponseItemExtendedParams
- ShippingStatus
- ShippingStatus2
- ShopperData
- SpreedlyToken
- TestModes
- ThreeDSData
- ThreeDSData2
- ThreeDsRedirectDataV3
- ThreeDsRedirectDataV3Params
- UpdateOrderRequest
- UxSettingsModel
- UxSettingsModelDisplayedInstallmentOptions
- VerifyAuthorizationResponse
Author
This Python package is automatically generated by Konfig
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
splitit_web_python_sdk-2.6.0.tar.gz
(100.5 kB
view details)
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 splitit_web_python_sdk-2.6.0.tar.gz.
File metadata
- Download URL: splitit_web_python_sdk-2.6.0.tar.gz
- Upload date:
- Size: 100.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e2a86349a717234224ab57ca0821713fb98e1f1228e237e20a0b73dd0f58566
|
|
| MD5 |
54bf6d5a10e5f5dc07ad6396d8c66dba
|
|
| BLAKE2b-256 |
bd075742b0af90c8170ae7cd597517099a30397433afe65e417326579a01f3ec
|
File details
Details for the file splitit_web_python_sdk-2.6.0-py3-none-any.whl.
File metadata
- Download URL: splitit_web_python_sdk-2.6.0-py3-none-any.whl
- Upload date:
- Size: 324.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8e01acd9344f86ed1c04b98bcf27ac8b1aab34647c914d847e1b0c8da6b9812
|
|
| MD5 |
1d6bf898e92780b87a9a3ece10d36af8
|
|
| BLAKE2b-256 |
2f0d20d1f1e6dd499aaa10dfe8717599bd76f8e38fff653272e240e506a581e1
|