NATS4 API Add Member Note

From TMMwiki
Jump to: navigation, search
WSDL Cache
Add Affiliate
Add Member Note
Admin Get Adtools
Adtool Categories
Adtool Types
Affiliate Get Campaigns
Bulk Import Adtools
Decode Natscode
Expire Manual Member
Get Affiliate Campaigns
Get Affiliate Hit Data
Get Affiliate Loginids
Get Affiliate Nats Codes
Get Affiliate Payout
Get Affiliate Program Campaign List
Get Member Details
Get Member Instant Upgrade String
Get Member Package Upgrade String
Get Member Token Rebuy String
Get Member Upsell String
Get Payment Data
Get Payvia Rule
Get Profit Loss Report
Record Member Login
Search Affiliate Info
Search Member Info
Send Email API Function
Set Affiliate Admin Settings
Set Affiliate Customs
Set Affiliate Defaults
Set Affiliate Information
Set Affiliate Settings
Set Member Details
Set Payment Status
Set Payvia Rule
API Overview
GET /adtools/types
GET /adtools/categories
GET /adtools/admin
POST /adtools/importdump
GET /affiliate/hitdata
GET /affiliate/campaigns
GET /affiliate/payout
GET /affiliate/searchinfo
POST /affiliate/addaffiliate
POST /affiliate/invoice
PATCH /affiliate/setcustoms
PATCH /affiliate/setinformation
PATCH /affiliate/setadminsettings
PATCH /affiliate/setpayviainfo
PATCH /affiliate/setdefaults
PATCH /affiliate/setsettings
GET /decodenatscode
GET /member/upsellstring
GET /member/tokenrebuystring
GET /member/instantupgradestring
GET /member/packageupgradestring
GET /member/details
GET /member/cancelstring
GET /member/signupplusstring
GET /member/searchinfo
POST /member/addnote
POST /member/recordlogin
PUT /member/expiremanual
PATCH /member/setdetails
PATCH /member/setexpiration
GET /option/getrule
POST /option/addrule
PUT /option/edittext
PATCH /option/editrule
GET /payments/getpayments
PATCH /payments/setstatus
GET /payviarule
PATCH /payviarule
GET /ping
GET /profitlossreport
POST /sendemail
GET /suggestedcanceloffers

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.

Function Arguments

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');