fixtures/vcr_cassettes/Invoicing/Invoices_have_correct_due_date.yml
---
http_interactions:
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%22ebf0c728-0d96-4ece-8bbe-f245eefc75c4%22)
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="ExIJY977IkjEODeMNZL5OaR0BZB2nYs2eZvVjmDo",
oauth_signature="hBUcz9EogCQ5dMmM89x6vvK64mkKBSOhM25SKISPvIw%2FsL7FlHqF1x5dFW%2FcBMjyrJvhaixXbkyGrzfV%2FyLlfUPlLyZQWPySRg62DPH3lWfrLdgwlP4aJuzCA09Ke8tjmwp%2FnnDycgQBou9TrvR0Dpz3bAtMR19lOg9b7CsPKik%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1439980891", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Length:
- '292'
Content-Type:
- text/xml; charset=utf-8
X-S:
- 445758-O1VMAP01
- 445760-O1VMAP03
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 19 Aug 2015 10:41:30 GMT
body:
encoding: US-ASCII
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>5c1e4990-1732-415d-a32b-456030e0c6e8</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Jordan</ProviderName>\r\n <DateTimeUTC>2015-08-19T10:41:31.8294405Z</DateTimeUTC>\r\n</Response>"
http_version:
recorded_at: Wed, 19 Aug 2015 10:41:32 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%22ebf0c728-0d96-4ece-8bbe-f245eefc75c4%22)%20AND%20Status%20!=%20%22DELETED%22
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="3KSDgC6zVlgqvJXhNUGUl5V3ONdtgitdqhYcWNdlA",
oauth_signature="ibLyA2qJ%2F4j9OzJ4tjffzT2beWTMjYCUMWQEmDvQIuSiQqFS2Y%2BpgXcbkv%2BAj21AYnCovm6gTsxThKAN4xL9WigcQPqiiAvv0ZdW%2BO3VE5Hk4Vny99zbi%2FkqkAPYIbgsRRttnMMuv6QYlUJJhuohqMmCadEekq03W%2FqTwhuGP48%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1439980895", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Length:
- '1214'
Content-Type:
- text/xml; charset=utf-8
X-S:
- 445758-O1VMAP01
- 445761-O1VMAP04
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 19 Aug 2015 10:41:35 GMT
body:
encoding: US-ASCII
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>832ab15b-8711-45d3-847a-798eed7e3ca2</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Jordan</ProviderName>\r\n <DateTimeUTC>2015-08-19T10:41:35.6587631Z</DateTimeUTC>\r\n
\ <Invoices>\r\n <Invoice>\r\n <Contact>\r\n <ContactID>ebf0c728-0d96-4ece-8bbe-f245eefc75c4</ContactID>\r\n
\ <Name>Existing Company Inc.</Name>\r\n </Contact>\r\n <Date>2015-08-19T00:00:00</Date>\r\n
\ <DueDate>2013-03-10T00:00:00</DueDate>\r\n <Status>DRAFT</Status>\r\n
\ <LineAmountTypes>Exclusive</LineAmountTypes>\r\n <SubTotal>1.00</SubTotal>\r\n
\ <TotalTax>0.20</TotalTax>\r\n <Total>1.20</Total>\r\n <UpdatedDateUTC>2015-08-19T10:41:33.833</UpdatedDateUTC>\r\n
\ <CurrencyCode>GBP</CurrencyCode>\r\n <Type>ACCREC</Type>\r\n <InvoiceID>be93da27-e19b-4429-894c-b6d2992563a6</InvoiceID>\r\n
\ <InvoiceNumber>INV-0334</InvoiceNumber>\r\n <AmountDue>1.20</AmountDue>\r\n
\ <AmountPaid>0.00</AmountPaid>\r\n <AmountCredited>0.00</AmountCredited>\r\n
\ <CurrencyRate>1.000000</CurrencyRate>\r\n <HasAttachments>false</HasAttachments>\r\n
\ </Invoice>\r\n </Invoices>\r\n</Response>"
http_version:
recorded_at: Wed, 19 Aug 2015 10:41:36 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Invoices/be93da27-e19b-4429-894c-b6d2992563a6
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="rD7gF0VGsZdn0YXiUtNQQTiFDvWcKvzfqa23qw0Nw",
oauth_signature="qByZopOrv5ceQ35DCChe1Xdxek6bviFVnj3sQiObp6Hmh4PMVBGQFF2TsvWcTI7F8J7zRqSC5Upx2ruT%2FFFtNyvvrGmiwhelKWepfQ3TZf5gAv9Dg7%2F%2BYLbpvevhuVj%2BTYgc8m5XeQje9bYaXC%2BA4wzm0wog27xAoi3d4wfwBYk%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1439980896", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Length:
- '2684'
Content-Type:
- text/xml; charset=utf-8
X-S:
- 445758-O1VMAP01
- 445760-O1VMAP03
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 19 Aug 2015 10:41:36 GMT
body:
encoding: US-ASCII
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>66358f2f-e245-4d6d-97aa-477ed6c64acf</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Jordan</ProviderName>\r\n <DateTimeUTC>2015-08-19T10:41:36.5564526Z</DateTimeUTC>\r\n
\ <Invoices>\r\n <Invoice>\r\n <Contact>\r\n <ContactID>ebf0c728-0d96-4ece-8bbe-f245eefc75c4</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc.</Name>\r\n <Addresses>\r\n <Address>\r\n <AddressType>POBOX</AddressType>\r\n
\ </Address>\r\n <Address>\r\n <AddressType>STREET</AddressType>\r\n
\ </Address>\r\n </Addresses>\r\n <Phones>\r\n <Phone>\r\n
\ <PhoneType>DDI</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DEFAULT</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>FAX</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>MOBILE</PhoneType>\r\n </Phone>\r\n </Phones>\r\n
\ <UpdatedDateUTC>2015-08-19T10:41:28.24</UpdatedDateUTC>\r\n <IsSupplier>false</IsSupplier>\r\n
\ <IsCustomer>1</IsCustomer>\r\n </Contact>\r\n <Date>2015-08-19T00:00:00</Date>\r\n
\ <DueDate>2013-03-10T00:00:00</DueDate>\r\n <Status>DRAFT</Status>\r\n
\ <LineAmountTypes>Exclusive</LineAmountTypes>\r\n <LineItems>\r\n
\ <LineItem>\r\n <Description>Line Item Number 0</Description>\r\n
\ <UnitAmount>1.00</UnitAmount>\r\n <TaxType>OUTPUT2</TaxType>\r\n
\ <TaxAmount>0.20</TaxAmount>\r\n <LineAmount>1.00</LineAmount>\r\n
\ <Quantity>1.0000</Quantity>\r\n <LineItemID>e7097c30-8cd6-4cb7-bbc5-78e3095e1533</LineItemID>\r\n
\ </LineItem>\r\n <LineItem>\r\n <Description>PAID WITH
PAYPAL</Description>\r\n <UnitAmount>0.00</UnitAmount>\r\n <LineAmount>0.00</LineAmount>\r\n
\ <Quantity>0.0000</Quantity>\r\n <LineItemID>cdb97322-422f-43a4-bc37-3e0a96e574e3</LineItemID>\r\n
\ </LineItem>\r\n </LineItems>\r\n <SubTotal>1.00</SubTotal>\r\n
\ <TotalTax>0.20</TotalTax>\r\n <Total>1.20</Total>\r\n <UpdatedDateUTC>2015-08-19T10:41:33.833</UpdatedDateUTC>\r\n
\ <CurrencyCode>GBP</CurrencyCode>\r\n <Type>ACCREC</Type>\r\n <InvoiceID>be93da27-e19b-4429-894c-b6d2992563a6</InvoiceID>\r\n
\ <InvoiceNumber>INV-0334</InvoiceNumber>\r\n <AmountDue>1.20</AmountDue>\r\n
\ <AmountPaid>0.00</AmountPaid>\r\n <SentToContact>false</SentToContact>\r\n
\ <CurrencyRate>1.000000</CurrencyRate>\r\n <HasAttachments>false</HasAttachments>\r\n
\ </Invoice>\r\n </Invoices>\r\n</Response>"
http_version:
recorded_at: Wed, 19 Aug 2015 10:41:36 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%22fee50e67-4e34-490a-81d3-88373645cd97%22)
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="7tHeqMFeiq1a4VgkESCPIoVd4bsjNCKhJcOYChVKFw",
oauth_signature="pK0mi7wx9dUCin1%2F06F337k%2BwoXFTJhT6WJf4y3ljsrH3MIdcTfi7xfsR7J2WmQR7%2FgzabEYYkSJqVYIVSYQ5ZW5eL0GctSnpZ3207wdcKm07v9KF5IGXfQ%2FMKJ2QUyq%2BrytwiOZoYCTMHJhgBjJ%2FqPpgJImOf5KCjoaYLvN7TE%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446644823", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 445760-O1VMAP03
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 13:47:03 GMT
Content-Length:
- '226'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>8ccea2bf-f582-42e0-87f1-36983ab4481f</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T13:47:03.6956402Z</DateTimeUTC>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 13:47:04 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%22fee50e67-4e34-490a-81d3-88373645cd97%22)%20AND%20Status%20!=%20%22DELETED%22
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="uyDZPicwu9P6z2vYkJ7l3aaZo7xTaIN9Jn7QIlpgulI",
oauth_signature="u16HYblWOLRXhcAw3ajXFo17SuYIliILu9Xv7NLHDRJlcD6Iifn0PO7xjFEIaZ%2BkI4tRRMkMpIp%2FDMuBrUG0X%2BkONPMQ0X82XkgJXlm9miRjeF80RdbklUynXydQt%2BUUxWcoKqCNeEaYJ5eGo3xIikBbaSyRVb0pr1U04QEaPAU%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446644828", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 445760-O1VMAP03
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 13:47:06 GMT
Content-Length:
- '574'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>d31dfa94-86ea-47b9-9788-06f3f0005e6a</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T13:47:07.798598Z</DateTimeUTC>\r\n
\ <Invoices>\r\n <Invoice>\r\n <Contact>\r\n <ContactID>fee50e67-4e34-490a-81d3-88373645cd97</ContactID>\r\n
\ <Name>Existing Company Inc.</Name>\r\n </Contact>\r\n <Date>2015-11-04T00:00:00</Date>\r\n
\ <DueDate>2013-03-10T00:00:00</DueDate>\r\n <Status>DRAFT</Status>\r\n
\ <LineAmountTypes>Exclusive</LineAmountTypes>\r\n <SubTotal>1.00</SubTotal>\r\n
\ <TotalTax>0.20</TotalTax>\r\n <Total>1.20</Total>\r\n <UpdatedDateUTC>2015-11-04T13:47:06.223</UpdatedDateUTC>\r\n
\ <CurrencyCode>GBP</CurrencyCode>\r\n <Type>ACCREC</Type>\r\n <InvoiceID>5fbea6a4-5bfa-4950-85e5-8069f405b9ec</InvoiceID>\r\n
\ <InvoiceNumber>INV-0049</InvoiceNumber>\r\n <AmountDue>1.20</AmountDue>\r\n
\ <AmountPaid>0.00</AmountPaid>\r\n <AmountCredited>0.00</AmountCredited>\r\n
\ <CurrencyRate>1.000000</CurrencyRate>\r\n <HasAttachments>false</HasAttachments>\r\n
\ </Invoice>\r\n </Invoices>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 13:47:08 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Invoices/5fbea6a4-5bfa-4950-85e5-8069f405b9ec
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="8LeaDZiNafIRXP3RToAE2Vv0UZOOk9T3BByMEQ52xbM",
oauth_signature="sRER6tEHx2FZzGzVt%2FgFCNlumOvarAsAzHiulj5CL9iAwUKO4%2BMc8Bu4oK%2FC2P1tGOO0RyXucCwW%2BOKXtEnA8AQAXNgS5Oe59e5%2BK2hw2U25Y6qpvqPbf3WsNyitWN9Z82NryHQDz%2BF0kfAOC5dHfiTGEADiRvOaV%2BIq05SWlcE%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446644828", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 445760-O1VMAP03
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 13:47:07 GMT
Content-Length:
- '915'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>ba143b5b-da08-43d4-abcc-557695f418d5</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T13:47:08.2978172Z</DateTimeUTC>\r\n
\ <Invoices>\r\n <Invoice>\r\n <Contact>\r\n <ContactID>fee50e67-4e34-490a-81d3-88373645cd97</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc.</Name>\r\n <Addresses>\r\n <Address>\r\n <AddressType>POBOX</AddressType>\r\n
\ </Address>\r\n <Address>\r\n <AddressType>STREET</AddressType>\r\n
\ </Address>\r\n </Addresses>\r\n <Phones>\r\n <Phone>\r\n
\ <PhoneType>FAX</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DEFAULT</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DDI</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>MOBILE</PhoneType>\r\n </Phone>\r\n </Phones>\r\n
\ <UpdatedDateUTC>2015-11-04T13:47:02.167</UpdatedDateUTC>\r\n <IsSupplier>false</IsSupplier>\r\n
\ <IsCustomer>1</IsCustomer>\r\n </Contact>\r\n <Date>2015-11-04T00:00:00</Date>\r\n
\ <DueDate>2013-03-10T00:00:00</DueDate>\r\n <Status>DRAFT</Status>\r\n
\ <LineAmountTypes>Exclusive</LineAmountTypes>\r\n <LineItems>\r\n
\ <LineItem>\r\n <Description>Line Item Number 0</Description>\r\n
\ <UnitAmount>1.00</UnitAmount>\r\n <TaxType>OUTPUT2</TaxType>\r\n
\ <TaxAmount>0.20</TaxAmount>\r\n <LineAmount>1.00</LineAmount>\r\n
\ <Quantity>1.0000</Quantity>\r\n <LineItemID>ce2dde56-b937-4f42-a56b-6773e7bcd8e8</LineItemID>\r\n
\ </LineItem>\r\n <LineItem>\r\n <Description>PAID WITH
PAYPAL</Description>\r\n <UnitAmount>0.00</UnitAmount>\r\n <LineAmount>0.00</LineAmount>\r\n
\ <Quantity>0.0000</Quantity>\r\n <LineItemID>0db05a35-f820-4efd-90f9-1f72933b95e7</LineItemID>\r\n
\ </LineItem>\r\n </LineItems>\r\n <SubTotal>1.00</SubTotal>\r\n
\ <TotalTax>0.20</TotalTax>\r\n <Total>1.20</Total>\r\n <UpdatedDateUTC>2015-11-04T13:47:06.223</UpdatedDateUTC>\r\n
\ <CurrencyCode>GBP</CurrencyCode>\r\n <Type>ACCREC</Type>\r\n <InvoiceID>5fbea6a4-5bfa-4950-85e5-8069f405b9ec</InvoiceID>\r\n
\ <InvoiceNumber>INV-0049</InvoiceNumber>\r\n <AmountDue>1.20</AmountDue>\r\n
\ <AmountPaid>0.00</AmountPaid>\r\n <SentToContact>false</SentToContact>\r\n
\ <CurrencyRate>1.000000</CurrencyRate>\r\n <HasAttachments>false</HasAttachments>\r\n
\ </Invoice>\r\n </Invoices>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 13:47:09 GMT
- request:
method: put
uri: https://api.xero.com/api.xro/2.0/Contacts
body:
encoding: US-ASCII
string: xml=%3CContact%3E%0A%20%20%3CName%3EExisting%20Company%20Inc.%3C%2FName%3E%0A%3C%2FContact%3E%0A
headers:
Charset:
- utf-8
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Content-Length:
- '0'
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="NnwizBCY2wsniJQupgit887n8C6bTD8k5F88Re5Nkk",
oauth_signature="UwAMx5hdWAEX8990V%2F7rR1Ll%2FllzPS3d7RKd7hNeD3VaYpVNL0JYUPq8XolaHoff2DyyprY4YiTyFz%2B9BX2PmtUv6zW283%2BTqkK4EIMDjfiYu1BlcoaWsKBeMrGjzOiIXBpYR3acpL4QxkEpPWVAk6M9P4yZXZOUa3Jl4b8KgX0%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645686", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 505390-O1VMAP05
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:26 GMT
Content-Length:
- '460'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>a413b206-375b-44c1-97e9-f885b4a4486c</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:26.7047725Z</DateTimeUTC>\r\n
\ <Contacts>\r\n <Contact>\r\n <ContactID>1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc.</Name>\r\n <Addresses>\r\n <Address>\r\n <AddressType>STREET</AddressType>\r\n
\ </Address>\r\n <Address>\r\n <AddressType>POBOX</AddressType>\r\n
\ </Address>\r\n </Addresses>\r\n <Phones>\r\n <Phone>\r\n
\ <PhoneType>FAX</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DDI</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DEFAULT</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>MOBILE</PhoneType>\r\n </Phone>\r\n </Phones>\r\n
\ <UpdatedDateUTC>2015-11-04T14:01:26.657</UpdatedDateUTC>\r\n <IsSupplier>false</IsSupplier>\r\n
\ <IsCustomer>false</IsCustomer>\r\n </Contact>\r\n </Contacts>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:27 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Contacts?where=Name.ToLower()%20==%20%22existing%20company%20inc.%22
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="DBw0Vx2wulbw0q6wa19ZjiucW4uOdghorBwury0mf0",
oauth_signature="vFfhMrzo9U2alGg651NAAGB7ClAr0eufbjdjMRCdijsWtaE1YFJvB7FYK8cxYnP%2FYVsLqkMx6jeXhxtuOy1X4nFQRMQ1hES%2BAgdUnHjKTGvmIzOpVgDMefQKD1u4ufTHAxWkCf%2FRSAIxIa38GQO%2FJU8fS825hnNYCvZ%2F6NvzwqI%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645687", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 445759-O1VMAP02
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:26 GMT
Content-Length:
- '475'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>d15bff03-6d74-4da5-80e4-34316a8db684</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:26.7643381Z</DateTimeUTC>\r\n
\ <Contacts>\r\n <Contact>\r\n <ContactID>1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc.</Name>\r\n <Addresses>\r\n <Address>\r\n <AddressType>STREET</AddressType>\r\n
\ </Address>\r\n <Address>\r\n <AddressType>POBOX</AddressType>\r\n
\ </Address>\r\n </Addresses>\r\n <Phones>\r\n <Phone>\r\n
\ <PhoneType>DDI</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DEFAULT</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>FAX</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>MOBILE</PhoneType>\r\n </Phone>\r\n </Phones>\r\n
\ <UpdatedDateUTC>2015-11-04T14:01:26.657</UpdatedDateUTC>\r\n <IsSupplier>false</IsSupplier>\r\n
\ <IsCustomer>false</IsCustomer>\r\n <HasAttachments>false</HasAttachments>\r\n
\ </Contact>\r\n </Contacts>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:27 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%221a031cf1-d80f-4aff-bdee-d8220ccfc7d1%22)
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="OMFvLc1G2V5EJ259cxaXhBCDB8PMInYrr1KShhWA",
oauth_signature="PjPZyASlshQSNpg4yPlg7hTM3v38Fvs4Sec8K5Ir4JBnEta20%2BsXr16ssCk2aHk7ZPnDVfJq1ZIw4Y3S16P%2BmuKlV4lwkMoqKopb6sqHCSMIs645WetUXh449QADjb4bUoBoKZrGvGeEglQWqk2ypLcdfQoFzPR2qWBiN0PWBXM%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645687", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 505390-O1VMAP05
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:27 GMT
Content-Length:
- '226'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>2eafd66f-fb7c-496c-99d0-2e4213a19630</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:27.718805Z</DateTimeUTC>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:28 GMT
- request:
method: put
uri: https://api.xero.com/api.xro/2.0/Invoices
body:
encoding: US-ASCII
string: xml=%3CInvoice%3E%0A%20%20%3CType%3EACCREC%3C%2FType%3E%0A%20%20%3CContact%3E%0A%20%20%20%20%3CContactID%3E1a031cf1-d80f-4aff-bdee-d8220ccfc7d1%3C%2FContactID%3E%0A%20%20%20%20%3CContactStatus%3EACTIVE%3C%2FContactStatus%3E%0A%20%20%20%20%3CName%3EExisting%20Company%20Inc.%3C%2FName%3E%0A%20%20%20%20%3CAddresses%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3ESTREET%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3EPOBOX%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%3C%2FAddresses%3E%0A%20%20%20%20%3CPhones%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDDI%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDEFAULT%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EFAX%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EMOBILE%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3C%2FPhones%3E%0A%20%20%20%20%3CIsSupplier%3Efalse%3C%2FIsSupplier%3E%0A%20%20%20%20%3CIsCustomer%3Efalse%3C%2FIsCustomer%3E%0A%20%20%3C%2FContact%3E%0A%20%20%3CDueDate%3E2013-03-10%3C%2FDueDate%3E%0A%20%20%3CStatus%3EDRAFT%3C%2FStatus%3E%0A%20%20%3CLineItems%3E%0A%20%20%20%20%3CLineItem%3E%0A%20%20%20%20%20%20%3CDescription%3ELine%20Item%20Number%200%3C%2FDescription%3E%0A%20%20%20%20%20%20%3CUnitAmount%3E1.0%3C%2FUnitAmount%3E%0A%20%20%20%20%20%20%3CTaxType%3EOUTPUT2%3C%2FTaxType%3E%0A%20%20%20%20%3C%2FLineItem%3E%0A%20%20%20%20%3CLineItem%3E%0A%20%20%20%20%20%20%3CQuantity%3E0%3C%2FQuantity%3E%0A%20%20%20%20%20%20%3CUnitAmount%3E0%3C%2FUnitAmount%3E%0A%20%20%20%20%20%20%3CDescription%3EPAID%20WITH%20PAYPAL%3C%2FDescription%3E%0A%20%20%20%20%3C%2FLineItem%3E%0A%20%20%3C%2FLineItems%3E%0A%3C%2FInvoice%3E%0A
headers:
Charset:
- utf-8
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Content-Length:
- '0'
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="GfDGTlX0dMdGqJvpWItJkopSh2kXjooY7LgU0rdECFg",
oauth_signature="whixUzEUlefuzwMmzDdlYpjqFeQhnMhY76uCw4Hg0Lh0FWiKlk6a6ZOEjIztKXwYptaQ6mrUILMJODnKuUvVhPB2b9r%2BZ42EPDM1j%2BaXbzrVauuS%2FBVLPWlGgSNirwPYNb%2FBN%2BnWj7xfe7inJNnaMwUvA0Cb3caAlX%2FhykexaAs%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645688", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 505390-O1VMAP05
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:27 GMT
Content-Length:
- '895'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>13b56dfa-2795-480b-beee-0266615aa06c</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:28.342825Z</DateTimeUTC>\r\n
\ <Invoices>\r\n <Invoice>\r\n <Contact>\r\n <ContactID>1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc.</Name>\r\n <Addresses>\r\n <Address>\r\n <AddressType>STREET</AddressType>\r\n
\ </Address>\r\n <Address>\r\n <AddressType>POBOX</AddressType>\r\n
\ </Address>\r\n </Addresses>\r\n <Phones>\r\n <Phone>\r\n
\ <PhoneType>FAX</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DDI</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DEFAULT</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>MOBILE</PhoneType>\r\n </Phone>\r\n </Phones>\r\n
\ <UpdatedDateUTC>2015-11-04T14:01:26.657</UpdatedDateUTC>\r\n <IsSupplier>false</IsSupplier>\r\n
\ <IsCustomer>1</IsCustomer>\r\n </Contact>\r\n <Date>2015-11-04T00:00:00</Date>\r\n
\ <DueDate>2013-03-10T00:00:00</DueDate>\r\n <Status>DRAFT</Status>\r\n
\ <LineAmountTypes>Exclusive</LineAmountTypes>\r\n <LineItems>\r\n
\ <LineItem>\r\n <Description>Line Item Number 0</Description>\r\n
\ <UnitAmount>1.00</UnitAmount>\r\n <TaxType>OUTPUT2</TaxType>\r\n
\ <TaxAmount>0.20</TaxAmount>\r\n <LineAmount>1.00</LineAmount>\r\n
\ <Quantity>1.0000</Quantity>\r\n <LineItemID>92768aaa-f73b-441a-af70-a65d39ac85e5</LineItemID>\r\n
\ </LineItem>\r\n <LineItem>\r\n <Description>PAID WITH
PAYPAL</Description>\r\n <UnitAmount>0.00</UnitAmount>\r\n <LineAmount>0.00</LineAmount>\r\n
\ <Quantity>0.0000</Quantity>\r\n <LineItemID>d4a6d627-08b0-4d09-b510-73ae49be2dda</LineItemID>\r\n
\ </LineItem>\r\n </LineItems>\r\n <SubTotal>1.00</SubTotal>\r\n
\ <TotalTax>0.20</TotalTax>\r\n <Total>1.20</Total>\r\n <UpdatedDateUTC>2015-11-04T14:01:28.297</UpdatedDateUTC>\r\n
\ <CurrencyCode>GBP</CurrencyCode>\r\n <Type>ACCREC</Type>\r\n <InvoiceID>ad8fabe9-2363-4da8-a59b-ef88670c7707</InvoiceID>\r\n
\ <InvoiceNumber>INV-0067</InvoiceNumber>\r\n <AmountDue>1.20</AmountDue>\r\n
\ <AmountPaid>0.00</AmountPaid>\r\n <SentToContact>false</SentToContact>\r\n
\ <CurrencyRate>1.000000</CurrencyRate>\r\n </Invoice>\r\n </Invoices>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:28 GMT
- request:
method: post
uri: https://api.xero.com/api.xro/2.0/Invoices
body:
encoding: US-ASCII
string: xml=%3CInvoice%3E%0A%20%20%3CContact%3E%0A%20%20%20%20%3CContactID%3E1a031cf1-d80f-4aff-bdee-d8220ccfc7d1%3C%2FContactID%3E%0A%20%20%20%20%3CContactStatus%3EACTIVE%3C%2FContactStatus%3E%0A%20%20%20%20%3CName%3EExisting%20Company%20Inc.%3C%2FName%3E%0A%20%20%20%20%3CAddresses%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3ESTREET%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3EPOBOX%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%3C%2FAddresses%3E%0A%20%20%20%20%3CPhones%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EFAX%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDDI%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDEFAULT%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EMOBILE%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3C%2FPhones%3E%0A%20%20%20%20%3CIsSupplier%3Efalse%3C%2FIsSupplier%3E%0A%20%20%20%20%3CIsCustomer%3E1%3C%2FIsCustomer%3E%0A%20%20%3C%2FContact%3E%0A%20%20%3CDate%3E2015-11-04%3C%2FDate%3E%0A%20%20%3CDueDate%3E2013-03-10%3C%2FDueDate%3E%0A%20%20%3CStatus%3EDRAFT%3C%2FStatus%3E%0A%20%20%3CLineAmountTypes%3EExclusive%3C%2FLineAmountTypes%3E%0A%20%20%3CLineItems%3E%0A%20%20%20%20%3CLineItem%3E%0A%20%20%20%20%20%20%3CDescription%3ELine%20Item%20Number%200%3C%2FDescription%3E%0A%20%20%20%20%20%20%3CUnitAmount%3E1.0%3C%2FUnitAmount%3E%0A%20%20%20%20%20%20%3CTaxType%3EOUTPUT2%3C%2FTaxType%3E%0A%20%20%20%20%20%20%3CTaxAmount%3E0.2%3C%2FTaxAmount%3E%0A%20%20%20%20%20%20%3CLineAmount%3E1.0%3C%2FLineAmount%3E%0A%20%20%20%20%20%20%3CQuantity%3E1.0%3C%2FQuantity%3E%0A%20%20%20%20%20%20%3CLineItemId%3E92768aaa-f73b-441a-af70-a65d39ac85e5%3C%2FLineItemId%3E%0A%20%20%20%20%3C%2FLineItem%3E%0A%20%20%20%20%3CLineItem%3E%0A%20%20%20%20%20%20%3CDescription%3EPAID%20WITH%20PAYPAL%3C%2FDescription%3E%0A%20%20%20%20%20%20%3CUnitAmount%3E0.0%3C%2FUnitAmount%3E%0A%20%20%20%20%20%20%3CLineAmount%3E0.0%3C%2FLineAmount%3E%0A%20%20%20%20%20%20%3CQuantity%3E0.0%3C%2FQuantity%3E%0A%20%20%20%20%20%20%3CLineItemId%3Ed4a6d627-08b0-4d09-b510-73ae49be2dda%3C%2FLineItemId%3E%0A%20%20%20%20%3C%2FLineItem%3E%0A%20%20%3C%2FLineItems%3E%0A%20%20%3CSubTotal%3E1.0%3C%2FSubTotal%3E%0A%20%20%3CTotalTax%3E0.2%3C%2FTotalTax%3E%0A%20%20%3CTotal%3E1.2%3C%2FTotal%3E%0A%20%20%3CCurrencyCode%3EGBP%3C%2FCurrencyCode%3E%0A%20%20%3CType%3EACCREC%3C%2FType%3E%0A%20%20%3CInvoiceID%3Ead8fabe9-2363-4da8-a59b-ef88670c7707%3C%2FInvoiceID%3E%0A%20%20%3CInvoiceNumber%3EINV-0067%3C%2FInvoiceNumber%3E%0A%20%20%3CAmountDue%3E1.2%3C%2FAmountDue%3E%0A%20%20%3CAmountPaid%3E0.0%3C%2FAmountPaid%3E%0A%20%20%3CSentToContact%3Efalse%3C%2FSentToContact%3E%0A%20%20%3CCurrencyRate%3E1.0%3C%2FCurrencyRate%3E%0A%3C%2FInvoice%3E%0A
headers:
Charset:
- utf-8
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Content-Length:
- '0'
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="kqCtdseHmkLsqtrtJg1AUUelcsXauEoJoeQz3wVyRvc",
oauth_signature="bMsR1sk61kOCWKvN5D0xqJ0i%2BEDa7iPtew6pmuahmpyV911U8rfADSip5zNjKZ7EqYZA1kBe%2BtdMm3T9PsPEPuYqA%2BPj%2BhjHtPAe2wVGuEP%2B5xZOykC4j0ZnggC9XOhnNJde593y2SV7TF2c8rHOzZGzfwosd%2BIPtelA3lhosf8%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645688", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 505390-O1VMAP05
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:28 GMT
Content-Length:
- '956'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>0a5ec63d-452f-43bd-bd5f-8f5f8a4c2d07</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:28.9824455Z</DateTimeUTC>\r\n
\ <Invoices>\r\n <Invoice>\r\n <Warnings>\r\n <Warning>\r\n
\ <Message>Only AUTHORISED invoices may have SentToContact updated.</Message>\r\n
\ </Warning>\r\n </Warnings>\r\n <Contact>\r\n <ContactID>1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc.</Name>\r\n <Addresses>\r\n <Address>\r\n <AddressType>STREET</AddressType>\r\n
\ </Address>\r\n <Address>\r\n <AddressType>POBOX</AddressType>\r\n
\ </Address>\r\n </Addresses>\r\n <Phones>\r\n <Phone>\r\n
\ <PhoneType>FAX</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DDI</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DEFAULT</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>MOBILE</PhoneType>\r\n </Phone>\r\n </Phones>\r\n
\ <UpdatedDateUTC>2015-11-04T14:01:26.657</UpdatedDateUTC>\r\n <IsSupplier>false</IsSupplier>\r\n
\ <IsCustomer>1</IsCustomer>\r\n </Contact>\r\n <Date>2015-11-04T00:00:00</Date>\r\n
\ <DueDate>2013-03-10T00:00:00</DueDate>\r\n <Status>DRAFT</Status>\r\n
\ <LineAmountTypes>Exclusive</LineAmountTypes>\r\n <LineItems>\r\n
\ <LineItem>\r\n <Description>Line Item Number 0</Description>\r\n
\ <UnitAmount>1.00</UnitAmount>\r\n <TaxType>OUTPUT2</TaxType>\r\n
\ <TaxAmount>0.20</TaxAmount>\r\n <LineAmount>1.00</LineAmount>\r\n
\ <Quantity>1.0000</Quantity>\r\n <LineItemID>c06d3b77-6ba4-45cc-be7f-30d37ebf1299</LineItemID>\r\n
\ </LineItem>\r\n <LineItem>\r\n <Description>PAID WITH
PAYPAL</Description>\r\n <UnitAmount>0.00</UnitAmount>\r\n <LineAmount>0.00</LineAmount>\r\n
\ <Quantity>0.0000</Quantity>\r\n <LineItemID>cf190b02-c3e1-4db2-9d4d-aa7d2881de11</LineItemID>\r\n
\ </LineItem>\r\n </LineItems>\r\n <SubTotal>1.00</SubTotal>\r\n
\ <TotalTax>0.20</TotalTax>\r\n <Total>1.20</Total>\r\n <UpdatedDateUTC>2015-11-04T14:01:28.92</UpdatedDateUTC>\r\n
\ <CurrencyCode>GBP</CurrencyCode>\r\n <Type>ACCREC</Type>\r\n <InvoiceID>ad8fabe9-2363-4da8-a59b-ef88670c7707</InvoiceID>\r\n
\ <InvoiceNumber>INV-0067</InvoiceNumber>\r\n <AmountDue>1.20</AmountDue>\r\n
\ <AmountPaid>0.00</AmountPaid>\r\n <SentToContact>false</SentToContact>\r\n
\ <CurrencyRate>1.000000</CurrencyRate>\r\n </Invoice>\r\n </Invoices>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:29 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Contacts?where=Name%20==%20%22Existing%20Company%20Inc.%22
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="C9KNDZRUkbxfkbKVBJ7mGU0kFXDi0jM8CKLNaxRI",
oauth_signature="cNBnn76IX68d5OX7sCeAYCsfPigdnFY5xiVGMdjIqK363iEyglBjusaz58FhN%2BCnRZOmT4LU%2FYwzd53B7bevZICfqpWsoSpTQ%2FDFvI5tVW5grRFHODaZzblj7oE4EgC92USQnWcPhH8Nq3BxyxDTWYeNXAEyqpYatt2%2FFUO59oY%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645689", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 505390-O1VMAP05
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:28 GMT
Content-Length:
- '480'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>b9b18f5a-d2b0-4cc2-acf1-1f831334f43e</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:29.5440635Z</DateTimeUTC>\r\n
\ <Contacts>\r\n <Contact>\r\n <ContactID>1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc.</Name>\r\n <Addresses>\r\n <Address>\r\n <AddressType>STREET</AddressType>\r\n
\ </Address>\r\n <Address>\r\n <AddressType>POBOX</AddressType>\r\n
\ </Address>\r\n </Addresses>\r\n <Phones>\r\n <Phone>\r\n
\ <PhoneType>DDI</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DEFAULT</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>FAX</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>MOBILE</PhoneType>\r\n </Phone>\r\n </Phones>\r\n
\ <UpdatedDateUTC>2015-11-04T14:01:26.657</UpdatedDateUTC>\r\n <IsSupplier>false</IsSupplier>\r\n
\ <IsCustomer>1</IsCustomer>\r\n <HasAttachments>false</HasAttachments>\r\n
\ </Contact>\r\n </Contacts>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:30 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%221a031cf1-d80f-4aff-bdee-d8220ccfc7d1%22)%20AND%20Status%20!=%20%22DELETED%22
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="B0magp0Zcaotos3Oii3L6g54ydDuhdtoo3FTBi0hHA",
oauth_signature="LYK3VWK1Ez%2BejmrSncGlrk5YII0Rp%2Fa6uBWu4%2FHfaAbnqFAfN6PTdMzXhEoYu%2F81zKDBJtQa9ERe4EXP1GOqiAQxdnwuWyKDtc%2Fj8sJEVOjCaW%2BCSECD7ISFZ8%2BfGm%2F0KFYdCE%2FWW4CEjtET1ZtndnIvEH%2F85JHmZyF%2BJmiFod0%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645690", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 445759-O1VMAP02
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:29 GMT
Content-Length:
- '571'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>ae09750e-9091-4d08-96bf-916c5df8c8ad</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:29.6348117Z</DateTimeUTC>\r\n
\ <Invoices>\r\n <Invoice>\r\n <Contact>\r\n <ContactID>1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</ContactID>\r\n
\ <Name>Existing Company Inc.</Name>\r\n </Contact>\r\n <Date>2015-11-04T00:00:00</Date>\r\n
\ <DueDate>2013-03-10T00:00:00</DueDate>\r\n <Status>DRAFT</Status>\r\n
\ <LineAmountTypes>Exclusive</LineAmountTypes>\r\n <SubTotal>1.00</SubTotal>\r\n
\ <TotalTax>0.20</TotalTax>\r\n <Total>1.20</Total>\r\n <UpdatedDateUTC>2015-11-04T14:01:28.92</UpdatedDateUTC>\r\n
\ <CurrencyCode>GBP</CurrencyCode>\r\n <Type>ACCREC</Type>\r\n <InvoiceID>ad8fabe9-2363-4da8-a59b-ef88670c7707</InvoiceID>\r\n
\ <InvoiceNumber>INV-0067</InvoiceNumber>\r\n <AmountDue>1.20</AmountDue>\r\n
\ <AmountPaid>0.00</AmountPaid>\r\n <AmountCredited>0.00</AmountCredited>\r\n
\ <CurrencyRate>1.000000</CurrencyRate>\r\n <HasAttachments>false</HasAttachments>\r\n
\ </Invoice>\r\n </Invoices>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:30 GMT
- request:
method: get
uri: https://api.xero.com/api.xro/2.0/Invoices/ad8fabe9-2363-4da8-a59b-ef88670c7707
body:
encoding: US-ASCII
string: ''
headers:
Charset:
- utf-8
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="jkS6Ca7YEm69HE7xfU4TkFYdF0KyNrTVqs40dpww",
oauth_signature="XXiEqCLv8FOny0zmTimsBtXexJv%2F%2FfNREBrtniqc4cFt18pj%2FeFN9LoC81VdIUT%2FMnLoXj%2BliZHxmoChOaE6NqR%2F%2Boj4I0TRtZv67MCEFSXum%2B8Zq11VO3XHr1hmiyTgo0unlO9sOR2v%2BzfYqhDIrFLUE9NZNCrbYQ4mJdQjfM8%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645690", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 505390-O1VMAP05
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:29 GMT
Content-Length:
- '909'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>07030a3d-653d-47c2-8072-add993fea444</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:30.620498Z</DateTimeUTC>\r\n
\ <Invoices>\r\n <Invoice>\r\n <Contact>\r\n <ContactID>1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc.</Name>\r\n <Addresses>\r\n <Address>\r\n <AddressType>STREET</AddressType>\r\n
\ </Address>\r\n <Address>\r\n <AddressType>POBOX</AddressType>\r\n
\ </Address>\r\n </Addresses>\r\n <Phones>\r\n <Phone>\r\n
\ <PhoneType>FAX</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DDI</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DEFAULT</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>MOBILE</PhoneType>\r\n </Phone>\r\n </Phones>\r\n
\ <UpdatedDateUTC>2015-11-04T14:01:26.657</UpdatedDateUTC>\r\n <IsSupplier>false</IsSupplier>\r\n
\ <IsCustomer>1</IsCustomer>\r\n </Contact>\r\n <Date>2015-11-04T00:00:00</Date>\r\n
\ <DueDate>2013-03-10T00:00:00</DueDate>\r\n <Status>DRAFT</Status>\r\n
\ <LineAmountTypes>Exclusive</LineAmountTypes>\r\n <LineItems>\r\n
\ <LineItem>\r\n <Description>Line Item Number 0</Description>\r\n
\ <UnitAmount>1.00</UnitAmount>\r\n <TaxType>OUTPUT2</TaxType>\r\n
\ <TaxAmount>0.20</TaxAmount>\r\n <LineAmount>1.00</LineAmount>\r\n
\ <Quantity>1.0000</Quantity>\r\n <LineItemID>c06d3b77-6ba4-45cc-be7f-30d37ebf1299</LineItemID>\r\n
\ </LineItem>\r\n <LineItem>\r\n <Description>PAID WITH
PAYPAL</Description>\r\n <UnitAmount>0.00</UnitAmount>\r\n <LineAmount>0.00</LineAmount>\r\n
\ <Quantity>0.0000</Quantity>\r\n <LineItemID>cf190b02-c3e1-4db2-9d4d-aa7d2881de11</LineItemID>\r\n
\ </LineItem>\r\n </LineItems>\r\n <SubTotal>1.00</SubTotal>\r\n
\ <TotalTax>0.20</TotalTax>\r\n <Total>1.20</Total>\r\n <UpdatedDateUTC>2015-11-04T14:01:28.92</UpdatedDateUTC>\r\n
\ <CurrencyCode>GBP</CurrencyCode>\r\n <Type>ACCREC</Type>\r\n <InvoiceID>ad8fabe9-2363-4da8-a59b-ef88670c7707</InvoiceID>\r\n
\ <InvoiceNumber>INV-0067</InvoiceNumber>\r\n <AmountDue>1.20</AmountDue>\r\n
\ <AmountPaid>0.00</AmountPaid>\r\n <SentToContact>false</SentToContact>\r\n
\ <CurrencyRate>1.000000</CurrencyRate>\r\n <HasAttachments>false</HasAttachments>\r\n
\ </Invoice>\r\n </Invoices>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:31 GMT
- request:
method: post
uri: https://api.xero.com/api.xro/2.0/Invoices
body:
encoding: US-ASCII
string: xml=%3CInvoice%3E%0A%20%20%3CContact%3E%0A%20%20%20%20%3CContactID%3E1a031cf1-d80f-4aff-bdee-d8220ccfc7d1%3C%2FContactID%3E%0A%20%20%20%20%3CContactStatus%3EACTIVE%3C%2FContactStatus%3E%0A%20%20%20%20%3CName%3EExisting%20Company%20Inc.%3C%2FName%3E%0A%20%20%20%20%3CAddresses%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3ESTREET%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3EPOBOX%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%3C%2FAddresses%3E%0A%20%20%20%20%3CPhones%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EFAX%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDDI%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDEFAULT%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EMOBILE%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3C%2FPhones%3E%0A%20%20%20%20%3CIsSupplier%3Efalse%3C%2FIsSupplier%3E%0A%20%20%20%20%3CIsCustomer%3E1%3C%2FIsCustomer%3E%0A%20%20%3C%2FContact%3E%0A%20%20%3CDate%3E2015-11-04%3C%2FDate%3E%0A%20%20%3CDueDate%3E2013-03-10%3C%2FDueDate%3E%0A%20%20%3CStatus%3EDELETED%3C%2FStatus%3E%0A%20%20%3CLineAmountTypes%3EExclusive%3C%2FLineAmountTypes%3E%0A%20%20%3CLineItems%3E%0A%20%20%20%20%3CLineItem%3E%0A%20%20%20%20%20%20%3CDescription%3ELine%20Item%20Number%200%3C%2FDescription%3E%0A%20%20%20%20%20%20%3CUnitAmount%3E1.0%3C%2FUnitAmount%3E%0A%20%20%20%20%20%20%3CTaxType%3EOUTPUT2%3C%2FTaxType%3E%0A%20%20%20%20%20%20%3CTaxAmount%3E0.2%3C%2FTaxAmount%3E%0A%20%20%20%20%20%20%3CLineAmount%3E1.0%3C%2FLineAmount%3E%0A%20%20%20%20%20%20%3CQuantity%3E1.0%3C%2FQuantity%3E%0A%20%20%20%20%20%20%3CLineItemId%3Ec06d3b77-6ba4-45cc-be7f-30d37ebf1299%3C%2FLineItemId%3E%0A%20%20%20%20%3C%2FLineItem%3E%0A%20%20%20%20%3CLineItem%3E%0A%20%20%20%20%20%20%3CDescription%3EPAID%20WITH%20PAYPAL%3C%2FDescription%3E%0A%20%20%20%20%20%20%3CUnitAmount%3E0.0%3C%2FUnitAmount%3E%0A%20%20%20%20%20%20%3CLineAmount%3E0.0%3C%2FLineAmount%3E%0A%20%20%20%20%20%20%3CQuantity%3E0.0%3C%2FQuantity%3E%0A%20%20%20%20%20%20%3CLineItemId%3Ecf190b02-c3e1-4db2-9d4d-aa7d2881de11%3C%2FLineItemId%3E%0A%20%20%20%20%3C%2FLineItem%3E%0A%20%20%3C%2FLineItems%3E%0A%20%20%3CSubTotal%3E1.0%3C%2FSubTotal%3E%0A%20%20%3CTotalTax%3E0.2%3C%2FTotalTax%3E%0A%20%20%3CTotal%3E1.2%3C%2FTotal%3E%0A%20%20%3CCurrencyCode%3EGBP%3C%2FCurrencyCode%3E%0A%20%20%3CType%3EACCREC%3C%2FType%3E%0A%20%20%3CInvoiceID%3Ead8fabe9-2363-4da8-a59b-ef88670c7707%3C%2FInvoiceID%3E%0A%20%20%3CInvoiceNumber%3EINV-0067%3C%2FInvoiceNumber%3E%0A%20%20%3CAmountDue%3E1.2%3C%2FAmountDue%3E%0A%20%20%3CAmountPaid%3E0.0%3C%2FAmountPaid%3E%0A%20%20%3CSentToContact%3Efalse%3C%2FSentToContact%3E%0A%20%20%3CCurrencyRate%3E1.0%3C%2FCurrencyRate%3E%0A%20%20%3CHasAttachments%3Efalse%3C%2FHasAttachments%3E%0A%3C%2FInvoice%3E%0A
headers:
Charset:
- utf-8
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Content-Length:
- '0'
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="4WEhG89jL4fWzvodpq8SLAUjsD3EHsSTvcZqKSMBc",
oauth_signature="D%2BMXyP5Qv3jc1M3WytE6FXY0%2FO3MEs63PqepN03%2BUP6huPayjwzoww%2FXKnKZq5JMeEPpWlk5Gw42c6nQbzRYPb6bN0m8qspaQShPzxBrdyf26l2TtchO%2Br5ygjR7wFv4uaD%2FFuZ7kKOuW5VUuN3cTUjVNynedxUdk26BRmuu05E%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645691", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 445759-O1VMAP02
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:30 GMT
Content-Length:
- '895'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>8bfd421d-50c0-4680-a65d-2c6d010b7acc</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:30.7736409Z</DateTimeUTC>\r\n
\ <Invoices>\r\n <Invoice>\r\n <Contact>\r\n <ContactID>1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc.</Name>\r\n <Addresses>\r\n <Address>\r\n <AddressType>STREET</AddressType>\r\n
\ </Address>\r\n <Address>\r\n <AddressType>POBOX</AddressType>\r\n
\ </Address>\r\n </Addresses>\r\n <Phones>\r\n <Phone>\r\n
\ <PhoneType>FAX</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DDI</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>DEFAULT</PhoneType>\r\n </Phone>\r\n <Phone>\r\n
\ <PhoneType>MOBILE</PhoneType>\r\n </Phone>\r\n </Phones>\r\n
\ <UpdatedDateUTC>2015-11-04T14:01:26.657</UpdatedDateUTC>\r\n <IsSupplier>false</IsSupplier>\r\n
\ <IsCustomer>1</IsCustomer>\r\n </Contact>\r\n <Date>2015-11-04T00:00:00</Date>\r\n
\ <DueDate>2013-03-10T00:00:00</DueDate>\r\n <Status>DELETED</Status>\r\n
\ <LineAmountTypes>Exclusive</LineAmountTypes>\r\n <LineItems>\r\n
\ <LineItem>\r\n <Description>Line Item Number 0</Description>\r\n
\ <UnitAmount>1.00</UnitAmount>\r\n <TaxType>OUTPUT2</TaxType>\r\n
\ <TaxAmount>0.20</TaxAmount>\r\n <LineAmount>1.00</LineAmount>\r\n
\ <Quantity>1.0000</Quantity>\r\n <LineItemID>c06d3b77-6ba4-45cc-be7f-30d37ebf1299</LineItemID>\r\n
\ </LineItem>\r\n <LineItem>\r\n <Description>PAID WITH
PAYPAL</Description>\r\n <UnitAmount>0.00</UnitAmount>\r\n <LineAmount>0.00</LineAmount>\r\n
\ <Quantity>0.0000</Quantity>\r\n <LineItemID>cf190b02-c3e1-4db2-9d4d-aa7d2881de11</LineItemID>\r\n
\ </LineItem>\r\n </LineItems>\r\n <SubTotal>1.00</SubTotal>\r\n
\ <TotalTax>0.20</TotalTax>\r\n <Total>1.20</Total>\r\n <UpdatedDateUTC>2015-11-04T14:01:30.757</UpdatedDateUTC>\r\n
\ <CurrencyCode>GBP</CurrencyCode>\r\n <Type>ACCREC</Type>\r\n <InvoiceID>ad8fabe9-2363-4da8-a59b-ef88670c7707</InvoiceID>\r\n
\ <InvoiceNumber>INV-0067</InvoiceNumber>\r\n <AmountDue>1.20</AmountDue>\r\n
\ <AmountPaid>0.00</AmountPaid>\r\n <SentToContact>false</SentToContact>\r\n
\ <CurrencyRate>1.000000</CurrencyRate>\r\n </Invoice>\r\n </Invoices>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:31 GMT
- request:
method: post
uri: https://api.xero.com/api.xro/2.0/Contacts
body:
encoding: US-ASCII
string: xml=%3CContact%3E%0A%20%20%3CContactID%3E1a031cf1-d80f-4aff-bdee-d8220ccfc7d1%3C%2FContactID%3E%0A%20%20%3CContactStatus%3EACTIVE%3C%2FContactStatus%3E%0A%20%20%3CName%3EExisting%20Company%20Inc.%201a031cf1-d80f-4aff-bdee-d8220ccfc7d1%3C%2FName%3E%0A%20%20%3CAddresses%3E%0A%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%3CAddressType%3ESTREET%3C%2FAddressType%3E%0A%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%3CAddressType%3EPOBOX%3C%2FAddressType%3E%0A%20%20%20%20%3C%2FAddress%3E%0A%20%20%3C%2FAddresses%3E%0A%20%20%3CPhones%3E%0A%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%3CPhoneType%3EDDI%3C%2FPhoneType%3E%0A%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%3CPhoneType%3EDEFAULT%3C%2FPhoneType%3E%0A%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%3CPhoneType%3EFAX%3C%2FPhoneType%3E%0A%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%3CPhoneType%3EMOBILE%3C%2FPhoneType%3E%0A%20%20%20%20%3C%2FPhone%3E%0A%20%20%3C%2FPhones%3E%0A%20%20%3CIsSupplier%3Efalse%3C%2FIsSupplier%3E%0A%20%20%3CIsCustomer%3E1%3C%2FIsCustomer%3E%0A%3C%2FContact%3E%0A
headers:
Charset:
- utf-8
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- OAuth gem v0.4.7
Content-Length:
- '0'
Authorization:
- OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="3UROGNIawij5OGmFjgUbiZj7tO4zM37arTz2QBBy3NE",
oauth_signature="0tBlX8RFGYs9wKhD1LJBPuISirXf%2F9kVmds0PUsRCmGGtilmCTuBCIO2jCxB3HKb3lwgTmEOSV7erCA9kMmfAYxBPSkbM6sh8pcydsAQnbzikqgjQPKc1QI5HEwnZykwCkKd32Bjg0bgvOvkovIsCxD9HhbNyDi7RYyB8uWRaPY%3D",
oauth_signature_method="RSA-SHA1", oauth_timestamp="1446645691", oauth_token="<XERO_CONSUMER_KEY>",
oauth_version="1.0"
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- private
Content-Type:
- text/xml; charset=utf-8
Vary:
- Accept-Encoding
X-S:
- 445759-O1VMAP02
- 445759-O1VMAP02
Www-Authenticate:
- OAuth Realm="api.xero.com"
Strict-Transport-Security:
- max-age=31536000
Date:
- Wed, 04 Nov 2015 14:01:31 GMT
Content-Length:
- '465'
body:
encoding: ASCII-8BIT
string: "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
\ <Id>c76336f9-a7d4-4d89-948b-5d1d1b1c9b24</Id>\r\n <Status>OK</Status>\r\n
\ <ProviderName>Just the worst</ProviderName>\r\n <DateTimeUTC>2015-11-04T14:01:31.9124701Z</DateTimeUTC>\r\n
\ <Contacts>\r\n <Contact>\r\n <ContactID>1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</ContactID>\r\n
\ <ContactStatus>ACTIVE</ContactStatus>\r\n <Name>Existing Company
Inc. 1a031cf1-d80f-4aff-bdee-d8220ccfc7d1</Name>\r\n <Addresses>\r\n
\ <Address>\r\n <AddressType>STREET</AddressType>\r\n </Address>\r\n
\ <Address>\r\n <AddressType>POBOX</AddressType>\r\n </Address>\r\n
\ </Addresses>\r\n <Phones>\r\n <Phone>\r\n <PhoneType>FAX</PhoneType>\r\n
\ </Phone>\r\n <Phone>\r\n <PhoneType>DDI</PhoneType>\r\n
\ </Phone>\r\n <Phone>\r\n <PhoneType>DEFAULT</PhoneType>\r\n
\ </Phone>\r\n <Phone>\r\n <PhoneType>MOBILE</PhoneType>\r\n
\ </Phone>\r\n </Phones>\r\n <UpdatedDateUTC>2015-11-04T14:01:31.867</UpdatedDateUTC>\r\n
\ <IsSupplier>false</IsSupplier>\r\n <IsCustomer>1</IsCustomer>\r\n
\ </Contact>\r\n </Contacts>\r\n</Response>"
http_version:
recorded_at: Wed, 04 Nov 2015 14:01:32 GMT
recorded_with: VCR 2.9.3