Created
January 27, 2013 19:46
-
-
Save ronanq/4650059 to your computer and use it in GitHub Desktop.
PUT Request to Xero organisation 'Welli NZ Test' (Xero test)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Invoices> | |
<Invoice> | |
<Type>ACCREC</Type><Contact><Name>APIACCOUNT</Name><FirstName>Pete</FirstName><LastName>Contact</LastName><EmailAddress>ronan.quirke+apitest1@gmail.com</EmailAddress><Addresses> | |
<Address> | |
<AddressType>POBOX</AddressType></Address><Address> | |
<AddressType>STREET</AddressType></Address> | |
</Addresses><Phones> | |
<Phone> | |
<PhoneType>FAX</PhoneType></Phone><Phone> | |
<PhoneType>DDI</PhoneType></Phone><Phone> | |
<PhoneType>MOBILE</PhoneType><PhoneNumber>64277559211</PhoneNumber> | |
<PhoneAreaCode></PhoneAreaCode> | |
<PhoneCountryCode></PhoneCountryCode></Phone><Phone> | |
<PhoneType>DEFAULT</PhoneType><PhoneNumber>64277559211</PhoneNumber> | |
<PhoneAreaCode></PhoneAreaCode> | |
<PhoneCountryCode></PhoneCountryCode></Phone> | |
</Phones> | |
<IsCustomer>true</IsCustomer> | |
</Contact><Date>2013-01-24</Date><DueDate>2013-01-24</DueDate><LineItems><LineItem><Description>PRODNAME1</Description><Quantity>5.58</Quantity><UnitAmount>67.66</UnitAmount><AccountCode>200</AccountCode></LineItem></LineItems><LineAmountTypes>Exclusive</LineAmountTypes> | |
</Invoice> | |
</Invoices> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Invoices> | |
<Invoice> | |
<Type>ACCREC</Type>%3CContact%3E%3CName%3EAPIACCOUNT%3C%2FName%3E%3CFirstName%3EPete%3C%2FFirstName%3E%3CLastName%3EContact%3C%2FLastName%3E%3CEmailAddress%3Eronan.quirke%2Bapitest1%40gmail.com%3C%2FEmailAddress%3E%3CAddresses%3E%0A++++++++++++++++++++++++++++%3CAddress%3E%0A++++++++++++++++++++++++++++%3CAddressType%3EPOBOX%3C%2FAddressType%3E%3C%2FAddress%3E%3CAddress%3E%0A++++++++++++++++++++++++++++++%3CAddressType%3ESTREET%3C%2FAddressType%3E%3C%2FAddress%3E%0A+++++++++++++++++++++++++++++%3C%2FAddresses%3E%3CPhones%3E%0A+++++++++++++++++++++++++++++%3CPhone%3E%0A+++++++++++++++++++++++++++++%3CPhoneType%3EFAX%3C%2FPhoneType%3E%3C%2FPhone%3E%3CPhone%3E%0A+++++++++++++++++++++++++++++%3CPhoneType%3EDDI%3C%2FPhoneType%3E%3C%2FPhone%3E%3CPhone%3E%0A+++++++++++++++++++++++++++++%3CPhoneType%3EMOBILE%3C%2FPhoneType%3E%3CPhoneNumber%3E64277559211%3C%2FPhoneNumber%3E%0A++++++++++++++++++++++++++++++++++++++%3CPhoneAreaCode%3E%3C%2FPhoneAreaCode%3E%0A++++++++++++++++++++++++++++++++++++%3CPhoneCountryCode%3E%3C%2FPhoneCountryCode%3E%3C%2FPhone%3E%3CPhone%3E%0A+++++++++++++++++++++++++++++%3CPhoneType%3EDEFAULT%3C%2FPhoneType%3E%3CPhoneNumber%3E64277559211%3C%2FPhoneNumber%3E%0A+++++++++++++++++++++++++++++++++++++%3CPhoneAreaCode%3E%3C%2FPhoneAreaCode%3E%0A++++++++++++++++++++++++++++++++++++%3CPhoneCountryCode%3E%3C%2FPhoneCountryCode%3E%3C%2FPhone%3E%0A+++++++++++++++++++++++++++++%3C%2FPhones%3E%0A+++++++++++++++++++++++++++++%3CIsCustomer%3Etrue%3C%2FIsCustomer%3E%0A+++++++++++++++++++++++++++++%3C%2FContact%3E%3CDate%3E2013-01-24%3C%2FDate%3E%3CDueDate%3E2013-01-24%3C%2FDueDate%3E%3CLineItems%3E%3CLineItem%3E%3CDescription%3EPRODNAME1%3C%2FDescription%3E%3CQuantity%3E5.58%3C%2FQuantity%3E%3CUnitAmount%3E67.66%3C%2FUnitAmount%3E%3CAccountCode%3E200%3C%2FAccountCode%3E%3C%2FLineItem%3E%3C%2FLineItems%3E<LineAmountTypes>Exclusive</LineAmountTypes> | |
</Invoice> | |
</Invoices> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ApiException xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<ErrorNumber>10</ErrorNumber> | |
<Type>ValidationException</Type> | |
<Message>A validation exception occurred</Message> | |
<Elements> | |
<DataContractBase xsi:type="Invoice"> | |
<ValidationErrors> | |
<ValidationError> | |
<Message>One or more line items must be specified</Message> | |
</ValidationError> | |
<ValidationError> | |
<Message>A Contact must be specified for this type of transaction</Message> | |
</ValidationError> | |
</ValidationErrors> | |
<Warnings /> | |
<Date>2013-01-26T00:00:00</Date> | |
<BrandingThemeID xsi:nil="true" /> | |
<Status>DRAFT</Status> | |
<LineAmountTypes>Exclusive</LineAmountTypes> | |
<LineItems /> | |
<SubTotal>0.00</SubTotal> | |
<TotalTax>0.00</TotalTax> | |
<Total>0.00</Total> | |
<UpdatedDateUTC xsi:nil="true" /> | |
<CurrencyCode>NZD</CurrencyCode> | |
<FullyPaidOnDate xsi:nil="true" /> | |
<Type>ACCREC</Type> | |
<InvoiceID>00000000-0000-0000-0000-000000000000</InvoiceID> | |
<Payments /> | |
<CreditNotes /> | |
<AmountDue xsi:nil="true" /> | |
<AmountPaid xsi:nil="true" /> | |
<AmountCredited xsi:nil="true" /> | |
<SentToContact xsi:nil="true" /> | |
<CurrencyRate xsi:nil="true" /> | |
<TotalDiscount xsi:nil="true" /> | |
<HasAttachments>false</HasAttachments> | |
<Attachments /> | |
</DataContractBase> | |
</Elements> | |
</ApiException> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment