Download the PHP package remp/crm-coupon-module without Composer
On this page you can find all versions of the php package remp/crm-coupon-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download remp/crm-coupon-module
More information about remp/crm-coupon-module
Files in remp/crm-coupon-module
Download remp/crm-coupon-module
More information about remp/crm-coupon-module
Files in remp/crm-coupon-module
Vendor remp
Package crm-coupon-module
Short Description CRM Coupon Module
License MIT
Homepage https://remp2030.com
Package crm-coupon-module
Short Description CRM Coupon Module
License MIT
Homepage https://remp2030.com
Please rate this library. Is it a good library?
Informations about the package crm-coupon-module
CRM Coupon Module
API documentation
All examples use http://crm.press
as a base domain. Please change the host to the one you use
before executing the examples.
All examples use XXX
as a default value for authorization token, please replace it with the
real tokens:
- API tokens. Standard API keys for server-server communication. It identifies the calling application as a whole.
They can be generated in CRM Admin (
/api/api-tokens-admin/
) and each API key has to be whitelisted to access specific API endpoints. By default the API key has access to no endpoint. - User tokens. Generated for each user during the login process, token identify single user when communicating between
different parts of the system. The token can be read:
- From
n_token
cookie if the user was logged in via CRM. - From the response of
/api/v1/users/login
endpoint - you're free to store the response into your own cookie/local storage/session.
- From
API responses can contain following HTTP codes:
Value | Description |
---|---|
200 OK | Successful response, default value |
400 Bad Request | Invalid request (missing required parameters) |
403 Forbidden | The authorization failed (provided token was not valid) |
404 Not found | Referenced resource wasn't found |
If possible, the response includes application/json
encoded payload with message explaining
the error further.
POST /api/v1/coupon/activate
Activate coupon specified by code for authenticated user.
Headers:
Name | Value | Required | Description |
---|---|---|---|
Authorization | Bearer String | yes | User token. |
Params:
Name | Value | Required | Description |
---|---|---|---|
code | String | yes | The code of coupon to activate. |
notifyUser | Boolean | no | Flag indicating that user should be notified (email, push notification). |
Example:
Response:
All versions of crm-coupon-module with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package remp/crm-coupon-module contains the following files
Loading the files please wait ....