Reference for https://www.accountabilityapi.com/Service.svc/client
Url: https://www.accountabilityapi.com/Service.svc/client
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:
<PostClient xmlns="http://schemas.datacontract.org/2004/07/Accountability.API.Model"> <Active>true</Active> <Billable>true</Billable> <ClientAccountNumber>String content</ClientAccountNumber> <ClientCode>String content</ClientCode> <ClientManagerCode>String content</ClientManagerCode> <ClientName>String content</ClientName> <ClientTypeName>String content</ClientTypeName> <CompanyNumber>String content</CompanyNumber> <CreditLimit>12678967.543233</CreditLimit> <CurrencyCode>String content</CurrencyCode> <CustomCode1>String content</CustomCode1> <CustomCode2>String content</CustomCode2> <CustomCode3>String content</CustomCode3> <CustomCode4>String content</CustomCode4> <CustomCode5>String content</CustomCode5> <DefaultWHTCode>String content</DefaultWHTCode> <IDKey>2147483647</IDKey> <MasterClientCode>String content</MasterClientCode> <MediaClientManagerCode>String content</MediaClientManagerCode> <MediaServiceFeeCalcName>String content</MediaServiceFeeCalcName> <MediaTaxStatusName>String content</MediaTaxStatusName> <Notes>String content</Notes> <OfficeCode>String content</OfficeCode> <PaymentTermsBaseOnName>String content</PaymentTermsBaseOnName> <PaymentTermsFactorName>String content</PaymentTermsFactorName> <PaymentTermsNumber>12678967.543233</PaymentTermsNumber> <PctMediaServiceFee>12678967.543233</PctMediaServiceFee> <PctRebateMediaCommission>12678967.543233</PctRebateMediaCommission> <PctServiceFeeProduction>12678967.543233</PctServiceFeeProduction> <PctSupplierInvoiceMarkUp>12678967.543233</PctSupplierInvoiceMarkUp> <PctTax>12678967.543233</PctTax> <ReportsCulture>String content</ReportsCulture> <TaxCode>String content</TaxCode> <TaxIDNo>String content</TaxIDNo> </PostClient>
The following is an example request Json body:
{ "Active":true, "Billable":true, "ClientAccountNumber":"String content", "ClientCode":"String content", "ClientManagerCode":"String content", "ClientName":"String content", "ClientTypeName":"String content", "CompanyNumber":"String content", "CreditLimit":12678967.543233, "CurrencyCode":"String content", "CustomCode1":"String content", "CustomCode2":"String content", "CustomCode3":"String content", "CustomCode4":"String content", "CustomCode5":"String content", "DefaultWHTCode":"String content", "IDKey":2147483647, "MasterClientCode":"String content", "MediaClientManagerCode":"String content", "MediaServiceFeeCalcName":"String content", "MediaTaxStatusName":"String content", "Notes":"String content", "OfficeCode":"String content", "PaymentTermsBaseOnName":"String content", "PaymentTermsFactorName":"String content", "PaymentTermsNumber":12678967.543233, "PctMediaServiceFee":12678967.543233, "PctRebateMediaCommission":12678967.543233, "PctServiceFeeProduction":12678967.543233, "PctSupplierInvoiceMarkUp":12678967.543233, "PctTax":12678967.543233, "ReportsCulture":"String content", "TaxCode":"String content", "TaxIDNo":"String content" }
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="PostClient"> <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="ClientAccountNumber" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ClientCode" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ClientManagerCode" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ClientName" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ClientTypeName" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="CompanyNumber" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="CreditLimit" type="xs:decimal" /> <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="DefaultWHTCode" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="IDKey" type="xs:int" /> <xs:element minOccurs="0" name="MasterClientCode" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="MediaClientManagerCode" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="MediaServiceFeeCalcName" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="MediaTaxStatusName" 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="PctMediaServiceFee" type="xs:decimal" /> <xs:element minOccurs="0" name="PctRebateMediaCommission" type="xs:decimal" /> <xs:element minOccurs="0" name="PctServiceFeeProduction" type="xs:decimal" /> <xs:element minOccurs="0" name="PctSupplierInvoiceMarkUp" type="xs:decimal" /> <xs:element minOccurs="0" name="PctTax" type="xs:decimal" /> <xs:element minOccurs="0" name="ReportsCulture" 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:sequence> </xs:complexType> <xs:element name="PostClient" nillable="true" type="tns:PostClient" /> </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>