Bulk API’s – User, Order, Unsubscribe, Spam, Bounce, Suppression List

 

Bulk User

 

There is a limit of 50 users in One API call

curl -XPOST –header “Content-Type:application/json” -d ‘{
“apikey”: “API_KEY”,
“project_id”: “PROJECT_ID”,
“users”: [
{
“identifiers”:
{ “email”: “gmail3may@y0v.in”, “customer_id”: “may2@y0v.in” }
,
“properties”:{
“update”:
{ “p_number”:”3″,”p_text”:[“delhi”,”noida”],”p_date”:”1494328550″, “p_sdate”:”1494328550″ },
“campaign” :
{ “utm_medium” : “pramodthakur1”, “utm_source” : “pramodthakur1”, “utm_campaign” : “pramodthakur1”, “utm_term” : “pramodthakur1” }
}},
{
“identifiers”:
{ “email”: “gmail1may@y0v.in”, “customer_id”: “may1@y0v.in” }
,”properties”:{
“append”:
{ “p_number”:”3″,”p_text”:[“delhi”,”noida”],”p_date”:”1494329072″, “p_sdate”:”1494329072″ },

“campaign” :
{ “utm_medium” : “pramodthakur2”, “utm_source” : “pramodthakur2”, “utm_campaign” : “pramodthakur2”, “utm_term” : “pramodthakur2” }
}},
{
“identifiers”:
{ “email”: “gmail2may@y0v.in”, “customer_id”: “may3″ }
,”properties”:{
“increment”:
{ “p_number”:”3″,”p_text”:[“delhi”,”noida”],”p_date”:”1494328550″, “p_sdate”:”1494329072″ },
“campaign” :
{ “utm_medium” : “pramodthakur1”, “utm_source” : “pramodthakur1”, “utm_campaign” : “pramodthakur1”, “utm_term” : “pramodthakur1” }
}}]}’ http://bulk.betaout.com/v2/bulk/users/

 

Bulk Unsubscribe

 

There is a limit of 50 users in One API call

curl -XPOST –header “Content-Type:application/json” -d ‘{“apikey”:”API_KEY”,”project_id”:PROJECT_ID,”users”:[{“identifiers”:{“email”:”123@y0v.in”}}]}’ http://api.betaout.com/v2/bulk/unsubscriber/

 

Bulk Spam

 

There is a limit of 50 users in One API call

curl -XPOST –header “Content-Type:application/json” -d ‘{“apikey”:”API_KEY”,”project_id”:PROJECT_ID,”users”:[{“identifiers”:{“email”:”123@y0v.in”}}]}’ http://api.betaout.com/v2/bulk/spam/

 

Bulk Bounce

 

There is a limit of 50 users in One API call

curl -XPOST –header “Content-Type:application/json” -d ‘{“apikey”:”API_KEY”,”project_id”:PROJECT_ID,”users”:[{“identifiers”:{“email”:”123@y0v.in”}}]}’ http://api.betaout.com/v2/bulk/bounce/

 

Bulk Suppression List

 

There is a limit of 50 users in One API call

curl -XPOST –header “Content-Type:application/json” -d ‘{

“apikey”:”API_KEY”,

“project_id”:”PROJECT_ID”,

“users”:[

{“identifiers”:

{“customer_id”:1,”email”:”a+1@y0v.in”,”phone”:1},”type”:”invalid_subscriber”},

{“identifiers”:

{“customer_id”:2,”email”:”a+2@y0v.in”,”phone”:2},”type”:”dnd”},

{“identifiers”:

{“customer_id”:3,”email”:”a+3@y0v.in”,”phone”:3},”type”:”blacklist”}]}’ https://api.betaout.com/v2/bulk/sms_suppression

 

Bulk Order Id

 

There is a limit of 100 different Orders in One API call

By default, we will consider

“campaignType”,”utm_medium”utm_source”,”utm_campaign” as “bulk-manual-import”

“Order id” should be unique for every order

curl -XPOST –header “Content-Type:application/json” -d ‘{

“apikey”: “API_KEY”,

“project_id”: “PROJECT_ID”,

“orders”: [

{

“identifiers”: {

“customer_id”: “23”,

“email”: “one23@y0v.in”,

“phone”: “1”

},

“properties”: {

“order_id”: “o23”, //Required

“created_time”: “1471948297”, //Required

“revenue”: “2001”, //Required

“total_price”: “30”,

“shipping_price”: “2”,

“taxes”: “1”,

“currency”: “INR”,

“promo_code”: “APP10”,

“payment_method”: “online”,

“order_status”: “completed”,

“discount”: “10”,

“products”: [

{

“id”: “1”, //Required

“price”: “26000”, //Required

“quantity”: “1” //Required

}

],

“campaign”: {

“campaignType”: “bulk-manual-import”,

“utm_medium”: “bulk-manual-import”,

“utm_source”: “bulk-manual-import”,

“utm_campaign”: “bulk-manual-import”

},

“custom_property”: {

“page_name”: “x”

},

“system”: {

“os”: “ios10”,

“browser”: “chrome”,

“platform”: “apple”,

“device”: “mac”

}

}

} ,

{

“identifiers”: {

“customer_id”: “26”,

“email”: “one26@y0v.in”,

“phone”: “1”

},

“properties”: {

“order_id”: “o26”,

“created_time”: “1471948297”,

“revenue”: “2001”,

“total_price”: “30”,

“shipping_price”: “2”,

“taxes”: “1”,

“currency”: “INR”,

“promo_code”: “APP10”,

“payment_method”: “online”,

“order_status”: “completed”,

“discount”: “10”,

“products”: [

{

“id”: “1”,

“price”: “26000”,

“quantity”: “1”

}

],

“campaign”: {

“campaignType”: “bulk-manual-import”,

“utm_medium”: “bulk-manual-import”,

“utm_source”: “bulk-manual-import”,

“utm_campaign”: “bulk-manual-import”

},

“custom_property”: {

“page_name”: “x”

},

“system”: {

“os”: “ios10”,

“browser”: “chrome”,

“platform”: “apple”,

“device”: “mac”

}

}

}

]

}’https://api.betaout.com/v2/bulk/orders