Skip to content

Instantly share code, notes, and snippets.

@wyqydsyq
Created January 6, 2015 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wyqydsyq/80c40dfce3f1d8621535 to your computer and use it in GitHub Desktop.
Save wyqydsyq/80c40dfce3f1d8621535 to your computer and use it in GitHub Desktop.
Xero GST rounding error sample data
{
Invoice: {
Type: "ACCREC",
Contact: [{
ContactStatus: "ACTIVE",
Name: "Damon Poole",
FirstName: "Damon",
LastName: "Poole",
EmailAddress: "damon@mywork.com.au",
Phones: {
Phone: [{
PhoneType: "DEFAULT",
PhoneNumber: "611300809424"
}]
},
Addresses: {
Address: [{
AddressType: "STREET",
AttentionTo: "Damon Poole",
AddressLine1: "15b, 10 Old Chatswood Rd",
AddressLine2: "",
PostalCode: "4127",
City: "Springwood",
Region: "Queensland",
Country: "Australia"
}, {
AddressType: "POBOX",
AttentionTo: "Damon Poole",
AddressLine1: "15b, 10 Old Chatswood Rd",
AddressLine2: "",
PostalCode: "4127",
City: "Springwood",
Region: "Queensland",
Country: "Australia"
}]
}
}],
Status: "AUTHORISED",
LineItems: [{
LineItem: {
Description: "Original Lock Activity Box",
ItemCode: "",
Quantity: "1",
AccountCode: "4-1000",
UnitAmount: 54.55,
LineAmount: 54.55
}
}, {
LineItem: {
Description: "Shipping: QLD (Weight: 2.20kg)",
Quantity: 1,
AccountCode: "4-4000",
UnitAmount: 9.09,
LineAmount: 9.09
}
}],
CurrencyCode: "AUD",
CurrencyRate: "1.00000000",
Date: "2015-01-06 11:05:13",
DueDate: "2015-01-06 11:23:14",
InvoiceNumber: "INV-2014-1380",
Total: 70
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment