Supplier
Return, update, create and delete a supplier contact.
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Contact/Supplier | |
/{cf_uri}/Contact/Supplier{contact_uid}/Photo | |
| 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).
| Attribute | Type | Notes |
|---|---|---|
UID | 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 | String (50) | Company name of the supplier 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 supplier contact represents an individual. False indicates the supplier contact represents a company. |
DisplayID | String (15) | Supplier contact card id. { 'DisplayID': 'SUP00001' } |
IsActive | Boolean | True indicates the supplier contact is active. False indicates the supplier 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 supplier 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) | Supplier contact balance. |
BuyingDetails | object | The following set of information pulls through default supplier buying details. |
BuyingDetails.PurchaseLayout | PurchaseLayoutType | Purchase type of the record containing the full default purchase layout definition: NoDefault Service Item Professional Miscellaneous |
BuyingDetails.PrintedForm | String (255) | Named form selected as default printed form. |
BuyingDetails.PurchaseOrderDelivery | String (20) | Default supplier delivery status. |
BuyingDetails.ExpenseAccount | object | The following set of information pulls through details for an expense account |
BuyingDetails.ExpenseAccount.UID | Guid (36) | Foreign Key : Unique identifier for the expense account in the form of a guid. |
BuyingDetails.ExpenseAccount.Name | String (60) | Name of the expense account |
BuyingDetails.ExpenseAccount.DisplayID | String (6) | Expense account code format includes separator ie 4-1100 |
BuyingDetails.ExpenseAccount.URI | String | Uniform resource identifier associated with the expense account object. |
BuyingDetails.PaymentMemo | String (255) | Default payment memo. |
BuyingDetails.PurchaseComment | String (255) | Default selected purchase comment. |
BuyingDetails.SupplierBillingRate | Decimal (10.6) | The suppliers hourly billing rate exclusive of tax. |
BuyingDetails.ShippingMethod | String (255) | Shipping method text. |
BuyingDetails.IsReportable | Boolean | ONLY 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.CostPerHour | Decimal (13.6) | Cost per hour of providing the suppliers services when generating an activity slip. |
BuyingDetails.Credit | object | The following set of information pulls through default supplier credit details. |
BuyingDetails.Credit.Limit | Decimal (13.6) | Suppliers credit limit. |
BuyingDetails.Credit.Available | Decimal (13.6) | Suppliers credit available. |
BuyingDetails.Credit.PastDue | Decimal (13.6) | Suppliers past due balance. |
BuyingDetails.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 224' } |
BuyingDetails.ABNBranch | String (11) | ONLY APPLICABLE FOR AU REGION. ABN branch number. |
BuyingDetails.TaxIdNumber | String (19) | Tax id number. |
BuyingDetails.TaxCode | object | The following set of information pulls through the details for the TaxCodes |
BuyingDetails.TaxCode.UID | GUID (36) | Foreign Key : Unique tax code identifier in the form of a guid |
BuyingDetails.TaxCode.Code | String (3) | 3 digit code assigned to the tax code. |
BuyingDetails.TaxCode.URI | String | Uniform resource identifier associated with the Tax code object |
BuyingDetails.FreightTaxCode | object | The following set of information pulls through the details for freight Tax Codes |
BuyingDetails.FreightTaxCode.UID | GUID (36) | Foreign Key : Unique freight tax code identifier in the form of a guid |
BuyingDetails.FreightTaxCode.Code | String (3) | 3 digit code assigned to the freight tax code. |
BuyingDetails.FreightTaxCode.URI | String | Uniform resource identifier associated with the freight tax code object. |
BuyingDetails.UseSupplierTaxCode | Boolean | True indicates to use the supplier tax code. False indicates do not use the supplier tax code. |
BuyingDetails.Terms | object | The following set of information pulls through supplier terms. |
BuyingDetails.Terms.PaymentIsDue | String | Default Terms of Payment definitions: CashOnDelivery PrePaid InAGivenNumberOfDays OnADayOfTheMonth NumberOfDaysAfterEOM DayOfMonthAfterEOM |
BuyingDetails.Terms.DiscountDate | Integer | If 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.BalanceDueDate | Integer | If 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.DiscountForEarlyPayment | Double (99.99%) | % discount for early payment. |
BuyingDetails.Terms.VolumeDiscount | Double (99.99%) | Volume supplier discount. |
PaymentDetails | object | The following set of information pulls through supplier payment details. |
PaymentDetails.BSBNumber | String (6) | ONLY APPLICABLE FOR AU REGION. Default bank account bsb number. |
PaymentDetails.BankAccountNumber | String (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.BankAccountName | String (32) | Default bank account name. |
PaymentDetails.StatementText | String (18) | ONLY APPLICABLE FOR AU REGION. Default statement text. |
PaymentDetails.StatementCode | String | ONLY APPLICABLE FOR NZ REGION. Default code attached to an electronic payment. |
PaymentDetails.StatementReference | String | ONLY APPLICABLE FOR NZ REGION. Default reference attached to an electronic payment. |
PaymentDetails.Refund | object | The following set of information pulls through refund details. |
PaymentDetails.Refund.PaymentMethod | PaymentMethod | Payment 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.CardNumber | String (4) | Last 4 digits only. |
PaymentDetails.Refund.NameOnCard | String (50) | Default name on card. |
PaymentDetails.Refund.Notes | String (255) | Default refund 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 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",
"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.