diff --git a/social-registry/development/upcoming-features/fayda-id-integration.md b/social-registry/development/upcoming-features/fayda-id-integration.md index e8e324af..5ffd629f 100644 --- a/social-registry/development/upcoming-features/fayda-id-integration.md +++ b/social-registry/development/upcoming-features/fayda-id-integration.md @@ -8,7 +8,7 @@ description: WORK IN PROGRESS ## **API-1: Fetch Registration IDs** -**Route**: `/get/rids` +**Route**: `/get_ids` **Method**: GET @@ -35,7 +35,7 @@ description: WORK IN PROGRESS ## **API-2: Update Registration Information in Social Registry** -**Route**: `/update/partner` +**Route**: `/update_individual` **Method**: PUT @@ -51,25 +51,41 @@ description: WORK IN PROGRESS * `birthdate`: (String) The birthdate of the person in `YYYY-MM-DD` format. * `birth_place`: (String) The birthplace of the person. * `email`: (String) The email address of the person. -* `address`: (String) The physical address of the person. +* gender: (String) The physical address of the person. +* is\_group: (String) The physical address of the person. +* image\_1920: (String) The physical address of the person. **Example Request Body**: ```json [ { - "registrationId": "INID123456", - "faydaId": [ + "updateId": "INID123456", + "name": "Jacop", + "ids": [ { - "id_type": "fayda", - "value": "A12345678" + "id_type": "Fayda", + "value": "123456789", + "expiry_date": "2024-10-10" } ], - "name": "John Doe", + "registration_date": "2024-06-24", + "phone_numbers": [ + { + "phone_no": "+919876543210", + "date_collected": "2024-06-23" + } + ], + "email": "Jacop.email@example.com", + "address": "Jacop Address", + "given_name": "Jacop Given Name", + "addl_name": "Jacop Additional Name", + "family_name": "Jacop Family Name", + "gender": "Male", "birthdate": "1990-01-01", - "birth_place": "New York", - "email": "johndoe@example.com", - "address": "123 Main St, New York, NY 10001" + "birth_place": "Jacop Birth Place", + "is_group": false, + "image_1920":"/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy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2jAzxURXnpQBXxzjFSLHipAvPSnbcGgCMU4dacFBp6oAaTYWOqLcZqIOSTTN3OKQGuo8cmVic04HgnrUG7BrU0608yJ5WGQKTlyq7NKcOeSijW0G7h+zRrtG9zWjNZxo73CjDMK5WFza38LocKG6V082ogQJ8uc+lcM5KWt9T26UXFWS0AOroVJwwHFYktvciUyo53g5xV65DRgXCH5cYIqKC+RlOetZu8Zam0ZWWhima+kuS5JBLYOauP5mz5W+arZkR9/y45yDWTK01seTuVjwauTdTRLVEytG7Y+83m1csfmPWqdhckfJnJ7VedPtNoVbgsKwHiewlDbsgHIqYK+7E7cp1EK+chY/LjimySLGdnU4rC03XDNfCJ1baDgnHFbM6rJKZF59Kda1kxQjJN3IkctJtx8hFQeUocp+IqOa7NtIFK8HpUoxNIXU87aUHZ+Q5xuiCWDBqAwjmrjsScHrULmukwuVNhU4qOWLchq1kEnNIx4IFMZn+WDRsqU4pOtIREFpdlSbadjigRVeOoGTnNXWGaiKYFLcGVtvNG05qXbzRimIiwaeq+tKVPWnDpSEf/Z" } ] ``` @@ -80,10 +96,44 @@ Example ```json [ { - "faydaId": "A12345678", - "registrationId": "INID123456", - "status": "Success", - "message": "Partner data's updated successfully" + "id": 71, + "name": "test", + "reg_ids": [ + { + "id": 70, + "id_type_as_str": "fayda", + "value": "123456789", + "expiry_date": "2024-10-10" + }, + { + "id": 5, + "id_type_as_str": "new", + "value": "INID123456", + "expiry_date": "2024-06-25" + } + ], + "is_group": false, + "registration_date": "2024-06-23", + "phone_number_ids": [ + { + "id": 56, + "phone_no": "+919876543210", + "phone_sanitized": "+919876543210", + "date_collected": "2024-06-23" + }, + + ], + "email": null, + "address": null, + "create_date": "2024-06-18T13:54:00.631383", + "write_date": "2024-06-24T10:51:13.943845", + "given_name": "Test", + "addl_name": null, + "family_name": "Test Family Name", + "gender": null, + "birthdate": null, + "age": "34", + "birth_place": null } ] ```