Description
Adds a Sponsor (Co-operative Reference) for a specified Customer.
Note
You need to specify only a single Sponsor (Co-operative Reference).
Parameters
Name | Data Type | Required / Optional | Description |
---|---|---|---|
auth-userid | Integer | Required | Authentication Parameter |
api-key | String | Required | Authentication Parameter |
name | String | Required | Name of Contact |
company | String | Required | Name of the Company |
String | Required | Email address of the Contact | |
address-line-1 | String | Required | First line of address of the Contact |
city | String | Required | Name of the City |
country | String | Required | Country Code as per ISO 3166-1 alpha-2 |
zipcode | String | Required | ZIP code |
phone-cc | String | Required | Telephone number Country Code |
phone | String | Required | Telephone number |
customer-id | Integer | Required | The Customer under whom your are creating the Sponsor |
address-line-2 | String | Optional | Second line of address of the Contact |
address-line-3 | String | Optional | Third line of address of the Contact |
state | String | Optional | Name of the State |
fax-cc | String | Optional | Fax number Country Code |
fax | String | Optional | Fax number |
HTTP Method
POST
Example Test URL Request
https://test.httpapi.com/api/contacts/coop/add-sponsor.json?auth-userid=0&api-key=key&name=abc&company=company&email=dummy@abc.com&address-line-1=address1&city=city&country=nn&zipcode=0&phone-cc=0&phone=0&customer-id=0
Response
Returns the sponsor-id (Integer) of the newly added Sponsor. If a Sponsor exists with same Name and Company, then the existing sponsor-id is returned.