Create or Update an Expenditure
This endpoint creates an individual expenditure for a client.
Headers
-
Content-Type string
-
Accept string
Path parameters
-
The uuid of the client.
-
The uuid of the parent Life Stage.
-
The uuid of the parent Life Stage Field.
Body 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 \
-X POST https://api.plannrcrm.com/api/v1/client/f6aa1670-dcf0-484e-a0c5-08590fe89a84/expenditure/dcf0-484e-a0c5-08590fe89a84-f6aa1670/dcf0-484e-a0c5-08590fe89a84-f6aa1670 \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"amount":50000,"life_stage_section_uuid":"8f4a55b8-67ce-43d3-bd6d-474cc2084653"}'
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": "8f4a55b8-67ce-43d3-bd6d-474cc2084653"
}
Response examples (200)
{
"name": "Electricity",
"uuid": "a786f40e-1e1e-4cd4-8858-370dd521d9ac",
"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-01-21T09:11:08+00:00",
"updated_at": "2025-01-21T09:11:08+00:00",
"life_stage_uuid": "c78f4dd2-1df1-48cb-bd3c-04b3c4e41538",
"life_stage_field_uuid": "f5c56c38-6036-4fe3-89f5-dbd9b3f8acd1",
"life_stage_section_uuid": "089fdad9-d4f1-4c74-aeec-985325829d06"
}