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
curl https://cotlet.dev/api/v1/odoo/payment-journals \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("odoo", "list_payment_journals")
Node.js
const result = await cotlet.call('odoo', 'list_payment_journals');
CLI
cotlet call odoo list_payment_journals

Example response

JSON

{
  "items": [
    {
      "journal_id": 7,
      "name": "Bank",
      "type": "bank",
      "currency": "EUR"
    },
    {
      "journal_id": 8,
      "name": "Cash",
      "type": "cash",
      "currency": "EUR"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.