POST api/ghl/subscription/sync

Internal endpoint for syncing subscription events to GHL contacts. Called from Stripe webhook (reviews-web) after payment or plan changes. Searches GHL contact by email, updates plan name and subscription status custom fields, and adds an event-specific tag.

Request Information

URI Parameters

None.

Body Parameters

GHLSubscriptionSyncRequest
NameDescriptionTypeAdditional information
Email

string

None.

PlanName

string

None.

AccountKey

string

None.

EventType

Event type: "payment", "upgrade", or "downgrade"

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "PlanName": "sample string 2",
  "AccountKey": "sample string 3",
  "EventType": "sample string 4"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.