import requests
import json

"""
Allowed values for testing: 
(customer_id, account_id) = (1,1), (1,2), (2,1)

To see balance changes, run an account balance enquiry for given customer_id and account_id.
Select the left arrow on the slider to move to the Balance API example.
""" 


url = "https://api.greenbase.kiwi/pay"
payload = {
  "dollar_amount": "10.00",
  "payer_id": "1",
  "paying_account_id": "1",
  "payee_name": "Mr A Test",
  "payee_account_number": "38-0000-0000001-01",
  "payee_reference": "ThanksForTheCoffee",
  "payee_reference": "ATest"
}

headers = {'Authorization': 'gr33nbase_example_token_!:$$'}

response = requests.post(url, headers=headers, data=json.dumps(payload))

print(response.text)
Python 3.6.1 (default, Dec 2015, 13:05:11) [GCC 4.8.2] on linux