Loading…
Loading…
Create a ManTech business for the signed-in user and store tax identifiers on it. The credential is the Firebase ID token from Authentication, including phone OTP. A developer API key does not call these routes.
POST /api/v1/identity/businesses creates the business and makes the caller the owner. displayName and businessType are required.GET /api/v1/identity/businesseslists the caller's businesses.GET /api/v1/businesses/{businessId}/effective-permissions returns the caller's role on that business.Role and attribute checks run inside the platform when a route needs them. They are not a separate marketplace API.
curl -X POST "https://mantechstudio.in/api/v1/identity/businesses" \
-H "Authorization: Bearer <idToken>" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: create-acme-001" \
-d '{ "displayName": "Acme Traders", "legalName": "Acme Traders Pvt Ltd", "businessType": "PRIVATE_LIMITED", "country": "IN" }'type is GSTIN, PAN, TAN, CIN, LLPIN, or UDYAM. The number is checked for shape. GSTN, MCA, and Udyam are not contacted.
curl -X POST "https://mantechstudio.in/api/v1/identity/businesses/<businessId>/tax-registrations" \
-H "Authorization: Bearer <idToken>" \
-H "Content-Type: application/json" \
-d '{ "type": "GSTIN", "number": "27AAAAA0000A1Z5" }'