Python module for Manager API

There are a lot of nuances to how you might want to create a receipt, but perhaps something like the below can help you:

customer = business.Customer["Amazon"]
r = business.Receipt(
    Date = dateutil.parser.parse("2025-01-28").date(),
    Reference = "123",
    PaidBy = "Customer",
    Customer = customer,
    ReceivedIn = business.BankOrCashAccount["Any Bank"],
    Cleared = "OnALaterDate",
    Lines = [business.Receipt.Line(
        Account = "d1489e95-bb28-4f5d-b42e-67d3291b3893", # AR
        AccountsReceivableCustomer = customer,
        Amount = Decimal("12.34"),
    )],
)
r.create()

In general, if you’ll be using an object a lot (like a bank account), it’ll be best to look it up once and store it in a variable, like I did with the customer.