Rep( int RepID, string Rep, int AgencyID, string Agency, int SupplierID, string Supplier, string AssignmentCode )
Get information for one Rep.
Request
Request Data:
You can identify the Rep in multiple ways:
- (int) RepID: the id for the Rep.
- (string) Rep: the name of the Rep, to be used with Agency or AgencyID.
- (int) AgencyID or (string) Agency: identify the Agency for the Rep.
- (int)SupplierID or (string) Supplier: identify the Supplier for the Rep, to be used with AssignmentCode.
- (string) AssignmentCode: identify the assignment code for the rep.
{ "RepID": <int>, "Rep": <string>, "AgencyID": <int>, "Agency": <string>, "SupplierID ": <int>, "Supplier": <string>, "AssignmentCode": <string> }
Response
{ "Result": { "Added": <Date>, "Agency": <string>, "AgencyID": <int>, "AssignmentCodes": [ { "AssignmentCode": <string>, // ID "Supplier": <string>, "SupplierID": <int> }, <... more AssignmentCodes> ], "CommissionsHidden": <bool>, "Contact": { "ContactID": <int>, "Email": <string>, "FirstName": <string>, "LastName": <string>, "PhoneNumbers": [ { "Number": <string>, "PhoneNumberID": <int>, "Type": <enum: Business=1, Home=2, Fax=3, Other=6> }, <... more PhoneNumbers (1 for each type)> ], "Salutation": <string>, "Title": <string> }, "Fields": [ { "Field": <string>, // Field Name "Value": <string> }, ... <more custom fields> ], "Logon": <bool>, // Removed in RPM27 "Enabled": <bool>, // Added in RPM27, replaced Logon "Modified": <date>, "NotesForStaff": [], "Relationship": <string>, "Rep": <string>, "RepID": <int>, "Type": <string>, "Username": <string> } }
Errors
- “Supplier not found”
- “Agency not found”
- “Rep not found”