approved: false) and only becomes active after a Community Admin approves it from the dashboard — approval emits communityContractors.approved.email is globally unique, phone is unique per community, and integrations.damac.salesforceId is unique per community (→ 409 Conflict).integrations.damac namespace.curl --location '/communityContractors' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Ahmed Contracting LLC Rep",
"email": "ops@ahmed-contracting.ae",
"phone": "+971500000000",
"company": {
"companyName": "Ahmed Contracting LLC",
"tradeLicense": {
"type": "url",
"url": "https://files.example.com/license.pdf"
},
"tradeLicenseExpiryDate": "2027-03-31"
},
"integrations": {
"damac": {
"salesforceId": "a0B5g000000ABCDEAW"
}
}
}'{
"_id": "66f0a1b2c3d4e5f600000001",
"name": "Ahmed Contracting LLC Rep",
"email": "ops@ahmed-contracting.ae",
"phone": "+971500000000",
"approved": false,
"communitiesIds": [
"6840270a99ca91002185fcd6"
],
"company": {
"companyName": "Ahmed Contracting LLC",
"tradeLicense": {
"publicUrl": "https://cdn.buzz-in.co/public/communityContractors/license.pdf"
}
}
}