Xero · Example Payload

Xero Updateorcreatemanualjournals Example

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Xero Updateorcreatemanualjournals Example is an example object payload from Xero, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "updateOrCreateManualJournals",
  "method": "POST",
  "path": "/ManualJournals",
  "summary": "Xero Updates or creates a single manual journal",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "ManualJournals": [
          {
            "Narration": "Journal Desc",
            "JournalLines": [
              {
                "LineAmount": 100,
                "AccountCode": "400",
                "Description": "Money Movement"
              },
              {
                "LineAmount": -100,
                "AccountCode": "400",
                "Description": "Prepayment of things",
                "Tracking": [
                  {
                    "Name": "North",
                    "Option": "Region"
                  }
                ]
              }
            ],
            "Date": "2019-03-14"
          }
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "Id": "45dfa608-0fcb-4f30-a377-c82cd348569c",
        "Status": "OK",
        "ProviderName": "Provider Name Example",
        "DateTimeUTC": "/Date(1552595972952)/",
        "ManualJournals": [
          {
            "Date": "/Date(1552521600000+0000)/",
            "Status": "DRAFT",
            "LineAmountTypes": "NoTax",
            "UpdatedDateUTC": "/Date(1552595972920+0000)/",
            "ManualJournalID": "d312dd5e-a53e-46d1-9d51-c569ef4570b7",
            "Narration": "Foo bar",
            "JournalLines": [
              {
                "Description": "Hello there",
                "TaxType": "NONE",
                "LineAmount": 100.0,
                "AccountCode": "400",
                "Tracking": [],
                "AccountID": "c4f29c22-28c2-4a13-9eab-ecbbd641ffdf",
                "IsBlank": false
              },
              {
                "Description": "Goodbye",
                "TaxType": "NONE",
                "LineAmount": -100.0,
                "AccountCode": "400",
                "Tracking": [
                  {
                    "Name": "Simpsons",
                    "Option": "Bart",
                    "TrackingCategoryID": "6a68adde-f210-4465-b0a9-0d8cc6f50762",
                    "TrackingOptionID": "dc54c220-0140-495a-b925-3246adc0075f"
                  }
                ],
                "AccountID": "c4f29c22-28c2-4a13-9eab-ecbbd641ffdf",
                "IsBlank": false
              }
            ],
            "ShowOnCashBasisReports": true,
            "Warnings": [
              {
                "Message": "Account code ''476'' has been removed as it does not match a recognised account."
              }
            ],
            "ValidationErrors": [
              {
                "Message": "The total debits (100.00) must equal total credits (-10.00)"
              }
            ]
          }
        ]
      }
    }
  ]
}