Create or 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.
-
lifeStageField_uuid
string Required The uuid of the parent Life Stage Field.
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}/{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":"3169cb88-555f-4319-8644-bb88c5b6d96d"}'
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": "3169cb88-555f-4319-8644-bb88c5b6d96d"
}
Response examples (200)
{
"name": "Electricity",
"uuid": "ec44108a-71d7-40dd-ac46-3f8082e2a53b",
"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-04-22T13:44:17+01:00",
"updated_at": "2025-04-22T13:44:17+01:00",
"life_stage_uuid": "fc0cd19f-a9d0-451e-901b-035bbb70e00b",
"life_stage_field_uuid": "87d45b82-7e84-431e-abd3-a477108e06b8",
"life_stage_section_uuid": "a304b5dd-18f7-40b2-a48f-be5eece8f290"
}