Create new payment

This version of the API docs is depreciated and will be taken offline soon.
Please migrate to the new version as soon as possible to avoid service disruption.

New version can be found at https://docs.wceaapi.org/

Provides a way to confirm training payments from external systems.

Payments could be sent for training that are not located in the Global Training Pool and not owned by commissioned authors.

Once a link has been generated, the link can be presented to the user to click on, and the user will be directed straight to the training after login.

Request

  • HTTP Verb: POST
  • URI: /payment

POST Parameters

training Training identifier*
user User identifier or email

(*) Required always.

(**) Required only by some organizations.

Response Properties

id payment identifier
training training identifier
user user identifier
accessLink link that may be used to access the training

Request example

$API->addPayment(array(
  "training" => 1431243,
  "user" => 456435
));

Output Example

array(
  "id" => 1341,
  "training" => 1431243,
  "user" => 456435,
  "accessLink" => "http://abc.wcea.education/searchOnlineTraining/searchTrainingTitle/t/1431243/payment/175fcfcd935c7d3ae0f30eab2c27f406"
)