Skip to content

Instantly share code, notes, and snippets.

@zpoley
Created October 25, 2011 05:28
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 zpoley/1311387 to your computer and use it in GitHub Desktop.
Save zpoley/1311387 to your computer and use it in GitHub Desktop.
API Example (Failure)
POST /reservation/new
email=foo@example.com&quantity=1&start_date=2011-11-01&country_code=XA&insurance=false&agreement=true&shipping_name=rudolf%20rampe&shipping_street=1820%20Bells&shipping_city=Vienna&shipping_country=AT
~~~
HTTP/1.1 400
{
"success" : false,
"errors" : [
{
"code" : 1303,
"message" : "Missing end_date."
},
{
"code" : 1312,
"message" : "Missing shipping_zip."
},
{
"code" : 1404,
"message" : "Invalid country_code."
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment