Provides a way to confirm e-learning payments from external systems.
Payments could be sent for e-learning that are not located in the Global CE 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 e-learning after login.
Request
- HTTP Verb: POST
- URI: /payment
POST Parameters
e-learning | E-learning identifier* |
---|---|
user | User identifier or email |
(*) Required always.
(**) Required only by some organizations.
Response Properties
id | payment identifier |
---|---|
e-learning | E-learning identifier |
user | user identifier |
accessLink | link that may be used to access the e-learning |
Request example
curl -H "Request-Time: Wed, 11 Dec 2013 13:58:29 +0000" \ -H "Api-Key: 78b47a40f93378a6a487919edea6e92c" \ -H "Signature: 395bf395c8cc2186e6c93fcf08d0b42d5a9207ffbef38b5ba94a954da9abae74" \ --data "e-learning=1431243&user=456435" \ http://wceaapi.org/v1.1/payment
Output Example
{ "_meta": { ... }, "records": { "id": 1341, "e-learning": 1431243, "user": 456435, "accessLink":"http://abc.wcea.education/searchOnlineTraining/searchTrainingTitle/t/1431243/payment/175fcfcd935c7d3ae0f30eab2c27f406" } }