Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page provides you information about how to manage recipients (subscribe, unsubscribe, update personal data).

...

On this page:

Table of Contents

 

Retrieve all subscribed/unsubscribed from a list

...

Read personal data fields

...

configuration

Description

Retrieve recipient dynamic field definitions.

...

HTTP Method

Description

Retreive subscribers of specified list

HTTP Method

GET

GET

URL

Code Block
https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{ID_LIST}/Recipients/SubscribedRecipient/DynamicFields

JSON request (example)

none

 

JSON response (example)

Expand
Code Block
languagehtml/xml
{"IsPaginated":falsetrue,"Items":[{"EmailDescription":"john@example.comAllOrderedProductIDs","FieldsId":[26},{"Description":"FirstNameTotalOrderedLast30d","Id":125},{"ValueDescription":"TotalOrderedLast12m","Id":24},{"Description":"LastNameTotalOrdered","Id":2,"Value":""23},{"Description":"CompanyLatestAbandonedCartID","Id":3,"Value":""22},{"Description":"CityLatestAbandonedCartTotal","Id":421},{"ValueDescription":"LatestAbandonedCartDate","Id":20},{"Description":"ProvinceLatestShippedOrderID","Id":519},{"ValueDescription":"LatestShippedOrderDate","Id":18},{"Description":"ZIPLatestOrderCategoryIDs","Id":617},{"ValueDescription":"LatestOrderProductIDs","Id":16},{"Description":"StateLatestOrderAmount","Id":715},{"ValueDescription":"LatestOrderDate","Id":14},{"Description":"RegionLatestOrderID","Id":8,"Value":""13},{"Description":"AddressCustomerID","Id":9,"Value":""12},{"Description":"Gender phone","Id":10,"Value":""11},{"Description":"phoneGender ","Id":11,"Value":""10},{"Description":"CustomerIDAddress","Id":12,"Value":""9},{"Description":"LatestOrderIDRegion","Id":13,"Value":""8},{"Description":"LatestOrderDateState","Id":147}],"ValuePageNumber":""}0,{"DescriptionPageSize":"LatestOrderAmount"20,"IdSkipped":150,"ValueTotalElementsCount":""},{"Description":"LatestOrderProductIDs","Id":16,"Value":""},{"Description":"LatestOrderCategoryIDs","Id":17,"Value":""},{"Description":"LatestShippedOrderDate","Id":18,"Value":""},{"Description":"LatestShippedOrderID","Id":19,"Value":""},26}

Paging and filtering (example)

Use endpoint /Console/Recipient/DynamicFields?&orderby="Id+asc" to get a list that is ordered by Id

 

 

...

Retrieve all subscribed/unsubscribed from a list

You can subscribe a recipient to one or more lists or groups and you can also set personal data fields of the recipient.

Subscribed

Description

Retreive subscribers of specified list

HTTP Method

GET

URL

Code Block
https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{ID_LIST}/Recipients/Subscribed

JSON request (example)

none

JSON response (example)

Expand
Code Block
languagehtml/xml
{"IsPaginated":false,"Items":[{"Email":"john@example.com","Fields":[{"Description":"LatestAbandonedCartDateFirstName","Id":201,"Value":""},{"Description":"LatestAbandonedCartTotalLastName","Id":212,"Value":""},{"Description":"LatestAbandonedCartIDCompany","Id":223,"Value":""},{"Description":"TotalOrderedCity","Id":234,"Value":""},{"Description":"TotalOrderedLast12mProvince","Id":245,"Value":""},{"Description":"TotalOrderedLast30dZIP","Id":256,"Value":""},{"Description":"AllOrderedProductIDsState","Id":267,"Value":""}],{"MobileNumberDescription":null,"MobilePrefixRegion":null,"NameId":null8,"idRecipientValue":16},{"Email":"mary@example.com","Fields":["},{"Description":"FirstNameAddress","Id":19,"Value":""},{"Description":"LastNameGender ","Id":210,"Value":""},{"Description":"Companyphone","Id":311,"Value":""},{"Description":"CityCustomerID","Id":412,"Value":""},{"Description":"ProvinceLatestOrderID","Id":513,"Value":""},{"Description":"ZIPLatestOrderDate","Id":614,"Value":""},{"Description":"StateLatestOrderAmount","Id":715,"Value":""},{"Description":"RegionLatestOrderProductIDs","Id":816,"Value":""},{"Description":"AddressLatestOrderCategoryIDs","Id":917,"Value":""},{"Description":"Gender LatestShippedOrderDate","Id":1018,"Value":""},{"Description":"phoneLatestShippedOrderID","Id":1119,"Value":""},{"Description":"CustomerIDLatestAbandonedCartDate","Id":1220,"Value":""},{"Description":"LatestOrderIDLatestAbandonedCartTotal","Id":1321,"Value":""},{"Description":"LatestOrderDateLatestAbandonedCartID","Id":1422,"Value":""},{"Description":"LatestOrderAmountTotalOrdered","Id":1523,"Value":""},{"Description":"LatestOrderProductIDsTotalOrderedLast12m","Id":1624,"Value":""},{"Description":"LatestOrderCategoryIDsTotalOrderedLast30d","Id":1725,"Value":""},{"Description":"LatestShippedOrderDateAllOrderedProductIDs","Id":1826,"Value":""}],{"DescriptionMobileNumber":null,"LatestShippedOrderIDMobilePrefix":null,"IdName":19null,"ValueidRecipient":""16},{"DescriptionEmail":"LatestAbandonedCartDatemary@example.com","IdFields":20,[{"ValueDescription":"FirstName"},{"Description":"LatestAbandonedCartTotal","Id":211,"Value":""},{"Description":"LatestAbandonedCartIDLastName","Id":222,"Value":""},{"Description":"TotalOrderedCompany","Id":233,"Value":""},{"Description":"TotalOrderedLast12mCity","Id":244,"Value":""},{"Description":"TotalOrderedLast30dProvince","Id":255,"Value":""},{"Description":"AllOrderedProductIDsZIP","Id":266,"Value":""}],{"MobileNumberDescription":null,"MobilePrefixState":null,"NameId":null7,"idRecipient":15},{"Email"Value":"susan@example.com"},"Fields":[{"Description":"FirstNameRegion","Id":18,"Value":"Susan"},{"Description":"LastNameAddress","Id":29,"Value":"Smith"},{"Description":"CompanyGender ","Id":310,"Value":"ACME"},{"Description":"Cityphone","Id":411,"Value":"Milan"},{"Description":"ProvinceCustomerID","Id":512,"Value":"MI"},{"Description":"ZIPLatestOrderID","Id":613,"Value":"20100"},{"Description":"StateLatestOrderDate","Id":714,"Value":"Italy"},{"Description":"RegionLatestOrderAmount","Id":815,"Value":""},{"Description":"AddressLatestOrderProductIDs","Id":916,"Value":""},{"Description":"Gender LatestOrderCategoryIDs","Id":1017,"Value":"male"},{"Description":"phoneLatestShippedOrderDate","Id":1118,"Value":"1234567"},{"Description":"CustomerIDLatestShippedOrderID","Id":1219,"Value":"1"},{"Description":"LatestOrderIDLatestAbandonedCartDate","Id":1320,"Value":"6"},{"Description":"LatestOrderDateLatestAbandonedCartTotal","Id":1421,"Value":"1397470773"},{"Description":"LatestOrderAmountLatestAbandonedCartID","Id":1522,"Value":"1000"},{"Description":"LatestOrderProductIDsTotalOrdered","Id":1623,"Value":"1"},{"Description":"LatestOrderCategoryIDsTotalOrderedLast12m","Id":1724,"Value":"1"},{"Description":"LatestShippedOrderDateTotalOrderedLast30d","Id":1825,"Value":"1397470973"},{"Description":"LatestShippedOrderIDAllOrderedProductIDs","Id":1926,"Value":"6"}],{"DescriptionMobileNumber":null,"LatestAbandonedCartDateMobilePrefix":null,"IdName":null,"idRecipient":2015},{"ValueEmail":"1397468462susan@example.com"},"Fields":[{"Description":"LatestAbandonedCartTotalFirstName","Id":211,"Value":"200Susan"},{"Description":"LatestAbandonedCartIDLastName","Id":222,"Value":"1Smith"},{"Description":"TotalOrderedCompany","Id":233,"Value":"1200ACME"},{"Description":"TotalOrderedLast12mCity","Id":244,"Value":"1200Milan"},{"Description":"TotalOrderedLast30dProvince","Id":255,"Value":"1200MI"},{"Description":"AllOrderedProductIDsZIP","Id":266,"Value":"1,220100"}],{"MobileNumberDescription":"State","MobilePrefixId":""7,"NameValue":"Test","idRecipient":14Italy"},{"Email":"peter@example.com","Fields":[{"Description":"FirstNameRegion","Id":18,"Value":""},{"Description":"LastNameAddress","Id":29,"Value":""},{"Description":"CompanyGender ","Id":310,"Value":"male"},{"Description":"Cityphone","Id":411,"Value":"1234567"},{"Description":"ProvinceCustomerID","Id":512,"Value":"1"},{"Description":"ZIPLatestOrderID","Id":613,"Value":"6"},{"Description":"StateLatestOrderDate","Id":714,"Value":"1397470773"},{"Description":"RegionLatestOrderAmount","Id":815,"Value":"1000"},{"Description":"AddressLatestOrderProductIDs","Id":916,"Value":"1"},{"Description":"Gender LatestOrderCategoryIDs","Id":1017,"Value":"1"},{"Description":"phoneLatestShippedOrderDate","Id":1118,"Value":"1397470973"},{"Description":"CustomerIDLatestShippedOrderID","Id":1219,"Value":"6"},{"Description":"LatestOrderIDLatestAbandonedCartDate","Id":1320,"Value":"1397468462"},{"Description":"LatestOrderDateLatestAbandonedCartTotal","Id":1421,"Value":"200"},{"Description":"LatestOrderAmountLatestAbandonedCartID","Id":1522,"Value":"1"},{"Description":"LatestOrderProductIDsTotalOrdered","Id":1623,"Value":"1200"},{"Description":"LatestOrderCategoryIDsTotalOrderedLast12m","Id":1724,"Value":"1200"},{"Description":"LatestShippedOrderDateTotalOrderedLast30d","Id":1825,"Value":"1200"},{"Description":"LatestShippedOrderIDAllOrderedProductIDs","Id":1926,"Value":"1,2"}],{"DescriptionMobileNumber":"LatestAbandonedCartDate","Id":20,"ValueMobilePrefix":""},{"DescriptionName":"LatestAbandonedCartTotalTest","IdidRecipient":2114},{"ValueEmail":"peter@example.com"},"Fields":[{"Description":"LatestAbandonedCartIDFirstName","Id":221,"Value":""},{"Description":"TotalOrderedLastName","Id":232,"Value":""},{"Description":"TotalOrderedLast12mCompany","Id":243,"Value":""},{"Description":"TotalOrderedLast30dCity","Id":254,"Value":""},{"Description":"AllOrderedProductIDsProvince","Id":265,"Value":""}],{"Description":"ZIP","MobileNumberId":null6,"MobilePrefixValue":null""},{"NameDescription":null"State","idRecipientId":13}]7,"PageNumberValue":0""},{"PageSizeDescription":20"Region","SkippedId":08,"TotalElementsCountValue":4}

Paging and filtering (example)

2 items per page, get first page (count starts from zero)

  • https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/1/Recipients/Subscribed?PageNumber=0&PageSize=2

Retreive all the subscribers of a specified list whose Email contains 'example' filterby="Email.Contains('example')" and sort them by Email orderby="Email asc". Parameter names can be retreived from the response body. Please note that "Contains" is case sensitive.

  • https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/1/Recipients/Subscribed?filterby="Email.Contains(%27example%27)"&orderby="Email+asc"

 

 

Unsubscribed

As for "subscribed", but in this case the endpoint is /Console/List/{ID_LIST}/Recipients/Unsubscribed

 

Asynchronous import of recipients

Asynchronous import is used either for adding a single recipient to MailUp or to perform a bulk import.
Since it's not synchronous, it is fast but not immediate, please check the import status in order to know when the import task is completed. 

 

Note

In case of bulk import, the upper limit for parameter size is configured as 500MB for each call. In any case we recommend to set a configurable upload size limit in your application and make a test with this size. When parameter size exceeds this limit you can split the list of recipients in more blocks and perform more requests. When more import requests are pending, MailUp processes them in a sequential order.

Import recipients

...

Description

...

Create and execute a task that imports specified recipients. Import task ID is returned

...

HTTP Method

...

POST

...

Import recipients into a list

Code Block
https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Recipients

 

Import recipients into a group (a group always belongs to a single list)

Code Block
https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/Group/{ID_GROUP}/Recipients

...

JSON request (example)

...

Expand

The example below imports two recipients. For each recipient to be imported you may specify a different set of "Fields" values. Please note that field value names are configurable and default values are language specific, therefore names in your console account can be different than what you see below

Code Block
languagehtml/xml
[{
"Email":"john@doe.com",
"Name":"john doe",
"Fields":{
"FirstName":"john",
"LastName":"doe",
"Company":"john's Uber Awesome Company",
"Phone":"1115559999",
"LatestOrderId":1000,
"LatestOrderDate":"2013-12-13T16:52:08.3112622Z",
"LatestOrderAmount":100.99,
"LatestOrderProductIds":[100,101],
"LatestOrderCategoryIds":[1,2],
"LatestShippedOrderId":1000,
"LatestShippedOrderDate":"2013-12-14T16:52:08.3112622Z",
"TotalOrdered":100.99,
"TotalOrderedLastMonth":100.99,
"AllOrderedProductIds":[100,101]}
},
{
"Email":"mary@poppins.com",
"Name":"Mary Poppins",
"Fields":{
"FirstName":"Mary",
"LastName":"Poppins",
"Company":"Freelance",
"LatestOrderId":1000,
"LatestOrderDate":"2014-04-31T16:10:00.3112622Z",
}
}]

...

JSON response (example)

...

3

 

...

Paging and filtering (example)

none

 

Read Import Status

Import/{IMPORT_ID}

Description

Read status of an import task by specifying its ID. List ID is not required.

HTTP Method

GET

URL

Code Block
""},{"Description":"Address","Id":9,"Value":""},{"Description":"Gender ","Id":10,"Value":""},{"Description":"phone","Id":11,"Value":""},{"Description":"CustomerID","Id":12,"Value":""},{"Description":"LatestOrderID","Id":13,"Value":""},{"Description":"LatestOrderDate","Id":14,"Value":""},{"Description":"LatestOrderAmount","Id":15,"Value":""},{"Description":"LatestOrderProductIDs","Id":16,"Value":""},{"Description":"LatestOrderCategoryIDs","Id":17,"Value":""},{"Description":"LatestShippedOrderDate","Id":18,"Value":""},{"Description":"LatestShippedOrderID","Id":19,"Value":""},{"Description":"LatestAbandonedCartDate","Id":20,"Value":""},{"Description":"LatestAbandonedCartTotal","Id":21,"Value":""},{"Description":"LatestAbandonedCartID","Id":22,"Value":""},{"Description":"TotalOrdered","Id":23,"Value":""},{"Description":"TotalOrderedLast12m","Id":24,"Value":""},{"Description":"TotalOrderedLast30d","Id":25,"Value":""},{"Description":"AllOrderedProductIDs","Id":26,"Value":""}],"MobileNumber":null,"MobilePrefix":null,"Name":null,"idRecipient":13}],"PageNumber":0,"PageSize":20,"Skipped":0,"TotalElementsCount":4}

Paging and filtering (example)

2 items per page, get first page (count starts from zero)

  • https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/1/

JSON request (example)

none

 

JSON response (example)

Code Block
languagehtml/xml
{"Completed":true,"CreatedRecipients":1,"ImportedRecipients":0,"NotValidRecipients":0,"UpdatedRecipients":0,"ValidRecipients":1,"idImport":3}

Paging and filtering (example)

none

 

 

Manage a single email recipient

UpdateCreate a new recipient and subscribe it to a list

While subscribing a recipient you can also set personal data fields

https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/

Description

Add a new subscriber to the specified list

HTTP Method

POST

URL

  • Recipients/Subscribed?PageNumber=0&PageSize=2

Retreive all the subscribers of a specified list whose Email contains 'example' filterby="Email.Contains('example')" and sort them by Email orderby="Email asc". Parameter names can be retreived from the response body. Please note that "Contains" is case sensitive.

  • https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/1/Recipients/Subscribed?filterby="Email.Contains(%27example%27)"&orderby="Email+asc"

 

 

Unsubscribed

As for "subscribed", but in this case the endpoint is /Console/List/{ID_LIST}/Recipients

...

JSON request (example)

...

Code Block
[{
	"Email":"test25@example.com",
	"Fields":[{
		"Description":"Region",
		"Id":8,
		"Value":"Italy"
	}],
	"Name":"Test"
}]

...

JSON response (example)

...

Code Block
languagehtml/xml
8

...

Paging and filtering (example)

...

none

 

Read personal data fields configuration

...

Description

...

Retrieve recipient dynamic field definitions.

...

HTTP Method

...

GET

...

URL

/Unsubscribed

 

...

Asynchronous import of recipients

Asynchronous import is used either for adding a single recipient to MailUp or to perform a bulk import.
Since it's not synchronous, it is fast but not immediate, please check the import status in order to know when the import task is completed. 

 

Note

In case of bulk import, the upper limit for parameter size is configured as 500MB for each call. In any case we recommend to set a configurable upload size limit in your application and make a test with this size. When parameter size exceeds this limit you can split the list of recipients in more blocks and perform more requests. When more import requests are pending, MailUp processes them in a sequential order.

Import recipients

Recipient/DynamicFields

Description

Create and execute a task that imports specified recipients. Import task ID is returned

HTTP Method

POST

URL

Import recipients into a list

Code Block
https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/

JSON request (example)

none

 

JSON response (example)

Expand
Code Block
languagehtml/xml
{"IsPaginated":true,"Items":[{"Description":"AllOrderedProductIDs","Id":26},{"Description":"TotalOrderedLast30d","Id":25},{"Description":"TotalOrderedLast12m","Id":24},{"Description":"TotalOrdered","Id":23},{"Description":"LatestAbandonedCartID","Id":22},{"Description":"LatestAbandonedCartTotal","Id":21},{"Description":"LatestAbandonedCartDate","Id":20},{"Description":"LatestShippedOrderID","Id":19},{"Description":"LatestShippedOrderDate","Id":18},{"Description":"LatestOrderCategoryIDs","Id":17},{"Description":"LatestOrderProductIDs","Id":16},{"Description":"LatestOrderAmount","Id":15},{"Description":"LatestOrderDate","Id":14},{"Description":"LatestOrderID","Id":13},{"Description":"CustomerID","Id":12},{"Description":"phone","Id":11},{"Description":"Gender ","Id":10},{"Description":"Address","Id":9},{"Description":"Region","Id":8},{"Description":"State","Id":7}],"PageNumber":0,"PageSize":20,"Skipped":0,"TotalElementsCount":26}

Paging and filtering (example)

Use endpoint /Console/Recipient/DynamicFields?&orderby="Id+asc" to get a list that is ordered by Id
List/{id_List}/Recipients

 

Import recipients into a group (a group always belongs to a single list)

Code Block
https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/Group/{ID_GROUP}/Recipients

JSON request (example)

Expand

The example below imports two recipients. For each recipient to be imported you may specify a different set of "Fields" values. Please note that field value names are configurable and default values are language specific, therefore names in your console account can be different than what you see below

Code Block
languagehtml/xml
[{
"Email":"john@doe.com",
"Name":"john doe",
"Fields":{
"FirstName":"john",
"LastName":"doe",
"Company":"john's Uber Awesome Company",
"Phone":"1115559999",
"LatestOrderId":1000,
"LatestOrderDate":"2013-12-13T16:52:08.3112622Z",
"LatestOrderAmount":100.99,
"LatestOrderProductIds":[100,101],
"LatestOrderCategoryIds":[1,2],
"LatestShippedOrderId":1000,
"LatestShippedOrderDate":"2013-12-14T16:52:08.3112622Z",
"TotalOrdered":100.99,
"TotalOrderedLastMonth":100.99,
"AllOrderedProductIds":[100,101]}
},
{
"Email":"mary@poppins.com",
"Name":"Mary Poppins",
"Fields":{
"FirstName":"Mary",
"LastName":"Poppins",
"Company":"Freelance",
"LatestOrderId":1000,
"LatestOrderDate":"2014-04-31T16:10:00.3112622Z",
}
}]

JSON response (example)

3

 

Paging and filtering (example)

none


 

Read Import Status

Description

Read status of an import task by specifying its ID. List ID is not required.

HTTP Method

GET

URL

Code Block
https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/Import/{IMPORT_ID}

JSON request (example)

none

 

JSON response (example)

Code Block
languagehtml/xml
{"Completed":true,"CreatedRecipients":1,"ImportedRecipients":0,"NotValidRecipients":0,"UpdatedRecipients":0,"ValidRecipients":1,"idImport":3}

Paging and filtering (example)

none

 

 

...

Manage a single email recipient

UpdateCreate a new recipient and subscribe it to a list

While subscribing a recipient you can also set personal data fields

Description

Add a new subscriber to the specified list

HTTP Method

POST

URL

https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc//Console/List/{ID_LIST}/Recipients

JSON request (example)

Code Block
[{
	"Email":"test25@example.com",
	"Fields":[{
		"Description":"Region",
		"Id":8,
		"Value":"Italy"
	}],
	"Name":"Test"
}]

JSON response (example)

Code Block
languagehtml/xml
8

Paging and filtering (example)

none

 

 

Check if a subscriber exists

With this method you can also retreive recipientID and personal data fields of specified subscriber

Description

Check subscriber and retreive data

HTTP Method

GET

URL

https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/3/Recipients/Subscribed?filterby="Email.Contains('{Email}')"

see example in the "paging and filtering" row

JSON request (example)

none

 

JSON response (example)

Expand

when the specified recipient belongs to list suscribers the response contains the personal data fields of the recipient

Code Block
languagehtml/xml
{"IsPaginated":false,"Items":[{"Email":"peter@example.com","Fields":[{"Description":"FirstName","Id":1,"Value":""},{"Description":"LastName","Id":2,"Value":""},{"Description":"Company","Id":3,"Value":""},{"Description":"City","Id":4,"Value":""},{"Description":"Province","Id":5,"Value":""},{"Description":"ZIP","Id":6,"Value":""},{"Description":"State","Id":7,"Value":""},{"Description":"Region","Id":8,"Value":""},{"Description":"Address","Id":9,"Value":""},{"Description":"Gender ","Id":10,"Value":""},{"Description":"phone","Id":11,"Value":""},{"Description":"CustomerID","Id":12,"Value":""},{"Description":"LatestOrderID","Id":13,"Value":""},{"Description":"LatestOrderDate","Id":14,"Value":""},{"Description":"LatestOrderAmount","Id":15,"Value":""},{"Description":"LatestOrderProductIDs","Id":16,"Value":""},{"Description":"LatestOrderCategoryIDs","Id":17,"Value":""},{"Description":"LatestShippedOrderDate","Id":18,"Value":""},{"Description":"LatestShippedOrderID","Id":19,"Value":""},{"Description":"LatestAbandonedCartDate","Id":20,"Value":""},{"Description":"LatestAbandonedCartTotal","Id":21,"Value":""},{"Description":"LatestAbandonedCartID","Id":22,"Value":""},{"Description":"TotalOrdered","Id":23,"Value":""},{"Description":"TotalOrderedLast12m","Id":24,"Value":""},{"Description":"TotalOrderedLast30d","Id":25,"Value":""},{"Description":"AllOrderedProductIDs","Id":26,"Value":""}],"MobileNumber":null,"MobilePrefix":null,"Name":null,"idRecipient":13}],"PageNumber":0,"PageSize":20,"Skipped":0,"TotalElementsCount":1}

when the specified recipient does not belong to list subscribers (i.e. it may be not existing but also unsubscribed or subscribed only to other MailUp lists for that console account) an empty list is returned

Code Block
{"IsPaginated":false,"Items":[],"PageNumber":0,"PageSize":20,"Skipped":0,"TotalElementsCount":0}

Paging and filtering (example)

https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/3/Recipients/Subscribed?filterby="Email.Contains(%27peter@example.com%27)"


 

Update personal data of an existing subscriber

...

  • Recipient ID, which can be retrieved with the operation listed above (Check if a subscriber exists)
  • The IDs of the fields to be updated

Description

Retrieve recipient dynamic field definitions.

HTTP Method

PUT

URL

https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/Recipient/DynamicFields

JSON request (example)

Modifying the "Region" field

Code Block
[{
	"Email":"test25@example.com",
	"Fields":[{
		"Description":"Region",
		"Id":8,
		"Value":"England"
	}],
	"Name":"Test",
	"idRecipient":23
}]

 

 

JSON response (example)

Expand
Code Block
{"IsPaginated":false,"Items":[{"Email":"test25@example.com","Fields":[{"Description":"FirstName","Id":1,"Value":""},{"Description":"LastName","Id":2,"Value":""},{"Description":"Company","Id":3,"Value":""},{"Description":"City","Id":4,"Value":""},{"Description":"Province","Id":5,"Value":""},{"Description":"ZIP","Id":6,"Value":""},{"Description":"State","Id":7,"Value":""},{"Description":"Region","Id":8,"Value":"Italy"},{"Description":"Address","Id":9,"Value":""},{"Description":"Gender ","Id":10,"Value":""},{"Description":"phone","Id":11,"Value":""},{"Description":"CustomerID","Id":12,"Value":""},{"Description":"LatestOrderID","Id":13,"Value":""},{"Description":"LatestOrderDate","Id":14,"Value":""},{"Description":"LatestOrderAmount","Id":15,"Value":""},{"Description":"LatestOrderProductIDs","Id":16,"Value":""},{"Description":"LatestOrderCategoryIDs","Id":17,"Value":""},{"Description":"LatestShippedOrderDate","Id":18,"Value":""},{"Description":"LatestShippedOrderID","Id":19,"Value":""},{"Description":"LatestAbandonedCartDate","Id":20,"Value":""},{"Description":"LatestAbandonedCartTotal","Id":21,"Value":""},{"Description":"LatestAbandonedCartID","Id":22,"Value":""},{"Description":"TotalOrdered","Id":23,"Value":""},{"Description":"TotalOrderedLast12m","Id":24,"Value":""},{"Description":"TotalOrderedLast30d","Id":25,"Value":""},{"Description":"AllOrderedProductIDs","Id":26,"Value":""}],"MobileNumber":null,"MobilePrefix":null,"Name":null,"idRecipient":23}],"PageNumber":0,"PageSize":20,"Skipped":0,"TotalElementsCount":1}

Paging and filtering (example)

none


...