Get all lookups

GET /api/v1/lookups

Query parameters

  • Filter by a comma separated list of UUIDs.

  • Filter by a comma separated list of lookup types.

  • sort string

    Field to sort by. Valid fields are [created_at]. Negative sign to denote DESC. Defaults to 'created_at'.

  • per_page integer

    Number of results to return with pagination (Default 15. Max 500).

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
GET /api/v1/lookups
curl \
 -X GET https://api.plannrcrm.com/api/v1/lookups \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
  "data": [
    {
      "type": "provider_statement_mapping",
      "uuid": "f4a70468-bcd6-4706-a265-4b6a6b2d4607",
      "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": "fa0d0f68-fc37-403c-a58b-bd06dc16c158",
      "returnable_type": "plan",
      "returnable_uuid": "cb39a0c1-4897-4650-8116-9fb1d7caec22",
      "lookupable_value": "J Bloggs Plan",
      "returnable_value": "example"
    }
  ]
}