Customer
Return, update, create and delete a customer contact.
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Contact/Customer | |
/{cf_uri}/Contact/Customer/{contact_uid}/Photo | |
| 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).
| Attribute | Type | Notes |
|---|---|---|
UID | 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 | String (50) | Company name of the customer contact. ONLY required when creating a company contact with IsIndividual set to false. |
LastName | String (30) | Last name for an individual contact. |
FirstName | String (20) | First name for an individual contact. |
IsIndividual | Boolean | True indicates the customer contact represents an individual. False indicates the customer contact represents a company. |
DisplayID | String (15) | Customer contact card id. { 'DisplayID': 'CUS000001' } |
IsActive | Boolean | True indicates the customer contact is active. False indicates the customer contact is inactive. |
Addresses | array | The following set of information pulls through details for a contact address |
Addresses.Location | Integer | One contact can have up to five address records. |
Addresses.Street | String (255) | Full content of Address field. |
Addresses.City | String (255) | City of address record. |
Addresses.State | String (255) | State of address record. |
Addresses.PostCode | String (11) | Postcode of address record. |
Addresses.Country | String (255) | Country of location for address record. |
Addresses.Phone1 | String (21) | Phone number 1 of address record. |
Addresses.Phone2 | String (21) | Phone number 2 of address record. |
Addresses.Phone3 | String (21) | Phone number 3 of address record. |
Addresses.Fax | String (21) | Fax number of address record. |
Addresses.Email | String (255) | Email contact of address record. |
Addresses.Website | String (255) | World wide web address for contact. |
Addresses.ContactName | String (25) | Contact Name on address record. |
Addresses.Salutation | String (15) | Salutation text for address record. |
Notes | String (255) | Notes for the customer contact. |
Identifiers | array | This is an AccountRight only field .The following set of information pulls through details for a contact identifier |
Identifiers.Label | String (30) | This is an AccountRight only field . Name attached to the identification alphabet letter. |
Identifiers.Value | String | This is an AccountRight only field . Identifiers convert bits to actual letters, one of the 26 letters in the alphabet can be used. |
CustomList1 | object | This is an AccountRight only field . The following set of information pulls through details for a contact custom list |
CustomList1.Label | 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.Value | String (30) | This is an AccountRight only field . Custom list text entry populated for CustomList1. |
CustomList2 | object | This is an AccountRight only field .The following set of information pulls through details for a contact custom list |
CustomList2.Label | 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.Value | String (30) | This is an AccountRight only field . Custom list text entry populated for CustomList2. |
CustomList3 | object | This is an AccountRight only field . The following set of information pulls through details for a contact custom list |
CustomList3.Label | 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.Value | String (30) | This is an AccountRight only field . Custom list text entry populated for CustomList3. |
CustomField1 | object | This is an AccountRight only field . The following set of information pulls through details for a contact custom field |
CustomField1.Label | 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.Value | String (30) | This is an AccountRight only field . Custom field text entry populated for CustomField1. |
CustomField2 | object | This is an AccountRight only field . The following set of information pulls through details for a contact custom field |
CustomField2.Label | 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.Value | String (30) | This is an AccountRight only field . Custom field text entry populated for CustomField2. |
CustomField3 | object | This is an AccountRight only field . The following set of information pulls through details for a contact custom field |
CustomField3.Label | 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.Value | String (30) | This is an AccountRight only field . Custom field text entry populated for CustomField3. |
CurrentBalance | Decimal (13.6) | Customer contact balance. |
SellingDetails | object | The following set of information pulls through default customer selling details. |
SellingDetails.SaleLayout | SaleLayoutType | Sale Type of the record containing the full default Sale Layout definition: NoDefault Service Item Professional TimeBilling Miscellaneous |
SellingDetails.PrintedForm | String (255) | Named form selected as default printed form. |
SellingDetails.InvoiceDelivery | String (255) | Default invoice delivery status assigned. |
SellingDetails.ItemPriceLevel | String | Item price level, can consist of the following: Level A Level B Level C Level D Level E Level F |
SellingDetails.IncomeAccount | object | The following set of information pulls through details for an income account. |
SellingDetails.IncomeAccount.UID | Guid (36) | Foreign Key : Unique identifier for the income account in the form of a guid. |
SellingDetails.IncomeAccount.Name | String (30) | Name of the income account |
SellingDetails.IncomeAccount.DisplayID | String (6) | Income account code format includes separator ie 4-1100 |
SellingDetails.IncomeAccount.URI | String | Uniform resource identifier associated with the income account object. |
SellingDetails.ReceiptMemo | String (255) | Default receipt memo. |
SellingDetails.SalesPerson | object | The following set of information pulls through details for the an employee contact. |
SellingDetails.SalesPerson.UID | Guid (36) | Foreign Key : Unique employee contact identifier in the form of a guid. |
SellingDetails.SalesPerson.Name | String (30) | Selected employee contact name. |
SellingDetails.SalesPerson.DisplayID | String (15) | Employee contact Card ID, can also be used as a unique employee contact identifier. |
SellingDetails.SalesPerson.URI | String | Uniform resource identifier associated with the employee contact object. |
SellingDetails.SaleComment | String (255) | Default selected sale comment. |
SellingDetails.ShippingMethod | String (255) | Shipping method text. |
SellingDetails.HourlyBillingRate | Decimal (10.6) | The customers hourly billing rate. |
SellingDetails.ABN | String (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.ABNBranch | String (11) | ONLY APPLICABLE FOR AU REGION. ABN branch number. |
SellingDetails.TaxCode | object | The following set of information pulls through the details for the TaxCodes |
SellingDetails.TaxCode.UID | GUID (36) | Foreign Key : Unique tax code identifier in the form of a guid |
SellingDetails.TaxCode.Code | String (3) | 3 digit code assigned to the tax code. |
SellingDetails.TaxCode.URI | String | Uniform resource identifier associated with the Tax code object |
SellingDetails.FreightTaxCode | object | The following set of information pulls through the details for freight Tax Codes |
SellingDetails.FreightTaxCode.UID | GUID (36) | Foreign Key : Unique freight tax code identifier in the form of a guid |
SellingDetails.FreightTaxCode.Code | String (3) | 3 digit code assigned to the freight tax code. |
SellingDetails.FreightTaxCode.URI | String | Uniform resource identifier associated with the freight tax code object. |
SellingDetails.UseCustomerTaxCode | Boolean | True indicates to use the customer tax code. False indicates do not use the customer tax code. |
SellingDetails.Terms | object | The following set of information pulls through customer terms. |
SellingDetails.Terms.PaymentIsDue | String | Default Terms of Payment definitions: CashOnDelivery PrePaid InAGivenNumberOfDays OnADayOfTheMonth NumberOfDaysAfterEOM DayOfMonthAfterEOM |
SellingDetails.Terms.DiscountDate | Integer | If 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.BalanceDueDate | Integer | If 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.DiscountForEarlyPayment | Double (99.99%) | % discount for early payment. |
SellingDetails.Terms.MonthlyChargeForLatePayment | Double (99.99%) | % monthly charge for late payment. |
SellingDetails.Terms.VolumeDiscount | Double (99.99%) | Volume supplier discount. |
SellingDetails.Credit | object | The following set of information pulls through customer credit information. |
SellingDetails.Credit.Limit | Decimal (13.6) | Customer credit limit. |
SellingDetails.Credit.Available | Decimal (13.6) | Customers credit available. |
SellingDetails.Credit.PastDue | Decimal (13.6) | Customers past due balance. |
SellingDetails.Credit.OnHold | Boolean | True indicates the customer record is on credit hold. False indicates the customer record is not on credit hold. |
SellingDetails.TaxIdNumber | String (19) | Tax id number. |
SellingDetails.Memo | String (255) | Default memo text. |
PaymentDetails | object | The following set of information pulls through customer payment details. |
PaymentDetails.Method | PaymentMethod | Payment 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.CardNumber | String (4) | Last 4 digits only. |
PaymentDetails.NameOnCard | String (50) | Default name on card. |
PaymentDetails.BSBNumber | String (7) | ONLY APPLICABLE FOR AU REGION. Default bank account bsb number. |
PaymentDetails.BankAccountNumber | String (9) | Default bank account number. |
PaymentDetails.BankAccountName | String (32) | Default bank account name. |
PaymentDetails.Notes | String (255) | Default payment notes. |
ForeignCurrency | object | This is an AccountRight only field .Null if no foreign currency is set. |
ForeignCurrency.UID | Guid (36) | This is an AccountRight only field . Foreign Key : Unique identifier for the currency in the form of a guid. |
ForeignCurrency.Code | String (3) | This is an AccountRight only field . The currency code. |
ForeignCurrency.CurrencyName | String | This is an AccountRight only field . The full name of the currency |
ForeignCurrency.URI | String | This is an AccountRight only field . Uniform resource identifier associated with the currency object. |
LastModified | DateTime | Extracts the last modification date for the customer contact resource. |
PhotoURI | String | This is an AccountRight only field . Uniform resource identifier associated with a photo image. |
URI | String | Uniform resource identifier encompasses all types of names and addresses that refer to objects on the web. |
RowVersion | String | Number 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
{
"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.