Calls
User
add_product
21 min
this allows you to add products to your applicants by sending over an array of product ids the products must already be created within the product editing page before adding them private products can be created "on the spot" if desired, but this is less recommended basic parameters false true 137 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type product list parameters see the products section for more information on the product types false 204 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type true only for private products validation and troubleshooting similar to update , there are a number of behind the scenes validation actions that are occurring whenever you attempt to add a product via the api situations in which no updates occur there are three common scenarios in which an add product call will be made, but no product will be added for the user if you attempt to add a product to a user which does not exist in the project, the system will not add the product if you attempt to add a product to a user who does exist, however p id does not exist in the project, then the system will not add any product (excepting private products) finally, if you attempt to add a product to a user who does exist, however the request does not conform to the product's selection requirements, then the system will not add any product for instance if you attempt to add a product who's quota has already been filled, or which is not yet available or expired, then the system will prevent the api action one time event call curl x post "https //www regpack com/reg/api2/users/" \\ h "content type application/json" \\ h "accept application/json" \\ h "api id 15263" \\ h "api user api admin\@regpacks com" \\ h "api token cd2e514f 7gab 3cde 62fg 51abcd4e7362" \\ d '{ "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990586, "q" 1 } ] }import requests import json users endpoint = https //www regpack com/reg/api2/users/ headers = { "content type" "application/json", "accept" "application/json", "api id" "15263", "api user" "api admin\@regpacks com", "api token" "cd2e514f 7gab 3cde 62fg 51abcd4e7362", } payload = { "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990586, "q" 1 } ] } add product event json = json dumps(payload) add product event response = requests post(url=users endpoint, data=add product event json, headers=headers, timeout=10) response { "msg" "products added successfully", "cart" \[ { "reg id" "102715754", "cart id" "10006192", "p id" "1990586", "is holder product" "0", "parent product" "1990586", "session id" null, "is session product" "0", "is session subproduct" "0", "pp protected" null, "pp protected amount" "0", "session checkin total items" "0", "cat id" "81407", "base product type" "1", "zero product presentation" "0", "product present text value" "", "allow waitlist" "0", "lock after paid" "1", "lock in cart" "0", "force paid first" "0", "lock once funds allocated" "1", "session start unix" "1638338400", "session end unix" "1639634399", "disable regsurance" "0", "opt in regsurance" "0", "location" null, "internalid" null, "instructor" null, "disable time conflict" "0", "discount presented as" null, "p name" "event product", "is recurring" "0", "recurring cart parent id" null, "original session price" null, "day session final price" null, "recurring structure" null, "recurring structure custom num" "0", "recurring trigger start" null, "recurring allow user disable" "0", "recurring allow upgrade" "0", "recurring upgrade text" null, "recur total instances" "0", "recur completed instances" "0", "recurring id" null, "recurring text" "", "recurring comment" "", "recurring pause comment" "", "recurring messages" null, "recurring instances left" null, "recur on original" "0", "recur done" "0", "is recurring single" "0", "recur allow renew" "0", "recurring valid grace" null, "recur autorenew pid" "0", "recur autorenew disabled" "0", "recur autorenew instance" "0", "recur autorenew done" "0", "recur user disabled" "0", "recur pause on" null, "recur resume on" null, "recur on" "0", "recur end" "0", "recur overall end" "0", "session start date readable" "wed, dec 01st, 2021", "session end date readable" "wed, dec 15th, 2021", "session days text" null, "auto generated session name" "0", "allow partial enrollment" null, "session remarks" null, "original session product price" null, "selected session days" null, "total session days" null, "session start date" "2021 12 01", "session end date" "2021 12 15", "product total orders" "1", "product total pf" "0", "product quota ordered full" "0", "product quota paid full" "0", "special remarks" "", "product short remarks" "", "skip paidfor" 0, "q" "1", "waitlist" "0", "price" "500", "price in cart" "500", "total price" "500 00", "locked" "0", "delivered" "0", "delivered on" null, "delivered on ts" null, "paid for" "0", "paid for amount" "0", "paid for amount remark" null, "paid for additional remark" null, "pf" "0", "paid for order" "0", "cat order" "1", "product order" "19", "conn fee" "0", "tax fee" "0", "original price" null, "amount paid with discount" "0", "amount paid with incart discount" "0", "paid in full by discount" "0", "base discount remark" null, "incart discount remark" null, "total discount remark" " ", "discount product in cart" "0", "markoff discount" "0", "regsurance cart value" "0", "regsurance product" "0", "creation date" "2021 12 08 17 20 11", "cart datestamp" "1638943200", "creation date readable" "december 8th 2021", "paid on readable" null, "total order" "662 50", "total payment" "100 00", "total paid for" "0 00", "total delivered" "0 00", "first name" "kenny", "last name" "burrell", "org name" null, "discount remark" "", "p remarks" "", "in cart" "1", "in cart waitlist" "0" } ], "success" true, "user info" { "clogin id" "102715754", "group id" "100909072", "connected to" "102715737" }, "meta info" { "u name" "kenny burrell", "total forms" "6", "completed forms" "2", "total user forms" "6", "total completed user forms" "2", "total user mandatory forms" "6", "total completed user mandatory forms" "2", "total order" "662 50", "total paid" "100 00", "total balance" "562 50", "status id" "0", "status name" null, "status color" null, "application date" "dec 8th 2021 17 07", "application date raw" "2021 12 08 17 07 40", "u comments" "0", "group id" "100909072", "uid" "4085256", "clogin id" "102715754", "excluded" "0", "connected to" "102715737", "total user tags" "0", "user tag ids" null, "total non excluded children" null, "star" "0", "admin initials" null, "admin color" null, "assigned admin id" null } } complete session call curl x post "https //www regpack com/reg/api2/users/" \\ h "content type application/json" \\ h "accept application/json" \\ h "api id 15263" \\ h "api user api admin\@regpacks com" \\ h "api token cd2e514f 7gab 3cde 62fg 51abcd4e7362" \\ d '{ "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990568, "q" 1 } ] }import requests import json users endpoint = https //www regpack com/reg/api2/users/ headers = { "content type" "application/json", "accept" "application/json", "api id" "15263", "api user" "api admin\@regpacks com", "api token" "cd2e514f 7gab 3cde 62fg 51abcd4e7362", } payload = { "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990568, "q" 1 } ] } add product complete session json = json dumps(payload) add product complete session response = requests post(url=users endpoint, data=add product complete session json, headers=headers, timeout=10) response { "msg" "products added successfully", "cart" \[ { "reg id" "102715754", "cart id" "10006180", "p id" "1990568", "is holder product" "1", "parent product" "1990568", "session id" null, "is session product" "0", "is session subproduct" "0", "pp protected" null, "pp protected amount" "0", "session checkin total items" "0", "cat id" "81407", "base product type" "3", "zero product presentation" "0", "product present text value" "", "allow waitlist" "0", "lock after paid" "1", "lock in cart" "0", "force paid first" "0", "lock once funds allocated" "1", "session start unix" null, "session end unix" null, "disable regsurance" "0", "opt in regsurance" "0", "location" null, "internalid" null, "instructor" null, "disable time conflict" "0", "discount presented as" null, "p name" "session product", "is recurring" "0", "recurring cart parent id" null, "original session price" null, "day session final price" null, "recurring structure" null, "recurring structure custom num" "0", "recurring trigger start" null, "recurring allow user disable" "0", "recurring allow upgrade" "0", "recurring upgrade text" null, "recur total instances" "0", "recur completed instances" "0", "recurring id" null, "recurring text" "", "recurring comment" "", "recurring pause comment" "", "recurring messages" null, "recurring instances left" null, "recur on original" "0", "recur done" "0", "is recurring single" "0", "recur allow renew" "0", "recurring valid grace" null, "recur autorenew pid" "0", "recur autorenew disabled" "0", "recur autorenew instance" "0", "recur autorenew done" "0", "recur user disabled" "0", "recur pause on" null, "recur resume on" null, "recur on" "0", "recur end" "0", "recur overall end" "0", "session start date readable" null, "session end date readable" null, "session days text" null, "auto generated session name" "0", "allow partial enrollment" null, "session remarks" null, "original session product price" null, "selected session days" null, "total session days" null, "session start date" null, "session end date" null, "product total orders" "1", "product total pf" "0", "product quota ordered full" "0", "product quota paid full" "0", "special remarks" "", "product short remarks" "", "skip paidfor" 0, "q" "1", "waitlist" "0", "price" "0", "price in cart" "0", "total price" "0 00", "locked" "0", "delivered" "0", "delivered on" null, "delivered on ts" null, "paid for" "0", "paid for amount" "0", "paid for amount remark" null, "paid for additional remark" null, "pf" "0", "paid for order" "0", "cat order" "1", "product order" "1", "conn fee" "0", "tax fee" "0", "original price" null, "amount paid with discount" "0", "amount paid with incart discount" "0", "paid in full by discount" "0", "base discount remark" null, "incart discount remark" null, "total discount remark" " ", "discount product in cart" "0", "markoff discount" "0", "regsurance cart value" "0", "regsurance product" "0", "creation date" "2021 12 08 17 20 11", "cart datestamp" "1638943200", "creation date readable" "december 8th 2021", "paid on readable" null, "total order" "406 25", "total payment" "100 00", "total paid for" "81 25", "total delivered" "0 00", "first name" "kenny", "last name" "burrell", "org name" null, "discount remark" "", "p remarks" "", "in cart" "1", "in cart waitlist" "0" } ], "success" true, "user info" { "clogin id" "102715754", "group id" "100909072", "connected to" "102715737" }, "meta info" { "u name" "kenny burrell", "total forms" "6", "completed forms" "1", "total user forms" "6", "total completed user forms" "1", "total user mandatory forms" "6", "total completed user mandatory forms" "1", "total order" "0 00", "total paid" "100 00", "total balance" " 100 00", "status id" "0", "status name" null, "status color" null, "application date" "dec 8th 2021 17 07", "application date raw" "2021 12 08 17 07 40", "u comments" "0", "group id" "100909072", "uid" "4085256", "clogin id" "102715754", "excluded" "0", "connected to" "102715737", "total user tags" "0", "user tag ids" null, "total non excluded children" null, "star" "0", "admin initials" null, "admin color" null, "assigned admin id" null } } partial session call curl x post "https //www regpack com/reg/api2/users/" \\ h "content type application/json" \\ h "accept application/json" \\ h "api id 15263" \\ h "api user api admin\@regpacks com" \\ h "api token cd2e514f 7gab 3cde 62fg 51abcd4e7362" \\ d '{ "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990568, "q" 1, "sessions" \[ 1990569 ] } ] }import requests import json users endpoint = https //www regpack com/reg/api2/users/ headers = { "content type" "application/json", "accept" "application/json", "api id" "15263", "api user" "api admin\@regpacks com", "api token" "cd2e514f 7gab 3cde 62fg 51abcd4e7362", } payload = { "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990568, "q" 1, "sessions" \[ 1990569 ] } ] } add product partial session json = json dumps(payload) add product partial session response = requests post(url=users endpoint, data=add product partial session json, headers=headers, timeout=10) response { "msg" "products added successfully", "cart" \[ { "reg id" "102715754", "cart id" "10006181", "p id" "1990569", "is holder product" "0", "parent product" "1990568", "session id" "1990569", "is session product" "1", "is session subproduct" "0", "pp protected" null, "pp protected amount" "0", "session checkin total items" "0", "cat id" "81407", "base product type" "4", "zero product presentation" "0", "product present text value" "", "allow waitlist" "0", "lock after paid" "1", "lock in cart" "0", "force paid first" "0", "lock once funds allocated" "1", "session start unix" "1638370800", "session end unix" "1640214000", "disable regsurance" "0", "opt in regsurance" "0", "location" null, "internalid" null, "instructor" null, "disable time conflict" "0", "discount presented as" null, "p name" "session product wed, dec 01st, 2021 > wed, dec 22nd, 2021", "is recurring" "0", "recurring cart parent id" null, "original session price" "100", "day session final price" null, "recurring structure" null, "recurring structure custom num" "0", "recurring trigger start" null, "recurring allow user disable" "0", "recurring allow upgrade" "0", "recurring upgrade text" null, "recur total instances" "0", "recur completed instances" "0", "recurring id" null, "recurring text" "", "recurring comment" "", "recurring pause comment" "", "recurring messages" null, "recurring instances left" null, "recur on original" "0", "recur done" "0", "is recurring single" "0", "recur allow renew" "0", "recurring valid grace" null, "recur autorenew pid" "0", "recur autorenew disabled" "0", "recur autorenew instance" "0", "recur autorenew done" "0", "recur user disabled" "0", "recur pause on" null, "recur resume on" null, "recur on" "0", "recur end" "0", "recur overall end" "0", "session start date readable" "wed, dec 01st, 2021", "session end date readable" "wed, dec 22nd, 2021", "session days text" "\<div class=\\"session day holder\\">\<label>mon\</label>\</div>\<div class=\\"session day holder\\">\<label>tue\</label>\</div>\<div class=\\"session day holder\\">\<label>wed\</label>\</div>\<div class=\\"session day holder\\">\<label>thu\</label>\</div>\<div class=\\"session day holder\\">\<label>fri\</label>\</div>\<div class=\\"session day holder\\">\<label>\» 9 00 am 5 00 pm\</label>\</div>", "auto generated session name" "1", "allow partial enrollment" "1", "session remarks" "you are enrolled to 10 out of 16 days the price presented is a prorated price of $162 50 instead of $100 based on $16 25 avg per day ", "original session product price" "100", "selected session days" "10", "total session days" "16", "session start date" "2021 12 01", "session end date" "2021 12 22", "product total orders" "1", "product total pf" "0", "product quota ordered full" "0", "product quota paid full" "0", "special remarks" "", "product short remarks" "", "skip paidfor" 0, "q" "1", "waitlist" "0", "price" "162 5", "price in cart" "162 5", "total price" "162 50", "locked" "1", "delivered" "0", "delivered on" null, "delivered on ts" null, "paid for" "0", "paid for amount" "100", "paid for amount remark" "$100 has been allocated to this item item balance $62 50 ", "paid for additional remark" "payment transaction 6659419 for $100 made on december 8th 2021 was \<i>allocated in full\</i> to this item ", "pf" "0", "paid for order" "1", "cat order" "1", "product order" "2", "conn fee" "0", "tax fee" "0", "original price" null, "amount paid with discount" "0", "amount paid with incart discount" "0", "paid in full by discount" "0", "base discount remark" null, "incart discount remark" null, "total discount remark" " ", "discount product in cart" "0", "markoff discount" "0", "regsurance cart value" "0", "regsurance product" "0", "creation date" "2021 12 08 17 20 11", "cart datestamp" "1638943200", "creation date readable" "december 8th 2021", "paid on readable" null, "total order" "162 50", "total payment" "100 00", "total paid for" "0 00", "total delivered" "0 00", "first name" "kenny", "last name" "burrell", "org name" null, "discount remark" "", "p remarks" "", "in cart" "1", "in cart waitlist" "0" } ], "success" true, "user info" { "clogin id" "102715754", "group id" "100909072", "connected to" "102715737" }, "meta info" { "u name" "kenny burrell", "total forms" "6", "completed forms" "2", "total user forms" "6", "total completed user forms" "2", "total user mandatory forms" "6", "total completed user mandatory forms" "2", "total order" "162 50", "total paid" "100 00", "total balance" "62 50", "status id" "0", "status name" null, "status color" null, "application date" "dec 8th 2021 17 07", "application date raw" "2021 12 08 17 07 40", "u comments" "0", "group id" "100909072", "uid" "4085256", "clogin id" "102715754", "excluded" "0", "connected to" "102715737", "total user tags" "0", "user tag ids" null, "total non excluded children" null, "star" "0", "admin initials" null, "admin color" null, "assigned admin id" null } } recurring product call curl x post "https //www regpack com/reg/api2/users/" \\ h "content type application/json" \\ h "accept application/json" \\ h "api id 15263" \\ h "api user api admin\@regpacks com" \\ h "api token cd2e514f 7gab 3cde 62fg 51abcd4e7362" \\ d '{ "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990589, "q" 1, "recurring start date" "1959 08 17", "date structure" "yyyy mm dd" } ] }import requests import json users endpoint = https //www regpack com/reg/api2/users/ headers = { "content type" "application/json", "accept" "application/json", "api id" "15263", "api user" "api admin\@regpacks com", "api token" "cd2e514f 7gab 3cde 62fg 51abcd4e7362", } payload = { "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990589, "q" 1, "recurring start date" "1959 08 17", "date structure" "yyyy mm dd" } ] } add product recurring json = json dumps(payload) add product recurring response = requests post(url=users endpoint, data=add product recurring json, headers=headers, timeout=10) response { "msg" "products added successfully", "cart" \[ { "reg id" "102715754", "cart id" "10006193", "p id" "1990589", "is holder product" "0", "parent product" "1990589", "session id" null, "is session product" "0", "is session subproduct" "0", "pp protected" null, "pp protected amount" "0", "session checkin total items" "0", "cat id" "81407", "base product type" "6", "zero product presentation" "0", "product present text value" "", "allow waitlist" "0", "lock after paid" "1", "lock in cart" "0", "force paid first" "0", "lock once funds allocated" "1", "session start unix" null, "session end unix" null, "disable regsurance" "0", "opt in regsurance" "0", "location" null, "internalid" null, "instructor" null, "disable time conflict" "0", "discount presented as" null, "p name" "subscription product", "is recurring" "1", "recurring cart parent id" "10006193", "original session price" null, "day session final price" null, "recurring structure" "monthly", "recurring structure custom num" "0", "recurring trigger start" "dateadded", "recurring allow user disable" "0", "recurring allow upgrade" "0", "recurring upgrade text" null, "recur total instances" "1", "recur completed instances" "1", "recurring id" null, "recurring text" "", "recurring comment" "", "recurring pause comment" "", "recurring messages" null, "recurring instances left" "0", "recur on original" "0", "recur done" "0", "is recurring single" "1", "recur allow renew" "1", "recurring valid grace" "1", "recur autorenew pid" "1990589", "recur autorenew disabled" "0", "recur autorenew instance" "0", "recur autorenew done" "0", "recur user disabled" "0", "recur pause on" null, "recur resume on" null, "recur on" "1638943260", "recur end" "1641621540", "recur overall end" "1641621540", "session start date readable" null, "session end date readable" null, "session days text" null, "auto generated session name" "0", "allow partial enrollment" null, "session remarks" null, "original session product price" null, "selected session days" null, "total session days" null, "session start date" null, "session end date" null, "product total orders" "1", "product total pf" "0", "product quota ordered full" "0", "product quota paid full" "0", "special remarks" "", "product short remarks" "", "skip paidfor" 0, "q" "1", "waitlist" "0", "price" "50", "price in cart" "50", "total price" "50 00", "locked" "0", "delivered" "0", "delivered on" null, "delivered on ts" null, "paid for" "0", "paid for amount" "0", "paid for amount remark" null, "paid for additional remark" null, "pf" "0", "paid for order" "0", "cat order" "1", "product order" "22", "conn fee" "0", "tax fee" "0", "original price" "100", "amount paid with discount" "50", "amount paid with incart discount" "0", "paid in full by discount" "0", "base discount remark" "\<i>discount product\</i> applied you saved $50", "incart discount remark" null, "total discount remark" "\<i>discount product\</i> applied you saved $50 ", "discount product in cart" "0", "markoff discount" "0", "regsurance cart value" "0", "regsurance product" "0", "creation date" "2021 12 08 17 20 11", "cart datestamp" "1638943200", "creation date readable" "december 8th 2021", "paid on readable" null, "total order" "406 25", "total payment" "100 00", "total paid for" "81 25", "total delivered" "0 00", "first name" "kenny", "last name" "burrell", "org name" null, "discount remark" "\<i>discount product\</i> applied you saved $50", "p remarks" "", "in cart" "1", "in cart waitlist" "0" } ], "success" true, "user info" { "clogin id" "102715754", "group id" "100909072", "connected to" "102715737" }, "meta info" { "u name" "kenny burrell", "total forms" "6", "completed forms" "2", "total user forms" "6", "total completed user forms" "2", "total user mandatory forms" "6", "total completed user mandatory forms" "2", "total order" "762 50", "total paid" "100 00", "total balance" "662 50", "status id" "0", "status name" null, "status color" null, "application date" "dec 8th 2021 17 07", "application date raw" "2021 12 08 17 07 40", "u comments" "0", "group id" "100909072", "uid" "4085256", "clogin id" "102715754", "excluded" "0", "connected to" "102715737", "total user tags" "0", "user tag ids" null, "total non excluded children" null, "star" "0", "admin initials" null, "admin color" null, "assigned admin id" null } } merchandise product call curl x post "https //www regpack com/reg/api2/users/" \\ h "content type application/json" \\ h "accept application/json" \\ h "api id 15263" \\ h "api user api admin\@regpacks com" \\ h "api token cd2e514f 7gab 3cde 62fg 51abcd4e7362" \\ d '{ "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990587, "q" 1 } ] }import requests import json users endpoint = https //www regpack com/reg/api2/users/ headers = { "content type" "application/json", "accept" "application/json", "api id" "15263", "api user" "api admin\@regpacks com", "api token" "cd2e514f 7gab 3cde 62fg 51abcd4e7362", } payload = { "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990587, "q" 1 } ] } add product merchandise json = json dumps(payload) add product merchandise response = requests post(url=users endpoint, data=add product merchandise json, headers=headers, timeout=10) response { "msg" "products added successfully", "cart" \[ { "reg id" "102715754", "cart id" "10006194", "p id" "1990587", "is holder product" "0", "parent product" "1990587", "session id" null, "is session product" "0", "is session subproduct" "0", "pp protected" null, "pp protected amount" "0", "session checkin total items" "0", "cat id" "81407", "base product type" "7", "zero product presentation" "0", "product present text value" "", "allow waitlist" "0", "lock after paid" "1", "lock in cart" "0", "force paid first" "0", "lock once funds allocated" "1", "session start unix" null, "session end unix" null, "disable regsurance" "0", "opt in regsurance" "0", "location" null, "internalid" null, "instructor" null, "disable time conflict" "0", "discount presented as" null, "p name" "merchandise product", "is recurring" "0", "recurring cart parent id" null, "original session price" null, "day session final price" null, "recurring structure" null, "recurring structure custom num" "0", "recurring trigger start" null, "recurring allow user disable" "0", "recurring allow upgrade" "0", "recurring upgrade text" null, "recur total instances" "0", "recur completed instances" "0", "recurring id" null, "recurring text" "", "recurring comment" "", "recurring pause comment" "", "recurring messages" null, "recurring instances left" null, "recur on original" "0", "recur done" "0", "is recurring single" "0", "recur allow renew" "0", "recurring valid grace" null, "recur autorenew pid" "0", "recur autorenew disabled" "0", "recur autorenew instance" "0", "recur autorenew done" "0", "recur user disabled" "0", "recur pause on" null, "recur resume on" null, "recur on" "0", "recur end" "0", "recur overall end" "0", "session start date readable" null, "session end date readable" null, "session days text" null, "auto generated session name" "0", "allow partial enrollment" null, "session remarks" null, "original session product price" null, "selected session days" null, "total session days" null, "session start date" null, "session end date" null, "product total orders" "1", "product total pf" "0", "product quota ordered full" "0", "product quota paid full" "0", "special remarks" "", "product short remarks" "", "skip paidfor" 0, "q" "1", "waitlist" "0", "price" "25", "price in cart" "25", "total price" "25 00", "locked" "0", "delivered" "0", "delivered on" null, "delivered on ts" null, "paid for" "0", "paid for amount" "0", "paid for amount remark" null, "paid for additional remark" null, "pf" "0", "paid for order" "0", "cat order" "1", "product order" "20", "conn fee" "0", "tax fee" "0", "original price" "50", "amount paid with discount" "25", "amount paid with incart discount" "0", "paid in full by discount" "0", "base discount remark" "\<i>discount product\</i> applied you saved $25", "incart discount remark" null, "total discount remark" "\<i>discount product\</i> applied you saved $25 ", "discount product in cart" "0", "markoff discount" "0", "regsurance cart value" "0", "regsurance product" "0", "creation date" "2021 12 08 17 20 12", "cart datestamp" "1638943200", "creation date readable" "december 8th 2021", "paid on readable" null, "total order" "406 25", "total payment" "100 00", "total paid for" "81 25", "total delivered" "0 00", "first name" "kenny", "last name" "burrell", "org name" null, "discount remark" "\<i>discount product\</i> applied you saved $25", "p remarks" "", "in cart" "1", "in cart waitlist" "0" } ], "success" true, "user info" { "clogin id" "102715754", "group id" "100909072", "connected to" "102715737" }, "meta info" { "u name" "kenny burrell", "total forms" "6", "completed forms" "2", "total user forms" "6", "total completed user forms" "2", "total user mandatory forms" "6", "total completed user mandatory forms" "2", "total order" "812 50", "total paid" "100 00", "total balance" "712 50", "status id" "0", "status name" null, "status color" null, "application date" "dec 8th 2021 17 07", "application date raw" "2021 12 08 17 07 40", "u comments" "0", "group id" "100909072", "uid" "4085256", "clogin id" "102715754", "excluded" "0", "connected to" "102715737", "total user tags" "0", "user tag ids" null, "total non excluded children" null, "star" "0", "admin initials" null, "admin color" null, "assigned admin id" null } } discount product call curl x post "https //www regpack com/reg/api2/users/" \\ h "content type application/json" \\ h "accept application/json" \\ h "api id 15263" \\ h "api user api admin\@regpacks com" \\ h "api token cd2e514f 7gab 3cde 62fg 51abcd4e7362" \\ d '{ "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990588, "q" 1 } ] }import requests import json users endpoint = https //www regpack com/reg/api2/users/ headers = { "content type" "application/json", "accept" "application/json", "api id" "15263", "api user" "api admin\@regpacks com", "api token" "cd2e514f 7gab 3cde 62fg 51abcd4e7362", } payload = { "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "p id" 1990588, "q" 1 } ] } add product discount json = json dumps(payload) add product discount response = requests post(url=users endpoint, data=add product discount json, headers=headers, timeout=10) response { "msg" "products added successfully", "cart" \[ { "reg id" "102715754", "cart id" "10006195", "p id" "1990588", "is holder product" "0", "parent product" "1990588", "session id" null, "is session product" "0", "is session subproduct" "0", "pp protected" null, "pp protected amount" "0", "session checkin total items" "0", "cat id" "81407", "base product type" "2", "zero product presentation" "0", "product present text value" "", "allow waitlist" "0", "lock after paid" "1", "lock in cart" "0", "force paid first" "0", "lock once funds allocated" "1", "session start unix" null, "session end unix" null, "disable regsurance" "0", "opt in regsurance" "0", "location" null, "internalid" null, "instructor" null, "disable time conflict" "0", "discount presented as" "as mark off", "p name" "discount product", "is recurring" "0", "recurring cart parent id" null, "original session price" null, "day session final price" null, "recurring structure" null, "recurring structure custom num" "0", "recurring trigger start" null, "recurring allow user disable" "0", "recurring allow upgrade" "0", "recurring upgrade text" null, "recur total instances" "0", "recur completed instances" "0", "recurring id" null, "recurring text" "", "recurring comment" "", "recurring pause comment" "", "recurring messages" null, "recurring instances left" null, "recur on original" "0", "recur done" "0", "is recurring single" "0", "recur allow renew" "0", "recurring valid grace" null, "recur autorenew pid" "0", "recur autorenew disabled" "0", "recur autorenew instance" "0", "recur autorenew done" "0", "recur user disabled" "0", "recur pause on" null, "recur resume on" null, "recur on" "0", "recur end" "0", "recur overall end" "0", "session start date readable" null, "session end date readable" null, "session days text" null, "auto generated session name" "0", "allow partial enrollment" null, "session remarks" null, "original session product price" null, "selected session days" null, "total session days" null, "session start date" null, "session end date" null, "product total orders" "1", "product total pf" "0", "product quota ordered full" "0", "product quota paid full" "0", "special remarks" "", "product short remarks" "", "skip paidfor" 0, "q" "1", "waitlist" "0", "price" "50", "price in cart" "50", "total price" "50 00", "locked" "0", "delivered" "0", "delivered on" null, "delivered on ts" null, "paid for" "0", "paid for amount" "0", "paid for amount remark" null, "paid for additional remark" null, "pf" "0", "paid for order" "0", "cat order" "1", "product order" "21", "conn fee" "0", "tax fee" "0", "original price" null, "amount paid with discount" "0", "amount paid with incart discount" "0", "paid in full by discount" "0", "base discount remark" null, "incart discount remark" null, "total discount remark" " ", "discount product in cart" "1", "markoff discount" "1", "regsurance cart value" "0", "regsurance product" "0", "creation date" "2021 12 08 17 20 12", "cart datestamp" "1638943200", "creation date readable" "december 8th 2021", "paid on readable" null, "total order" "406 25", "total payment" "100 00", "total paid for" "81 25", "total delivered" "0 00", "first name" "kenny", "last name" "burrell", "org name" null, "discount remark" "", "p remarks" "", "in cart" "1", "in cart waitlist" "0" } ], "success" true, "user info" { "clogin id" "102715754", "group id" "100909072", "connected to" "102715737" }, "meta info" { "u name" "kenny burrell", "total forms" "6", "completed forms" "2", "total user forms" "6", "total completed user forms" "2", "total user mandatory forms" "6", "total completed user mandatory forms" "2", "total order" "406 25", "total paid" "100 00", "total balance" "306 25", "status id" "0", "status name" null, "status color" null, "application date" "dec 8th 2021 17 07", "application date raw" "2021 12 08 17 07 40", "u comments" "0", "group id" "100909072", "uid" "4085256", "clogin id" "102715754", "excluded" "0", "connected to" "102715737", "total user tags" "0", "user tag ids" null, "total non excluded children" null, "star" "0", "admin initials" null, "admin color" null, "assigned admin id" null } } private product call curl x post "https //www regpack com/reg/api2/users/" \\ h "content type application/json" \\ h "accept application/json" \\ h "api id 15263" \\ h "api user api admin\@regpacks com" \\ h "api token cd2e514f 7gab 3cde 62fg 51abcd4e7362" \\ d '{ "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "name" "last minute flight to kansas city", "price" 500, "q" 1 } ] }import requests import json users endpoint = https //www regpack com/reg/api2/users/ headers = { "content type" "application/json", "accept" "application/json", "api id" "15263", "api user" "api admin\@regpacks com", "api token" "cd2e514f 7gab 3cde 62fg 51abcd4e7362", } payload = { "action" "add product", "group id" 100909072, "clogin id" 102715754, "connected to" 102715737, "product list" \[ { "name" "last minute flight to kansas city", "price" 500, "q" 1 } ] } add product private json = json dumps(payload) add product private response = requests post(url=users endpoint, data=add product private json, headers=headers, timeout=10) response { "msg" "products added successfully", }