List payment journals
List the bank and cash journals you can register payments on.
GET https://cotlet.dev/api/v1/odoo/payment-journals
read
Returns the bank and cash journals of the company you are signed in to, with the name Odoo shows. Pass the name to register_payment as journal. Journals your Odoo user cannot use are left out.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/odoo/payment-journals \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("odoo", "list_payment_journals") const result = await cotlet.call('odoo', 'list_payment_journals'); cotlet call odoo list_payment_journals Example response
{
"items": [
{
"journal_id": 7,
"name": "Bank",
"type": "bank",
"currency": "EUR"
},
{
"journal_id": 8,
"name": "Cash",
"type": "cash",
"currency": "EUR"
}
]
}