Skip to content

PERS-api docs (2.0.7)

Download OpenAPI description
Overview
Languages
Servers
Mock server
https://docs.pers.ninja/_mock/swagger/
https://explorins-loyalty.ngrok.io/
https://api.pers.ninja/v2/

Tenants

Operations

Admins

Operations

Tokens

Operations

Campaigns

Operations

Campaign Tags

Operations

Campaign Tokens

Operations

Campaign Triggers

Operations

Campaign Engagements

Operations

Campaign Claims

Operations

Redemptions

Operations

Purchases

Operations

Businesses

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

Get current business info

Request

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

Security
projectKey and businessApiKey
curl -i -X GET \
  https://docs.pers.ninja/_mock/swagger/businesses/me \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -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
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": [ { … } ] }

Get all businesses

Request

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

Security
tenantAdminJWT 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
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 } ]

Create a new business

Request

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

Security
tenantAdminJWT
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
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.

apiPrivateKeystringrequired

The api private key of the business, this is the api private key that will be used to identify the business with the api.

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, "apiPrivateKey": "string" }

Get business by account address

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
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 }

Get business by ID

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
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 }

Update a business

Request

Update a business account

Security
tenantAdminJWT
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
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
tenantAdminJWT
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
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 } ]

Toggle business status

Request

Toggle business account active status

Security
tenantAdminJWT
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
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 }

Transactions

Operations

Users

Operations

Balances

Operations

Files

Operations

Web3 Chains

Operations

Contracts

Operations

Auth

Operations

Root

Operations

Well-known

Operations

webhooks

Business Types

Operations

Redemption Types

Operations

Redemption Redeems

Operations

Redemption Tokens

Operations

API Keys

Operations