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": "780d3276-d45d-4896-ba7c-a16961149137"
}'
Request examples
{
"amount": 50000,
"life_stage_section_uuid": "780d3276-d45d-4896-ba7c-a16961149137"
}
Response examples (200)
[
{
"uuid": "7f6ed5bc-e0af-4679-aec1-908d9a41c6dd",
"created_at": "2026-09-17T15:10:59+01:00",
"updated_at": "2026-09-17T15:10:59+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": "44724a2e-1ef7-4d5a-919d-e0a0a07f5778",
"life_stage_section_uuid": "e2b354d0-71d7-4023-b219-2d389b856cf5",
"life_stage_field_uuid": "4e2509ac-7646-4838-aeed-cefab8060680",
"accounts": "[]"
}
]
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}