Create or Update an Expenditure

POST /api/v1/client/{client_uuid}/expenditure/{lifeStage_uuid}/{lifeStageField_uuid}

This endpoint creates an individual expenditure for a client.

Headers

Path parameters

application/json

Body Required

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
POST /api/v1/client/{client_uuid}/expenditure/{lifeStage_uuid}/{lifeStageField_uuid}
curl \
 --request POST https://api.plannrcrm.com/api/v1/client/f6aa1670-dcf0-484e-a0c5-08590fe89a84/expenditure/dcf0-484e-a0c5-08590fe89a84-f6aa1670/dcf0-484e-a0c5-08590fe89a84-f6aa1670 \
 --header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 --header "Content-Type: application/json" \
 --header "Accept: application/json" \
 --data '{"amount":50000,"life_stage_section_uuid":"69d7daf4-dbe1-4b21-a8f6-687d8cbf101e"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "amount": 50000,
  "life_stage_section_uuid": "69d7daf4-dbe1-4b21-a8f6-687d8cbf101e"
}
Response examples (200)
{
  "name": "Electricity",
  "uuid": "938831fd-b54b-4276-9e87-00e7f481e265",
  "amount": {
    "amount": {
      "example": "4000",
      "description": "Money amount at their lowest denominator (for example: pennies)"
    },
    "currency": {
      "example": "GBP",
      "description": "Currency of the money"
    },
    "formatted": {
      "example": "£40.00",
      "description": "Money amount formatted with currency"
    }
  },
  "section": "Housekeeping Expenses",
  "position": "1",
  "created_at": "2025-02-20T10:13:01+00:00",
  "updated_at": "2025-02-20T10:13:01+00:00",
  "life_stage_uuid": "571afe0d-2731-417a-82ce-11943ad10a3e",
  "life_stage_field_uuid": "0cdb592f-ded9-462d-b2f1-f9b6f6c43e74",
  "life_stage_section_uuid": "2f7d4f84-b35c-40a6-8c0c-a36e5917fddb"
}