Seccl - Store an adviser node association

POST /api/v1/addons/seccl/{addon}/associate-node

Headers

Path parameters

application/json

Body Required

  • associations array[string] Required

    Associations to be created. Each association should have adviser_uuid and SECCL node_ids.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
POST /api/v1/addons/seccl/{addon}/associate-node
curl \
 -X POST https://api.plannrcrm.com/api/v1/addons/seccl/addon/associate-node \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -d '{"associations":[{"node_ids":{"type":"array","example":["1234","321"],"required":true,"description":"SECCL Node IDs"},"adviser_uuid":{"type":"string","example":"6b09f1fb-8074-493c-9256-5df72ac297a7","required":true,"description":"Adviser UUID"}}]}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "associations": [
    {
      "node_ids": {
        "type": "array",
        "example": [
          "1234",
          "321"
        ],
        "required": true,
        "description": "SECCL Node IDs"
      },
      "adviser_uuid": {
        "type": "string",
        "example": "6b09f1fb-8074-493c-9256-5df72ac297a7",
        "required": true,
        "description": "Adviser UUID"
      }
    }
  ]
}
Response examples (200)
{
  "type": "provider_statement_mapping",
  "uuid": "2ecb70d5-9eab-4ce8-810b-4eb64d7303b7",
  "created_at": "2024-10-16T11:10:17+01:00",
  "updated_at": "2024-10-16T11:10:17+01:00",
  "return_json": {
    "key_1": "value_1",
    "key_2": "value_2"
  },
  "lookup_value": "zAbWeFVJ:Bloggs J",
  "return_float": 70.35,
  "return_string": "Consectetur officia labore",
  "lookupable_type": "provider",
  "lookupable_uuid": "b7e4f99d-28d3-4e5a-9769-fc42ff188f7f",
  "returnable_type": "plan",
  "returnable_uuid": "8966b0c0-71b0-45f1-844b-8b4b2bb7b065",
  "lookupable_value": "J Bloggs Plan",
  "returnable_value": "example"
}