User Tools

Site Tools


developers:api:payment_method

Differences

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

Link to this comparison view

Last revision Both sides next revision
developers:api:payment_method [2014/10/16 13:08]
Jaco van Wyk created
developers:api:payment_method [2014/10/18 11:53]
Jaco van Wyk
Line 1: Line 1:
 ====== Payment Methods ====== ====== Payment Methods ======
  
 +===== /​v1/​payment_method/​code/​get =====
 +
 +Fetches a detailed listing of the given payment method.
 +
 +<code php>
 +    $ curl -u user:pass -d ""​ \
 +    >      https://​api.snapbill.com/​v1/​payment_method/​other/​get.json
 +</​code>​
 +
 +<source examples/​payment_method.txt-1.json>​
 +
 +==== Parameter listing ====
 +
 +^Name ^Availability ^Description^
 +|depth |get |The depth parameter signals the amount of data for the payment method that was provided. depth=0 is the highest level that provides full detail.|
 +|code |get |The unique code for this payment method inside snapbill as a lower case string.|
 +|name |get |Official name of the payment method in the system|
 +|enabled |get |Boolean value indicating whether the payment method is enabled on the current account or not.|
 +|currencies |get |A list of all the enabled currencies that are supported by this payment method. If there is no restriction this is not included.|
 +
 +===== /​v1/​payment_method/​list =====
 +
 +List all the payment methods that are enabled on the account.
 +
 +Results can optionally be filtered by the filters listed below.
 +
 +<code php>
 +    $ curl -u user:pass -d ""​ \
 +    >      https://​api.snapbill.com/​v1/​payment_method/​list.json
 +</​code>​
 +
 +<source examples/​payment_method.txt-2.json>​
 +
 +===== List Payment Details Filters =====
 +
 +^Name ^Availability ^Description^
 +|page |get |The page of results to return.|
 +|perpage |get |The number of results per page to return.|
developers/api/payment_method.txt ยท Last modified: 2014/10/18 11:54 by Jaco van Wyk