Create or Update an Expenditure

POST /api/v1/client/{client_uuid}/expenditure/{lifeStage_uuid}/{lifeStageField_uuid}

This endpoint creates an individual expenditure for a client.

Headers

Path parameters

application/json

Body Required

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
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":"fe71542e-c460-4dce-b545-253b2cd59a37"}'
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": "fe71542e-c460-4dce-b545-253b2cd59a37"
}
Response examples (200)
{
  "name": "Electricity",
  "uuid": "e377cec7-2c5c-4d8e-9520-da31a9741aec",
  "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-17T11:18:29+00:00",
  "updated_at": "2025-01-17T11:18:29+00:00",
  "life_stage_uuid": "d285d07f-ab66-4716-b0fd-714a909e73d2",
  "life_stage_field_uuid": "ca3fa6f3-52fc-440d-ba3c-1380496fb094",
  "life_stage_section_uuid": "51cd27e4-8938-48cc-b1cd-4989b78fad31"
}