Created
November 2, 2010 18:36
-
-
Save marcguyer/660077 to your computer and use it in GitHub Desktop.
Example CheddarGetter API responses
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<customers> | |
<customer id="89fdd0e4-c775-11de-8728-40407c9117fd" code="test_customer"> | |
<firstName>Joe</firstName> | |
<lastName>Schmoe</lastName> | |
<company/> | |
<email>[email protected]</email> | |
<notes/> | |
<gatewayToken>SIMULATED</gatewayToken> | |
<isVatExempt>0</isVatExempt> | |
<vatNumber/> | |
<firstContactDatetime>2009-10-01T19:24:10+00:00</firstContactDatetime> | |
<referer/> | |
<refererHost/> | |
<campaignSource/> | |
<campaignMedium/> | |
<campaignTerm/> | |
<campaignContent/> | |
<campaignName/> | |
<createdDatetime>2009-11-02T06:04:10+00:00</createdDatetime> | |
<modifiedDatetime>2009-11-02T06:04:10+00:00</modifiedDatetime> | |
<metaData/> | |
<subscriptions> | |
<subscription id="7fc2f2e6-3e47-11df-8728-40407c9117fd"> | |
<plans> | |
<plan id="e6eac5ee-e5e9-11df-86d5-40407c9117fd" code="PAID"> | |
<name>Paid</name> | |
<description>This is a paid plan!</description> | |
<isActive>1</isActive> | |
<isFree>0</isFree> | |
<trialDays>0</trialDays> | |
<billingFrequency>monthly</billingFrequency> | |
<billingFrequencyPer>month</billingFrequencyPer> | |
<billingFrequencyUnit>months</billingFrequencyUnit> | |
<billingFrequencyQuantity>1</billingFrequencyQuantity> | |
<setupChargeCode>PAID_SETUP</setupChargeCode> | |
<setupChargeAmount>0.00</setupChargeAmount> | |
<recurringChargeCode>PAID_RECURRING</recurringChargeCode> | |
<recurringChargeAmount>19.99</recurringChargeAmount> | |
<createdDatetime>2009-11-01T18:57:40+00:00</createdDatetime> | |
<items> | |
<item id="e6ef5cee-e5e9-11df-86d5-40407c9117fd" code="PROJECTS"> | |
<name>Projects</name> | |
<quantityIncluded>5</quantityIncluded> | |
<isPeriodic>1</isPeriodic> | |
<overageAmount>4.00</overageAmount> | |
<createdDatetime>2009-11-01T18:57:41+00:00</createdDatetime> | |
</item> | |
<item id="e6ef5e60-e5e9-11df-86d5-40407c9117fd" code="USERS"> | |
<name>Users</name> | |
<quantityIncluded>5</quantityIncluded> | |
<isPeriodic>1</isPeriodic> | |
<overageAmount>2.50</overageAmount> | |
<createdDatetime>2009-11-01T18:57:41+00:00</createdDatetime> | |
</item> | |
</items> | |
</plan> | |
</plans> | |
<gatewayToken>SIMULATED</gatewayToken> | |
<gatewayAccount> | |
<id>d6733a6e-44b3-11e1-a628-40403c39f8d9</id> | |
<gateway>CheddarGateway_Simulator</gateway> | |
<type>cc</type> | |
</gatewayAccount> | |
<ccFirstName>Joe</ccFirstName> | |
<ccLastName>Schmoe</ccLastName> | |
<ccCompany/> | |
<ccCountry/> | |
<ccAddress/> | |
<ccCity/> | |
<ccState/> | |
<ccZip>90210</ccZip> | |
<ccType>mc</ccType> | |
<ccLastFour>0015</ccLastFour> | |
<ccExpirationDate>2011-02-28T00:00:00+00:00</ccExpirationDate> | |
<canceledDatetime/> | |
<createdDatetime>2010-10-02T11:04:25+00:00</createdDatetime> | |
<items> | |
<item id="e6ef5cee-e5e9-11df-86d5-40407c9117fd" code="PROJECTS"> | |
<name>Projects</name> | |
<quantity>3</quantity> | |
<createdDatetime>2010-11-04T18:57:42+00:00</createdDatetime> | |
<modifiedDatetime>2010-11-04T18:57:43+00:00</modifiedDatetime> | |
</item> | |
<item id="e6ef5e60-e5e9-11df-86d5-40407c9117fd" code="USERS"> | |
<name>Users</name> | |
<quantity>8</quantity> | |
<createdDatetime>2010-11-04T18:57:42+00:00</createdDatetime> | |
<modifiedDatetime>2010-11-04T18:57:43+00:00</modifiedDatetime> | |
</item> | |
</items> | |
<invoices> | |
<invoice id="ab8fad6c-e6ab-11df-8728-40407c9117fd"> | |
<number>2658</number> | |
<type>subscription</type> | |
<vatRate/> | |
<billingDatetime>2010-12-02T06:04:10+00:00</billingDatetime> | |
<paidTransactionId/> | |
<createdDatetime>2010-11-02T18:04:43+00:00</createdDatetime> | |
<charges> | |
<charge id="" code="PAID_RECURRING"> | |
<type>recurring</type> | |
<quantity>1</quantity> | |
<eachAmount>19.00</eachAmount> | |
<description/> | |
<createdDatetime>2010-12-02T06:04:10+00:00</createdDatetime> | |
</charge> | |
<charge id="" code="PROJECTS"> | |
<type>item</type> | |
<quantity>0</quantity> | |
<eachAmount>4.00</eachAmount> | |
<description/> | |
<createdDatetime/> | |
</charge> | |
<charge id="" code="USERS"> | |
<type>item</type> | |
<quantity>3</quantity> | |
<eachAmount>2.50</eachAmount> | |
<description/> | |
<createdDatetime/> | |
</charge> | |
</charges> | |
</invoice> | |
<invoice id="2535f824-ce47-11df-8728-40407c9117fd"> | |
<number>1635</number> | |
<type>subscription</type> | |
<vatRate/> | |
<billingDatetime>2010-11-02T06:04:10+00:00</billingDatetime> | |
<paidTransactionId>ab6aedd8-e6ab-11df-8728-40407c9117fd</paidTransactionId> | |
<createdDatetime>2010-10-02T17:04:40+00:00</createdDatetime> | |
<charges> | |
<charge id="ab6992e4-e6ab-11df-8728-40407c9117fd" code="PAID_RECURRING"> | |
<type>recurring</type> | |
<quantity>1</quantity> | |
<eachAmount>19.00</eachAmount> | |
<description/> | |
<createdDatetime>2010-11-02T18:04:43+00:00</createdDatetime> | |
</charge> | |
<charge id="ab69884e-e6ab-11df-8728-40407c9117fd" code="USERS"> | |
<type>item</type> | |
<quantity>3</quantity> | |
<eachAmount>2.50</eachAmount> | |
<description/> | |
<createdDatetime>2010-11-02T18:04:43+00:00</createdDatetime> | |
</charge> | |
</charges> | |
<transactions> | |
<transaction id="ab6aedd8-e6ab-11df-8728-40407c9117fd" code=""> | |
<parentId/> | |
<gatewayToken/> | |
<gatewayAccount> | |
<id>d6733a6e-44b3-11e1-a628-40403c39f8d9</id> | |
<gateway>CheddarGateway_Simulator</gateway> | |
<type>cc</type> | |
</gatewayAccount> | |
<amount>26.50</amount> | |
<memo>SIMULATED approved payment</memo> | |
<response>approved</response> | |
<responseReason/> | |
<transactedDatetime>2010-11-02T18:04:43+00:00</transactedDatetime> | |
<createdDatetime>2010-11-02T18:04:43+00:00</createdDatetime> | |
</transaction> | |
</transactions> | |
</invoice> | |
</invoices> | |
</subscription> | |
<subscription id="89feb4b4-c775-11de-8728-40407c9117fd"> | |
<plans> | |
<plan id="e6eac530-e5e9-11df-86d5-40407c9117fd" code="FREE"> | |
<name>Free</name> | |
<description>This one is free!</description> | |
<isActive>1</isActive> | |
<isFree>1</isFree> | |
<trialDays>0</trialDays> | |
<billingFrequency>monthly</billingFrequency> | |
<billingFrequencyPer>month</billingFrequencyPer> | |
<billingFrequencyUnit>months</billingFrequencyUnit> | |
<billingFrequencyQuantity>1</billingFrequencyQuantity> | |
<setupChargeCode>FREE_SETUP</setupChargeCode> | |
<setupChargeAmount>0.00</setupChargeAmount> | |
<recurringChargeCode>FREE_RECURRING</recurringChargeCode> | |
<recurringChargeAmount>0.00</recurringChargeAmount> | |
<createdDatetime>2010-11-01T18:57:40+00:00</createdDatetime> | |
<items> | |
<item id="e6ef5cee-e5e9-11df-86d5-40407c9117fd" code="PROJECTS"> | |
<name>Projects</name> | |
<quantityIncluded>2</quantityIncluded> | |
<isPeriodic>1</isPeriodic> | |
<overageAmount>0.00</overageAmount> | |
<createdDatetime>2010-11-01T18:57:41+00:00</createdDatetime> | |
</item> | |
<item id="e6ef5e60-e5e9-11df-86d5-40407c9117fd" code="USERS"> | |
<name>Users</name> | |
<quantityIncluded>2</quantityIncluded> | |
<isPeriodic>1</isPeriodic> | |
<overageAmount>0.00</overageAmount> | |
<createdDatetime>2010-11-01T18:57:41+00:00</createdDatetime> | |
</item> | |
</items> | |
</plan> | |
</plans> | |
<gatewayToken>SIMULATED</gatewayToken> | |
<gatewayAccount> | |
<id>d6733a6e-44b3-11e1-a628-40403c39f8d9</id> | |
<gateway>CheddarGateway_Simulator</gateway> | |
<type>cc</type> | |
</gatewayAccount> | |
<ccFirstName>Joe</ccFirstName> | |
<ccLastName>Schmoe</ccLastName> | |
<ccCompany/> | |
<ccCountry/> | |
<ccAddress/> | |
<ccCity/> | |
<ccState/> | |
<ccZip>90210</ccZip> | |
<ccType>mc</ccType> | |
<ccLastFour>0015</ccLastFour> | |
<ccExpirationDate>2011-02-28T00:00:00+00:00</ccExpirationDate> | |
<canceledDatetime/> | |
<createdDatetime>2009-11-02T06:04:10+00:00</createdDatetime> | |
<invoices> | |
<invoice id="f87f6796-25e2-11df-8728-40407c9117fd"> | |
<number>524</number> | |
<type>subscription</type> | |
<vatRate/> | |
<billingDatetime>2010-10-02T06:04:10+00:00</billingDatetime> | |
<paidTransactionId>7ebb3eee-3e47-11df-8728-40407c9117fd</paidTransactionId> | |
<createdDatetime>2010-09-02T10:04:20+00:00</createdDatetime> | |
<charges> | |
<charge id="7eb9bdf8-3e47-11df-8728-40407c9117fd" code="FREE_RECURRING"> | |
<type>recurring</type> | |
<quantity>1</quantity> | |
<eachAmount>0.00</eachAmount> | |
<description/> | |
<createdDatetime>2010-10-02T11:04:23+00:00</createdDatetime> | |
</charge> | |
</charges> | |
<transactions> | |
<transaction id="7ebb3eee-3e47-11df-8728-40407c9117fd" code=""> | |
<parentId/> | |
<gatewayToken/> | |
<gatewayAccount> | |
<id>d6733a6e-44b3-11e1-a628-40403c39f8d9</id> | |
<gateway>CheddarGateway_Simulator</gateway> | |
<type>cc</type> | |
</gatewayAccount> | |
<amount>0.00</amount> | |
<memo>SIMULATED approved payment</memo> | |
<response>approved</response> | |
<responseReason/> | |
<transactedDatetime>2010-10-02T11:04:23+00:00</transactedDatetime> | |
<createdDatetime>2010-10-02T11:04:23+00:00</createdDatetime> | |
</transaction> | |
</transactions> | |
</invoice> | |
</invoices> | |
</subscription> | |
</subscriptions> | |
</customer> | |
</customers> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<error id="73542" code="404" auxCode="">Customer not found</error> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<plans> | |
<plan id="e6eac530-e5e9-11df-86d5-40407c9117fd" code="FREE"> | |
<name>Free</name> | |
<description>This one is free!</description> | |
<isActive>1</isActive> | |
<isFree>1</isFree> | |
<trialDays>0</trialDays> | |
<billingFrequency>monthly</billingFrequency> | |
<billingFrequencyPer>month</billingFrequencyPer> | |
<billingFrequencyUnit>months</billingFrequencyUnit> | |
<billingFrequencyQuantity>1</billingFrequencyQuantity> | |
<setupChargeCode>FREE_SETUP</setupChargeCode> | |
<setupChargeAmount>0.00</setupChargeAmount> | |
<recurringChargeCode>FREE_RECURRING</recurringChargeCode> | |
<recurringChargeAmount>0.00</recurringChargeAmount> | |
<createdDatetime>2010-11-01T18:57:40+00:00</createdDatetime> | |
<items> | |
<item id="e6ef5cee-e5e9-11df-86d5-40407c9117fd" code="PROJECTS"> | |
<name>Projects</name> | |
<quantityIncluded>2</quantityIncluded> | |
<isPeriodic>1</isPeriodic> | |
<overageAmount>0.00</overageAmount> | |
<createdDatetime>2010-11-01T18:57:41+00:00</createdDatetime> | |
</item> | |
<item id="e6ef5e60-e5e9-11df-86d5-40407c9117fd" code="USERS"> | |
<name>Users</name> | |
<quantityIncluded>2</quantityIncluded> | |
<isPeriodic>1</isPeriodic> | |
<overageAmount>0.00</overageAmount> | |
<createdDatetime>2010-11-01T18:57:41+00:00</createdDatetime> | |
</item> | |
</items> | |
</plan> | |
<plan id="e6eac5ee-e5e9-11df-86d5-40407c9117fd" code="PAID"> | |
<name>Paid</name> | |
<description>This is a paid plan!</description> | |
<isActive>1</isActive> | |
<isFree>0</isFree> | |
<trialDays>0</trialDays> | |
<billingFrequency>monthly</billingFrequency> | |
<billingFrequencyPer>month</billingFrequencyPer> | |
<billingFrequencyUnit>months</billingFrequencyUnit> | |
<billingFrequencyQuantity>1</billingFrequencyQuantity> | |
<setupChargeCode>PAID_SETUP</setupChargeCode> | |
<setupChargeAmount>0.00</setupChargeAmount> | |
<recurringChargeCode>PAID_RECURRING</recurringChargeCode> | |
<recurringChargeAmount>19.99</recurringChargeAmount> | |
<createdDatetime>2010-11-01T18:57:40+00:00</createdDatetime> | |
<items> | |
<item id="e6ef5cee-e5e9-11df-86d5-40407c9117fd" code="PROJECTS"> | |
<name>Projects</name> | |
<quantityIncluded>5</quantityIncluded> | |
<isPeriodic>1</isPeriodic> | |
<overageAmount>4.00</overageAmount> | |
<createdDatetime>2010-11-01T18:57:41+00:00</createdDatetime> | |
</item> | |
<item id="e6ef5e60-e5e9-11df-86d5-40407c9117fd" code="USERS"> | |
<name>Users</name> | |
<quantityIncluded>5</quantityIncluded> | |
<isPeriodic>1</isPeriodic> | |
<overageAmount>2.50</overageAmount> | |
<createdDatetime>2010-11-01T18:57:41+00:00</createdDatetime> | |
</item> | |
</items> | |
</plan> | |
</plans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@marcguyer is
<isVatExempt>0</isVatExempt>
correct ?Shouldn't it be
<isTaxExempt>0</isTaxExempt>
?