Skip to main content

Xendit REST API Client for Python - Invoice, Payment Request, Payment Method, Refund, Balance, Transaction, Customer, and Payout Services https://xendit.github.io/apireference/

Project description

Xendit Python SDK

Xendit Python SDK

The official Xendit Python SDK provides a simple and convenient way to call Xendit's REST API in applications written in Python.

  • Package version: 3.6.0

Requirements

Python >= 3.10

Getting Started

Installation

Install directly from Xendit's Github Repository:

pip install git+https://github.com/xendit/xendit-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/xendit/xendit-python.git)

Then import the package:

import xendit

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 xendit

Authorization

The SDK needs to be instantiated using your secret API key obtained from the Xendit Dashboard. You can sign up for a free Dashboard account here.

import xendit
from xendit.apis import BalancesApi
from pprint import pprint

xendit.set_api_key('XENDIT_API_KEY')

client = xendit.ApiClient()

try:
    response = BalancesApi(client).get_balance('CASH')
    pprint(response)
except xendit.XenditSdkException as e:
    print("Exception when calling BalancesApi->get_balance: %s\n" % e)

Documentation

Find detailed API information and examples for each of our product's by clicking the links below,

All URIs are relative to https://api.xendit.co. For more information about our API, please refer to https://developers.xendit.co/.

Further Reading

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

xendit_python-3.6.0.tar.gz (199.3 kB view details)

Uploaded Source

Built Distribution

xendit_python-3.6.0-py3-none-any.whl (709.4 kB view details)

Uploaded Python 3

File details

Details for the file xendit_python-3.6.0.tar.gz.

File metadata

  • Download URL: xendit_python-3.6.0.tar.gz
  • Upload date:
  • Size: 199.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for xendit_python-3.6.0.tar.gz
Algorithm Hash digest
SHA256 364b33e019723060b7c3ef5807ff8dab72cbd425383855b0c0747972d1c23b6f
MD5 4bc31714b7f22e02507ffc1ca529510a
BLAKE2b-256 a1ed7b264a6de03e56ff1847ca23e56826ae01e3aed269a79794da448fbec522

See more details on using hashes here.

File details

Details for the file xendit_python-3.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xendit_python-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e743c5f5b7a27749db82e5880a659bbfc9a4d86d38f143d97995a178ee907f61
MD5 344ce994b7237075aa825129577c3311
BLAKE2b-256 d625b64a11d11f1fe1deaaf062f8aa79a775ae0d2a186bf7e5c4fe8865659326

See more details on using hashes here.

Supported by

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