Inbound Automation allows you to connect and automate user creation and product or course access in SCP whenever a sale occurs on an external platform such as ThriveCart, Shopify, or any other system that supports webhooks.
Step 1: Create a New Inbound Automation
Go to SCP > Inbound and click on Add Inbound Automation.
This is where you’ll configure your automation to connect with an external platform.
Step 2: Select External Platform
Under the External Platform option, choose Webhook.
This allows SCP to receive POST requests from third-party platforms.
Step 3: Get Your SCP Webhook URL
Once Webhook is selected, a unique Webhook URL will appear.
This URL must be used in your external platform’s webhook settings to send order data to SCP.
Example Webhook URL:
https://sec.membershipsitechallenge.com/scp-webhook/69820490e1850e7ddc3c9fcc66b2547ce070ca956f2ca9b907285b9338841226
Screenshot space here:
(Add screenshot showing Webhook URL field)
Step 4: Configure Platform Name
Enter a Platform Name that will also serve as the secret key for verification.
You must use the same key in your external platform (for example, in ThriveCart’s webhook secret settings).
Both values must match exactly, otherwise SCP will not process the webhook.
Step 5: Assign Product or Course Access
Select the SCP Product or Course that should be automatically granted when a webhook is received.
When SCP receives a valid webhook:
- It checks if a user exists with the provided email.
- If not, a new user account is created.
- The user is then given access to the selected course or product.
Step 6: Send the Webhook from Your External Platform
After setting up the webhook in SCP, configure your third-party platform to send a POST request to the given Webhook URL.
Required Request Format
Endpoint:
POST https://sec.membershipsitechallenge.com/scp-webhook/69820490e1850e7ddc3c9fcc66b2547ce070ca956f2ca9b907285b9338841226
Headers:
Content-Type: application/json
Body (JSON):
{
"platform_name": "Shopify",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"shipping_first_name": "John",
"custom_fields": {
"notes": "TTE"
},
"orders": [
{
"product_id": 82,
"name": "Premium Plan",
"quantity": 1,
"price": 49.99
},
{
"product_id": 202,
"name": "Extra Feature",
"quantity": 2,
"price": 19.99
}
]
}
Step 7: How SCP Handles the Webhook
Once the webhook is fired:
- SCP verifies the platform name (secret key).
- It looks up the user by the provided email.
- If the user does not exist, SCP automatically creates a new account.
- SCP grants access to the selected product or course defined in your inbound automation.
- The process completes instantly — no manual intervention required.
Screenshot space here:
(Optional screenshot showing successful webhook logs or granted access confirmation in SCP)
Webhook Parameter Reference
platform_name
Type: String
Description: The name or secret key of the platform sending the request.
Example: "Shopify"
first_name
Type: String
Description: Customer’s first name.
Example: "John"
last_name
Type: String
Description: Customer’s last name.
Example: "Doe"
email
Type: String
Description: Customer’s email address.
Example: "[email protected]"
shipping_first_name
Type: String
Description: Shipping first name, if different.
Example: "John"
custom_fields
Type: Object
Description: Optional object containing extra data like notes.
Example:
"custom_fields": {
"notes": "TTE"
}
orders
Type: Array of Objects
Description: Product details for the purchased items.
Each order object includes:
- product_id (Integer): Product ID from the external platform. Example:
82 - name (String): Product name. Example:
"Premium Plan" - quantity (Integer): Quantity purchased. Example:
1 - price (Float): Price per unit. Example:
49.99
Step 8: Test Your Integration
Use a tool such as Postman or cURL to send a test POST request to your SCP Webhook URL.
After sending, verify that:
- The user is created in SCP.
- The selected course or product is assigned correctly.
Example: Send Webhook Using PHP (cURL)
You can test or integrate the webhook directly using PHP as shown below:
<?php
// SCP Webhook URL
$url = 'https://sec.membershipsitechallenge.com/scp-webhook/69820490e1850e7ddc3c9fcc66b2547ce070ca956f2ca9b907285b9338841226';
// Webhook data
$data = [
"platform_name" => "Shopify",
"first_name" => "John",
"last_name" => "Doe",
"email" => "[email protected]",
"shipping_first_name" => "John",
"custom_fields" => [
"notes" => "Test order webhook"
],
"orders" => [
[
"product_id" => 82,
"name" => "Premium Plan",
"quantity" => 1,
"price" => 49.99
]
]
];
// Initialize cURL
$ch = curl_init($url);
// Set cURL options
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json'
]);
// Execute and get the response
$response = curl_exec($ch);
// Close connection
curl_close($ch);
// Display response
echo $response;
This example will send a properly formatted JSON payload to your SCP webhook endpoint.
If everything is configured correctly, SCP will create or update the user and grant the selected course/product access automatically.