- Approve or reject a business (Admin)
Sets approval status to approved or rejected. Rejected requires a reason.
- Mock serverhttps://docs.pers.ninja/_mock/swagger/businesses/{id}/approval
- https://api.pers.ninja/v2https://api.pers.ninja/v2/businesses/{id}/approval
curl -i -X PATCH \
'https://docs.pers.ninja/_mock/swagger/businesses/{id}/approval' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"status": "approved",
"reason": "string"
}'Business approval updated
The email of the business, this is unique and will be used to identify the business.
Current active signing account ID for external wallet operations
Business-owned counterfactual smart contract wallets that can receive tokens
The legal name of the business, this is the name that will be used for legal purposes.
The business registration number (e.g., company registration, VAT number, EIN)
The display name of the business, this is the name that will be shown to the public.
The description of the business, this is the description that will be shown to the public.
The short description of the business, this is the description that will be shown to the public.
The website of the business, this is the website that will be shown to the public.
The image of the business, this is the image that will be shown to the public.
The address of the business, this is the address that will be shown to the public.
Neighborhood/area name (e.g., "West Bay", "Pearl Qatar", "Lusail") - auto-populated from geocoding
The city of the business, this is the city that will be shown to the public.
The postal code of the business, this is the postal code that will be shown to the public.
The country of the business (auto-populated from geocoding if coordinates provided)
ISO 3166-1 alpha-2 country code (e.g., QA, US, AE) - auto-populated from geocoding
The latitude of the business, this is the latitude that will be shown to the public.
The longitude of the business, this is the longitude that will be shown to the public.
The business type of the business, this is the business type that will be shown to the public.
The status of the business, this is the status that will be shown to the public.
The ability to mint token for the business, this is the ability that will be shown to the public.
The ability to charge token for the business, this is the ability that will be shown to the public.
The ability to manage users for the business, this is the ability that will be shown to the public.
The ability to receive donation for the business, this is the ability that will be shown to the public.
Custom business data including Google Places information (placeID, currentOpeningHours)
{ "placeID": "ChIJN1t_tDeuEmsRUsoyG83frY4", "currentOpeningHours": { "open_now": true, "weekday_text": [ … ] } }
{ "id": "string", "email": "string", "accountAddress": "string", "currentSigningAccountId": "string", "wallets": [ { … } ], "businessLegalName": "string", "registrationNumber": "string", "displayName": "string", "description": "string", "shortDescription": "string", "websiteUrl": "string", "imageUrl": "string", "logoUrl": "string", "streetAddress": "string", "phoneNumber": "string", "neighborhood": "string", "district": "string", "city": "string", "postalCode": "string", "country": "string", "countryCode": "QA", "coordsLatitude": 0, "coordsLongitude": 0, "businessType": { "id": "string", "name": "string", "description": "string", "code": "string", "iconUrl": "string" }, "isActive": true, "approval": { "status": "pending_approval", "approvedAt": "2019-08-24T14:15:22Z", "approvedBy": "string", "rejectionReason": "string" }, "canMintToken": true, "canChargeToken": true, "canManageUsers": true, "canReceiveDonation": true, "tags": [], "customData": { "placeID": "ChIJN1t_tDeuEmsRUsoyG83frY4", "currentOpeningHours": { … } } }