Skip to content

Customer

Return, update, create and delete a customer contact.

Released
Updated
URLSupports
/{cf_uri}/Contact/Customer
GETPUTPOSTDELETE
/{cf_uri}/Contact/Customer/{contact_uid}/Photo
GET
Please note: The /{cf_uri}/Contact/Customer/{contact_uid}/Photo endpoint is only available when using AccountRight.

Attribute Details

Paging: default page size is set to 400 with a maximum of 5000 results (contacts only).

AttributeTypeNotes
UID
Required
Guid (36)Unique customer contact identifier in the form of a guid. ONLY required for updating an existing contact NOT required when creating a new contact.
CompanyName
Required
String (50)Company name of the customer contact. ONLY required when creating a company contact with IsIndividual set to false.
LastName
Required
String (30)Last name for an individual contact.
FirstName
Required
String (20)First name for an individual contact.
IsIndividual
Required
BooleanTrue indicates the customer contact represents an individual. False indicates the customer contact represents a company.
DisplayIDString (15)Customer contact card id. { 'DisplayID': 'CUS000001' }
IsActive
Required
BooleanTrue indicates the customer contact is active. False indicates the customer contact is inactive.
AddressesarrayThe following set of information pulls through details for a contact address
Addresses.LocationIntegerOne contact can have up to five address records.
Addresses.StreetString (255)Full content of Address field.
Addresses.CityString (255)City of address record.
Addresses.StateString (255)State of address record.
Addresses.PostCodeString (11)Postcode of address record.
Addresses.CountryString (255)Country of location for address record.
Addresses.Phone1String (21)Phone number 1 of address record.
Addresses.Phone2String (21)Phone number 2 of address record.
Addresses.Phone3String (21)Phone number 3 of address record.
Addresses.FaxString (21)Fax number of address record.
Addresses.EmailString (255)Email contact of address record.
Addresses.WebsiteString (255)World wide web address for contact.
Addresses.ContactNameString (25)Contact Name on address record.
Addresses.SalutationString (15)Salutation text for address record.
NotesString (255)Notes for the customer contact.
IdentifiersarrayThis is an AccountRight only field .The following set of information pulls through details for a contact identifier
Identifiers.Label
Read-only
String (30)This is an AccountRight only field . Name attached to the identification alphabet letter.
Identifiers.ValueStringThis is an AccountRight only field . Identifiers convert bits to actual letters, one of the 26 letters in the alphabet can be used.
CustomList1objectThis is an AccountRight only field . The following set of information pulls through details for a contact custom list
CustomList1.Label
Read-only
String (30)This is an AccountRight only field . Name of CustomList1 applicable to the custom list text, labels can be edited within the AccountRight interface ONLY. For example CustomList # 1 could be changed to Melbourne, click here for more information on how to edit labels
CustomList1.ValueString (30)This is an AccountRight only field . Custom list text entry populated for CustomList1.
CustomList2objectThis is an AccountRight only field .The following set of information pulls through details for a contact custom list
CustomList2.Label
Read-only
String (30)This is an AccountRight only field . Name of CustomList2 applicable to the custom list text, labels can be edited within the AccountRight interface ONLY. For example CustomList # 2 could be changed to Sydney, click here for more information on how to edit labels
CustomList2.ValueString (30)This is an AccountRight only field . Custom list text entry populated for CustomList2.
CustomList3objectThis is an AccountRight only field . The following set of information pulls through details for a contact custom list
CustomList3.Label
Read-only
String (30)This is an AccountRight only field . Name of CustomList3 applicable to the custom list text, labels can be edited within the AccountRight interface ONLY. For example CustomList # 3 could be changed to Tasmania, click here for more information on how to edit labels
CustomList3.ValueString (30)This is an AccountRight only field . Custom list text entry populated for CustomList3.
CustomField1objectThis is an AccountRight only field . The following set of information pulls through details for a contact custom field
CustomField1.Label
Read-only
String (30)This is an AccountRight only field . Name of CustomField1 applicable to the custom field text, labels can be edited within the AccountRight interface ONLY. For example CustomField # 1 could be changed to South Australia, click here for more information on how to edit labels
CustomField1.ValueString (30)This is an AccountRight only field . Custom field text entry populated for CustomField1.
CustomField2objectThis is an AccountRight only field . The following set of information pulls through details for a contact custom field
CustomField2.Label
Read-only
String (30)This is an AccountRight only field . Name of CustomField2 applicable to the custom field text, labels can be edited, for example CustomField # 2 could be changed to Queensland
CustomField2.ValueString (30)This is an AccountRight only field . Custom field text entry populated for CustomField2.
CustomField3objectThis is an AccountRight only field . The following set of information pulls through details for a contact custom field
CustomField3.Label
Read-only
String (30)This is an AccountRight only field . Name of CustomField3 applicable to the custom field text, labels can be edited within the AccountRight interface ONLY. For example CustomField # 3 could be changed to ACT, click here for more information on how to edit labels
CustomField3.ValueString (30)This is an AccountRight only field . Custom field text entry populated for CustomField3.
CurrentBalance
Read-only
Decimal (13.6)Customer contact balance.
SellingDetails
Required
objectThe following set of information pulls through default customer selling details.
SellingDetails.SaleLayout
Required
SaleLayoutTypeSale Type of the record containing the full default Sale Layout definition: NoDefault Service Item Professional TimeBilling Miscellaneous
SellingDetails.PrintedFormString (255)Named form selected as default printed form.
SellingDetails.InvoiceDelivery
Required
String (255)Default invoice delivery status assigned.
SellingDetails.ItemPriceLevel
Read-only
StringItem price level, can consist of the following: Level A Level B Level C Level D Level E Level F
SellingDetails.IncomeAccountobjectThe following set of information pulls through details for an income account.
SellingDetails.IncomeAccount.UIDGuid (36)Foreign Key : Unique identifier for the income account in the form of a guid.
SellingDetails.IncomeAccount.Name
Read-only
String (30)Name of the income account
SellingDetails.IncomeAccount.DisplayID
Read-only
String (6)Income account code format includes separator ie 4-1100
SellingDetails.IncomeAccount.URI
Read-only
StringUniform resource identifier associated with the income account object.
SellingDetails.ReceiptMemoString (255)Default receipt memo.
SellingDetails.SalesPersonobjectThe following set of information pulls through details for the an employee contact.
SellingDetails.SalesPerson.UIDGuid (36)Foreign Key : Unique employee contact identifier in the form of a guid.
SellingDetails.SalesPerson.Name
Read-only
String (30)Selected employee contact name.
SellingDetails.SalesPerson.DisplayIDString (15)Employee contact Card ID, can also be used as a unique employee contact identifier.
SellingDetails.SalesPerson.URI
Read-only
StringUniform resource identifier associated with the employee contact object.
SellingDetails.SaleCommentString (255)Default selected sale comment.
SellingDetails.ShippingMethodString (255)Shipping method text.
SellingDetails.HourlyBillingRateDecimal (10.6)The customers hourly billing rate.
SellingDetails.ABNString (14)ONLY APPLICABLE FOR AU REGION. ABN Number (Must be 11 digits and formatted as XX XXX XXX XXX). { 'ABN': '45 676 343 223' }
SellingDetails.ABNBranchString (11)ONLY APPLICABLE FOR AU REGION. ABN branch number.
SellingDetails.TaxCode
Required
objectThe following set of information pulls through the details for the TaxCodes
SellingDetails.TaxCode.UID
Required
GUID (36)Foreign Key : Unique tax code identifier in the form of a guid
SellingDetails.TaxCode.Code
Read-only
String (3)3 digit code assigned to the tax code.
SellingDetails.TaxCode.URI
Read-only
StringUniform resource identifier associated with the Tax code object
SellingDetails.FreightTaxCode
Required
objectThe following set of information pulls through the details for freight Tax Codes
SellingDetails.FreightTaxCode.UID
Required
GUID (36)Foreign Key : Unique freight tax code identifier in the form of a guid
SellingDetails.FreightTaxCode.Code
Read-only
String (3)3 digit code assigned to the freight tax code.
SellingDetails.FreightTaxCode.URI
Read-only
StringUniform resource identifier associated with the freight tax code object.
SellingDetails.UseCustomerTaxCodeBooleanTrue indicates to use the customer tax code. False indicates do not use the customer tax code.
SellingDetails.TermsobjectThe following set of information pulls through customer terms.
SellingDetails.Terms.PaymentIsDueStringDefault Terms of Payment definitions: CashOnDelivery PrePaid InAGivenNumberOfDays OnADayOfTheMonth NumberOfDaysAfterEOM DayOfMonthAfterEOM
SellingDetails.Terms.DiscountDateIntegerIf PaymentIsDue = CashOnDelivery, PrePaid, InAGivenNumberOfDaysNumber or NumberOfDaysAfterEOM then set the number of days within which the customer must pay to receive discounts. If PaymentIsDue = OnADayOfTheMonth or DayOfMonthAfterEOM then set the day of the month within which the payment must be made to receive discounts.
SellingDetails.Terms.BalanceDueDateIntegerIf PaymentIsDue = CashOnDelivery, PrePaid, InAGivenNumberOfDaysNumber or NumberOfDaysAfterEOM then set the number of days within which the customer has to pay invoices. If PaymentIsDue = OnADayOfTheMonth or DayOfMonthAfterEOM then set the day of the month within which the payment must be made to pay invoices.
SellingDetails.Terms.DiscountForEarlyPaymentDouble (99.99%)% discount for early payment.
SellingDetails.Terms.MonthlyChargeForLatePaymentDouble (99.99%)% monthly charge for late payment.
SellingDetails.Terms.VolumeDiscountDouble (99.99%)Volume supplier discount.
SellingDetails.CreditobjectThe following set of information pulls through customer credit information.
SellingDetails.Credit.LimitDecimal (13.6)Customer credit limit.
SellingDetails.Credit.Available
Read-only
Decimal (13.6)Customers credit available.
SellingDetails.Credit.PastDue
Read-only
Decimal (13.6)Customers past due balance.
SellingDetails.Credit.OnHoldBooleanTrue indicates the customer record is on credit hold. False indicates the customer record is not on credit hold.
SellingDetails.TaxIdNumberString (19)Tax id number.
SellingDetails.MemoString (255)Default memo text.
PaymentDetailsobjectThe following set of information pulls through customer payment details.
PaymentDetails.MethodPaymentMethodPayment methods must exist in company file, default methods consist of the following: (Users can add new methods through AccountRight UI) American Express Bank Card Barter Card Cash Cheque Diners Club EFTPOS MasterCard Money Order Other Visa
PaymentDetails.CardNumberString (4)Last 4 digits only.
PaymentDetails.NameOnCardString (50)Default name on card.
PaymentDetails.BSBNumberString (7)ONLY APPLICABLE FOR AU REGION. Default bank account bsb number.
PaymentDetails.BankAccountNumberString (9)Default bank account number.
PaymentDetails.BankAccountNameString (32)Default bank account name.
PaymentDetails.NotesString (255)Default payment notes.
ForeignCurrencyobjectThis is an AccountRight only field .Null if no foreign currency is set.
ForeignCurrency.UID
Read-only
Guid (36)This is an AccountRight only field . Foreign Key : Unique identifier for the currency in the form of a guid.
ForeignCurrency.Code
Read-only
String (3)This is an AccountRight only field . The currency code.
ForeignCurrency.CurrencyName
Read-only
StringThis is an AccountRight only field . The full name of the currency
ForeignCurrency.URI
Read-only
StringThis is an AccountRight only field . Uniform resource identifier associated with the currency object.
LastModified
Read-only
DateTimeExtracts the last modification date for the customer contact resource.
PhotoURIStringThis is an AccountRight only field . Uniform resource identifier associated with a photo image.
URI
Read-only
StringUniform resource identifier encompasses all types of names and addresses that refer to objects on the web.
RowVersion
Required
StringNumber value that changes upon a record update, can be used for change control but does does not preserve a date or a time. ONLY required for updating an existing contact NOT required when creating a new contact.

Example json GET response

Example

json
{
  "UID": "97e9b42d-56db-4e57-9033-4714221041f1",
  "LastName": "Davis",
  "FirstName": "Chris",
  "IsIndividual": true,
  "DisplayID": "CUS000001",
  "IsActive": true,
  "Location": null,
  "Street": "5/76 Readen Road",
  "City": "St Kilda",
  "State": "VIC",
  "PostCode": "3024",
  "Country": "Australia",
  "Phone1": "03 9567 3453",
  "Phone2": "03 9533 2256",
  "Phone3": "03 9534 2345",
  "Fax": "03 8934 4543",
  "Email": "Davis@yahoo.com.au",
  "Website": "www.myob.com.au",
  "ContactName": "Simon",
  "Salutation": "Hello",
  "Notes": "API notes",
  "Label": "Custom Field No. 3",
  "Value": "Perth",
  "CustomList1": null,
  "CustomList2": null,
  "CustomList3": null,
  "CurrentBalance": null,
  "SaleLayout": "NoDefault",
  "PrintedForm": "Pre-Printed Invoice",
  "InvoiceDelivery": "Print",
  "ItemPriceLevel": "Level A",
  "IncomeAccount": null,
  "ReceiptMemo": "",
  "SalesPerson": null,
  "SaleComment": null,
  "ShippingMethod": null,
  "HourlyBillingRate": null,
  "ABN": "45 676 343 223",
  "ABNBranch": "014",
  "Code": "GST",
  "URI": "{cf_uri}/Contact/Customer/2b74006d-a599-42dd-b228-52596f49333c\"",
  "UseCustomerTaxCode": true,
  "PaymentIsDue": "DayOfMonthAfterEOM",
  "DiscountDate": null,
  "BalanceDueDate": null,
  "DiscountForEarlyPayment": null,
  "MonthlyChargeForLatePayment": null,
  "VolumeDiscount": null,
  "Limit": null,
  "Available": null,
  "PastDue": null,
  "OnHold": false,
  "TaxIdNumber": "null",
  "Memo": "MYOBapi Team",
  "PaymentDetails": null,
  "ForeignCurrency": null,
  "LastModified": "2014-03-19T05:04:32.993",
  "PhotoURI": "{cf_uri}/Contact/Customer/2b74006d-a599-42dd-b228-52596f49333c/Photo\"",
  "RowVersion": "-2085166627472539648"
}

The {cf_uri} is provided by the businessId parameter as described here.