Allows you to create linked transactions (billable expenses)
PUT {{baseUrl}}/LinkedTransactions
Request Body
{"SourceTransactionID"=>"<uuid>", "SourceLineItemID"=>"<uuid>", "ContactID"=>"<uuid>", "TargetTransactionID"=>"<uuid>", "TargetLineItemID"=>"<uuid>", "LinkedTransactionID"=>"<uuid>", "Status"=>"<string>", "Type"=>"<string>", "SourceTransactionTypeCode"=>"<string>", "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
xero-tenant-id | string | (Required) Xero identifier for Tenant | |
Content-Type | string |
RESPONSES
status: OK
{"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"}]}]}