Update an Expenditure
This endpoint creates an individual expenditure for a client.
Headers
-
Content-Type
string -
Accept
string
Path parameters
-
client_uuid
string Required The uuid of the client.
-
lifeStage_uuid
string Required The uuid of the parent Life Stage.
-
expenditure_uuid
string Required
Body
Required
-
amount
integer Required The amount of the expenditure in pennies.
-
life_stage_section_uuid
string The life stage section UUID.
POST
/api/v1/client/{client_uuid}/expenditure/{lifeStage_uuid}/custom/{expenditure_uuid}
curl \
--request POST 'https://api.plannrcrm.com/api/v1/client/f6aa1670-dcf0-484e-a0c5-08590fe89a84/expenditure/dcf0-484e-a0c5-08590fe89a84-f6aa1670/custom/expenditure_uuid' \
--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":"93d6d5ad-e850-47d6-bbb4-ed22ec73f52a"}'
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": "93d6d5ad-e850-47d6-bbb4-ed22ec73f52a"
}
Response examples (200)
{
"name": "Electricity",
"uuid": "6e11fb87-0b8f-4b00-ae59-d3c9536f517e",
"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-05-14T18:27:12+01:00",
"updated_at": "2025-05-14T18:27:12+01:00",
"life_stage_uuid": "34678d3d-eb74-4385-9ad3-3b28d468fc9c",
"life_stage_field_uuid": "55e38786-5720-4b46-a431-569c326ea761",
"life_stage_section_uuid": "78f07e49-4874-4290-a3a9-12a42e6515d8"
}