Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL: /services/rest/admin/addCredits?reseller[]&password[]&customer[]&creditsToAdd[]

Parameters

parameter name
description
example value
resellerReseller's usernamereseller
passwordReseller's passwordpassword
customerName of customer to add credits to. Customer must belong to the reseller.cheescakeshop
creditsToAddNumber of credits to add to the account group. Can be negative to subtract credits1000

...

Service receive parameters as request parameters, and return responses in JSON.
Used status numbers are: 0, 1, 2, 3, 9999 (Status code table is available on User and Reseller REST API Response Status Codes)

Mock

There is mock REST service implemented. It always returns status 0 ("success") and number of credits after the operation is equal to number of added credits.