ioka

ioka Python Library

Table of Contents

Authentication

The ioka API uses API keys to authenticate requests.

import ioka_python

ioka_python.api_key = "YOUR_API_KEY"

Core Resources

Orders

List all orders

Returns a list of your orders. The list of available query parameters can be found here. These parameters can be passed into list() function as keyword arguments.

import ioka_python

ioka_python.api_key = "Hello"

orders = ioka_python.Order().list(limit=2)

print(orders[0].id)

Retrieve an order

Retrieves an Order object. The list of returned fields are available here.

import ioka_python

ioka_python.api_key = "Hello"

order = ioka_python.Order().retrieve("order_123")

print(order.amount)

Create an order

Capture an order

Cancel an order

List order’s events

List order’s refunds

Payments

Create payment card for an order

Customers

List all customers

Retrieve a customer

List customer’s events

Create a customer

Delete a customer

List order’s refunds