NATS4 API Add Member Note
NATS4 now supports an API function that allows you to add member notes. This lets you insert a note for your members into NATS through an automated process by running code that calls the add member note API. This function will need to send all relevant data for a member note so NATS can add the note as you would through the NATS admin.
The API function to add a member note is called add_membership_note. The arguments for this function are as follows:
- memberid -- the memberid of the member you wish to add a note to
- note -- the note that you wish to add to your member
If adding a note worked correctly, the response will be "Member Note Added". If it is not, you will recieve the error "Cannot Find Member with provided memberid"
Our NATS4 API article contains example code for using API functions, which you can build off of when implementing our add manual member API. The following is an example of some code you can use to call the API function:
// Call the SOAP method $values = Array( 'memberid' => 1551, 'note' => 'This is a note to be added to memberid 1551' ); $result = $client->call('add_membership_note',$values, 'natsapiadmin_wsdl');