Advertisement
Guest User

Untitled

a guest
Apr 17th, 2019
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | None | 0 0
  1. I) EVC HTTP API for Resellers
  2. ==============================================================================
  3. The HTTP API consists of four simple HTTP GET commands. You can even try them from the browser.
  4. The purpose is to allow resellers to automate their relationship administration to their EVC reseller customers.
  5.  
  6.  
  7. 1) Checking if an EVC customer exists:
  8. ------------------------------------------------------------------------------
  9. https://evc.de/services/api_resellercredits.asp?apiid=###&username=###&password=###&verb=checkevccustomer&customer=###
  10. Note: This doesn't check if this is a personal customer of you. It checks the EVC customer base.
  11.  
  12.  
  13. 2) Creating a personal customer:
  14. ------------------------------------------------------------------------------
  15. https://evc.de/services/api_resellercredits.asp?apiid=###&username=###&password=###&verb=addcustomer&customer=###
  16. Note 1: A personal customer must already as EVC customer. Making him a personal customer allows him to see your reseller files
  17. and creates a personal account balance relationship with you.
  18. Note 2: Only add customers who asked for this. Everything else will lead to customer complaints and we'd forced to stop such a behavior.
  19.  
  20.  
  21. 3) Checking a personal account balance:
  22. ------------------------------------------------------------------------------
  23. https://evc.de/services/api_resellercredits.asp?apiid=###&username=###&password=###&verb=getcustomeraccount&customer=###
  24.  
  25.  
  26. 4) Setting a personal account balance:
  27. ------------------------------------------------------------------------------
  28. https://evc.de/services/api_resellercredits.asp?apiid=###&username=###&password=###&verb=setcustomeraccount&customer=###&credits=###
  29. Note: This is not recommended for adding/removing points because the customer might purchase at the same time, causing a wrong balance.
  30.  
  31.  
  32. 5) Adding to a personal account balance:
  33. ------------------------------------------------------------------------------
  34. https://evc.de/services/api_resellercredits.asp?apiid=###&username=###&password=###&verb=addcustomeraccount&customer=###&credits=###
  35. Note 1: This is the recommended way for adding/removing points. If the customer purchases at the *same* time, the balance will still be correct.
  36. Note 2: The "credits" value can be negative, so you can subtract with this command as well.
  37.  
  38.  
  39. 6) Getting a list of recent purchases:
  40. ------------------------------------------------------------------------------
  41. https://evc.de/services/api_resellercredits.asp?apiid=###&username=###&password=###&verb=getrecentpurchases&lastndays=###
  42. Returns a JSON-formated list of the purchases performed in the last X (up to 99) days.
  43. Sample output:
  44. ok: JSON follows
  45. {
  46. status: 'OK',
  47. data: [
  48. {
  49. Customer: 12345,
  50. Filename: 'sample.ols',
  51. ComputerName: 'my computer',
  52. IP: '123.45.67.89',
  53. Date: '1999-12-31T23:59:59',
  54. },
  55. ....
  56. ];
  57. }
  58.  
  59.  
  60. Testing:
  61. ------------------------------------------------------------------------------
  62. You can use customer 33333 as a test customer.
  63.  
  64.  
  65. Parameters:
  66. ------------------------------------------------------------------------------
  67. The links above contain a few placeholders (####) that you need to replace before using them:
  68. apiid => The api key. Always: j34sbc93hb90
  69. username => Your evc.de account number
  70. password => Your API password. This is **NOT** your evc.de account password. It's a separate password that you get from the EVC office.
  71. customer => The EVC customer number of the customer you want to handle
  72. credits => The credit value you want to set
  73.  
  74.  
  75. Errors:
  76. ------------------------------------------------------------------------------
  77. All commands return a text string that either begins with "ok: " or "fail: ". This may be followed by a text with more information or (in case of getcustomeraccount) the requested value.
  78.  
  79.  
  80. Security:
  81. ------------------------------------------------------------------------------
  82. Please keep the api, the apiid and your username / password combinations secrets. It is strongly recommended to use https:// for an encrypted connection.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement