Created
April 5, 2011 22:42
-
-
Save oliverbarnes/904733 to your computer and use it in GitHub Desktop.
Chargify API doc example
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
Scenario: Retrieve a customer via my reference id (as an integer or simple string) | |
Given I have a customer with these attributes | |
| reference | first_name | last_name | email | | |
| 7890 | Joe | Blow | [email protected] | | |
When I send a GET request to https://[@subdomain].chargify.com/customers/lookup.xml?reference=7890 | |
Then the response status should be "200 OK" | |
And the response should be the xml: | |
""" | |
<?xml version="1.0" encoding="UTF-8"?> | |
<customer> | |
<id type="integer">`auto generated`</id> | |
<first_name>Joe</first_name> | |
<last_name>Blow</last_name> | |
<email>[email protected]</email> | |
<organization>ABC Corp.</organization> | |
<reference>777</reference> | |
<created_at type="datetime">`auto generated`</created_at> | |
<updated_at type="datetime">`auto generated`</updated_at> | |
</customer> | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment