Start Salesforce Opportunity payment setup
For an eligible Salesforce Opportunity, resolves or creates the customer and bootstrap contact from Account.Email__c, provisions customer portal access, creates a durable payment setup intent, and either sends or returns the one-time link.
POST
https://api.caretlegal.net/integrations/external-clients/salesforce/opportunity-payment-setupAuthorization
Request body JSON required
Example requests
{
"source": "salesforce",
"account_id": "001xx000003DGbYAAW",
"account_name": "Example Law",
"contact_email": "owner@example.com",
"opportunity_id": "006xx000004XYZAAA4",
"stage_name": "4 - Proposal",
"mode": "send",
"create_if_missing": true,
"returnCtaLabel": "Return to Deal Room"
}{
"source": "salesforce",
"account_id": "001xx000003DGbYAAW",
"account_name": "Example Law",
"contact_email": "owner@example.com",
"opportunity_id": "006xx000004XYZAAA4",
"stage_name": "4 - Proposal",
"mode": "return_link",
"create_if_missing": true,
"Deal_Room_URL__c": "https://deal-room.example.com/opportunities/006xx000004XYZAAA4"
}