John Wolf
asked this on May 31, 2011 04:47 pm
I am just getting started with the Chargify API. I am able to make Get requests successfully but I get the following error on any Post request. I read the forums and changed my account to be in "Test" mode since I read that your site and gateway need to be in the same mode; however, I still cannot make this work.
I tried one of the simplest posts that I could find (below), without succcess. Any help will be much appreciated. Thanks.
> URI:
https://feedbackfire.chargify.com/product_families/targets/quantity...
> Parameters
"Content-Type", "application/x-www-form-urlencoded"
> Request
<?xml version="1.0" encoding="UTF-8"?>
<quantity_based_component>
<name>Swizzles</name>
<unit_name>targets</unit_name>
<pricing_scheme>pertarget</pricing_scheme>
<unit_price>1.00</unit_price>
</quantity_based_component>
> Response (from Apigee):
HTTP/1.1 422 Unprocessable Entity