DISCLAIMER: This client is a WIP and still in a very beta stage. Please use at your own risk!
pip install revolut-merchant-python
To initialize the client install and import the library.
import revolut_merchant
client = revolut_merchant.Client(access_token="<YOUR_TOKEN>", environment="<production/sandbox>")
order_id = "e5aa96ca-7ba1-4b5a-gj5a-03273877f3dc"
client.get_order(order_id) # This will return an Order object
order = revolut_merchant.Order(client=client, amount=1, currency="EUR", email="email@domain.com").save()
print(order.public_id) # prints the public order id