Created
October 25, 2011 05:28
-
-
Save zpoley/1311387 to your computer and use it in GitHub Desktop.
API Example (Failure)
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
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