Post Patron

Post Patron

POST /api/.../patrons

Adds new patron

Request Information

Parameters
Name Type Required Description
DtoPatronNewMembership Patron New Membership Yes Define in the request body
Request body
Example
application/json, text/json
        {
           "User3": 1,
           "NameLast": "NameLast",
           "Birthdate": "2002-02-02T00:00:00",
           "GenderID": 2,
           "User1": "S",
           "ExpirationDate": "2023-08-02T00:00:00",
           "MembershipSubscriptionYears": 1,
           "StatisticalClassCode": "MOE",
           "NotificationEmail": true,
           "NotificationMobileApp": true,
           "DraftMembershipType": true,
           "PatronCodeID": 1,
           "Fees": [{
            "Fee": 10,
            "FeeReasonCodeID": 7
           }]
        }
        

HTTP Response Codes

Code Description
200 OK. Success
400 All business validation errors
404 Record not found