Skip to content

Supplier

Return, update, create and delete a supplier contact.

Released
Updated
URLSupports
/{cf_uri}/Contact/Supplier
GETPUTPOSTDELETE
/{cf_uri}/Contact/Supplier{contact_uid}/Photo
GET
Please note: The /{cf_uri}/Contact/Supplier/{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 supplier 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 supplier 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 supplier contact represents an individual. False indicates the supplier contact represents a company.
DisplayIDString (15)Supplier contact card id. { 'DisplayID': 'SUP00001' }
IsActiveBooleanTrue indicates the supplier contact is active. False indicates the supplier 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 supplier 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)Supplier contact balance.
BuyingDetailsobjectThe following set of information pulls through default supplier buying details.
BuyingDetails.PurchaseLayoutPurchaseLayoutTypePurchase type of the record containing the full default purchase layout definition: NoDefault Service Item Professional Miscellaneous
BuyingDetails.PrintedFormString (255)Named form selected as default printed form.
BuyingDetails.PurchaseOrderDeliveryString (20)Default supplier delivery status.
BuyingDetails.ExpenseAccountobjectThe following set of information pulls through details for an expense account
BuyingDetails.ExpenseAccount.UIDGuid (36)Foreign Key : Unique identifier for the expense account in the form of a guid.
BuyingDetails.ExpenseAccount.Name
Read-only
String (60)Name of the expense account
BuyingDetails.ExpenseAccount.DisplayID
Read-only
String (6)Expense account code format includes separator ie 4-1100
BuyingDetails.ExpenseAccount.URI
Read-only
StringUniform resource identifier associated with the expense account object.
BuyingDetails.PaymentMemoString (255)Default payment memo.
BuyingDetails.PurchaseCommentString (255)Default selected purchase comment.
BuyingDetails.SupplierBillingRateDecimal (10.6)The suppliers hourly billing rate exclusive of tax.
BuyingDetails.ShippingMethodString (255)Shipping method text.
BuyingDetails.IsReportableBooleanONLY APPLICABLE FOR AU REGION. True indicates the supplier contact is setup for reportable taxable payments. False indicates the supplier contact is not setup for reportable taxable payments. What are taxable payments?
BuyingDetails.CostPerHourDecimal (13.6)Cost per hour of providing the suppliers services when generating an activity slip.
BuyingDetails.CreditobjectThe following set of information pulls through default supplier credit details.
BuyingDetails.Credit.LimitDecimal (13.6)Suppliers credit limit.
BuyingDetails.Credit.Available
Read-only
Decimal (13.6)Suppliers credit available.
BuyingDetails.Credit.PastDue
Read-only
Decimal (13.6)Suppliers past due balance.
BuyingDetails.ABNString (14)ONLY APPLICABLE FOR AU REGION. ABN Number (Must be 11 digits and formatted as XX XXX XXX XXX). { 'ABN': '45 676 343 224' }
BuyingDetails.ABNBranchString (11)ONLY APPLICABLE FOR AU REGION. ABN branch number.
BuyingDetails.TaxIdNumberString (19)Tax id number.
BuyingDetails.TaxCodeobjectThe following set of information pulls through the details for the TaxCodes
BuyingDetails.TaxCode.UID
Required
GUID (36)Foreign Key : Unique tax code identifier in the form of a guid
BuyingDetails.TaxCode.Code
Read-only
String (3)3 digit code assigned to the tax code.
BuyingDetails.TaxCode.URI
Read-only
StringUniform resource identifier associated with the Tax code object
BuyingDetails.FreightTaxCodeobjectThe following set of information pulls through the details for freight Tax Codes
BuyingDetails.FreightTaxCode.UID
Required
GUID (36)Foreign Key : Unique freight tax code identifier in the form of a guid
BuyingDetails.FreightTaxCode.Code
Read-only
String (3)3 digit code assigned to the freight tax code.
BuyingDetails.FreightTaxCode.URI
Read-only
StringUniform resource identifier associated with the freight tax code object.
BuyingDetails.UseSupplierTaxCodeBooleanTrue indicates to use the supplier tax code. False indicates do not use the supplier tax code.
BuyingDetails.TermsobjectThe following set of information pulls through supplier terms.
BuyingDetails.Terms.PaymentIsDueStringDefault Terms of Payment definitions: CashOnDelivery PrePaid InAGivenNumberOfDays OnADayOfTheMonth NumberOfDaysAfterEOM DayOfMonthAfterEOM
BuyingDetails.Terms.DiscountDateIntegerIf PaymentIsDue = CashOnDelivery, PrePaid, InAGivenNumberOfDaysNumber or NumberOfDaysAfterEOM then set the number of days within which payments must be made 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.
BuyingDetails.Terms.BalanceDueDateIntegerIf PaymentIsDue = CashOnDelivery, PrePaid, InAGivenNumberOfDaysNumber or NumberOfDaysAfterEOM then set the number of days within which payments must be made. If PaymentIsDue = OnADayOfTheMonth or DayOfMonthAfterEOM then set the day of the month within which payments must be made.
BuyingDetails.Terms.DiscountForEarlyPaymentDouble (99.99%)% discount for early payment.
BuyingDetails.Terms.VolumeDiscountDouble (99.99%)Volume supplier discount.
PaymentDetailsobjectThe following set of information pulls through supplier payment details.
PaymentDetails.BSBNumberString (6)ONLY APPLICABLE FOR AU REGION. Default bank account bsb number.
PaymentDetails.BankAccountNumberString (9)Default bank account number. Please note: when working with the NZ region, ensure the number is valid and formatted (XX-XXXX-XXXXXXX-XX) { 'BankAccountNumber': '03-1587-0050000-00' }
PaymentDetails.BankAccountNameString (32)Default bank account name.
PaymentDetails.StatementTextString (18)ONLY APPLICABLE FOR AU REGION. Default statement text.
PaymentDetails.StatementCodeStringONLY APPLICABLE FOR NZ REGION. Default code attached to an electronic payment.
PaymentDetails.StatementReferenceStringONLY APPLICABLE FOR NZ REGION. Default reference attached to an electronic payment.
PaymentDetails.RefundobjectThe following set of information pulls through refund details.
PaymentDetails.Refund.PaymentMethodPaymentMethodPayment method on refund, 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.Refund.CardNumberString (4)Last 4 digits only.
PaymentDetails.Refund.NameOnCardString (50)Default name on card.
PaymentDetails.Refund.NotesString (255)Default refund 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 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",
  "CompanyName": "Cash Purchases",
  "IsIndividual": false,
  "DisplayID": "6-2150",
  "IsActive": true,
  "Location": null,
  "Street": "105 Bourke Street",
  "City": "Melbourne",
  "State": "VIC",
  "PostCode": "3000",
  "Country": "Australia",
  "Phone1": "03 8897 9444",
  "Phone2": "03 8897 2989",
  "Phone3": "03 8897 7300",
  "Fax": "03 8897 4212",
  "Email": "cashp@yahoo.com.au",
  "Website": "www.myob.com.au",
  "ContactName": "Tim",
  "Salutation": "Mr.",
  "Notes": "Refund notes for supplier",
  "Label": "Custom Field No. 3",
  "Value": "Tasmania",
  "CustomList1": null,
  "CustomList2": null,
  "CustomList3": null,
  "CurrentBalance": null,
  "PurchaseLayout": "NoDefault",
  "PrintedForm": "",
  "PurchaseOrderDelivery": "Print",
  "Name": "Other Operating Expenses",
  "URI": "{cf_uri}/Contact/Supplier/8654a102-4859-451f-834b-0ddb9bbf2edc\"",
  "PaymentMemo": "",
  "PurchaseComment": null,
  "SupplierBillingRate": null,
  "ShippingMethod": null,
  "IsReportable": false,
  "CostPerHour": null,
  "Limit": null,
  "Available": null,
  "PastDue": null,
  "ABN": "45 676 343 223",
  "ABNBranch": "014",
  "TaxIdNumber": "null",
  "Code": "GST",
  "UseSupplierTaxCode": true,
  "PaymentIsDue": "DayOfMonthAfterEOM",
  "DiscountDate": null,
  "BalanceDueDate": null,
  "DiscountForEarlyPayment": null,
  "VolumeDiscount": null,
  "BSBNumber": "232-323",
  "BankAccountNumber": "234213421",
  "BankAccountName": "CLEAR AND BRIGHT FILTERS",
  "StatementText": "PAY FROM CLEARWTR",
  "PaymentMethod": "Visa",
  "CardNumber": "4921",
  "NameOnCard": "Mr MYOBapi Team",
  "LastModified": "2014-03-19T05:04:32.993",
  "PhotoURI": "{cf_uri}/Contact/Supplier/8654a102-4859-451f-834b-0ddb9bbf2edc/Photo\"",
  "RowVersion": "-3008686026060201984"
}

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