Create or Update an Expenditure Run in API Explorer
Ask AI
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":"c0e6f02f-3b20-4851-bd37-bbcfcd035480"}'
Request examples
{
"amount": 50000,
"life_stage_section_uuid": "c0e6f02f-3b20-4851-bd37-bbcfcd035480"
}
Response examples (200)
[
{
"uuid": "cb785d0a-03a2-43e7-b203-550f05e333f5",
"created_at": "2026-08-28T07:34:58+01:00",
"updated_at": "2026-08-28T07:34:58+01:00",
"name": "Electricity",
"section": "Housekeeping Expenses",
"amount": {
"amount": {
"example": "4000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"formatted": {
"example": "£40.00",
"description": "Money amount formatted with currency"
},
"currency": {
"example": "GBP",
"description": "Currency of the money"
}
},
"position": "1",
"life_stage_uuid": "06b14a34-4232-40ec-a372-8bd5a9420a69",
"life_stage_section_uuid": "f7a24bcd-3fd1-4028-8b19-921f50113f42",
"life_stage_field_uuid": "efd6455d-0bf0-4db7-98cd-224e17fc9523",
"accounts": "[]"
}
]
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}