Xero · Example Payload

Xero Updatecontact Example

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Xero Updatecontact 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": "updateContact",
  "method": "POST",
  "path": "/Contacts/{ContactID}",
  "summary": "Updates a specific contact in a Xero organisation",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "Contacts": [
          {
            "ContactID": "00000000-0000-0000-0000-000000000000",
            "Name": "Thanos"
          }
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "Id": "4166b727-c3f0-4881-acd0-d4f7c0e8fcda",
        "Status": "OK",
        "ProviderName": "Xero API Partner",
        "DateTimeUTC": "/Date(1551400031795)/",
        "Contacts": [
          {
            "ContactID": "d5be01fb-b09f-4c3a-9c67-e10c2a03412c",
            "ContactStatus": "ACTIVE",
            "Name": "FooBar",
            "EmailAddress": "sid30680@blah.com",
            "BankAccountDetails": "",
            "Addresses": [
              {
                "AddressType": "STREET",
                "City": "",
                "Region": "",
                "PostalCode": "",
                "Country": ""
              },
              {
                "AddressType": "POBOX",
                "City": "",
                "Region": "",
                "PostalCode": "",
                "Country": ""
              }
            ],
            "Phones": [
              {
                "PhoneType": "DEFAULT",
                "PhoneNumber": "",
                "PhoneAreaCode": "",
                "PhoneCountryCode": ""
              },
              {
                "PhoneType": "DDI",
                "PhoneNumber": "",
                "PhoneAreaCode": "",
                "PhoneCountryCode": ""
              },
              {
                "PhoneType": "FAX",
                "PhoneNumber": "",
                "PhoneAreaCode": "",
                "PhoneCountryCode": ""
              },
              {
                "PhoneType": "MOBILE",
                "PhoneNumber": "555-1212",
                "PhoneAreaCode": "415",
                "PhoneCountryCode": ""
              }
            ],
            "UpdatedDateUTC": "/Date(1551400031763+0000)/",
            "ContactGroups": [],
            "IsSupplier": false,
            "IsCustomer": false,
            "SalesDefaultLineAmountType": "INCLUSIVE",
            "PurchasesDefaultLineAmountType": "INCLUSIVE",
            "SalesTrackingCategories": [],
            "PurchasesTrackingCategories": [],
            "PaymentTerms": {
              "Bills": {
                "Day": 15,
                "Type": "OFCURRENTMONTH"
              },
              "Sales": {
                "Day": 10,
                "Type": "DAYSAFTERBILLMONTH"
              }
            },
            "ContactPersons": [],
            "HasValidationErrors": false
          }
        ]
      }
    }
  ]
}