5cf7f780d3c8

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-10235140907.9 KB
Accounting

Updates a specific contact in a Xero organisation

post/Contacts/{ContactID}

Path parameters

ContactIDstring uuid required

Unique identifier for a Contact

Headers

Idempotency-Keystring

This allows you to safely retry requests without the risk of duplicate processing. 128 character max.

Request body

Example request

{
  "Contacts": [
    {
      "UpdatedDateUTC": "/Date(1573755038314)/",
      "BrandingTheme": {
        "CreatedDateUTC": "/Date(1573755038314)/"
      },
      "BatchPayments": {
        "BankAccountNumber": "123-456-1111111",
        "BankAccountName": "ACME Bank",
        "Details": "Hello World",
        "Code": "ABC",
        "Reference": "Foobar"
      },
      "Attachments": [
        {
          "AttachmentID": "00000000-0000-0000-0000-000000000000",
          "FileName": "xero-dev.jpg",
          "Url": "https://api.xero.com/api.xro/2.0/Accounts/da962997-a8bd-4dff-9616-01cdc199283f/Attachments/sample5.jpg",
          "MimeType": "image/jpg"
        }
      ]
    }
  ]
}

Response

Success - return response of type Contacts array with an updated Contact

Example response

{
  "Contacts": [
    {
      "UpdatedDateUTC": "/Date(1573755038314)/",
      "BrandingTheme": {
        "CreatedDateUTC": "/Date(1573755038314)/"
      },
      "BatchPayments": {
        "BankAccountNumber": "123-456-1111111",
        "BankAccountName": "ACME Bank",
        "Details": "Hello World",
        "Code": "ABC",
        "Reference": "Foobar"
      },
      "Attachments": [
        {
          "AttachmentID": "00000000-0000-0000-0000-000000000000",
          "FileName": "xero-dev.jpg",
          "Url": "https://api.xero.com/api.xro/2.0/Accounts/da962997-a8bd-4dff-9616-01cdc199283f/Attachments/sample5.jpg",
          "MimeType": "image/jpg"
        }
      ]
    }
  ]
}