# Python module for Manager API

**URL:** <https://forum.manager.io/t/python-module-for-manager-api/44900>\
**Category:** Uncategorized\
**Created:** [January 8, 2023, 9:57pm UTC](https://forum.manager.io/t/python-module-for-manager-api/44900 "2023-01-08T21:57:30Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![isotherm](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@isotherm](https://forum.manager.io/u/isotherm)\
**Post date:** [January 28, 2025, 5:02pm UTC](https://forum.manager.io/t/python-module-for-manager-api/44900/29 "2025-01-28T17:02:36Z")

</div>

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

```auto
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.

---

_[View the full topic](https://forum.manager.io/t/python-module-for-manager-api/44900)._
