> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.xero.accounting.CreateManualJournal

- Component: `appmixer.xero.accounting.CreateManualJournal`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.xero 2.3.0](https://connectors.appmixer.com/connector/appmixer.xero/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.xero/2.3.0/component/appmixer.xero.accounting.CreateManualJournal>

Create a manual journal.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Tenant ID (`tenantId`) | text | Select the Xero organisation (tenant) to create the manual journal in. |
| `Narration` | text | Description of the journal being posted. |
| Journal Lines (`JournalLines`) | textarea | JSON array of journal lines. Each line must have LineAmount and AccountCode. Debits are positive, credits are negative. Total debits must equal total credits. Example: [{"LineAmount":100,"AccountCode":"400","Description":"Debit"},{"LineAmount":-100,"AccountCode":"200","Description":"Credit"}] |
| `Date` | date-time | Date journal was posted – YYYY-MM-DD. Defaults to today if not provided. |
| `Status` | select | Manual journal status. Defaults to DRAFT. |
| Line Amount Types (`LineAmountTypes`) | select | Line amounts are exclusive of tax by default. |
| URL (`Url`) | text | URL link to a source document. |
| Show On Cash Basis Reports (`ShowOnCashBasisReports`) | toggle | Defaults to true if not specified. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Manual Journal ID (`ManualJournalID`) | string | - |
| `Narration` | string | - |
| `Date` | string | - |
| Date String (`DateString`) | string | - |
| `Status` | string | - |
| Line Amount Types (`LineAmountTypes`) | string | - |
| Journal Lines (`JournalLines`) | array | - |
| URL (`Url`) | string | - |
| Show On Cash Basis Reports (`ShowOnCashBasisReports`) | boolean | - |
| Has Attachments (`HasAttachments`) | boolean | - |
| Updated Date UTC (`UpdatedDateUTC`) | string | - |
| Updated Date UTC String (`UpdatedDateUTCString`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.xero.accounting.CreateManualJournal",
  "description": "Create a manual journal.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:xero",
    "scope": [
      "accounting.manualjournals"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "Narration": {
            "type": "string"
          },
          "Date": {
            "type": "string",
            "format": "date"
          },
          "Status": {
            "type": "string"
          },
          "LineAmountTypes": {
            "type": "string"
          },
          "Url": {
            "type": "string"
          },
          "ShowOnCashBasisReports": {
            "type": "boolean"
          },
          "JournalLines": {
            "type": "string"
          }
        },
        "required": [
          "tenantId",
          "Narration",
          "JournalLines"
        ]
      },
      "inspector": {
        "inputs": {
          "tenantId": {
            "type": "text",
            "label": "Tenant ID",
            "tooltip": "Select the Xero organisation (tenant) to create the manual journal in.",
            "index": 1,
            "source": {
              "url": "/component/appmixer/xero/accounting/ListTenants?outPort=tenants",
              "data": {
                "transform": "./transformers#tenantsToSelectArray"
              }
            }
          },
          "Narration": {
            "type": "text",
            "label": "Narration",
            "tooltip": "Description of the journal being posted.",
            "index": 2
          },
          "JournalLines": {
            "type": "textarea",
            "label": "Journal Lines",
            "tooltip": "JSON array of journal lines. Each line must have LineAmount and AccountCode. Debits are positive, credits are negative. Total debits must equal total credits. Example: [{\"LineAmount\":100,\"AccountCode\":\"400\",\"Description\":\"Debit\"},{\"LineAmount\":-100,\"AccountCode\":\"200\",\"Description\":\"Credit\"}]",
            "index": 3
          },
          "Date": {
            "type": "date-time",
            "config": {
              "format": "YYYY-MM-DD",
              "enableTime": false
            },
            "label": "Date",
            "tooltip": "Date journal was posted – YYYY-MM-DD. Defaults to today if not provided.",
            "index": 4
          },
          "Status": {
            "type": "select",
            "label": "Status",
            "tooltip": "Manual journal status. Defaults to DRAFT.",
            "index": 5,
            "options": [
              {
                "clearItem": true,
                "label": "-- Default (DRAFT) --"
              },
              {
                "label": "Draft",
                "value": "DRAFT"
              },
              {
                "label": "Posted",
                "value": "POSTED"
              }
            ]
          },
          "LineAmountTypes": {
            "type": "select",
            "label": "Line Amount Types",
            "tooltip": "Line amounts are exclusive of tax by default.",
            "index": 6,
            "options": [
              {
                "clearItem": true,
                "label": "-- Default --"
              },
              {
                "label": "Exclusive",
                "value": "Exclusive"
              },
              {
                "label": "Inclusive",
                "value": "Inclusive"
              },
              {
                "label": "No Tax",
                "value": "NoTax"
              }
            ]
          },
          "Url": {
            "type": "text",
            "label": "URL",
            "tooltip": "URL link to a source document.",
            "index": 7
          },
          "ShowOnCashBasisReports": {
            "type": "toggle",
            "label": "Show On Cash Basis Reports",
            "tooltip": "Defaults to true if not specified.",
            "index": 8
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Manual Journal ID",
          "value": "ManualJournalID",
          "schema": {
            "type": "string",
            "example": "c3d4e5f6-a7b8-9012-cdef-234567890123"
          }
        },
        {
          "label": "Narration",
          "value": "Narration",
          "schema": {
            "type": "string",
            "example": "Monthly depreciation entry"
          }
        },
        {
          "label": "Date",
          "value": "Date",
          "schema": {
            "type": "string",
            "example": "2026-01-31"
          }
        },
        {
          "label": "Date String",
          "value": "DateString",
          "schema": {
            "type": "string",
            "example": "2026-03-18T00:00:00"
          }
        },
        {
          "label": "Status",
          "value": "Status",
          "schema": {
            "type": "string",
            "example": "DRAFT"
          }
        },
        {
          "label": "Line Amount Types",
          "value": "LineAmountTypes",
          "schema": {
            "type": "string",
            "example": "Exclusive"
          }
        },
        {
          "label": "Journal Lines",
          "value": "JournalLines",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "LineAmount": {
                  "type": "number"
                },
                "AccountCode": {
                  "type": "string"
                },
                "AccountID": {
                  "type": "string"
                },
                "Description": {
                  "type": "string"
                },
                "TaxType": {
                  "type": "string"
                },
                "TaxAmount": {
                  "type": "number"
                }
              }
            },
            "example": [
              {
                "LineAmount": 1200,
                "AccountCode": "400",
                "AccountID": "2a9b7c14-6d38-4e52-8f01-3b4c5d6e7f80",
                "Description": "Accrued consulting fees",
                "TaxType": "NONE",
                "TaxAmount": 0
              }
            ]
          }
        },
        {
          "label": "URL",
          "value": "Url",
          "schema": {
            "type": "string",
            "example": "https://go.xero.com/Journal/View.aspx?invoiceID=9f3c1b2a-5d6e-4f70-8a91-2b3c4d5e6f70"
          }
        },
        {
          "label": "Show On Cash Basis Reports",
          "value": "ShowOnCashBasisReports",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "Has Attachments",
          "value": "HasAttachments",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Updated Date UTC",
          "value": "UpdatedDateUTC",
          "schema": {
            "type": "string",
            "example": "2026-01-15T10:30:00Z"
          }
        },
        {
          "label": "Updated Date UTC String",
          "value": "UpdatedDateUTCString",
          "schema": {
            "type": "string",
            "example": "2026-03-18T09:24:31.123"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
