Skip to content

Instantly share code, notes, and snippets.

@philals
Created January 6, 2016 19:31
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 philals/6325335e2c3e5b845e30 to your computer and use it in GitHub Desktop.
Save philals/6325335e2c3e5b845e30 to your computer and use it in GitHub Desktop.
PUT https://api.xero.com/api.xro/2.0/Invoices?unitdp=4&page=1 HTTP/1.1
Accept: application/json
Authorization: OAuth oauth_consumer_key="?", oauth_token="??", oauth_signature_method="RSA-SHA1", oauth_signature="??", oauth_timestamp="?", oauth_nonce="?", oauth_version="1.0"
User-Agent: Xero Api - Integration tests
Content-Type: application/xml
Host: api.xero.com
Content-Length: 487
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
<?xml version="1.0" encoding="utf-8"?><Invoices xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Invoice><Contact><Name>ABC Bank</Name></Contact><Date>2016-01-06T19:29:54.8149528Z</Date><DueDate>2016-04-05T19:29:54.8149528Z</DueDate><LineAmountTypes>Inclusive</LineAmountTypes><LineItems><LineItem><AccountCode>200</AccountCode><Description>Good value item</Description><LineAmount>100</LineAmount></LineItem></LineItems><Status>DRAFT</Status><Type>ACCPAY</Type></Invoice></Invoices>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment