Documentation You are here: start » v » 0.7.0 » advanced » api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v:0.7.0:advanced:api [2011/04/25 21:46] – changing the hashing notes. 108.38.2.144v:0.7.0:advanced:api [2017/04/26 07:02] (current) – external edit 127.0.0.1
Line 79: Line 79:
 === Notes === === Notes ===
   * The ''customer_password'' value:   * The ''customer_password'' value:
-    * When using ''customer_get'' method: Returns a //HASH// of the customer's password, //NOT THE ACTUAL PASSWORD//. You can set the hashing method in the "Advanced" tab in your FoxyCart admin. As of v0.7.1 this setting is user-specific.+    * When using ''customer_get'' method: Returns a //HASH// of the customer's password, //NOT THE ACTUAL PASSWORD//. You can set the hashing method in the "Advanced" tab in your FoxyCart admin.
     * When using the ''customer_save'' method you can pass the customer's password as cleartext. FoxyCart will create the password hash for you based on your chosen hashing method.     * When using the ''customer_save'' method you can pass the customer's password as cleartext. FoxyCart will create the password hash for you based on your chosen hashing method.
   * The ''customer_password_hash'' value: If you do not have the password in cleartext but would like to update the password, pass in ''customer_password_hash''. Whether you pass in a ''customer_password'' or a ''customer_password_hash'', the end result is the same: A hashed password will be returned on ''_get'' requests for the ''customer_password'' field.   * The ''customer_password_hash'' value: If you do not have the password in cleartext but would like to update the password, pass in ''customer_password_hash''. Whether you pass in a ''customer_password'' or a ''customer_password_hash'', the end result is the same: A hashed password will be returned on ''_get'' requests for the ''customer_password'' field.
Line 95: Line 95:
   ; ''transaction_modify''   ; ''transaction_modify''
   : **Required Fields:** ''transaction_id''   : **Required Fields:** ''transaction_id''
-  : **Accepts:** ''data_is_fed'' (0 or 1) ''hide_transaction'' (0 or 1 -- available in 0.7.1)+  : **Accepts:** ''data_is_fed'' (0 or 1)
   : **Notes:** Changing this bit has no impact on anything other than the value of this bit. (ie. It does not tell FoxyCart to refeed the datafeed to your endpoint)   : **Notes:** Changing this bit has no impact on anything other than the value of this bit. (ie. It does not tell FoxyCart to refeed the datafeed to your endpoint)
  
 ==== Subscriptions ==== ==== Subscriptions ====
-<wrap tip>Note that certain subscription API requests in v0.7.0 may return XML with a slightly different structure in v0.7.1.</wrap> Check the [[:static:upgrading|upgrade notes]] for details. 
  
   ; ''subscription_get''   ; ''subscription_get''
Line 121: Line 120:
     * ''is_active_filter''     * ''is_active_filter''
     * ''frequency_filter''     * ''frequency_filter''
-    * ''past_due_amount_filter'' (set as ''1'' to return subscriptions with past due amounts greater than 0)+    * ''past_due_amount_filter'' (if you include this filter and give it a value (such as ''1'') it will return subscriptions with past due amounts greater than 0)
     * ''start_date_filter_begin'', ''start_date_filter_end'', ''next_transaction_date_filter_begin'', ''next_transaction_date_filter_end'', ''end_date_filter_begin'', ''end_date_filter_end'' (YYYY-MM-DD)     * ''start_date_filter_begin'', ''start_date_filter_end'', ''next_transaction_date_filter_begin'', ''next_transaction_date_filter_end'', ''end_date_filter_begin'', ''end_date_filter_end'' (YYYY-MM-DD)
-    * ''third_party_id_filter'' (for PayPal Standard recurring payments)+    * ''third_party_id_filter'' (for PayPal Express Checkout recurring payments)
     * ''last_transaction_id_filter''     * ''last_transaction_id_filter''
     * ''customer_id_filter'', ''customer_email_filter'', ''customer_first_name_filter'', ''customer_last_name_filter''     * ''customer_id_filter'', ''customer_email_filter'', ''customer_first_name_filter'', ''customer_last_name_filter''
Line 178: Line 177:
 You can always use [[http://curl.haxx.se/docs/httpscripting.html|CURL]] to test the API. Here is an example command line CURL request: You can always use [[http://curl.haxx.se/docs/httpscripting.html|CURL]] to test the API. Here is an example command line CURL request:
 <code> <code>
-curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=customer_get&customer_email=john.doe@example.com" https://example.foxycart.tld/api+curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=customer_get&customer_email=john.doe@example.com" https://example.foxycart.com/api
 </code> </code>
 You'd obviously need to insert your own values in that call, but it's provided here for reference. Using CURL can be handy if you just want to get a customer ID quickly, or test to ensure data is being returned as expected. You'd obviously need to insert your own values in that call, but it's provided here for reference. Using CURL can be handy if you just want to get a customer ID quickly, or test to ensure data is being returned as expected.
Line 184: Line 183:
 Here's an example to retrieve a transaction: Here's an example to retrieve a transaction:
 <code> <code>
-curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=transaction_get&transaction_id=1234567890" https://example.foxycart.tld/api+curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=transaction_get&transaction_id=1234567890" https://example.foxycart.com/api
 </code> </code>
 And here's how to refeed the [[:static:redirect:subscription_datafeed|subscription XML datafeed]]: And here's how to refeed the [[:static:redirect:subscription_datafeed|subscription XML datafeed]]:
 <code> <code>
-curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=subscription_datafeed" https://example.foxycart.tld/api+curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=subscription_datafeed" https://example.foxycart.com/api
 </code> </code>

Site Tools