Reference for https://www.accountabilityapi.com/Service.svc/supplier

Url: https://www.accountabilityapi.com/Service.svc/supplier

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response Xml Example
Response Json Example

The following is an example request Xml body:

<PostSupplier xmlns="http://schemas.datacontract.org/2004/07/Accountability.API.Model">
  <Active>true</Active>
  <Billable>true</Billable>
  <CompanyNumber>String content</CompanyNumber>
  <Create1099>true</Create1099>
  <CurrencyCode>String content</CurrencyCode>
  <CustomCode1>String content</CustomCode1>
  <CustomCode2>String content</CustomCode2>
  <CustomCode3>String content</CustomCode3>
  <CustomCode4>String content</CustomCode4>
  <CustomCode5>String content</CustomCode5>
  <DateOfBirth>1999-05-31T11:20:00</DateOfBirth>
  <DefaultGLAccountNumber>String content</DefaultGLAccountNumber>
  <DefaultSupplierPaymentTypeName>String content</DefaultSupplierPaymentTypeName>
  <DefaultTaskTypeCode>String content</DefaultTaskTypeCode>
  <DefaultWHTCode>String content</DefaultWHTCode>
  <EmployeeCode>String content</EmployeeCode>
  <Hold>true</Hold>
  <IDKey>2147483647</IDKey>
  <MasterSupplierCode>String content</MasterSupplierCode>
  <Notes>String content</Notes>
  <OfficeCode>String content</OfficeCode>
  <PaymentTermsBaseOnName>String content</PaymentTermsBaseOnName>
  <PaymentTermsFactorName>String content</PaymentTermsFactorName>
  <PaymentTermsNumber>12678967.543233</PaymentTermsNumber>
  <PaytoBankAccountName>String content</PaytoBankAccountName>
  <PaytoBankAccountNumber>String content</PaytoBankAccountNumber>
  <PaytoBankNumber>String content</PaytoBankNumber>
  <SupplierAccountNumber>String content</SupplierAccountNumber>
  <SupplierCode>String content</SupplierCode>
  <SupplierName>String content</SupplierName>
  <SupplierTypeName>String content</SupplierTypeName>
  <TaxCode>String content</TaxCode>
  <TaxIDNo>String content</TaxIDNo>
  <TaxPct>12678967.543233</TaxPct>
</PostSupplier>

The following is an example request Json body:

{
	"Active":true,
	"Billable":true,
	"CompanyNumber":"String content",
	"Create1099":true,
	"CurrencyCode":"String content",
	"CustomCode1":"String content",
	"CustomCode2":"String content",
	"CustomCode3":"String content",
	"CustomCode4":"String content",
	"CustomCode5":"String content",
	"DateOfBirth":"\/Date(928113600000+1000)\/",
	"DefaultGLAccountNumber":"String content",
	"DefaultSupplierPaymentTypeName":"String content",
	"DefaultTaskTypeCode":"String content",
	"DefaultWHTCode":"String content",
	"EmployeeCode":"String content",
	"Hold":true,
	"IDKey":2147483647,
	"MasterSupplierCode":"String content",
	"Notes":"String content",
	"OfficeCode":"String content",
	"PaymentTermsBaseOnName":"String content",
	"PaymentTermsFactorName":"String content",
	"PaymentTermsNumber":12678967.543233,
	"PaytoBankAccountName":"String content",
	"PaytoBankAccountNumber":"String content",
	"PaytoBankNumber":"String content",
	"SupplierAccountNumber":"String content",
	"SupplierCode":"String content",
	"SupplierName":"String content",
	"SupplierTypeName":"String content",
	"TaxCode":"String content",
	"TaxIDNo":"String content",
	"TaxPct":12678967.543233
}

The following is an example response Xml body:

<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2147483647</int>

The following is an example response Json body:

2147483647

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Accountability.API.Model" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Accountability.API.Model" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="PostSupplier">
    <xs:sequence>
      <xs:element minOccurs="0" name="Active" type="xs:boolean" />
      <xs:element minOccurs="0" name="Billable" type="xs:boolean" />
      <xs:element minOccurs="0" name="CompanyNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Create1099" type="xs:boolean" />
      <xs:element minOccurs="0" name="CurrencyCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CustomCode1" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CustomCode2" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CustomCode3" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CustomCode4" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CustomCode5" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DateOfBirth" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DefaultGLAccountNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DefaultSupplierPaymentTypeName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DefaultTaskTypeCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DefaultWHTCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="EmployeeCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Hold" type="xs:boolean" />
      <xs:element minOccurs="0" name="IDKey" type="xs:int" />
      <xs:element minOccurs="0" name="MasterSupplierCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Notes" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OfficeCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PaymentTermsBaseOnName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PaymentTermsFactorName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PaymentTermsNumber" type="xs:decimal" />
      <xs:element minOccurs="0" name="PaytoBankAccountName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PaytoBankAccountNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PaytoBankNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SupplierAccountNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SupplierCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SupplierName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SupplierTypeName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TaxCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TaxIDNo" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TaxPct" type="xs:decimal" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PostSupplier" nillable="true" type="tns:PostSupplier" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
  <tns:element name="schema">
    <tns:complexType />
  </tns:element>
</tns:schema>