/
Beneficiary Types Category (API)

Beneficiary Types Category (API)

Introduction

  • Every Beneficiary Category is assigned to one or more Beneficiary Types (these are called Contact Types in the front-end and Beneficiary Types in the back-end)

  • There are currently four types of Beneficiary that can be created:

    • Person

    • Organisation

    • Animal

    • Object

  • Whenever a beneficiary is created using the API, you will need to state which type of beneficiary is being created

API Documentation

Beneficiary Types Category (Beneficiary Category and Beneficiary Types join table)

Desc: Get all beneficiary types categories

url: /beneficiary_types_categories

params: default params

response example: default response example (multiple records)

Documentation

  • Endpoint: POST /api/v2/beneficiary_types

  • Header: Token and Email

    image-20240909-042651.png
  • Request Body Format: none

  • Body : none

  • Response Format: JSON

  • Response Attributes

    • id (integer): The unique identifier.

    • name (string): Beneficiary Type name

    • updated_At (string): Last Updated

    • created_At (string) : Created At

Example Respone :

{ "page": 1, "page_size": 4, "page_count": 1, "total_count": 4, "data": [ { "id": 1, "name": "Person", "updated_at": "2020-09-28T15:19:24.310+01:00", "created_at": "2020-09-28T15:19:24.310+01:00" }, { "id": 2, "name": "Object", "updated_at": "2020-09-28T15:19:24.319+01:00", "created_at": "2020-09-28T15:19:24.319+01:00" }, { "id": 3, "name": "Organisation", "updated_at": "2020-09-28T15:19:24.324+01:00", "created_at": "2020-09-28T15:19:24.324+01:00" }, { "id": 4, "name": "Animal", "updated_at": "2021-09-11T10:04:59.074+01:00", "created_at": "2021-09-11T10:04:59.074+01:00" } ] }


Postman API Screenshot :

image-20240909-043006.png

 

Related content

Beneficiary Category API (Contacts)
Beneficiary Category API (Contacts)
More like this
Example: how to create Beneficiaries using the API
Example: how to create Beneficiaries using the API
More like this
Get all advanced custom fields API (Fields used in Contact Forms)
Get all advanced custom fields API (Fields used in Contact Forms)
Read with this
Post a Beneficiary API (Create a Contact)
Post a Beneficiary API (Create a Contact)
More like this
Beneficiary Type (API)
Beneficiary Type (API)
Read with this
Story Category Response API
Story Category Response API
More like this