Xero · Example Payload

Xero Createlinkedtransaction Example

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Xero Createlinkedtransaction 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": "createLinkedTransaction",
  "method": "PUT",
  "path": "/LinkedTransactions",
  "summary": "Xero Creates linked transactions (billable expenses)",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "LinkedTransactions": [
          {
            "SourceTransactionID": "a848644a-f20f-4630-98c3-386bd7505631",
            "SourceLineItemID": "b0df260d-3cc8-4ced-9bd6-41924f624ed3"
          }
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "Id": "f32b30e5-32d1-42a8-bcc9-5b22828f725c",
        "Status": "OK",
        "ProviderName": "Provider Name Example",
        "DateTimeUTC": "/Date(1552351054646)/",
        "LinkedTransactions": [
          {
            "LinkedTransactionID": "e9684b6c-4df9-45a0-917b-85cc29857008",
            "SourceTransactionID": "a848644a-f20f-4630-98c3-386bd7505631",
            "SourceLineItemID": "b0df260d-3cc8-4ced-9bd6-41924f624ed3",
            "Status": "DRAFT",
            "Type": "BILLABLEEXPENSE",
            "UpdatedDateUTC": "/Date(1552351055000+0000)/",
            "SourceTransactionTypeCode": "ACCPAY",
            "ValidationErrors": [
              {
                "Message": "The SourceLineItemID and SourceTransactionID do not match"
              }
            ]
          }
        ]
      }
    }
  ]
}