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: 6.2.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 BalanceApi
from pprint import pprint

xendit.set_api_key('XENDIT_API_KEY')

client = xendit.ApiClient()

try:
    response = BalanceApi(client).get_balance('CASH')
    pprint(response)
except xendit.XenditSdkException as e:
    print("Exception when calling BalanceApi->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-6.2.0.tar.gz (213.1 kB view details)

Uploaded Source

Built Distribution

xendit_python-6.2.0-py3-none-any.whl (766.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xendit_python-6.2.0.tar.gz
  • Upload date:
  • Size: 213.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for xendit_python-6.2.0.tar.gz
Algorithm Hash digest
SHA256 07e530812b5e9c01838b8e7ab8edbc0aedee33f1aa8f16ed8193fdbb9c7bc55d
MD5 2413033921daad4ea03b73f0aa93f1f7
BLAKE2b-256 3fbecfed595392d0113fc40b55b30426789f2723643f090135610e8af16432a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xendit_python-6.2.0.tar.gz:

Publisher: generate-release-tag.yml on xendit/xendit-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for xendit_python-6.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2165201a58449d192f8b608d9ad6deb46bef3beffcfb91fdf1a7ade1ca659361
MD5 0fa6c7382fe16c8d9b325b99625cc1bf
BLAKE2b-256 5c6f2338279278f5b497607de2c4ebc7a1f4a3ba64a3dfc6e5fff44127e25234

See more details on using hashes here.

Provenance

The following attestation bundles were made for xendit_python-6.2.0-py3-none-any.whl:

Publisher: generate-release-tag.yml on xendit/xendit-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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