Search our documentation...

Simply enter what you are looking for!

editPartner

Description

This action will edit existing partner under your partner account

Example

https://api.jetlicense.com/?action=editPartner&prtner_id=5887980319a464498902b0cd&task=addproducts&products[]=5887980319a464498902b0cd&products[]=5887980319a46449891730cd

Parameters

Parameter Type Description Possible values Example
output String The requested returned output type, The default is json
  • json – Default
  • xml
  • text
  • debug
xml
task String Required

The task you want to perform on the selected license

  • cancel — Cancel the partner and all his licenses
  • suspend — Suspend the partner and all his licenses
  • unsuspend — UnSuspend the partner and all his licenses
  • edituser — Edit the partner first name, last name and password
  • editpartner — Edit the partner name
  • addproducts — Add products to the partner sell ability
  • removeproducts — Remove products from the partner sell ability
suspend
partner_id String The Partner id for the partner that you want to edit.
You must provide this parameter unless you provide the email parameter
  • Partner ID
5887980319a464498902b0cd
email String The Partner Email for the partner that you want to edit.
You must provide this parameter unless you provide the partner_id parameter
  • Partner Email
john@mydomain.com
partner_name String The new partner name.
Pass this parameter only when you are sending editpartner task
  • Regular Expression: \p{L}\d\s-()[]&#_".\/, – Length between 3 to 20
JetApps
firstname String The new partner first name.
Pass this parameter only when you are sending edituser task
  • Regular Expression: \p{L}\s- – Length between 2 to 20
John
lastname String The new partner last name.
Pass this parameter only when you are sending edituser task
  • Regular Expression: \p{L}\s- – Length between 2 to 20
Doe
password String The new partner password to login to the JetLicense panel.
Pass this parameter only when you are sending edituser task
  • Length between 6 to 20
V4@B*5Us17sK
products Array The product IDs you want to add to the partner.
Pass this parameter only when you are sending addproducts or removeproducts task
  • Product IDs
[5887980319a464498902b0cd, 5887980319a46449891730cd]

Returns

None