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

Reward Claims Processing

Multi-level reward claim processing with comprehensive security features and audit trails. Handles reward distribution with full security features.
Security Features:

•
Multi-Level Access:
USER, BUSINESS, SYSTEM, ADMIN claim processing levels

•
Security Monitoring:
IP tracking and behavioral analysis for security

•
Audit Tracking:
Complete transaction history and activity logs

•
Context Attribution:
User and business context preservation for tracking

•
Claim Verification:
Multi-step verification process for high-value rewards

Access Levels:

•
USER:
Direct customer reward claims with user authentication

•
BUSINESS:
B2B reward processing with business context attribution

•
SYSTEM:
Automated claims processing via secure API integration

•
ADMIN:
Complete administrative oversight and manual claim processing

Request

Process campaign reward claims using role-based detection. Supports all claim types: system, business, and user claims through a single endpoint.

Security
projectKey or authJWT
Bodyapplication/jsonrequired

Campaign claim request. Use CampaignClaimRequestDTO for user claims or CampaignClaimBusinessRequestDTO structure for business/system claims.

triggerSourceIdstring

The trigger source ID (NEW - preferred). Use this for trigger-specific claims (QR codes, NFC tags, geofences, etc.). Takes precedence over campaignId if both are provided.

metadataobject

The campaign metadata associated with the claim.

multipliernumber

The campaign multiplier that will be applied to the reward. This determines the final reward amount (reward * multiplier). Default is 1.0

latitudenumber

geolocation latitude, prefer using geofence trigger sources instead

longitudenumber

geolocation longitude, prefer using geofence trigger sources instead

userIdentifierobject

The user identifier, e.g. email or external id. This is used to identify the user making the claim, if not provided in request context

businessIdstring

DEPRECATED: Use with triggerSource instead.Business identifier - provides additional context and validation for the claim.

campaignIdstring

DEPRECATED: The campaign ID . Still supported for backward compatibility, but use triggerSourceId for new implementations. If both campaignId and triggerSourceId are provided, triggerSourceId takes precedence. NOTE: If campaign has trigger sources configured, triggerSourceId becomes required and campaignId alone will result in an error.

curl -i -X POST \
  https://docs.pers.ninja/_mock/swagger/campaigns/claims \
  -H 'Content-Type: application/json' \
  -H 'x-project-key: YOUR_API_KEY_HERE' \
  -d '{
    "triggerSourceId": "string",
    "metadata": {},
    "multiplier": 0,
    "latitude": 0,
    "longitude": 0,
    "userIdentifier": {},
    "businessId": "string",
    "campaignId": "string"
  }'

Responses

Campaign claim processed successfully

Bodyapplication/json
idstringrequired

The id of the campaign user claim

createdAtobjectrequired

The date the campaign user claim was created

userobjectrequired

User

user.​idstringrequired
user.​emailobject
user.​identifierEmailstringrequired

Universal identifier email for deterministic operations. Generated from B2B inputs (email, externalId) for wallet salt generation and external integrations.

Example: "user123@user.pers.internal"
user.​firstNameobject or nullrequired

User first name

user.​lastNameobject or nullrequired

User last name

user.​externalIdobject or nullrequired

User external id

user.​instagramAccountIdobject or nullrequired

Instagram account id

user.​googleAccountNameobject or nullrequired

Google account name

user.​customDataobjectrequired

Custom data

user.​publicProfileobject or nullrequired

Public profile data

user.​isActivebooleanrequired

Is active

user.​currentSigningAccountIdobject

Current active signing account ID for external wallet operations

user.​walletsArray of objects(PublicWalletDTO)required

User-owned counterfactual smart contract wallets that can receive tokens

user.​wallets[].​idstringrequired

Unique identifier for the internal wallet

user.​wallets[].​ownerTypenumberrequired

Owner type for polymorphic ownership

Value{"USER":"user","BUSINESS":"business","TENANT":"tenant","SYSTEM":"system","EXTERNAL":"external"}
Example: "user"
user.​wallets[].​ownerIdstringrequired

Owner ID for polymorphic ownership

Example: "user_123"
user.​wallets[].​walletManagementTypenumberrequired

Type of internal wallet

Value{"CUSTODIAL":"custodial","NON_CUSTODIAL":"non-custodial"}
user.​wallets[].​addressstringrequired

CREATE2 generated address that can receive tokens

user.​wallets[].​chainIdnumberrequired

Blockchain network chain identifier

user.​wallets[].​statusnumberrequired

Current status of the wallet

Value{"PENDING":"pending","ACTIVE":"active","SUSPENDED":"suspended","ARCHIVED":"archived"}
user.​wallets[].​ownerSigningAccountIdobject or null

ID of signing account that owns this internal wallet

user.​wallets[].​tagsArray of stringsrequired

Tags associated with the wallet for categorization

user.​wallets[].​createdAtstring(date-time)required

Timestamp when the wallet was created

user.​wallets[].​updatedAtstring(date-time)required

Timestamp when the wallet was last updated

user.​accountAddressobject or nullDeprecatedrequired

User account address

campaignobjectrequired

The campaign that the user is claiming

campaign.​namestring or nullrequired

Campaign name

campaign.​descriptionstring or nullrequired

Campaign description

campaign.​beneficiaryAccountAddressstring or nullrequired

Campaign beneficiary account address

campaign.​startDatestring or null(date-time)required

Campaign start date, default is the current date

campaign.​endDatestring or null(date-time)required

Campaign end date

campaign.​imageUrlstring or nullrequired

img url

campaign.​externalUrlstring or nullrequired

Campaign url

campaign.​idstringrequired

Campaign id

campaign.​isActivebooleanrequired

Campaign isActive

Default false
campaign.​isTestnetboolean

Campaign isTestnet, this means that the campaign is running on testnet, not mainnet

Default false
campaign.​triggerobject or nullrequired

Campaign trigger: what triggers the campaign, and what are the conditions for the trigger to be activated

campaign.​trigger.​namestringrequired

Campaign trigger name

campaign.​trigger.​descriptionstring

Campaign trigger description

campaign.​trigger.​maxPerDaynumber or null

DEPRECATED - use maxPerDayPerUser: Campaign trigger max per day

campaign.​trigger.​maxPerDayPerUsernumber or null

Campaign trigger max per day per user

campaign.​trigger.​maxPerUsernumber or null

Campaign trigger max per user

campaign.​trigger.​minCooldownSecondsnumber or null

Campaign trigger min cooldown seconds

campaign.​trigger.​maxGeoDistanceInMetersnumber or null

Campaign trigger max geo distance to Business in meters

campaign.​trigger.​requiredUserInfostring or null

Campaign trigger required user info

campaign.​trigger.​triggerTypestring

Campaign trigger type

Enum"CLAIM_BY_USER""CLAIM_BY_SYSTEM""CLAIM_BY_BUSINESS"
campaign.​trigger.​maxMultipliernumber or null

Campaign trigger max multiplier

campaign.​trigger.​completionThresholdnumber or null

Campaign trigger completion threshold. This indicates the number of completions required before the reward is granted

campaign.​trigger.​maxTotalnumber or null

Campaign trigger max total completions across all users

campaign.​trigger.​maxPerDayTotalnumber or null

Campaign trigger max total completions per day across all users

campaign.​trigger.​conditionsArray of objects(CampaignTriggerConditionDTO)

Campaign trigger conditions

campaign.​trigger.​sourceLogicstring

Source logic type defining how multiple trigger sources combine to activate the flow

Default "any"
Value"any"
campaign.​trigger.​idstringrequired

Campaign trigger id

campaign.​tokenUnitsArray of objects(TokenUnitDTO)required
Array [
campaign.​tokenUnits[][].​idstringrequired

Token unit id

campaign.​tokenUnits[][].​tokenobjectrequired

TokenDTO object

campaign.​tokenUnits[][].​token.​idstringrequired

Id of the token

campaign.​tokenUnits[][].​token.​contractAddressstringrequired

Address of the token

campaign.​tokenUnits[][].​token.​metadataArray of objects(TokenMetadataDTO)

Metadata of the token, this is optional and can be null in case of Point token

campaign.​tokenUnits[][].​token.​abiobjectrequired

this is the abi of the contract, this is the interface of the contract to interact with it

campaign.​tokenUnits[][].​token.​chainIdnumberrequired

this is the chain id of the chain where the token is deployed

campaign.​tokenUnits[][].​token.​abiUrlobjectrequired

this is the url of the abi of the contract, to be used to fetch the abi of the contract

campaign.​tokenUnits[][].​token.​namestring

this is the name of the token contract

campaign.​tokenUnits[][].​token.​symbolstring

this is the symbol of the token contract, this is optional and can be null

campaign.​tokenUnits[][].​token.​decimalsnumber

this is the decimals of the token. This is optional and only used for ERC20 tokens (Points)

campaign.​tokenUnits[][].​token.​isActivebooleanrequired

This can be used to enable or disable the token

campaign.​tokenUnits[][].​token.​isGallerybooleanrequired

This can be used to enable or disable the token for gallery

campaign.​tokenUnits[][].​token.​typestringrequired

This is the underlying web3 native type of the token contract

Enum"ERC20""ERC1155""ERC721"
campaign.​tokenUnits[][].​tokenMetadataIncrementalIdnumber or null

token metadata incremental id for the token unit, this is used to identify the specific token metadata that should be minted

campaign.​tokenUnits[][].​amountnumberrequired

Token unit amount is the amount of tokens that the user will receive when aquiring the token unit

campaign.​tokenUnits[][].​maxAmountnumber or null

Token unit max amount, this is the maximum amount of tokens that the user can receive when aquiring the token unit. This is relevant e.g. in campaigns where a user may receive token units per revenue spent etc

]
campaign.​businessEngagementsArray of objects(CampaignBusinessEngagementDTO)required

Campaign businesses: what businesses are involved in the campaign

campaign.​businessEngagements[].​idstringrequired

id

campaign.​businessEngagements[].​shortDescriptionnumber or nullrequired

A short description of the business engagement with indications what to do etc

campaign.​businessEngagements[].​businessesArray of objects(BusinessDTO)required

businesses

campaign.​businessEngagements[].​businesses[].​idstringrequired

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

campaign.​businessEngagements[].​businesses[].​emailobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​accountAddressobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​businessLegalNameobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​displayNameobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​descriptionobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​shortDescriptionobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​websiteUrlobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​imageUrlobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​streetAddressobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​cityobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​postalCodeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​coordsLatitudeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​coordsLongitudeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​businessTypeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​businessType.​idnumber

Business type id

campaign.​businessEngagements[].​businesses[].​businessType.​namestring or nullrequired

Business type name

campaign.​businessEngagements[].​businesses[].​businessType.​descriptionstring or nullrequired

Business type description

campaign.​businessEngagements[].​businesses[].​businessType.​codestring or nullrequired

Business type code

campaign.​businessEngagements[].​businesses[].​businessType.​iconUrlstring or nullrequired

Business type icon url

campaign.​businessEngagements[].​businesses[].​isActivebooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canMintTokenbooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canChargeTokenbooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canManageUsersbooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canReceiveDonationbooleanrequired

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

campaign.​businessEngagements[].​campaignIdstringrequired

Campaign id

campaign.​businessEngagements[].​maxPerBusinessnumber or nullrequired

max per business, the maximum number of times a user can engage with the buisness in the campaign

campaign.​businessEngagements[].​maxPerDaynumber or nullrequired

max per day, the maximum number of times a user can engage with the buisness in the campaign per day

campaign.​businessEngagements[].​externalUrlstring or nullrequired

The external URL for the business engagement, e.g. a link to a website or app

campaign.​createdAtstring(date-time)required

create date

Default "2026-01-14T09:56:20.954Z"
campaign.​updatedAtstring or null(date-time)required

update date

Default null
campaign.​ordernumberrequired

Campaign order

Default 1
campaign.​tagsArray of stringsrequired

Campaign tags

Default []
campaign.​countryCodeRestrictionsobject

Country code restrictions as an array of strings (e.g., ["NOT_ES", "FR"])

Example: ["NOT_ES","FR"]
campaign.​triggerSourcesArray of objects(TriggerSourceDTO)required
Array [
campaign.​triggerSources[][].​typestringrequired

Type of the trigger source

Enum"QR_CODE""API_WEBHOOK"
Example: "QR_CODE"
campaign.​triggerSources[][].​namestringrequired

Human-readable name for the trigger source

Example: "Main Entrance QR Code"
campaign.​triggerSources[][].​descriptionobject or null

Optional description explaining this trigger source

Example: "QR code located at the main entrance for visitor check-in"
campaign.​triggerSources[][].​metadataobject

Type-specific configuration and settings

Example: {"tokenConfig":{"tokenId":"1"}}
campaign.​triggerSources[][].​businessIdobject or null

Reference to the business that owns this trigger source. Optional - can be tenant-wide trigger sources

Example: "business-uuid-123"
campaign.​triggerSources[][].​idstringrequired

Unique identifier for the trigger source

Example: "source-12345"
campaign.​triggerSources[][].​isActivebooleanrequired

Whether this trigger source is currently active. Inactive sources won't trigger any flows

Example: true
campaign.​triggerSources[][].​analyticsobject or null

Usage analytics and statistics for this trigger source

campaign.​triggerSources[][].​createdAtobjectrequired

Timestamp when the trigger source was created

Example: "2024-01-01T12:00:00.000Z"
campaign.​triggerSources[][].​updatedAtobjectrequired

Timestamp when the trigger source was last updated

Example: "2024-01-10T12:00:00.000Z"
]
userCountryCodestring or nullrequired

Country code of the user claiming the campaign

businessobject

The business that the user claimed the campaign for

Response
application/json
{ "id": "string", "createdAt": {}, "user": { "id": "string", "email": {}, "identifierEmail": "user123@user.pers.internal", "firstName": {}, "lastName": {}, "externalId": {}, "accountAddress": {}, "instagramAccountId": {}, "googleAccountName": {}, "customData": {}, "publicProfile": {}, "isActive": true, "currentSigningAccountId": {}, "wallets": [ … ] }, "campaign": { "name": "string", "description": "string", "beneficiaryAccountAddress": "string", "startDate": "2019-08-24T14:15:22Z", "endDate": "2019-08-24T14:15:22Z", "imageUrl": "string", "externalUrl": "string", "id": "string", "isActive": false, "isTestnet": false, "trigger": { … }, "tokenUnits": [ … ], "businessEngagements": [ … ], "createdAt": "2026-01-14T09:56:20.954Z", "updatedAt": null, "order": 1, "tags": [], "countryCodeRestrictions": [ … ], "triggerSources": [ … ] }, "userCountryCode": "string", "business": { "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 } }

Get campaign claims with advanced filtering

Request

Get campaign claims with comprehensive filtering options: - campaignId: Filter by specific campaign (optional) - userId: Filter by specific user ID (admin only) - businessId: Filter by specific business ID (admin/business context)

Access Control: - Users: See only their own claims, campaignId optional - Business: See only claims associated with their business account, campaignId optional - Admin: Can filter by any combination of parameters or see all claims

Security Notes: - Users cannot access userId or businessId parameters (automatically filtered) - Business accounts automatically filter to their own businessId regardless of parameter - Admin has full access to all filtering options

Security
projectKey or authJWT
Query
campaignIdstring

Filter by specific campaign ID

userIdstring

Filter by specific user ID (admin only)

businessIdstring

Filter by specific business ID (admin only)

curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/campaigns/claims?campaignId=string&userId=string&businessId=string' \
  -H 'x-project-key: YOUR_API_KEY_HERE'

Responses

Campaign claims retrieved successfully

Bodyapplication/jsonArray [
idstringrequired

The id of the campaign user claim

createdAtobjectrequired

The date the campaign user claim was created

userobjectrequired

User

user.​idstringrequired
user.​emailobject
user.​identifierEmailstringrequired

Universal identifier email for deterministic operations. Generated from B2B inputs (email, externalId) for wallet salt generation and external integrations.

Example: "user123@user.pers.internal"
user.​firstNameobject or nullrequired

User first name

user.​lastNameobject or nullrequired

User last name

user.​externalIdobject or nullrequired

User external id

user.​instagramAccountIdobject or nullrequired

Instagram account id

user.​googleAccountNameobject or nullrequired

Google account name

user.​customDataobjectrequired

Custom data

user.​publicProfileobject or nullrequired

Public profile data

user.​isActivebooleanrequired

Is active

user.​currentSigningAccountIdobject

Current active signing account ID for external wallet operations

user.​walletsArray of objects(PublicWalletDTO)required

User-owned counterfactual smart contract wallets that can receive tokens

user.​wallets[].​idstringrequired

Unique identifier for the internal wallet

user.​wallets[].​ownerTypenumberrequired

Owner type for polymorphic ownership

Value{"USER":"user","BUSINESS":"business","TENANT":"tenant","SYSTEM":"system","EXTERNAL":"external"}
Example: "user"
user.​wallets[].​ownerIdstringrequired

Owner ID for polymorphic ownership

Example: "user_123"
user.​wallets[].​walletManagementTypenumberrequired

Type of internal wallet

Value{"CUSTODIAL":"custodial","NON_CUSTODIAL":"non-custodial"}
user.​wallets[].​addressstringrequired

CREATE2 generated address that can receive tokens

user.​wallets[].​chainIdnumberrequired

Blockchain network chain identifier

user.​wallets[].​statusnumberrequired

Current status of the wallet

Value{"PENDING":"pending","ACTIVE":"active","SUSPENDED":"suspended","ARCHIVED":"archived"}
user.​wallets[].​ownerSigningAccountIdobject or null

ID of signing account that owns this internal wallet

user.​wallets[].​tagsArray of stringsrequired

Tags associated with the wallet for categorization

user.​wallets[].​createdAtstring(date-time)required

Timestamp when the wallet was created

user.​wallets[].​updatedAtstring(date-time)required

Timestamp when the wallet was last updated

user.​accountAddressobject or nullDeprecatedrequired

User account address

campaignobjectrequired

The campaign that the user is claiming

campaign.​namestring or nullrequired

Campaign name

campaign.​descriptionstring or nullrequired

Campaign description

campaign.​beneficiaryAccountAddressstring or nullrequired

Campaign beneficiary account address

campaign.​startDatestring or null(date-time)required

Campaign start date, default is the current date

campaign.​endDatestring or null(date-time)required

Campaign end date

campaign.​imageUrlstring or nullrequired

img url

campaign.​externalUrlstring or nullrequired

Campaign url

campaign.​idstringrequired

Campaign id

campaign.​isActivebooleanrequired

Campaign isActive

Default false
campaign.​isTestnetboolean

Campaign isTestnet, this means that the campaign is running on testnet, not mainnet

Default false
campaign.​triggerobject or nullrequired

Campaign trigger: what triggers the campaign, and what are the conditions for the trigger to be activated

campaign.​trigger.​namestringrequired

Campaign trigger name

campaign.​trigger.​descriptionstring

Campaign trigger description

campaign.​trigger.​maxPerDaynumber or null

DEPRECATED - use maxPerDayPerUser: Campaign trigger max per day

campaign.​trigger.​maxPerDayPerUsernumber or null

Campaign trigger max per day per user

campaign.​trigger.​maxPerUsernumber or null

Campaign trigger max per user

campaign.​trigger.​minCooldownSecondsnumber or null

Campaign trigger min cooldown seconds

campaign.​trigger.​maxGeoDistanceInMetersnumber or null

Campaign trigger max geo distance to Business in meters

campaign.​trigger.​requiredUserInfostring or null

Campaign trigger required user info

campaign.​trigger.​triggerTypestring

Campaign trigger type

Enum"CLAIM_BY_USER""CLAIM_BY_SYSTEM""CLAIM_BY_BUSINESS"
campaign.​trigger.​maxMultipliernumber or null

Campaign trigger max multiplier

campaign.​trigger.​completionThresholdnumber or null

Campaign trigger completion threshold. This indicates the number of completions required before the reward is granted

campaign.​trigger.​maxTotalnumber or null

Campaign trigger max total completions across all users

campaign.​trigger.​maxPerDayTotalnumber or null

Campaign trigger max total completions per day across all users

campaign.​trigger.​conditionsArray of objects(CampaignTriggerConditionDTO)

Campaign trigger conditions

campaign.​trigger.​sourceLogicstring

Source logic type defining how multiple trigger sources combine to activate the flow

Default "any"
Value"any"
campaign.​trigger.​idstringrequired

Campaign trigger id

campaign.​tokenUnitsArray of objects(TokenUnitDTO)required
Array [
campaign.​tokenUnits[][].​idstringrequired

Token unit id

campaign.​tokenUnits[][].​tokenobjectrequired

TokenDTO object

campaign.​tokenUnits[][].​token.​idstringrequired

Id of the token

campaign.​tokenUnits[][].​token.​contractAddressstringrequired

Address of the token

campaign.​tokenUnits[][].​token.​metadataArray of objects(TokenMetadataDTO)

Metadata of the token, this is optional and can be null in case of Point token

campaign.​tokenUnits[][].​token.​abiobjectrequired

this is the abi of the contract, this is the interface of the contract to interact with it

campaign.​tokenUnits[][].​token.​chainIdnumberrequired

this is the chain id of the chain where the token is deployed

campaign.​tokenUnits[][].​token.​abiUrlobjectrequired

this is the url of the abi of the contract, to be used to fetch the abi of the contract

campaign.​tokenUnits[][].​token.​namestring

this is the name of the token contract

campaign.​tokenUnits[][].​token.​symbolstring

this is the symbol of the token contract, this is optional and can be null

campaign.​tokenUnits[][].​token.​decimalsnumber

this is the decimals of the token. This is optional and only used for ERC20 tokens (Points)

campaign.​tokenUnits[][].​token.​isActivebooleanrequired

This can be used to enable or disable the token

campaign.​tokenUnits[][].​token.​isGallerybooleanrequired

This can be used to enable or disable the token for gallery

campaign.​tokenUnits[][].​token.​typestringrequired

This is the underlying web3 native type of the token contract

Enum"ERC20""ERC1155""ERC721"
campaign.​tokenUnits[][].​tokenMetadataIncrementalIdnumber or null

token metadata incremental id for the token unit, this is used to identify the specific token metadata that should be minted

campaign.​tokenUnits[][].​amountnumberrequired

Token unit amount is the amount of tokens that the user will receive when aquiring the token unit

campaign.​tokenUnits[][].​maxAmountnumber or null

Token unit max amount, this is the maximum amount of tokens that the user can receive when aquiring the token unit. This is relevant e.g. in campaigns where a user may receive token units per revenue spent etc

]
campaign.​businessEngagementsArray of objects(CampaignBusinessEngagementDTO)required

Campaign businesses: what businesses are involved in the campaign

campaign.​businessEngagements[].​idstringrequired

id

campaign.​businessEngagements[].​shortDescriptionnumber or nullrequired

A short description of the business engagement with indications what to do etc

campaign.​businessEngagements[].​businessesArray of objects(BusinessDTO)required

businesses

campaign.​businessEngagements[].​businesses[].​idstringrequired

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

campaign.​businessEngagements[].​businesses[].​emailobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​accountAddressobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​businessLegalNameobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​displayNameobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​descriptionobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​shortDescriptionobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​websiteUrlobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​imageUrlobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​streetAddressobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​cityobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​postalCodeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​coordsLatitudeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​coordsLongitudeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​businessTypeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​businessType.​idnumber

Business type id

campaign.​businessEngagements[].​businesses[].​businessType.​namestring or nullrequired

Business type name

campaign.​businessEngagements[].​businesses[].​businessType.​descriptionstring or nullrequired

Business type description

campaign.​businessEngagements[].​businesses[].​businessType.​codestring or nullrequired

Business type code

campaign.​businessEngagements[].​businesses[].​businessType.​iconUrlstring or nullrequired

Business type icon url

campaign.​businessEngagements[].​businesses[].​isActivebooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canMintTokenbooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canChargeTokenbooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canManageUsersbooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canReceiveDonationbooleanrequired

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

campaign.​businessEngagements[].​campaignIdstringrequired

Campaign id

campaign.​businessEngagements[].​maxPerBusinessnumber or nullrequired

max per business, the maximum number of times a user can engage with the buisness in the campaign

campaign.​businessEngagements[].​maxPerDaynumber or nullrequired

max per day, the maximum number of times a user can engage with the buisness in the campaign per day

campaign.​businessEngagements[].​externalUrlstring or nullrequired

The external URL for the business engagement, e.g. a link to a website or app

campaign.​createdAtstring(date-time)required

create date

Default "2026-01-14T09:56:20.954Z"
campaign.​updatedAtstring or null(date-time)required

update date

Default null
campaign.​ordernumberrequired

Campaign order

Default 1
campaign.​tagsArray of stringsrequired

Campaign tags

Default []
campaign.​countryCodeRestrictionsobject

Country code restrictions as an array of strings (e.g., ["NOT_ES", "FR"])

Example: ["NOT_ES","FR"]
campaign.​triggerSourcesArray of objects(TriggerSourceDTO)required
Array [
campaign.​triggerSources[][].​typestringrequired

Type of the trigger source

Enum"QR_CODE""API_WEBHOOK"
Example: "QR_CODE"
campaign.​triggerSources[][].​namestringrequired

Human-readable name for the trigger source

Example: "Main Entrance QR Code"
campaign.​triggerSources[][].​descriptionobject or null

Optional description explaining this trigger source

Example: "QR code located at the main entrance for visitor check-in"
campaign.​triggerSources[][].​metadataobject

Type-specific configuration and settings

Example: {"tokenConfig":{"tokenId":"1"}}
campaign.​triggerSources[][].​businessIdobject or null

Reference to the business that owns this trigger source. Optional - can be tenant-wide trigger sources

Example: "business-uuid-123"
campaign.​triggerSources[][].​idstringrequired

Unique identifier for the trigger source

Example: "source-12345"
campaign.​triggerSources[][].​isActivebooleanrequired

Whether this trigger source is currently active. Inactive sources won't trigger any flows

Example: true
campaign.​triggerSources[][].​analyticsobject or null

Usage analytics and statistics for this trigger source

campaign.​triggerSources[][].​createdAtobjectrequired

Timestamp when the trigger source was created

Example: "2024-01-01T12:00:00.000Z"
campaign.​triggerSources[][].​updatedAtobjectrequired

Timestamp when the trigger source was last updated

Example: "2024-01-10T12:00:00.000Z"
]
userCountryCodestring or nullrequired

Country code of the user claiming the campaign

businessobject

The business that the user claimed the campaign for

]
Response
application/json
[ { "id": "string", "createdAt": {}, "user": { … }, "campaign": { … }, "userCountryCode": "string", "business": { … } } ]

Get my campaign claims (Convenience)

Request

Convenience endpoint for authenticated users to retrieve their own campaign claims.

Equivalent to GET /campaign-claims but with required authentication and automatic filtering to current user context.

Features:

  • Automatic user context (no userId parameter needed)
  • Optional campaign filtering
  • Requires user authentication
  • Simplified response structure

Usage Examples:

  • GET /campaign-claims/me (all claims for authenticated user)
  • GET /campaign-claims/me?campaignId=123 (user claims for specific campaign)
Security
authJWT
Query
campaignIdstring

Filter by specific campaign ID

curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/campaigns/claims/me?campaignId=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

User campaign claims retrieved successfully

Bodyapplication/jsonArray [
idstringrequired

The id of the campaign user claim

createdAtobjectrequired

The date the campaign user claim was created

userobjectrequired

User

user.​idstringrequired
user.​emailobject
user.​identifierEmailstringrequired

Universal identifier email for deterministic operations. Generated from B2B inputs (email, externalId) for wallet salt generation and external integrations.

Example: "user123@user.pers.internal"
user.​firstNameobject or nullrequired

User first name

user.​lastNameobject or nullrequired

User last name

user.​externalIdobject or nullrequired

User external id

user.​instagramAccountIdobject or nullrequired

Instagram account id

user.​googleAccountNameobject or nullrequired

Google account name

user.​customDataobjectrequired

Custom data

user.​publicProfileobject or nullrequired

Public profile data

user.​isActivebooleanrequired

Is active

user.​currentSigningAccountIdobject

Current active signing account ID for external wallet operations

user.​walletsArray of objects(PublicWalletDTO)required

User-owned counterfactual smart contract wallets that can receive tokens

user.​wallets[].​idstringrequired

Unique identifier for the internal wallet

user.​wallets[].​ownerTypenumberrequired

Owner type for polymorphic ownership

Value{"USER":"user","BUSINESS":"business","TENANT":"tenant","SYSTEM":"system","EXTERNAL":"external"}
Example: "user"
user.​wallets[].​ownerIdstringrequired

Owner ID for polymorphic ownership

Example: "user_123"
user.​wallets[].​walletManagementTypenumberrequired

Type of internal wallet

Value{"CUSTODIAL":"custodial","NON_CUSTODIAL":"non-custodial"}
user.​wallets[].​addressstringrequired

CREATE2 generated address that can receive tokens

user.​wallets[].​chainIdnumberrequired

Blockchain network chain identifier

user.​wallets[].​statusnumberrequired

Current status of the wallet

Value{"PENDING":"pending","ACTIVE":"active","SUSPENDED":"suspended","ARCHIVED":"archived"}
user.​wallets[].​ownerSigningAccountIdobject or null

ID of signing account that owns this internal wallet

user.​wallets[].​tagsArray of stringsrequired

Tags associated with the wallet for categorization

user.​wallets[].​createdAtstring(date-time)required

Timestamp when the wallet was created

user.​wallets[].​updatedAtstring(date-time)required

Timestamp when the wallet was last updated

user.​accountAddressobject or nullDeprecatedrequired

User account address

campaignobjectrequired

The campaign that the user is claiming

campaign.​namestring or nullrequired

Campaign name

campaign.​descriptionstring or nullrequired

Campaign description

campaign.​beneficiaryAccountAddressstring or nullrequired

Campaign beneficiary account address

campaign.​startDatestring or null(date-time)required

Campaign start date, default is the current date

campaign.​endDatestring or null(date-time)required

Campaign end date

campaign.​imageUrlstring or nullrequired

img url

campaign.​externalUrlstring or nullrequired

Campaign url

campaign.​idstringrequired

Campaign id

campaign.​isActivebooleanrequired

Campaign isActive

Default false
campaign.​isTestnetboolean

Campaign isTestnet, this means that the campaign is running on testnet, not mainnet

Default false
campaign.​triggerobject or nullrequired

Campaign trigger: what triggers the campaign, and what are the conditions for the trigger to be activated

campaign.​trigger.​namestringrequired

Campaign trigger name

campaign.​trigger.​descriptionstring

Campaign trigger description

campaign.​trigger.​maxPerDaynumber or null

DEPRECATED - use maxPerDayPerUser: Campaign trigger max per day

campaign.​trigger.​maxPerDayPerUsernumber or null

Campaign trigger max per day per user

campaign.​trigger.​maxPerUsernumber or null

Campaign trigger max per user

campaign.​trigger.​minCooldownSecondsnumber or null

Campaign trigger min cooldown seconds

campaign.​trigger.​maxGeoDistanceInMetersnumber or null

Campaign trigger max geo distance to Business in meters

campaign.​trigger.​requiredUserInfostring or null

Campaign trigger required user info

campaign.​trigger.​triggerTypestring

Campaign trigger type

Enum"CLAIM_BY_USER""CLAIM_BY_SYSTEM""CLAIM_BY_BUSINESS"
campaign.​trigger.​maxMultipliernumber or null

Campaign trigger max multiplier

campaign.​trigger.​completionThresholdnumber or null

Campaign trigger completion threshold. This indicates the number of completions required before the reward is granted

campaign.​trigger.​maxTotalnumber or null

Campaign trigger max total completions across all users

campaign.​trigger.​maxPerDayTotalnumber or null

Campaign trigger max total completions per day across all users

campaign.​trigger.​conditionsArray of objects(CampaignTriggerConditionDTO)

Campaign trigger conditions

campaign.​trigger.​sourceLogicstring

Source logic type defining how multiple trigger sources combine to activate the flow

Default "any"
Value"any"
campaign.​trigger.​idstringrequired

Campaign trigger id

campaign.​tokenUnitsArray of objects(TokenUnitDTO)required
Array [
campaign.​tokenUnits[][].​idstringrequired

Token unit id

campaign.​tokenUnits[][].​tokenobjectrequired

TokenDTO object

campaign.​tokenUnits[][].​token.​idstringrequired

Id of the token

campaign.​tokenUnits[][].​token.​contractAddressstringrequired

Address of the token

campaign.​tokenUnits[][].​token.​metadataArray of objects(TokenMetadataDTO)

Metadata of the token, this is optional and can be null in case of Point token

campaign.​tokenUnits[][].​token.​abiobjectrequired

this is the abi of the contract, this is the interface of the contract to interact with it

campaign.​tokenUnits[][].​token.​chainIdnumberrequired

this is the chain id of the chain where the token is deployed

campaign.​tokenUnits[][].​token.​abiUrlobjectrequired

this is the url of the abi of the contract, to be used to fetch the abi of the contract

campaign.​tokenUnits[][].​token.​namestring

this is the name of the token contract

campaign.​tokenUnits[][].​token.​symbolstring

this is the symbol of the token contract, this is optional and can be null

campaign.​tokenUnits[][].​token.​decimalsnumber

this is the decimals of the token. This is optional and only used for ERC20 tokens (Points)

campaign.​tokenUnits[][].​token.​isActivebooleanrequired

This can be used to enable or disable the token

campaign.​tokenUnits[][].​token.​isGallerybooleanrequired

This can be used to enable or disable the token for gallery

campaign.​tokenUnits[][].​token.​typestringrequired

This is the underlying web3 native type of the token contract

Enum"ERC20""ERC1155""ERC721"
campaign.​tokenUnits[][].​tokenMetadataIncrementalIdnumber or null

token metadata incremental id for the token unit, this is used to identify the specific token metadata that should be minted

campaign.​tokenUnits[][].​amountnumberrequired

Token unit amount is the amount of tokens that the user will receive when aquiring the token unit

campaign.​tokenUnits[][].​maxAmountnumber or null

Token unit max amount, this is the maximum amount of tokens that the user can receive when aquiring the token unit. This is relevant e.g. in campaigns where a user may receive token units per revenue spent etc

]
campaign.​businessEngagementsArray of objects(CampaignBusinessEngagementDTO)required

Campaign businesses: what businesses are involved in the campaign

campaign.​businessEngagements[].​idstringrequired

id

campaign.​businessEngagements[].​shortDescriptionnumber or nullrequired

A short description of the business engagement with indications what to do etc

campaign.​businessEngagements[].​businessesArray of objects(BusinessDTO)required

businesses

campaign.​businessEngagements[].​businesses[].​idstringrequired

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

campaign.​businessEngagements[].​businesses[].​emailobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​accountAddressobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​businessLegalNameobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​displayNameobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​descriptionobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​shortDescriptionobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​websiteUrlobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​imageUrlobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​streetAddressobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​cityobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​postalCodeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​coordsLatitudeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​coordsLongitudeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​businessTypeobject or nullrequired

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

campaign.​businessEngagements[].​businesses[].​businessType.​idnumber

Business type id

campaign.​businessEngagements[].​businesses[].​businessType.​namestring or nullrequired

Business type name

campaign.​businessEngagements[].​businesses[].​businessType.​descriptionstring or nullrequired

Business type description

campaign.​businessEngagements[].​businesses[].​businessType.​codestring or nullrequired

Business type code

campaign.​businessEngagements[].​businesses[].​businessType.​iconUrlstring or nullrequired

Business type icon url

campaign.​businessEngagements[].​businesses[].​isActivebooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canMintTokenbooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canChargeTokenbooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canManageUsersbooleanrequired

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

campaign.​businessEngagements[].​businesses[].​canReceiveDonationbooleanrequired

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

campaign.​businessEngagements[].​campaignIdstringrequired

Campaign id

campaign.​businessEngagements[].​maxPerBusinessnumber or nullrequired

max per business, the maximum number of times a user can engage with the buisness in the campaign

campaign.​businessEngagements[].​maxPerDaynumber or nullrequired

max per day, the maximum number of times a user can engage with the buisness in the campaign per day

campaign.​businessEngagements[].​externalUrlstring or nullrequired

The external URL for the business engagement, e.g. a link to a website or app

campaign.​createdAtstring(date-time)required

create date

Default "2026-01-14T09:56:20.954Z"
campaign.​updatedAtstring or null(date-time)required

update date

Default null
campaign.​ordernumberrequired

Campaign order

Default 1
campaign.​tagsArray of stringsrequired

Campaign tags

Default []
campaign.​countryCodeRestrictionsobject

Country code restrictions as an array of strings (e.g., ["NOT_ES", "FR"])

Example: ["NOT_ES","FR"]
campaign.​triggerSourcesArray of objects(TriggerSourceDTO)required
Array [
campaign.​triggerSources[][].​typestringrequired

Type of the trigger source

Enum"QR_CODE""API_WEBHOOK"
Example: "QR_CODE"
campaign.​triggerSources[][].​namestringrequired

Human-readable name for the trigger source

Example: "Main Entrance QR Code"
campaign.​triggerSources[][].​descriptionobject or null

Optional description explaining this trigger source

Example: "QR code located at the main entrance for visitor check-in"
campaign.​triggerSources[][].​metadataobject

Type-specific configuration and settings

Example: {"tokenConfig":{"tokenId":"1"}}
campaign.​triggerSources[][].​businessIdobject or null

Reference to the business that owns this trigger source. Optional - can be tenant-wide trigger sources

Example: "business-uuid-123"
campaign.​triggerSources[][].​idstringrequired

Unique identifier for the trigger source

Example: "source-12345"
campaign.​triggerSources[][].​isActivebooleanrequired

Whether this trigger source is currently active. Inactive sources won't trigger any flows

Example: true
campaign.​triggerSources[][].​analyticsobject or null

Usage analytics and statistics for this trigger source

campaign.​triggerSources[][].​createdAtobjectrequired

Timestamp when the trigger source was created

Example: "2024-01-01T12:00:00.000Z"
campaign.​triggerSources[][].​updatedAtobjectrequired

Timestamp when the trigger source was last updated

Example: "2024-01-10T12:00:00.000Z"
]
userCountryCodestring or nullrequired

Country code of the user claiming the campaign

businessobject

The business that the user claimed the campaign for

]
Response
application/json
[ { "id": "string", "createdAt": {}, "user": { … }, "campaign": { … }, "userCountryCode": "string", "business": { … } } ]
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations