API Reference

API Docs of the Giftcard Module API

Authentication

In order to use the Giftcard API users must authenticate using a bearer to access the endpoints. Bearer tokens can be obtained within the Admin Area -> API Keys -> Create (on your application).

Bearer tokens can only be created and used by root administrators (users that have the admin.root permission).

Bearer tokens can be specified inside the Authorization header in your request.

HeaderValue

Authorization

Bearer <your_access_token>

curl -H "Authorization: Bearer <your_access_token>" https://wemx.app/giftcard/api/v1/test

Replace <your_access_token> with your Bearer token.

API Keys should not be shared with anyone or stored in places that are easily compromisable such as chats, emails and/or hardcoding them into your code.

That is everything that comes with API version 1 if you want that new stuff is added to the API and a new Version of the API will be developed then create a Feature request at our Github to get it added.

Last updated