salesInvoiceDetails element

Type: salesInvoiceDetails
Namespace: http://api.crunch.co.uk/rest
XML Schema: api.xsd

Represents finer detail attached to a sales invoice

Example XML

<?xml version="1.0" encoding="UTF-8"?> <salesInvoiceDetails xmlns="http://api.crunch.co.uk/rest"> <client clientId="..." resourceUrl="..." defaultCurrency="..."> <name>...</name> <telephone>...</telephone> <fax>...</fax> <email>...</email> <website>...</website> <companyRegistrationNumber>...</companyRegistrationNumber> <vatRegistrationNumber>...</vatRegistrationNumber> <paymentTermsDays>...</paymentTermsDays> <contacts count="..."> <contact includeInEmail="..." primaryContact="..."> <name>...</name> <email>...</email> <telephone>...</telephone> <role>...</role> </contact> <contact includeInEmail="..." primaryContact="..."> <!--...--> </contact> <!--...more "contact" elements...--> </contacts> <billingAddress> <line1>...</line1> <line2>...</line2> <line3>...</line3> <line4>...</line4> <postcode>...</postcode> <country>...</country> </billingAddress> <shipToAddress> <line1>...</line1> <line2>...</line2> <line3>...</line3> <line4>...</line4> <postcode>...</postcode> <country>...</country> </shipToAddress> <note>...</note> </client> <clientReference>...</clientReference> <lastModifiedDate>...</lastModifiedDate> <issuedDate>...</issuedDate> <issueDateType>...</issueDateType> <dueDate>...</dueDate> <settledDate>...</settledDate> <state>...</state> <invoiceNumber>...</invoiceNumber> <paymentTermsDays>...</paymentTermsDays> <initialPaymentReminderDays>...</initialPaymentReminderDays> <repetitivePaymentReminderDays>...</repetitivePaymentReminderDays> <emailReminderToCustomer>...</emailReminderToCustomer> <purchaseOrder>...</purchaseOrder> <euMemberStateCountryCode>...</euMemberStateCountryCode> <bankAccount accountId="..." lastFourDigits="..." sortCode="..." accountNumber="...">...</bankAccount> <paymentProcessingAccount accountId="..." lastFourDigits="..." sortCode="..." accountNumber="...">...</paymentProcessingAccount> </salesInvoiceDetails>

Example JSON

{ "client" : { "clientId" : ..., "resourceUrl" : "...", "defaultCurrency" : "...", "name" : "...", "telephone" : "...", "fax" : "...", "email" : "...", "website" : "...", "companyRegistrationNumber" : "...", "vatRegistrationNumber" : "...", "paymentTermsDays" : ..., "contacts" : { "count" : ..., "contact" : [ { "includeInEmail" : false, "primaryContact" : false, "name" : "...", "email" : "...", "telephone" : "...", "role" : "..." }, ... ] }, "billingAddress" : { "line1" : "...", "line2" : "...", "line3" : "...", "line4" : "...", "postcode" : "...", "country" : "..." }, "shipToAddress" : { "line1" : "...", "line2" : "...", "line3" : "...", "line4" : "...", "postcode" : "...", "country" : "..." }, "note" : "..." }, "clientReference" : "...", "lastModifiedDate" : "...", "issuedDate" : "...", "issueDateType" : "...", "dueDate" : "...", "settledDate" : "...", "state" : "...", "invoiceNumber" : "...", "paymentTermsDays" : ..., "initialPaymentReminderDays" : ..., "repetitivePaymentReminderDays" : ..., "emailReminderToCustomer" : false, "purchaseOrder" : "...", "euMemberStateCountryCode" : "...", "bankAccount" : { "accountId" : ..., "lastFourDigits" : ..., "sortCode" : "...", "accountNumber" : "...", "value" : "..." }, "paymentProcessingAccount" : { "accountId" : ..., "lastFourDigits" : ..., "sortCode" : "...", "accountNumber" : "...", "value" : "..." } }