Connection applications

Base URL: $CONSUMER_API

Create consumer connection application

Logs

POST /connection-applications

Submit a consumer connection application through the compatibility path

Alias of POST $CONSUMER_API/connections. Authorization and applicant resolution are identical.

Body application/json

property_idstring · required
customer_idstring · optional

Ignored for consumer requests; customer is resolved from the caller's account membership.

categorystring · optional

one of residential, commercial, industrial, institutional, government

diameter_mminteger · optional
pipe_diameter_mminteger · optional
pipe_materialstring · optional
pressure_zone_idstring · optional
gps_coordinatesstring · optional
addressstring · optional
notesstring · optional

Returns

201 Connection application submitted

Errors 403 · 404

curl -X POST "$CONSUMER_API/connection-applications" \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
  "property_id": "prp_2ZbuIh1k2RvWMVPQCJD2yPrsOJ3",
  "customer_id": "cus_2UuXtOGTHWKlvkoF5so5Joi3Hck",
  "category": "residential",
  "diameter_mm": 1,
  "pipe_diameter_mm": 1,
  "pipe_material": "pipe material",
  "pressure_zone_id": "pre_2Ww5XCYxHs6jv2K53SI3fu47RkI",
  "gps_coordinates": "gps coordinates",
  "address": "Av. Julius Nyerere 1420, Maputo",
  "notes": "Leitura confirmada no local."
}'
Response 201

Connection application submitted