Posting Instruction for Home Services Roofing v2 - API
Affiliate API Tech Specs Documentation
This document provides all the information needed to successfully
process leads for this campaign.
Sample Creative
🏠 Protect Your Home with a Strong, Reliable Roof!
Keep your home safe and looking its best with roofing solutions designed for durability, protection, and peace of mind:
✔ Roof Replacement – Upgrade your old roof with high-quality materials
✔ Roof Repair – Fix leaks, storm damage, and worn shingles quickly
✔ New Roof Installation – Built to protect your home for years to come
✔ Roof Inspections – Identify issues before they become costly repairs
✔ Storm Damage Restoration – Restore your roof after wind and hail damage
Whether you need a simple repair, a complete replacement, or protection after severe weather — we've got you covered.
🏠 Quality Roofing Materials
⚒ Professional Installation
⭐ Built to Last
👉 Get your FREE roofing quote today and protect your home with confidence!
Don't wait — invest in a stronger, safer roof today.
Here's a sample TCPA
By clicking Submit, I agree to be contacted by phone, SMS, and email regarding home improvement services, including through automated technology, and I consent to the Terms and Privacy Policy.
You may also use your website's current TCPA if available.
Adcopy
🏠 Protect Your Home with a Strong, Reliable Roof!
Keep your home safe and looking its best with roofing solutions designed for durability, protection, and peace of mind:
✔ Roof Replacement – Upgrade your old roof with high-quality materials
✔ Roof Repair – Fix leaks, storm damage, and worn shingles quickly
✔ New Roof Installation – Built to protect your home for years to come
✔ Roof Inspections – Identify issues before they become costly repairs
✔ Storm Damage Restoration – Restore your roof after wind and hail damage
Whether you need a simple repair, a complete replacement, or protection after severe weather — we've got you covered.
🏠 Quality Roofing Materials
⚒ Professional Installation
⭐ Built to Last
👉 Get your FREE roofing quote today and protect your home with confidence!
Don't wait — invest in a stronger, safer roof today.
TCPA
Here's a sample TCPA
By clicking Submit, I agree to be contacted by phone, SMS, and email regarding home improvement services, including through automated technology, and I consent to the Terms and Privacy Policy.
You may also use your website's current TCPA if available.
Optimizing by local time zone rather than a single national schedule:
Eastern Time: 8 AM–8 PM
Central Time: 8 AM–8 PM
Mountain Time: 8 AM–8 PM
Pacific Time: 8 AM–8 PM
Dayparting to prioritize:
* Tuesday to Thursday, 9 AM to 2 PM (highest-intent traffic)
* Monday, 9 AM to 2 PM
* Weekday Evenings, 6 PM to 8 PM
* Saturday mornings 8 AM to 12PM
Posting Methods
We offer two posting methods:
Direct Post
The simplest method. You submit the complete lead data in a single request and receive a final commission amount if your lead is accepted and placed with one of our partners.
Ping/Post
An advanced method that requires two server calls.
First, you send a ping request to our system using non-identifying lead information to check availability and receive an estimated bid price if coverage is available.
Important: A successful ping does not guarantee that we will purchase the lead. The lead must still pass additional validation checks, including duplicate detection and other verification requirements, before a final purchase decision is made.
Ping Instructions
Fields
The following fields will be captured by this campaign. For examples of how to submit these
fields, please see the examples below.
Field Name
Type
Format
Required
Label
Description
rcm_campaign_id
Numeric
1234
REQUIRED
Campaign ID
Must be set to: 6355
rcm_aff_id
Numeric
1234
REQUIRED
Affiliate ID
Ask this value from your Account Manager e.g. 3417
rcm_aff_sub
Text
Any Text
OPTIONAL
Affiliate Sub ID
pass here your subids e.g. mysubid1
ip_address
IpAddress
Both IpV4AndV6 e.g. 192.168.1.1 or 2001:0db8:85a3:0000:0000:8a2e:0370:7334
REQUIRED
Ip Address
must be a valid Ip Address in Ipv4 format (e.g. 192.168.1.1) or IPv6 Format (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334)
state
State
US States e.g. CA, TX
REQUIRED
State
must be a valid U.S. state abbreviation (e.g., CA, TX).
zip_code
PostalCode
5 digits e.g. 01561
REQUIRED
Zip Code
must be a 5-digit number in the format 12345
user_agent
Text
Any Text
REQUIRED
Browser User Agent
must be between 1 and 500 characters.
unique_id
Text
Any Text
REQUIRED
Unique ID
must be between 1 and 500 characters.
test_lead
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Test Lead
test_lead Accepted Values
Label
Value
True
True
False
False
source_url
Url
With Protocol e.g. http:// or https://
REQUIRED
Source URL
must be a valid Url with protocol e.g. http://example.com or https://example.com
Page where information was collected
home_owner
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Homeowner
home_owner Accepted Values
Label
Value
No
False
Yes
True
property_type
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Property Type
property_type Accepted Values
Label
Value
Commercial
Commercial
Residential
Residential
install_repair
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Install Repair
install_repair Accepted Values
Label
Value
Repair
Repair
Install
Install
product_type
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Product Type
product_type Accepted Values
Label
Value
Flat
flat
Tile
tile
Wood
wood
Metal
metal
Slate
slate
Shingles
shingles
project_start
Numeric
Any Numeric e.g. 123 or 12.45
REQUIRED
Project Start
must be a number e.g. 123, 456 or 1.2, 2.5
Amount of days until consumer is ready to start project
Posting leads
We only accept POST HTTP requests. Requests can be sent either
as
FORM or JSON.
{
"rcm_campaign_id": "6355",
"rcm_aff_id": "1",
"rcm_aff_sub": "mysub1",
"ip_address" : "192.168.1.1" ,
"state" : "CA" ,
"zip_code" : "01561" ,
"user_agent" : "Any Text" ,
"unique_id" : "Any Text" ,
"test_lead" : "see the list of allowed value" ,
"source_url" : "https://example.com" ,
"home_owner" : "see the list of allowed value" ,
"property_type" : "see the list of allowed value" ,
"install_repair" : "see the list of allowed value" ,
"product_type" : "see the list of allowed value" ,
"project_start" : "1234"
}
Ping Responses
All responses are sent back in JSON format. There are 2 possible responses:
rejected, success.
Ping Rejected response
{
"rcm_campaign_id": "6355",
"rcm_aff_id": "1",
"result": "data that will show here may vary but to determine if it is success or rejected always check the status key below",
"status": "rejected",
"pixel": null
}
Ping Success response
{
"rcm_campaign_id": "6355",
"rcm_aff_id": "1",
"result": "data that will show here may vary but to determine if it is success or rejected always check the status key below",
"status": "success",
"pixel": "success=true;"
}
A successful ping always returns "status": "success" and a valid pingId. Check the result object for a value similar to this "pingId": "2302101840_1XW0IH" .
Save this pingId, as you will need to include it when you post the lead to us. It will also return a bidprice like this "bidPrice": 25 . This is the amount we estimate you will be paid when the full lead is posted.
Testing
Please make sure to send "test_lead": "True", when submitting test leads. Sending test data as live leads may result in your account being disabled.
Once you are ready to go live, remember to change the value to "test_lead": "False",
To receive an accepted response while testing, submit your request with:
"test_lead": "True",
"zip_code": "99999"
Validation Error
A validation error occurs when the submitted data does not meet the rules defined in the posting instructions.
If validation fails, our system automatically returns a 422 Unprocessable Entity response containing all the validation errors.
Example Of Validation Error
{
"data": {
"email": [
"The email field is required."
],
"ip_address": [
"The ip address field is required."
]
},
"message": "Validation Errors",
"posting_instruction": "http://api-leaddepot.offerwings.test:8000/campaign/posting-instruction/...",
"status": "Operation failed."
}
Post Instructions
Fields
The following fields will be captured by this campaign. For examples of how to submit these
fields, please see the examples below.
Field Name
Type
Format
Required
Label
Description
rcm_campaign_id
Numeric
1234
REQUIRED
Campaign ID
Must be set to: 6355
rcm_aff_id
Numeric
1234
REQUIRED
Affiliate ID
Ask this value from your Account Manager e.g. 3417
rcm_aff_sub
Text
Any Text
OPTIONAL
Affiliate Sub ID
pass here your subids e.g. mysubid1
ip_address
IpAddress
Both IpV4AndV6 e.g. 192.168.1.1 or 2001:0db8:85a3:0000:0000:8a2e:0370:7334
REQUIRED
Ip Address
must be a valid Ip Address in Ipv4 format (e.g. 192.168.1.1) or IPv6 Format (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334)
xxTrustedFormCertUrl
Url
With Protocol e.g. http:// or https://
REQUIRED
Trusted Form Url
must be a valid Url with protocol e.g. http://example.com or https://example.com
source_url
Url
With Protocol e.g. http:// or https://
REQUIRED
Source URL
must be a valid Url with protocol e.g. http://example.com or https://example.com
first_name
Text
Any Text
REQUIRED
First Name
must be between 1 and 500 characters.
last_name
Text
Any Text
REQUIRED
Last Name
must be between 1 and 500 characters.
email
Email
Any Valid Email
REQUIRED
Email
must be a valid email address.
phone
Phone
1234567890
REQUIRED
Phone
must be a 10-digit number in the format 1234567890.
address
Text
Any Text
REQUIRED
Address
must be between 1 and 500 characters.
city
Text
Any Text
REQUIRED
City
must be between 1 and 500 characters.
state
State
US States e.g. CA, TX
REQUIRED
State
must be a valid U.S. state abbreviation (e.g., CA, TX).
zip_code
PostalCode
5 digits e.g. 01561
REQUIRED
Zip Code
must be a 5-digit number in the format 12345
home_owner
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Homeowner
home_owner Accepted Values
Label
Value
No
False
Yes
True
property_type
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Property Type
property_type Accepted Values
Label
Value
Commercial
Commercial
Residential
Residential
install_repair
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Install Repair
install_repair Accepted Values
Label
Value
Repair
Repair
Install
Install
product_type
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Product Type
product_type Accepted Values
Label
Value
Flat
flat
Tile
tile
Wood
wood
Metal
metal
Slate
slate
Shingles
shingles
user_agent
Text
Any Text
REQUIRED
Browser User Agent
must be between 1 and 500 characters.
project_start
Numeric
Any Numeric e.g. 123 or 12.45
REQUIRED
Project Start
must be a number e.g. 123, 456 or 1.2, 2.5
unique_id
Text
Any Text
REQUIRED
Unique ID
must be between 1 and 500 characters.
ping_id
Text
Any Text
REQUIRED
Ping Id
must be between 1 and 500 characters.
Ping Id sent back during the ping, only required if you are using the ping/post method
tcpa_text
Text
Any Text
REQUIRED
TCPA Text
must be between 1 and 500 characters.
Language presented and accepted by the user on your website
test_lead
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Test Lead
test_lead Accepted Values
Label
Value
True
True
False
False
Posting leads
We only accept POST HTTP requests. Requests can be sent either
as
FORM or JSON.
{
"rcm_campaign_id": "6355",
"rcm_aff_id": "1",
"rcm_aff_sub": "mysub1",
"ip_address" : "192.168.1.1" ,
"xxTrustedFormCertUrl" : "https://example.com" ,
"source_url" : "https://example.com" ,
"first_name" : "John" ,
"last_name" : "Smith" ,
"email" : "burt@testmail.com" ,
"phone" : "1234567890" ,
"address" : "123 main street" ,
"city" : "Any Text" ,
"state" : "CA" ,
"zip_code" : "01561" ,
"home_owner" : "see the list of allowed value" ,
"property_type" : "see the list of allowed value" ,
"install_repair" : "see the list of allowed value" ,
"product_type" : "see the list of allowed value" ,
"user_agent" : "Any Text" ,
"project_start" : "1234" ,
"unique_id" : "Any Text" ,
"ping_id" : "Any Text" ,
"tcpa_text" : "Any Text" ,
"test_lead" : "see the list of allowed value"
}
Post Responses
All responses are sent back in JSON format. There are 2 possible responses:
rejected, success.
Post Rejected response
{
"rcm_campaign_id": "6355",
"rcm_aff_id": "1",
"result": "data that will show here may vary but to determine if it is success or rejected always check the status key below",
"status": "rejected",
"pixel": null
}
Post Success response
{
"rcm_campaign_id": "6355",
"rcm_aff_id": "1",
"result": "data that will show here may vary but to determine if it is success or rejected always check the status key below",
"status": "success",
"pixel": "success=true;"
}
A successful post always returns "status": "success" . commissionAmount -This is the amount you earned for this transaction. redirectUrl - This is where you should redirect the consumer to as soon as possible. If you do not redirect the consumer in a timely manner you may not be paid for this lead.
Testing
Please make sure to send "test_lead": "True", when submitting test leads. Sending test data as live leads may result in your account being disabled.
Once you are ready to go live, remember to change the value to "test_lead": "False",.
To receive an accepted response while testing, submit your request with:
"test_lead": "True",,
"last_name": "pixel"
Validation Error
A validation error occurs when the submitted data does not meet the rules defined in the posting instructions.
If validation fails, our system automatically returns a 422 Unprocessable Entity response containing all the validation errors.
Example Of Validation Error
{
"data": {
"email": [
"The email field is required."
],
"ip_address": [
"The ip address field is required."
]
},
"message": "Validation Errors",
"posting_instruction": "http://api-leaddepot.offerwings.test:8000/campaign/posting-instruction/...",
"status": "Operation failed."
}
Direct Post Instructions
Fields
The following fields will be captured by this campaign. For examples of how to submit these
fields, please see the examples below.
Field Name
Type
Format
Required
Label
Description
rcm_campaign_id
Numeric
1234
REQUIRED
Campaign ID
Must be set to: 6355
rcm_aff_id
Numeric
1234
REQUIRED
Affiliate ID
Ask this value from your Account Manager e.g. 3417
rcm_aff_sub
Text
Any Text
OPTIONAL
Affiliate Sub ID
pass here your subids e.g. mysubid1
ip_address
IpAddress
Both IpV4AndV6 e.g. 192.168.1.1 or 2001:0db8:85a3:0000:0000:8a2e:0370:7334
REQUIRED
Ip Address
must be a valid Ip Address in Ipv4 format (e.g. 192.168.1.1) or IPv6 Format (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334)
xxTrustedFormCertUrl
Url
With Protocol e.g. http:// or https://
REQUIRED
Trusted Form Url
must be a valid Url with protocol e.g. http://example.com or https://example.com
first_name
Text
Any Text
REQUIRED
First Name
must be between 1 and 500 characters.
last_name
Text
Any Text
REQUIRED
Last Name
must be between 1 and 500 characters.
email
Email
Any Valid Email
REQUIRED
Email
must be a valid email address.
phone
Phone
1234567890
REQUIRED
Phone
must be a 10-digit number in the format 1234567890.
address
Text
Any Text
REQUIRED
Address
must be between 1 and 500 characters.
city
Text
Any Text
REQUIRED
City
must be between 1 and 500 characters.
state
State
US States e.g. CA, TX
REQUIRED
State
must be a valid U.S. state abbreviation (e.g., CA, TX).
zip_code
PostalCode
5 digits e.g. 01561
REQUIRED
Zip Code
must be a 5-digit number in the format 12345
user_agent
Text
Any Text
REQUIRED
Browser User Agent
must be between 1 and 500 characters.
tcpa_text
Text
Any Text
REQUIRED
TCPA Text
must be between 1 and 500 characters.
Language presented and accepted by the user on your website
test_lead
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Test Lead
test_lead Accepted Values
Label
Value
True
True
False
False
source_url
Url
With Protocol e.g. http:// or https://
REQUIRED
Source URL
must be a valid Url with protocol e.g. http://example.com or https://example.com
Page where information was collected
home_owner
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Homeowner
home_owner Accepted Values
Label
Value
No
False
Yes
True
property_type
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Property Type
property_type Accepted Values
Label
Value
Commercial
Commercial
Residential
Residential
install_repair
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Install Repair
install_repair Accepted Values
Label
Value
Repair
Repair
Install
Install
product_type
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Product Type
product_type Accepted Values
Label
Value
Flat
flat
Tile
tile
Wood
wood
Metal
metal
Slate
slate
Shingles
shingles
project_start
Numeric
Any Numeric e.g. 123 or 12.45
REQUIRED
Project Start
must be a number e.g. 123, 456 or 1.2, 2.5
Amount of days until consumer is ready to start project
Posting leads
We only accept POST HTTP requests. Requests can be sent either
as
FORM or JSON.
{
"rcm_campaign_id": "6355",
"rcm_aff_id": "1",
"rcm_aff_sub": "mysub1",
"ip_address" : "192.168.1.1" ,
"xxTrustedFormCertUrl" : "https://example.com" ,
"first_name" : "John" ,
"last_name" : "Smith" ,
"email" : "burt@testmail.com" ,
"phone" : "1234567890" ,
"address" : "123 main street" ,
"city" : "Any Text" ,
"state" : "CA" ,
"zip_code" : "01561" ,
"user_agent" : "Any Text" ,
"tcpa_text" : "Any Text" ,
"test_lead" : "see the list of allowed value" ,
"source_url" : "https://example.com" ,
"home_owner" : "see the list of allowed value" ,
"property_type" : "see the list of allowed value" ,
"install_repair" : "see the list of allowed value" ,
"product_type" : "see the list of allowed value" ,
"project_start" : "1234"
}
Direct Post Responses
All responses are sent back in JSON format. There are 2 possible responses:
rejected, success.
Direct Post Rejected response
{
"rcm_campaign_id": "6355",
"rcm_aff_id": "1",
"result": "data that will show here may vary but to determine if it is success or rejected always check the status key below",
"status": "rejected",
"pixel": null
}
Direct Post Success response
{
"rcm_campaign_id": "6355",
"rcm_aff_id": "1",
"result": "data that will show here may vary but to determine if it is success or rejected always check the status key below",
"status": "success",
"pixel": "success=true;"
}
Here's a full example of successful Direct Post response
A successful direct post always returns "status": "success" . commissionAmount -This is the amount you earned for this transaction. redirectUrl - This is where you should redirect the consumer to as soon as possible. If you do not redirect the consumer in a timely manner you may not be paid for this lead.
Testing
Please make sure to send "test_lead": "True", when submitting test leads. Sending test data as live leads may result in your account being disabled.
Once you are ready to go live, remember to change the value to "test_lead": "False",.
To receive an accepted response while testing, submit your request with:
"test_lead": "True",
"last_name": "pixel"
Validation Error
A validation error occurs when the submitted data does not meet the rules defined in the posting instructions.
If validation fails, our system automatically returns a 422 Unprocessable Entity response containing all the validation errors.
Example Of Validation Error
{
"data": {
"email": [
"The email field is required."
],
"ip_address": [
"The ip address field is required."
]
},
"message": "Validation Errors",
"posting_instruction": "http://api-leaddepot.offerwings.test:8000/campaign/posting-instruction/...",
"status": "Operation failed."
}