Create or Update an Expenditure
This endpoint creates an individual expenditure for a client.
Path parameters
-
The uuid of the client.
-
The uuid of the parent Life Stage.
-
The uuid of the parent Life Stage Field.
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 $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"amount":50000,"life_stage_section_uuid":"40867cb3-ca7a-4410-ba34-e9b4a7f25498"}'
Request examples
{
"amount": 50000,
"life_stage_section_uuid": "40867cb3-ca7a-4410-ba34-e9b4a7f25498"
}
Response examples (200)
{
"name": "Electricity",
"uuid": "363b45ef-b95e-4e63-b648-c53f2d763fed",
"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-06-26T11:37:04+01:00",
"updated_at": "2025-06-26T11:37:04+01:00",
"life_stage_uuid": "cf3d3304-833a-49f4-a8b1-ec4c9f391c5e",
"life_stage_field_uuid": "6df921de-0473-4281-bb98-657c31feddd5",
"life_stage_section_uuid": "7cf2977e-5ff9-4b5f-ad45-5e074472b625"
}