POST
Service URL | LIVE: https://api.relateddigital.com/live/sendlist.asmx ECOMM: https://api.relateddigital.com/ecomm/sendlist.asmx |
---|
General Information
SendList Web Service allows you to perform many operations:
- Add data in bulk to your Send Lists
- Create Send Lists
- Remove existing Send Lists from your account
SendList Web Service Methods
The following table lists supported methods in SendList Web Service and provides a brief description of each method. Click on the method name for more information:
Method | Description |
---|---|
Bulk adds to a Send List. | |
Bulk adds to a Send List via File Upload. | |
Creates an empty Send List. | |
ChangeSendListName | Changes list name. |
Returns the number of members found in a given Send List. | |
Bulk removes from a Send List or deletes members via File Upload. | |
Removes a Send List. | |
QuerySendLists | Queries Send Lists. |
We advise you to be careful when deleting a member from your account. As per the Law that came into force in May 2015, you must save member history information for minimum one year.
To interact with any Web Services, developers must first use the Login method to create a SERVICE TICKET. Developers can send requests to other Web Service and methods using this SERVICE TICKET.
ChangeSendListName
<Change Send List Name> |
---|
Changes list name. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
ListGroup | Group Name of the List | MANDATORY |
ListName | Name of the list | MANDATORY |
NewListName | New name of the list | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <ChangeSendListName xmlns="http://ws.euromsg.com/sendlist"> <ServiceTicket>string</ServiceTicket> <ListGroup>string</ListGroup> <ListName>string</ListName> <NewListName>string</NewListName> </ChangeSendListName> </soap12:Body> </soap12:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <ChangeSendListNameResponse xmlns="http://ws.euromsg.com/sendlist"> <ChangeSendListNameResult> <ConversationID>string</ConversationID> <CreatedListID>int</CreatedListID> </ChangeSendListNameResult> </ChangeSendListNameResponse> </soap12:Body> </soap12:Envelope>
If the request was successful, the CODE parameter will return 00 as a response.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
CreateSendList
<CreateSendList> |
---|
Creates an empty Send List. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
ListGroup | Group Name of the List | MANDATORY |
ListName | Name of the list | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <CreateSendList xmlns="http://ws.euromsg.com/sendlist"> <ServiceTicket>string</ServiceTicket> <ListGroup>string</ListGroup> <ListName>string</ListName> </CreateSendList> </soap12:Body> </soap12:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <CreateSendListResponse xmlns="http://ws.euromsg.com/sendlist"> <CreateSendListResult> <ConversationID>string</ConversationID> <CreatedListID>int</CreatedListID> </CreateSendListResult> </CreateSendListResponse> </soap12:Body> </soap12:Envelope>
If the request was successful, the CODE parameter will return 00 as a response. In addition to that, the ID of the created list CREATEDLISTID is returned.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
AddBulk
<AddBulk> |
---|
Bulk adds to a Send List. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
ListGroup | Group name of the List to add | MANDATORY |
ListName | Name of the List | MANDATORY |
Key | Reference Key Name. Member adding and updating will be done based on this field. Reference Key value must be specified in the DemograficData field | MANDATORY |
DemograficData | ArrayOfEmKeyValue string defines the fields for the member | MANDATORY |
ForceInsert | If the member exists in the system and the value is true , the existing member is updated. | MANDATORY |
Static Fields
Field Name | Description |
---|---|
Email address | |
STATUS | Member Status. A: Active, P: Passive |
EMAIL_PERMIT | Email opt-in. Y: Yes, N: No |
GSM_PERMIT | SMS opt-in. Y: Yes, N: No |
FAX_PERMIT | FAX opt-in. Y: Yes, N: No |
CALL_PERMIT | Call Center opt-in. Y: Yes, N: No |
PRINT_PERMIT | Print opt-in. Y: Yes, N: No |
REFERRAL | Referral Address |
REFERRAL_DOMAIN | Referral Domain |
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AddBulk xmlns="http://ws.euromsg.com/sendlist"> <ServiceTicket>string</ServiceTicket> <ListGroup>string</ListGroup> <ListName>string</ListName> <Key>string</Key> <DemograficData> <ArrayOfEmKeyValue> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> </ArrayOfEmKeyValue> <ArrayOfEmKeyValue> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> </ArrayOfEmKeyValue> </DemograficData> <ForceInsert>boolean</ForceInsert> </AddBulk> </soap12:Body> </soap12:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AddBulkResponse xmlns="http://ws.euromsg.com/sendlist"> <AddBulkResult> <ConversationID>string</ConversationID> <CreatedListID>int</CreatedListID> </AddBulkResult> <DetailsResult> <BulkDetailedResult> <Key>string</Key> <Code>string</Code> <Message>string</Message> <DetailedMessage>string</DetailedMessage> </BulkDetailedResult> <BulkDetailedResult> <Key>string</Key> <Code>string</Code> <Message>string</Message> <DetailedMessage>string</DetailedMessage> </BulkDetailedResult> </DetailsResult> </AddBulkResponse> </soap12:Body> </soap12:Envelope>
If the request was successful, the CODE parameter will return 00 as a response.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
99 | No such list! | The specified List cannot be found. |
99 | Member is new. No update! | If ForceInsert is false and the user does not exist in the system, this error is given. The member is not added. To add the new member in the system the value of the ForceInsertparameter must be true. |
AddBulkFile
<AddBulkFile> |
---|
Allows you to add all the members listed in a file to your RMC account in bulk. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
ListGroup | Group name of the List to add | MANDATORY |
ListName | Name of the List | MANDATORY |
Key | Reference Key Name. Member adding and updating shall be done based on this field | MANDATORY |
Map | Maps the fields in the file with the system fields. E.g. EMAIL=email; COLUMN1=NameSurname; COLUMN2=KeyID | MANDATORY |
File | The file to upload | MANDATORY |
FileType | File Type - Must be in | MANDATORY |
NotificationEmail | A notification email will sent to this email address when the upload is completed | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AddBulkFile xmlns="http://ws.euromsg.com/sendlist"> <ServiceTicket>string</ServiceTicket> <ListGroup>string</ListGroup> <ListName>string</ListName> <Key>string</Key> <Map>string</Map> <File>base64Binary</File> <FileType>string</FileType> <NotificationEmail>string</NotificationEmail> <JobName>string</JobName> </AddBulkFile> </soap12:Body> </soap12:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AddBulkFileResponse xmlns="http://ws.euromsg.com/sendlist"> <AddBulkFileResult> <ConversationID>string</ConversationID> <CreatedListID>int</CreatedListID> </AddBulkFileResult> </AddBulkFileResponse> </soap12:Body> </soap12:Envelope>
If the request was successful, the CODE parameter will return 00 as a response. In addition to that, the ID of the created list CREATEDLISTID is returned.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
99 | Not a valid file type. It must be ZIP or CSV or TXT. | Invalid file type. It must be in zip or csv format |
QuerySendListMemberCount
<QuerySendListMemberCount> |
---|
Shows the number of members in the send list. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
ListID | List ID | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <QuerySendListMemberCount xmlns="http://ws.euromsg.com/sendlist"> <ServiceTicket>string</ServiceTicket> <ListID>int</ListID> </QuerySendListMemberCount> </soap12:Body> </soap12:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <QuerySendListMemberCountResponse xmlns="http://ws.euromsg.com/sendlist"> <QuerySendListMemberCountResult> <ConversationID>string</ConversationID> <CreatedListID>int</CreatedListID> </QuerySendListMemberCountResult> <MemberCount>int</MemberCount> </QuerySendListMemberCountResponse> </soap12:Body> </soap12:Envelope>
If the request was successful, the CODE parameter will return 00 as a response.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
RemoveBulkFile
<RemoveBulkFile> |
---|
Allows you to delete the members listed in a file in your RMC account. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
ListGroup | Group name of the List | MANDATORY |
ListName | Name of the list | MANDATORY |
Key | Reference Key Name | MANDATORY |
Map | Maps the fields in the file with the system fields. E.g. EMAIL=email; COLUMN1=NameSurname ;COLUMN2=KeyID | MANDATORY |
File | File to upload | MANDATORY |
FileType | File Type - Must be in zip or csv format | MANDATORY |
NotificationEmail | A notification email will sent to this email address when the upload is completed | MANDATORY |
DeleteIfInNoList | If the member is not included in any lists, and the value is | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <RemoveBulkFile xmlns="http://ws.euromsg.com/sendlist"> <ServiceTicket>string</ServiceTicket> <ListGroup>string</ListGroup> <ListName>string</ListName> <Key>string</Key> <Map>string</Map> <File>base64Binary</File> <FileType>string</FileType> <NotificationEmail>string</NotificationEmail> <DeleteIfInNoList>boolean</DeleteIfInNoList> </RemoveBulkFile> </soap12:Body> </soap12:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <RemoveBulkFileResponse xmlns="http://ws.euromsg.com/sendlist"> <RemoveBulkFileResult> <ConversationID>string</ConversationID> <CreatedListID>int</CreatedListID> </RemoveBulkFileResult> </RemoveBulkFileResponse> </soap12:Body> </soap12:Envelope>
If the request was successful, the CODE parameter will return 00 as a response. In addition to that, the ID of the created list CREATEDLISTID is returned.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
RemoveSendList
<RemoveSendList> |
---|
Deletes a Send List. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
ListGroup | Group Name of the List | MANDATORY |
ListName | Name of the List |
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <RemoveSendList xmlns="http://ws.euromsg.com/sendlist"> <ServiceTicket>string</ServiceTicket> <ListGroup>string</ListGroup> <ListName>string</ListName> </RemoveSendList> </soap12:Body> </soap12:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <RemoveSendListResponse xmlns="http://ws.euromsg.com/sendlist"> <RemoveSendListResult> <ConversationID>string</ConversationID> <CreatedListID>int</CreatedListID> </RemoveSendListResult> </RemoveSendListResponse> </soap12:Body> </soap12:Envelope>
If the request was successful, the CODE parameter will return 00 as a response. Aside from that, the returned 99 values indicates errors.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
QuerySendList
<QuerySendList> |
---|
Query Send Lists. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <QuerySendLists xmlns="http://ws.euromsg.com/sendlist"> <ServiceTicket>string</ServiceTicket> </QuerySendLists> </soap12:Body> </soap12:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <QuerySendListsResponse xmlns="http://ws.euromsg.com/sendlist"> <QuerySendListsResult> <SendLists> <EmSendListResponse> <ListId>string</ListId> <ListName>string</ListName> <GroupName>string</GroupName> </EmSendListResponse> <EmSendListResponse> <ListId>string</ListId> <ListName>string</ListName> <GroupName>string</GroupName> </EmSendListResponse> </SendLists> </QuerySendListsResult> </QuerySendListsResponse> </soap12:Body> </soap12:Envelope>
If the request was successful, the CODE parameter will return 00 as a response.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
Parent Topic: SOAP Web Service