Posting Instruction for Home Services Roofing v1 - 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 Reliable Roof!
Need a roof repair, replacement, or new installation? Explore roofing options for your home and connect with roofing professionals.
✔ Roof Repair – Leaks, damage, and worn roofing
✔ Roof Replacement – Replace an aging or damaged roof
✔ New Roof Installation – Options for your home and project
✔ Multiple Materials – Shingles, metal, tile, slate, and more
🏠 Repair or Replace Your Roof
🔨 Connect With Roofing Professionals
⚡ Quick & Simple Request Process
👉 Tell Us About Your Roofing Project Today!
By clicking **“Get Started,”** I expressly consent to receive calls and text messages regarding roofing products and services from [Company Name] and the roofing service providers and marketing partners identified in the Marketing Partners list at the telephone number I provided.
I understand that these communications may be made using automated technology, an automatic telephone dialing system, artificial or prerecorded voice messages, and SMS/text messages, where permitted by applicable law, even if my telephone number is listed on a federal, state, or company-specific Do Not Call list.
I understand that my consent is **not a condition of purchasing any goods or services.** Message and data rates may apply. Message frequency may vary. I may revoke my consent at any time.
Adcopy
🏠 Protect Your Home With a Reliable Roof!
Need a roof repair, replacement, or new installation? Explore roofing options for your home and connect with roofing professionals.
✔ Roof Repair – Leaks, damage, and worn roofing
✔ Roof Replacement – Replace an aging or damaged roof
✔ New Roof Installation – Options for your home and project
✔ Multiple Materials – Shingles, metal, tile, slate, and more
🏠 Repair or Replace Your Roof
🔨 Connect With Roofing Professionals
⚡ Quick & Simple Request Process
👉 Tell Us About Your Roofing Project Today!
TCPA
By clicking **“Get Started,”** I expressly consent to receive calls and text messages regarding roofing products and services from [Company Name] and the roofing service providers and marketing partners identified in the Marketing Partners list at the telephone number I provided.
I understand that these communications may be made using automated technology, an automatic telephone dialing system, artificial or prerecorded voice messages, and SMS/text messages, where permitted by applicable law, even if my telephone number is listed on a federal, state, or company-specific Do Not Call list.
I understand that my consent is **not a condition of purchasing any goods or services.** Message and data rates may apply. Message frequency may vary. I may revoke my consent at any time.
Banner To use
Other Details
Nesciunt non fuga et omnis.
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: 6575
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
zip
PostalCode
5 digits e.g. 01561
REQUIRED
Zip
must be a 5-digit number in the format 12345
tcpa_text
Text
Any Text
REQUIRED
TCPA Text
must be between 1 and 500 characters.
ipaddress
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)
created_date
DateTime
yyyy-mm-dd hh:mm:ss (24 hour format)
REQUIRED
Created Date
must be a valid datetime in 24 hour format yyyy-mm-dd hh:mm:ss
work_type
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Work Type
work_type Accepted Values
Label
Value
Replace
Replace
source
Text
Any Text
REQUIRED
Source
must be between 1 and 500 characters.
test_mode
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Test Mode
test_mode Accepted Values
Label
Value
true
true
false
false
home_owner
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Homeowner
home_owner 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": "6575",
"rcm_aff_id": "1",
"rcm_aff_sub": "mysub1",
"zip" : "01561" ,
"tcpa_text" : "Any Text" ,
"ipaddress" : "192.168.1.1" ,
"created_date" : "1980-12-21 23:58:59" ,
"work_type" : "see the list of allowed value" ,
"source" : "Any Text" ,
"test_mode" : "see the list of allowed value" ,
"home_owner" : "see the list of allowed value"
}
Ping Responses
All responses are sent back in JSON format. There are 2 possible responses:
rejected, success.
Ping Rejected response
{
"rcm_campaign_id": "6575",
"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": "6575",
"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;"
}
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: 6575
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
zip
PostalCode
5 digits e.g. 01561
REQUIRED
Zip
must be a 5-digit number in the format 12345
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
tcpa_text
Text
Any Text
REQUIRED
TCPA Text
must be between 1 and 500 characters.
ipaddress
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)
created_date
DateTime
yyyy-mm-dd hh:mm:ss (24 hour format)
REQUIRED
Created Date
must be a valid datetime in 24 hour format yyyy-mm-dd hh:mm:ss
ping_id
Text
Any Text
REQUIRED
Ping Id
must be between 1 and 500 characters.
phone
Phone
1234567890
REQUIRED
Phone
must be a 10-digit number in the format 1234567890.
home_owner
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Homeowner
home_owner Accepted Values
Label
Value
true
1
false
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.
address
Text
Any Text
REQUIRED
Address
must be between 1 and 500 characters.
user_agent
Text
Any Text
REQUIRED
Browser User Agent
must be between 1 and 500 characters.
work_type
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Work Type
work_type Accepted Values
Label
Value
Replace
Replace
source
Text
Any Text
REQUIRED
Source
must be between 1 and 500 characters.
material
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Material
material Accepted Values
Label
Value
Clay
Clay
Wood
Wood
Metal
Metal
Slate
Slate
Asphalt
Asphalt
test_mode
MultipleChoice2
Multiple Choices, can select only one answer
REQUIRED
Test Mode
test_mode 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": "6575",
"rcm_aff_id": "1",
"rcm_aff_sub": "mysub1",
"zip" : "01561" ,
"xxTrustedFormCertUrl" : "https://example.com" ,
"tcpa_text" : "Any Text" ,
"ipaddress" : "192.168.1.1" ,
"created_date" : "1980-12-21 23:58:59" ,
"ping_id" : "Any Text" ,
"phone" : "1234567890" ,
"home_owner" : "see the list of allowed value" ,
"first_name" : "John" ,
"last_name" : "Smith" ,
"email" : "burt@testmail.com" ,
"address" : "123 main street" ,
"user_agent" : "Any Text" ,
"work_type" : "see the list of allowed value" ,
"source" : "Any Text" ,
"material" : "see the list of allowed value" ,
"test_mode" : "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": "6575",
"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": "6575",
"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;"
}
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: 6575
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
Posting leads
We only accept POST HTTP requests. Requests can be sent either
as
FORM or JSON.
All responses are sent back in JSON format. There are 2 possible responses:
rejected, success.
Direct Post Rejected response
{
"rcm_campaign_id": "6575",
"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": "6575",
"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;"
}
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."
}