PT EN

Pedidos de ligação

URL base: $CONSUMER_API

Pedir uma ligação

Registos

POST /connection-applications

Submit a consumer connection application through the compatibility path

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

Corpo application/json

property_idstring · obrigatório
customer_idstring · opcional

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

categorystring · opcional

um de residential, commercial, industrial, institutional, government

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

Devolve

201 Connection application submitted

Erros 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."
}'
Resposta 201

Connection application submitted