Closed johnsmithm closed 3 years ago
if we have an existing beneficiary add 'beneficiary' key to the payload with the value being the id of the existing beneficiary, otherwise add the beneficiary fields to the payload.
A dictionary representing the user request details. example1 { "beneficiary": "123456", "type":"grocery", "status": "new", "secret": "345%443$$", "urgent": false, "comments": "string", "has_symptoms": false } example2 { "beneficiary": "123456", "type":"grocery", "status": "new", "secret": "345%443$$", "urgent": false, "comments": "string", "has_symptoms": false, "first_name": "str", "last_name": "str", "phone": "68633333", "landline": "68338333", "age": 60, "zone": "botanica", "address": "dacia" }
if we have an existing beneficiary add 'beneficiary' key to the payload with the value being the id of the existing beneficiary, otherwise add the beneficiary fields to the payload.