Skip to content

Instantly share code, notes, and snippets.

@elliotlarson
Created November 26, 2025 00:18
Show Gist options
  • Select an option

  • Save elliotlarson/f3e5160dbe060e5d2032bd38782c7f06 to your computer and use it in GitHub Desktop.

Select an option

Save elliotlarson/f3e5160dbe060e5d2032bd38782c7f06 to your computer and use it in GitHub Desktop.
API V4 Conditional Requirements - Test Payloads
{
"project": {
"name": "ASCE 7-16 Test - Complete with Roof Shape",
"street": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US",
"asce": "7-16",
"riskCategory": "II",
"railPlatform": "xr",
"panelFinish": "black",
"endClamp": "efo",
"termsOfServiceAcceptedAt": "2024-01-15T10:30:00Z",
"user": {
"email": "[email protected]"
},
"panel": {
"id": 31730
},
"projectSite": {
"lat": 37.7749,
"lng": -122.4194
},
"environmental": {
"snowLoad": 30,
"windSpeed": 115,
"windExposure": "B",
"siteElevation": 1000,
"sDs": 0.282,
"seismicDesignCategory": "C"
},
"detail": {
"roofMaterial": "cs",
"railType": "XR10",
"roofMaterialFamily": "cs",
"roofAttachment": "ff2",
"attachmentHardware": "t-bolt",
"staggeredAttachments": false,
"conduitMounts": "qm_bug_cm",
"modulesExposed": false,
"modulesEdge": false,
"specificGravity": 0.42,
"roofShape": "hip",
"railCutting": true,
"availableLengths": [168, 204]
},
"roofPlanes": [
{
"height": 15,
"rafterSpacing": 16,
"roofSlope": 22,
"roofSections": [
{
"portrait": false,
"layout": {
"rows": 2,
"columns": 4,
"design": "11111111"
}
}
]
}
]
}
}
{
"project": {
"name": "ASCE 7-16 Test - Missing Roof Shape",
"street": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US",
"asce": "7-16",
"riskCategory": "II",
"railPlatform": "xr",
"panelFinish": "black",
"endClamp": "efo",
"termsOfServiceAcceptedAt": "2024-01-15T10:30:00Z",
"user": {
"email": "[email protected]"
},
"panel": {
"id": 31730
},
"projectSite": {
"lat": 37.7749,
"lng": -122.4194
},
"environmental": {
"snowLoad": 30,
"windSpeed": 115,
"windExposure": "B",
"siteElevation": 1000,
"sDs": 0.282,
"seismicDesignCategory": "C"
},
"detail": {
"roofMaterial": "cs",
"railType": "XR10",
"roofMaterialFamily": "cs",
"roofAttachment": "ff2",
"attachmentHardware": "t-bolt",
"roofShape": null,
"staggeredAttachments": false,
"conduitMounts": "qm_bug_cm",
"modulesExposed": false,
"modulesEdge": false,
"specificGravity": 0.42,
"railCutting": true,
"availableLengths": [168, 204]
},
"roofPlanes": [
{
"height": 15,
"rafterSpacing": 16,
"roofSlope": 22,
"roofSections": [
{
"portrait": false,
"layout": {
"rows": 2,
"columns": 4,
"design": "11111111"
}
}
]
}
]
}
}
{
"project": {
"name": "Test Project",
"street": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US",
"asce": "7-10",
"riskCategory": "II",
"railPlatform": "xr",
"panelFinish": "black",
"endClamp": "efo",
"termsOfServiceAcceptedAt": "2024-01-15T10:30:00Z",
"user": {
"email": "[email protected]"
},
"panel": {
"id": 31730
},
"projectSite": {
"lat": 37.7749,
"lng": -122.4194
},
"environmental": {
"snowLoad": 30,
"windSpeed": 115,
"windExposure": "B",
"siteElevation": 1000,
"sDs": 0.282,
"seismicDesignCategory": "C"
},
"detail": {
"roofMaterial": "cs",
"railType": "XR10",
"roofMaterialFamily": "cs",
"roofAttachment": "ff2",
"attachmentHardware": "t-bolt",
"staggeredAttachments": false,
"conduitMounts": "qm_bug_cm",
"modulesExposed": false,
"modulesEdge": false,
"specificGravity": 0.42,
"railCutting": true,
"availableLengths": [168, 204]
},
"roofPlanes": [
{
"height": 15,
"rafterSpacing": 16,
"roofSlope": 22,
"roofSections": [
{
"portrait": false,
"layout": {
"rows": 2,
"columns": 4,
"design": "11111111"
}
}
]
}
]
}
}
{
"project": {
"name": "Lynx Standing Seam Test - Complete",
"street": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US",
"asce": "7-10",
"riskCategory": "II",
"railPlatform": "xr",
"panelFinish": "black",
"endClamp": "efo",
"termsOfServiceAcceptedAt": "2024-01-15T10:30:00Z",
"user": {
"email": "[email protected]"
},
"panel": {
"id": 31730
},
"projectSite": {
"lat": 37.7749,
"lng": -122.4194
},
"environmental": {
"snowLoad": 30,
"windSpeed": 115,
"windExposure": "B",
"siteElevation": 1000,
"sDs": 0.282,
"seismicDesignCategory": "C"
},
"detail": {
"roofMaterial": "metal_standing_seam",
"railType": "XR10",
"roofMaterialFamily": "metal",
"roofAttachment": "lynx_ssrc",
"attachmentHardware": "square",
"standingSeamProfile": "folding",
"standingSeamGaugeThickness": 24,
"standingSeamHeight": 1.5,
"standingSeamWidth": 0.5,
"staggeredAttachments": false,
"conduitMounts": "qm_bug_cm",
"modulesExposed": false,
"modulesEdge": false,
"railCutting": true,
"availableLengths": [168, 204]
},
"roofPlanes": [
{
"height": 15,
"rafterSpacing": 16,
"roofSlope": 22,
"roofSections": [
{
"portrait": false,
"layout": {
"rows": 2,
"columns": 4,
"design": "11111111"
}
}
]
}
]
}
}
{
"project": {
"name": "Lynx Standing Seam Test - Missing Fields",
"street": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US",
"asce": "7-10",
"riskCategory": "II",
"railPlatform": "xr",
"panelFinish": "black",
"endClamp": "efo",
"termsOfServiceAcceptedAt": "2024-01-15T10:30:00Z",
"user": {
"email": "[email protected]"
},
"panel": {
"id": 31730
},
"projectSite": {
"lat": 37.7749,
"lng": -122.4194
},
"environmental": {
"snowLoad": 30,
"windSpeed": 115,
"windExposure": "B",
"siteElevation": 1000,
"sDs": 0.282,
"seismicDesignCategory": "C"
},
"detail": {
"roofMaterial": "metal_standing_seam",
"railType": "XR10",
"roofMaterialFamily": "metal",
"roofAttachment": "lynx_ssrc",
"attachmentHardware": "square",
"staggeredAttachments": false,
"conduitMounts": "qm_bug_cm",
"modulesExposed": false,
"modulesEdge": false,
"railCutting": true,
"availableLengths": [168, 204]
},
"roofPlanes": [
{
"height": 15,
"rafterSpacing": 16,
"roofSlope": 22,
"roofSections": [
{
"portrait": false,
"layout": {
"rows": 2,
"columns": 4,
"design": "11111111"
}
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment