Skip to content

Instantly share code, notes, and snippets.

@elliotlarson
Last active January 20, 2026 23:17
Show Gist options
  • Select an option

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

Select an option

Save elliotlarson/df0f5ad87869804cf9360b0f2da892d1 to your computer and use it in GitHub Desktop.
API V4 Test: Non-US project with correct field name (non_usa_postal_code) - Should return 201
{
"_comment": "Test 1: Non-US project with CORRECT field name (non_usa_postal_code) - Expected: 201 Created",
"_note": "Replace USER_EMAIL_HERE with a valid user email that has granted partner access. Replace panel.id with a valid panel ID from your environment.",
"project": {
"name": "Test Canadian Project - Correct Field",
"street": "100 Queen Street West",
"city": "Toronto",
"state": "ON",
"country": "CA",
"non_usa_postal_code": "M5H 2N2",
"asce": "7-16",
"riskCategory": "II",
"railPlatform": "xr",
"panelFinish": "black",
"endClamp": "efo",
"termsOfServiceAcceptedAt": "2024-01-15T10:30:00Z",
"discount": 0.0,
"user": {
"email": "USER_EMAIL_HERE"
},
"panel": {
"id": "PANEL_ID_HERE"
},
"projectSite": {
"lat": 43.6532,
"lng": -79.3832
},
"environmental": {
"snowLoad": 30,
"windSpeed": 115,
"windExposure": "B",
"siteElevation": 100,
"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,
"qmConduitMountPenetrationFlashingForCompShingle": true,
"roofShape": "hip",
"railCutting": true,
"availableLengths": [168, 204]
},
"roofPlanes": [
{
"height": 15,
"rafterSpacing": 16,
"roofSlope": 22,
"roofSections": [
{
"portrait": false,
"layout": {
"rows": 3,
"columns": 8,
"design": "111111111111111111111111"
}
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment