Create a new business type
PERS-api Documentation (2.0.13)
PERS API Documentation
This RESTful API enables seamless integration of Web3 loyalty, token management, and engagement features into your applications.
Usage Guidelines:
- RESTful Design: Resources are accessed via standard HTTP methods (GET, POST, PUT, DELETE) with predictable, resource-oriented URLs.
- Authentication: Secure access is enforced via Bearer Tokens (JWT) and Project Keys (defining the Tenant context).
- Data Format: All requests and responses utilize standard JSON formatting.
Explore the modules below for detailed endpoint specifications, schemas, and testing capabilities.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://docs.pers.ninja/_mock/swagger
https://api.pers.ninja/v2
- Mock serverhttps://docs.pers.ninja/_mock/swagger/businesses/types
- https://api.pers.ninja/v2/businesses/types
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.pers.ninja/_mock/swagger/businesses/types \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"description": "string",
"code": "string",
"iconUrl": "string"
}'Response
application/json
{ "id": 0, "name": "string", "description": "string", "code": "string", "iconUrl": "string" }
- Mock serverhttps://docs.pers.ninja/_mock/swagger/businesses/types
- https://api.pers.ninja/v2/businesses/types
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.pers.ninja/_mock/swagger/businesses/types \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": 0,
"name": "string",
"description": "string",
"code": "string",
"iconUrl": "string"
}'Response
application/json
{ "id": 0, "name": "string", "description": "string", "code": "string", "iconUrl": "string" }
- Mock serverhttps://docs.pers.ninja/_mock/swagger/businesses/types
- https://api.pers.ninja/v2/businesses/types
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.pers.ninja/_mock/swagger/businesses/types \
-H 'x-project-key: YOUR_API_KEY_HERE'Response
application/json
[ { "id": 0, "name": "string", "description": "string", "code": "string", "iconUrl": "string" } ]
- Mock serverhttps://docs.pers.ninja/_mock/swagger/businesses/types/{id}
- https://api.pers.ninja/v2/businesses/types/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.pers.ninja/_mock/swagger/businesses/types/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'