POST api/Partner/AddPartner
Add partner
Request Information
URI Parameters
None.
Body Parameters
Partner object to add
PartnerAddName | Description | Type | Additional information |
---|---|---|---|
CampaignCode | string |
None. |
|
CountryCode | string |
None. |
|
Enabled | boolean |
None. |
|
Name | string |
None. |
|
Type | PartnerType |
None. |
Request Formats
application/json, text/json
Sample:
{ "CampaignCode": "sample string 1", "CountryCode": "sample string 2", "Enabled": true, "Name": "sample string 4", "Type": 0 }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Added partner object
ResponseOfPartnerName | Description | Type | Additional information |
---|---|---|---|
Data | Partner |
None. |
|
Result | boolean |
None. |
|
Message | string |
None. |
|
Errors | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "$id": "2", "CampaignCode": "sample string 1", "CountryCode": "sample string 2", "CustomContractDuration": 3, "CustomContractDurationCompany": 4, "CustomContractDurationDirect": 5, "CustomDocuments": true, "CustomName": "sample string 7", "CustomerServiceEmail": "sample string 8", "CustomerServicePhone": "sample string 9", "CustomTemplate": "sample string 10", "Enabled": true, "Id": 12, "Name": "sample string 13", "Password": "sample string 14", "PaymentEmail": "sample string 15", "PaymentExternal": true, "Type": 0, "Username": "3c9c182c-0105-4ede-8280-966625090e4e", "WebCrmOwnerId": 18 }, "Result": true, "Message": "sample string 2", "Errors": { "$id": "3" } }