Skip to content

PERS-api Documentation (2.0.12)

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
Production API
https://api.pers.ninja/v2
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations

Partner Ecosystem Management

Business partner management for multi-stakeholder loyalty programs. Handles partner onboarding, collaboration frameworks, and performance tracking within the reward ecosystem.
Partner Management:

•
Partner Onboarding:
Register and configure business partners in the ecosystem

•
Collaboration Tools:
Facilitate joint campaigns and cross-partner rewards

•
Performance Analytics:
Track partner engagement and contribution metrics

•
Incentive Structures:
Configure partner-specific reward and commission models

•
Community Building:
Foster collaborative relationships between ecosystem partners

Request

Get business info with current token balances (business authentication required)

Security
projectKey or authJWT
curl -i -X GET \
  https://docs.pers.ninja/_mock/swagger/businesses/me \
  -H 'x-project-key: YOUR_API_KEY_HERE'

Responses

Business found

Bodyapplication/json
idstringrequired

The id of the business, this is unique and will be used to identify the business.

emailobject or nullrequired

The email of the business, this is unique and will be used to identify the business.

accountAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

businessLegalNameobject or nullrequired

The legal name of the business, this is the name that will be used for legal purposes.

displayNameobject or nullrequired

The display name of the business, this is the name that will be shown to the public.

descriptionobject or nullrequired

The description of the business, this is the description that will be shown to the public.

shortDescriptionobject or nullrequired

The short description of the business, this is the description that will be shown to the public.

websiteUrlobject or nullrequired

The website of the business, this is the website that will be shown to the public.

imageUrlobject or nullrequired

The image of the business, this is the image that will be shown to the public.

streetAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

cityobject or nullrequired

The city of the business, this is the city that will be shown to the public.

postalCodeobject or nullrequired

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudeobject or nullrequired

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudeobject or nullrequired

The longitude of the business, this is the longitude that will be shown to the public.

businessTypeobject or nullrequired

The business type of the business, this is the business type that will be shown to the public.

businessType.​idnumber

Business type id

businessType.​namestring or nullrequired

Business type name

businessType.​descriptionstring or nullrequired

Business type description

businessType.​codestring or nullrequired

Business type code

businessType.​iconUrlstring or nullrequired

Business type icon url

isActivebooleanrequired

The status of the business, this is the status that will be shown to the public.

canMintTokenbooleanrequired

The ability to mint token for the business, this is the ability that will be shown to the public.

canChargeTokenbooleanrequired

The ability to charge token for the business, this is the ability that will be shown to the public.

canManageUsersbooleanrequired

The ability to manage users for the business, this is the ability that will be shown to the public.

canReceiveDonationbooleanrequired

The ability to receive donation for the business, this is the ability that will be shown to the public.

tokenBalancesArray of objects(TokenBalanceDTO)required

The token balances of the business, this is the token balances that will be shown to the public.

tokenBalances[].​contractAddressstringrequired
tokenBalances[].​chainIdnumberrequired
tokenBalances[].​balancenumberrequired
tokenBalances[].​tokenNamestring
tokenBalances[].​tokenSymbolstring
tokenBalances[].​tokenTypestringrequired
tokenBalances[].​tokenIdstring or nullrequired
tokenBalances[].​metadataUristring or nullrequired
Response
application/json
{ "id": "string", "email": {}, "accountAddress": {}, "businessLegalName": {}, "displayName": {}, "description": {}, "shortDescription": {}, "websiteUrl": {}, "imageUrl": {}, "streetAddress": {}, "city": {}, "postalCode": {}, "coordsLatitude": {}, "coordsLongitude": {}, "businessType": { "id": 0, "name": "string", "description": "string", "code": "string", "iconUrl": "string" }, "isActive": true, "canMintToken": true, "canChargeToken": true, "canManageUsers": true, "canReceiveDonation": true, "tokenBalances": [ { … } ] }

Request

Get all businesses. Project API key users get active businesses only. Admin users (with valid JWT) get full access with query parameters.

Security
authJWT or projectKey
Query
activestring

Filter by active status (admin only for inactive)

sanitizestring

Sanitize user models: soft checks for current wallet address, hard overwrites wallet in case of update (use with caution, admin only)

curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/businesses?active=string&sanitize=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Businesses found

Bodyapplication/jsonArray [
idstringrequired

The id of the business, this is unique and will be used to identify the business.

emailobject or nullrequired

The email of the business, this is unique and will be used to identify the business.

accountAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

businessLegalNameobject or nullrequired

The legal name of the business, this is the name that will be used for legal purposes.

displayNameobject or nullrequired

The display name of the business, this is the name that will be shown to the public.

descriptionobject or nullrequired

The description of the business, this is the description that will be shown to the public.

shortDescriptionobject or nullrequired

The short description of the business, this is the description that will be shown to the public.

websiteUrlobject or nullrequired

The website of the business, this is the website that will be shown to the public.

imageUrlobject or nullrequired

The image of the business, this is the image that will be shown to the public.

streetAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

cityobject or nullrequired

The city of the business, this is the city that will be shown to the public.

postalCodeobject or nullrequired

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudeobject or nullrequired

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudeobject or nullrequired

The longitude of the business, this is the longitude that will be shown to the public.

businessTypeobject or nullrequired

The business type of the business, this is the business type that will be shown to the public.

businessType.​idnumber

Business type id

businessType.​namestring or nullrequired

Business type name

businessType.​descriptionstring or nullrequired

Business type description

businessType.​codestring or nullrequired

Business type code

businessType.​iconUrlstring or nullrequired

Business type icon url

isActivebooleanrequired

The status of the business, this is the status that will be shown to the public.

canMintTokenbooleanrequired

The ability to mint token for the business, this is the ability that will be shown to the public.

canChargeTokenbooleanrequired

The ability to charge token for the business, this is the ability that will be shown to the public.

canManageUsersbooleanrequired

The ability to manage users for the business, this is the ability that will be shown to the public.

canReceiveDonationbooleanrequired

The ability to receive donation for the business, this is the ability that will be shown to the public.

]
Response
application/json
[ { "id": "string", "email": {}, "accountAddress": {}, "businessLegalName": {}, "displayName": {}, "description": {}, "shortDescription": {}, "websiteUrl": {}, "imageUrl": {}, "streetAddress": {}, "city": {}, "postalCode": {}, "coordsLatitude": {}, "coordsLongitude": {}, "businessType": { … }, "isActive": true, "canMintToken": true, "canChargeToken": true, "canManageUsers": true, "canReceiveDonation": true } ]

Request

Create a new business account, will be inactive until activated by admin

Security
authJWT
Bodyapplication/jsonrequired
emailstring

The email of the business, this is unique and will be used to identify the business.

businessLegalNamestring

The legal name of the business, this is the name that will be used for legal purposes.

displayNamestring

The display name of the business, this is the name that will be shown to the public.

descriptionstring

The description of the business, this is the description that will be shown to the public.

shortDescriptionstring

The short description of the business, this is the description that will be shown to the public.

websiteUrlstring

The website of the business, this is the website that will be shown to the public.

imageUrlstring

The image of the business, this is the image that will be shown to the public.

streetAddressstring

The address of the business, this is the address that will be shown to the public.

citystring

The city of the business, this is the city that will be shown to the public.

postalCodestring

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudenumber

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudenumber

The longitude of the business, this is the longitude that will be shown to the public

businessTypeIdnumber

The business type of the business, this is the business type that will be shown to the public.

curl -i -X POST \
  https://docs.pers.ninja/_mock/swagger/businesses \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "string",
    "businessLegalName": "string",
    "displayName": "string",
    "description": "string",
    "shortDescription": "string",
    "websiteUrl": "string",
    "imageUrl": "string",
    "streetAddress": "string",
    "city": "string",
    "postalCode": "string",
    "coordsLatitude": 0,
    "coordsLongitude": 0,
    "businessTypeId": 0
  }'

Responses

Business created

Bodyapplication/json
idstringrequired

The id of the business, this is unique and will be used to identify the business.

emailobject or nullrequired

The email of the business, this is unique and will be used to identify the business.

accountAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

businessLegalNameobject or nullrequired

The legal name of the business, this is the name that will be used for legal purposes.

displayNameobject or nullrequired

The display name of the business, this is the name that will be shown to the public.

descriptionobject or nullrequired

The description of the business, this is the description that will be shown to the public.

shortDescriptionobject or nullrequired

The short description of the business, this is the description that will be shown to the public.

websiteUrlobject or nullrequired

The website of the business, this is the website that will be shown to the public.

imageUrlobject or nullrequired

The image of the business, this is the image that will be shown to the public.

streetAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

cityobject or nullrequired

The city of the business, this is the city that will be shown to the public.

postalCodeobject or nullrequired

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudeobject or nullrequired

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudeobject or nullrequired

The longitude of the business, this is the longitude that will be shown to the public.

businessTypeobject or nullrequired

The business type of the business, this is the business type that will be shown to the public.

businessType.​idnumber

Business type id

businessType.​namestring or nullrequired

Business type name

businessType.​descriptionstring or nullrequired

Business type description

businessType.​codestring or nullrequired

Business type code

businessType.​iconUrlstring or nullrequired

Business type icon url

isActivebooleanrequired

The status of the business, this is the status that will be shown to the public.

canMintTokenbooleanrequired

The ability to mint token for the business, this is the ability that will be shown to the public.

canChargeTokenbooleanrequired

The ability to charge token for the business, this is the ability that will be shown to the public.

canManageUsersbooleanrequired

The ability to manage users for the business, this is the ability that will be shown to the public.

canReceiveDonationbooleanrequired

The ability to receive donation for the business, this is the ability that will be shown to the public.

Response
application/json
{ "id": "string", "email": {}, "accountAddress": {}, "businessLegalName": {}, "displayName": {}, "description": {}, "shortDescription": {}, "websiteUrl": {}, "imageUrl": {}, "streetAddress": {}, "city": {}, "postalCode": {}, "coordsLatitude": {}, "coordsLongitude": {}, "businessType": { "id": 0, "name": "string", "description": "string", "code": "string", "iconUrl": "string" }, "isActive": true, "canMintToken": true, "canChargeToken": true, "canManageUsers": true, "canReceiveDonation": true }

Request

Get business info by account address

Security
projectKey
Path
accountAddressstringrequired
curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/businesses/account/{accountAddress}' \
  -H 'x-project-key: YOUR_API_KEY_HERE'

Responses

Business found

Bodyapplication/json
idstringrequired

The id of the business, this is unique and will be used to identify the business.

emailobject or nullrequired

The email of the business, this is unique and will be used to identify the business.

accountAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

businessLegalNameobject or nullrequired

The legal name of the business, this is the name that will be used for legal purposes.

displayNameobject or nullrequired

The display name of the business, this is the name that will be shown to the public.

descriptionobject or nullrequired

The description of the business, this is the description that will be shown to the public.

shortDescriptionobject or nullrequired

The short description of the business, this is the description that will be shown to the public.

websiteUrlobject or nullrequired

The website of the business, this is the website that will be shown to the public.

imageUrlobject or nullrequired

The image of the business, this is the image that will be shown to the public.

streetAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

cityobject or nullrequired

The city of the business, this is the city that will be shown to the public.

postalCodeobject or nullrequired

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudeobject or nullrequired

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudeobject or nullrequired

The longitude of the business, this is the longitude that will be shown to the public.

businessTypeobject or nullrequired

The business type of the business, this is the business type that will be shown to the public.

businessType.​idnumber

Business type id

businessType.​namestring or nullrequired

Business type name

businessType.​descriptionstring or nullrequired

Business type description

businessType.​codestring or nullrequired

Business type code

businessType.​iconUrlstring or nullrequired

Business type icon url

isActivebooleanrequired

The status of the business, this is the status that will be shown to the public.

canMintTokenbooleanrequired

The ability to mint token for the business, this is the ability that will be shown to the public.

canChargeTokenbooleanrequired

The ability to charge token for the business, this is the ability that will be shown to the public.

canManageUsersbooleanrequired

The ability to manage users for the business, this is the ability that will be shown to the public.

canReceiveDonationbooleanrequired

The ability to receive donation for the business, this is the ability that will be shown to the public.

Response
application/json
{ "id": "string", "email": {}, "accountAddress": {}, "businessLegalName": {}, "displayName": {}, "description": {}, "shortDescription": {}, "websiteUrl": {}, "imageUrl": {}, "streetAddress": {}, "city": {}, "postalCode": {}, "coordsLatitude": {}, "coordsLongitude": {}, "businessType": { "id": 0, "name": "string", "description": "string", "code": "string", "iconUrl": "string" }, "isActive": true, "canMintToken": true, "canChargeToken": true, "canManageUsers": true, "canReceiveDonation": true }

Request

Get business info by ID

Security
projectKey
Path
idstringrequired
curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/businesses/{id}' \
  -H 'x-project-key: YOUR_API_KEY_HERE'

Responses

Business found

Bodyapplication/json
idstringrequired

The id of the business, this is unique and will be used to identify the business.

emailobject or nullrequired

The email of the business, this is unique and will be used to identify the business.

accountAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

businessLegalNameobject or nullrequired

The legal name of the business, this is the name that will be used for legal purposes.

displayNameobject or nullrequired

The display name of the business, this is the name that will be shown to the public.

descriptionobject or nullrequired

The description of the business, this is the description that will be shown to the public.

shortDescriptionobject or nullrequired

The short description of the business, this is the description that will be shown to the public.

websiteUrlobject or nullrequired

The website of the business, this is the website that will be shown to the public.

imageUrlobject or nullrequired

The image of the business, this is the image that will be shown to the public.

streetAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

cityobject or nullrequired

The city of the business, this is the city that will be shown to the public.

postalCodeobject or nullrequired

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudeobject or nullrequired

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudeobject or nullrequired

The longitude of the business, this is the longitude that will be shown to the public.

businessTypeobject or nullrequired

The business type of the business, this is the business type that will be shown to the public.

businessType.​idnumber

Business type id

businessType.​namestring or nullrequired

Business type name

businessType.​descriptionstring or nullrequired

Business type description

businessType.​codestring or nullrequired

Business type code

businessType.​iconUrlstring or nullrequired

Business type icon url

isActivebooleanrequired

The status of the business, this is the status that will be shown to the public.

canMintTokenbooleanrequired

The ability to mint token for the business, this is the ability that will be shown to the public.

canChargeTokenbooleanrequired

The ability to charge token for the business, this is the ability that will be shown to the public.

canManageUsersbooleanrequired

The ability to manage users for the business, this is the ability that will be shown to the public.

canReceiveDonationbooleanrequired

The ability to receive donation for the business, this is the ability that will be shown to the public.

Response
application/json
{ "id": "string", "email": {}, "accountAddress": {}, "businessLegalName": {}, "displayName": {}, "description": {}, "shortDescription": {}, "websiteUrl": {}, "imageUrl": {}, "streetAddress": {}, "city": {}, "postalCode": {}, "coordsLatitude": {}, "coordsLongitude": {}, "businessType": { "id": 0, "name": "string", "description": "string", "code": "string", "iconUrl": "string" }, "isActive": true, "canMintToken": true, "canChargeToken": true, "canManageUsers": true, "canReceiveDonation": true }

Request

Update a business account

Security
authJWT
Path
idstringrequired
Bodyapplication/jsonrequired
emailstring

The email of the business, this is unique and will be used to identify the business.

businessLegalNamestring

The legal name of the business, this is the name that will be used for legal purposes.

displayNamestring

The display name of the business, this is the name that will be shown to the public.

descriptionstring

The description of the business, this is the description that will be shown to the public.

shortDescriptionstring

The short description of the business, this is the description that will be shown to the public.

websiteUrlstring

The website of the business, this is the website that will be shown to the public.

imageUrlstring

The image of the business, this is the image that will be shown to the public.

streetAddressstring

The address of the business, this is the address that will be shown to the public.

citystring

The city of the business, this is the city that will be shown to the public.

postalCodestring

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudenumber

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudenumber

The longitude of the business, this is the longitude that will be shown to the public

businessTypeIdnumber

The business type of the business, this is the business type that will be shown to the public.

curl -i -X PUT \
  'https://docs.pers.ninja/_mock/swagger/businesses/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "string",
    "businessLegalName": "string",
    "displayName": "string",
    "description": "string",
    "shortDescription": "string",
    "websiteUrl": "string",
    "imageUrl": "string",
    "streetAddress": "string",
    "city": "string",
    "postalCode": "string",
    "coordsLatitude": 0,
    "coordsLongitude": 0,
    "businessTypeId": 0
  }'

Responses

Business updated successfully

Bodyapplication/json
idstringrequired

The id of the business, this is unique and will be used to identify the business.

emailobject or nullrequired

The email of the business, this is unique and will be used to identify the business.

accountAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

businessLegalNameobject or nullrequired

The legal name of the business, this is the name that will be used for legal purposes.

displayNameobject or nullrequired

The display name of the business, this is the name that will be shown to the public.

descriptionobject or nullrequired

The description of the business, this is the description that will be shown to the public.

shortDescriptionobject or nullrequired

The short description of the business, this is the description that will be shown to the public.

websiteUrlobject or nullrequired

The website of the business, this is the website that will be shown to the public.

imageUrlobject or nullrequired

The image of the business, this is the image that will be shown to the public.

streetAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

cityobject or nullrequired

The city of the business, this is the city that will be shown to the public.

postalCodeobject or nullrequired

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudeobject or nullrequired

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudeobject or nullrequired

The longitude of the business, this is the longitude that will be shown to the public.

businessTypeobject or nullrequired

The business type of the business, this is the business type that will be shown to the public.

businessType.​idnumber

Business type id

businessType.​namestring or nullrequired

Business type name

businessType.​descriptionstring or nullrequired

Business type description

businessType.​codestring or nullrequired

Business type code

businessType.​iconUrlstring or nullrequired

Business type icon url

isActivebooleanrequired

The status of the business, this is the status that will be shown to the public.

canMintTokenbooleanrequired

The ability to mint token for the business, this is the ability that will be shown to the public.

canChargeTokenbooleanrequired

The ability to charge token for the business, this is the ability that will be shown to the public.

canManageUsersbooleanrequired

The ability to manage users for the business, this is the ability that will be shown to the public.

canReceiveDonationbooleanrequired

The ability to receive donation for the business, this is the ability that will be shown to the public.

Response
application/json
{ "id": "string", "email": {}, "accountAddress": {}, "businessLegalName": {}, "displayName": {}, "description": {}, "shortDescription": {}, "websiteUrl": {}, "imageUrl": {}, "streetAddress": {}, "city": {}, "postalCode": {}, "coordsLatitude": {}, "coordsLongitude": {}, "businessType": { "id": 0, "name": "string", "description": "string", "code": "string", "iconUrl": "string" }, "isActive": true, "canMintToken": true, "canChargeToken": true, "canManageUsers": true, "canReceiveDonation": true }

Create multiple businesses from URL

Request

Create multiple business accounts by fetching a JSON file from the provided URL. The file at the URL is expected to be a JSON object conforming to the BusinessBulkCreateRequestDTO structure, containing an array of business data.

Security
authJWT
Bodyapplication/jsonrequired
urlstringrequired
Example: "https://example.com/user-data"
curl -i -X POST \
  https://docs.pers.ninja/_mock/swagger/businesses/bulk/url \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://example.com/user-data"
  }'

Responses

Businesses created

Bodyapplication/jsonArray [
idstringrequired

The id of the business, this is unique and will be used to identify the business.

emailobject or nullrequired

The email of the business, this is unique and will be used to identify the business.

accountAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

businessLegalNameobject or nullrequired

The legal name of the business, this is the name that will be used for legal purposes.

displayNameobject or nullrequired

The display name of the business, this is the name that will be shown to the public.

descriptionobject or nullrequired

The description of the business, this is the description that will be shown to the public.

shortDescriptionobject or nullrequired

The short description of the business, this is the description that will be shown to the public.

websiteUrlobject or nullrequired

The website of the business, this is the website that will be shown to the public.

imageUrlobject or nullrequired

The image of the business, this is the image that will be shown to the public.

streetAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

cityobject or nullrequired

The city of the business, this is the city that will be shown to the public.

postalCodeobject or nullrequired

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudeobject or nullrequired

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudeobject or nullrequired

The longitude of the business, this is the longitude that will be shown to the public.

businessTypeobject or nullrequired

The business type of the business, this is the business type that will be shown to the public.

businessType.​idnumber

Business type id

businessType.​namestring or nullrequired

Business type name

businessType.​descriptionstring or nullrequired

Business type description

businessType.​codestring or nullrequired

Business type code

businessType.​iconUrlstring or nullrequired

Business type icon url

isActivebooleanrequired

The status of the business, this is the status that will be shown to the public.

canMintTokenbooleanrequired

The ability to mint token for the business, this is the ability that will be shown to the public.

canChargeTokenbooleanrequired

The ability to charge token for the business, this is the ability that will be shown to the public.

canManageUsersbooleanrequired

The ability to manage users for the business, this is the ability that will be shown to the public.

canReceiveDonationbooleanrequired

The ability to receive donation for the business, this is the ability that will be shown to the public.

]
Response
application/json
[ { "id": "string", "email": {}, "accountAddress": {}, "businessLegalName": {}, "displayName": {}, "description": {}, "shortDescription": {}, "websiteUrl": {}, "imageUrl": {}, "streetAddress": {}, "city": {}, "postalCode": {}, "coordsLatitude": {}, "coordsLongitude": {}, "businessType": { … }, "isActive": true, "canMintToken": true, "canChargeToken": true, "canManageUsers": true, "canReceiveDonation": true } ]

Request

Toggle business account active status

Security
authJWT
Path
idstringrequired
Bodyapplication/jsonrequired
isActivebooleanrequired
canMintTokenboolean
canChargeTokenboolean
canManageUsersboolean
canReceiveDonationboolean
curl -i -X PUT \
  'https://docs.pers.ninja/_mock/swagger/businesses/{id}/status' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "isActive": true,
    "canMintToken": true,
    "canChargeToken": true,
    "canManageUsers": true,
    "canReceiveDonation": true
  }'

Responses

Business status updated

Bodyapplication/json
idstringrequired

The id of the business, this is unique and will be used to identify the business.

emailobject or nullrequired

The email of the business, this is unique and will be used to identify the business.

accountAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

businessLegalNameobject or nullrequired

The legal name of the business, this is the name that will be used for legal purposes.

displayNameobject or nullrequired

The display name of the business, this is the name that will be shown to the public.

descriptionobject or nullrequired

The description of the business, this is the description that will be shown to the public.

shortDescriptionobject or nullrequired

The short description of the business, this is the description that will be shown to the public.

websiteUrlobject or nullrequired

The website of the business, this is the website that will be shown to the public.

imageUrlobject or nullrequired

The image of the business, this is the image that will be shown to the public.

streetAddressobject or nullrequired

The address of the business, this is the address that will be shown to the public.

cityobject or nullrequired

The city of the business, this is the city that will be shown to the public.

postalCodeobject or nullrequired

The postal code of the business, this is the postal code that will be shown to the public.

coordsLatitudeobject or nullrequired

The latitude of the business, this is the latitude that will be shown to the public.

coordsLongitudeobject or nullrequired

The longitude of the business, this is the longitude that will be shown to the public.

businessTypeobject or nullrequired

The business type of the business, this is the business type that will be shown to the public.

businessType.​idnumber

Business type id

businessType.​namestring or nullrequired

Business type name

businessType.​descriptionstring or nullrequired

Business type description

businessType.​codestring or nullrequired

Business type code

businessType.​iconUrlstring or nullrequired

Business type icon url

isActivebooleanrequired

The status of the business, this is the status that will be shown to the public.

canMintTokenbooleanrequired

The ability to mint token for the business, this is the ability that will be shown to the public.

canChargeTokenbooleanrequired

The ability to charge token for the business, this is the ability that will be shown to the public.

canManageUsersbooleanrequired

The ability to manage users for the business, this is the ability that will be shown to the public.

canReceiveDonationbooleanrequired

The ability to receive donation for the business, this is the ability that will be shown to the public.

Response
application/json
{ "id": "string", "email": {}, "accountAddress": {}, "businessLegalName": {}, "displayName": {}, "description": {}, "shortDescription": {}, "websiteUrl": {}, "imageUrl": {}, "streetAddress": {}, "city": {}, "postalCode": {}, "coordsLatitude": {}, "coordsLongitude": {}, "businessType": { "id": 0, "name": "string", "description": "string", "code": "string", "iconUrl": "string" }, "isActive": true, "canMintToken": true, "canChargeToken": true, "canManageUsers": true, "canReceiveDonation": true }
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations