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

KeyDatatypeRequiredDescription
xero-tenant-idstring(Required) Xero identifier for Tenant
Content-Typestring

RESPONSES

status: OK

{&quot;Id&quot;:&quot;f32b30e5-32d1-42a8-bcc9-5b22828f725c&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1552351054646)/&quot;,&quot;LinkedTransactions&quot;:[{&quot;LinkedTransactionID&quot;:&quot;e9684b6c-4df9-45a0-917b-85cc29857008&quot;,&quot;SourceTransactionID&quot;:&quot;a848644a-f20f-4630-98c3-386bd7505631&quot;,&quot;SourceLineItemID&quot;:&quot;b0df260d-3cc8-4ced-9bd6-41924f624ed3&quot;,&quot;Status&quot;:&quot;DRAFT&quot;,&quot;Type&quot;:&quot;BILLABLEEXPENSE&quot;,&quot;UpdatedDateUTC&quot;:&quot;/Date(1552351055000+0000)/&quot;,&quot;SourceTransactionTypeCode&quot;:&quot;ACCPAY&quot;,&quot;ValidationErrors&quot;:[{&quot;Message&quot;:&quot;The SourceLineItemID and SourceTransactionID do not match&quot;}]}]}