Setrow API Documentation
Introduction
This API documentation includes all technical informations developers need to integrate third-party applications and platforms.
Based on simple REST principles, the Setrow API endpoints return JSON data directly from the Setrow. The base address of Web API is 'https://rest.setrow.com' . The API provides a set of endpoints, each with its own unique path.
Authorization
All requests made against the Setrow API must be validated with an API Key. If you don't know your API Key yet visit the Setrow Panel to find out. You must send this API Key in the Authorization header when making requests.
Sample Usage:
Authorization: Bearer Sm5cmsOvCt0IxH8WDUYVbwkQgknKrC20dZcqfQLI9CpzafnEl5
Email Operations ¶
Get Email Info
GET
/email
It's a Setrow API feature to get the information of an e-mail address.
Example URI
Success
Body
Error
Email Address Add/Update
POST
/email/add
It's a Setrow API feature to add or update an e-mail address. If there is no record with this e-mail address, it adds it, if it does, it updates it. With a single request, you can perform bulk transactions with a maximum of 1000 e-mail addresses.
Example URI
Body
Success
Body
Error
Email Address Transfer
POST
/email/transfer
It is a Setrow API feature for transferring an email address between groups. With a single request, you can perform bulk transactions with a maximum of 1000 e-mail addresses.
Example URI
Body
Success
Body
Error
Email Address Delete
DELETE
/email/delete
It is a Setrow API feature for deleting an email address from any groups. With a single request, you can perform bulk transactions with a maximum of 1000 e-mail addresses.
Example URI
Body
Success
Body
Error
Sms Operations ¶
Get Sms Number Info
GET
/sms
It's a Setrow API feature to get the information of an sms number.
Example URI
Success
Body
Error
Get Sms Number Report
GET
/sms/report?{parameters}
It's a Setrow API feature to get the lists of sms sending reports.
Example URI
Success
Body
Error
Sms Number Add/Update
POST
/sms/add
It's a Setrow API feature to add or update an sms number. If there is no record with this sms number, it adds it, if it does, it updates it. With a single request, you can perform bulk transactions with a maximum of 1000 sms numbers.
Example URI
Body
Success
Body
Error
Sms Number Transfer
POST
/sms/transfer
It is a Setrow API feature for transferring an sms number between groups. With a single request, you can perform bulk transactions with a maximum of 1000 sms numbers.
Example URI
Body
Success
Body
Error
Sms Number Delete
DELETE
/sms/delete
It is a Setrow API feature for deleting an sms number from any groups. With a single request, you can perform bulk transactions with a maximum of 1000 sms numbers.
Example URI
Body
Success
Body
Error
Whatsapp Operations ¶
Get Whatsapp Number Info
GET
/whatsapp
It's a Setrow API feature to get the information of an whatsapp number.
Example URI
Success
Body
Error
Get Whatsapp Number Report
GET
/whatsapp/report?{parameters}
It's a Setrow API feature to get the lists of whatsapp sending reports.
Example URI
Success
Body
Error
Whatsapp Number Add/Update
POST
/whatsapp/add
It's a Setrow API feature to add or update an sms number. If there is no record with this whatsapp number, it adds it, if it does, it updates it. With a single request, you can perform bulk transactions with a maximum of 1000 whatsapp numbers.
Example URI
Body
Success
Body
Error
Whatsapp Number Delete
DELETE
/whatsapp/delete
It is a Setrow API feature for deleting an sms number from any groups. With a single request, you can perform bulk transactions with a maximum of 1000 whatsapp numbers.
Example URI
Body
Success
Body
Error
Get Wrong Whatsapp List
GET
/wrong/whatsapp/list/?{parameters}
It's a Setrow API feature to get the list of wrong whatsapp numbers.
Example URI
Success
Body
Error
Get Wrong Whatsapp List
GET
/wrong/whatsapp/list/?{parameters}
It's a Setrow API feature to get the list of wrong whatsapp numbers.
Example URI
Success
Body
Error
Get Whatsapp Groups
GET
/group/whatsapp
It's a Setrow API feature to get list of whatsapp groups.
Example URI
Success
Body
Get Whatsapp Group Data
GET
/group/whatsapp/{whatsapp_group_id}
It's a Setrow API feature to get list of users registered to a whatsapp group.
Example URI
Success
Body
Create Whatsapp Group
POST
/group/whatsapp
It's a Setrow API feature to create whatsapp group.
Example URI
Body
Success
Body
Error
Whatsapp Unsubscribe List
GET
/unsubscribe/whatsapp/list/?{parameters}
It's a Setrow API feature to get the list of unsubscriber whatsapp numbers.
Example URI
Success
Body
Error
Whatsapp Unsubscribe Status
GET
/unsubscribe/whatsapp
It's a Setrow API feature to get whatsapp number unsubscribe status.
Example URI
Success
Body
Add Whatsapp Number
POST
/unsubscribe/whatsapp
It's a Setrow API feature add the whatsapp number to unsubscribe list.
Example URI
Body
Success
Body
Error
Delete Whatsapp Number
DELETE
/unsubscribe/whatsapp
It's a Setrow API feature add the whatsapp number to unsubscribe list.
Example URI
Body
Success
Body
Error
Group Operations ¶
Email Group Operations
Get manual Groups
GET
/group/email
It's a Setrow API feature to get list of email groups.
Example URI
Success
Body
Get manual Group Data
GET
/group/email/{group_id}
It's a Setrow API feature to get list of users registered to a email group.
Example URI
Success
Body
Get manual Group Data with Filter/Filters
GET
/group/email/{group_id}?{parameters}
It's a Setrow API feature to get list of users registered to a email group by filter.
Example URI
Success
Body
Get Auto Group Data
GET
/group/email/auto/{group_id}
It's a Setrow API feature to get list of users registered to a auto group.
Example URI
Success
Body
Create manual Group
POST
/group/email
It's a Setrow API feature to create email group.
Example URI
Body
Success
Body
Error
Sms Group Operations
Get SMS Groups
GET
/group/sms
It's a Setrow API feature to get list of sms groups.
Example URI
Success
Body
Get SMS Group Data
GET
/group/sms/{sms_group_id}
It's a Setrow API feature to get list of users registered to a sms group.
Example URI
Success
Body
Get SMS Group Data with Filter/Filters
GET
/group/sms/{sms_group_id}?{parameters}
It's a Setrow API feature to get list of users registered to a sms group by filter.
Example URI
Success
Body
Create SMS Group
POST
/group/sms
It's a Setrow API feature to create sms group.
Example URI
Body
Success
Body
Error
Category Operations¶
Get All Categories
GET
/category
It's a Setrow API feature to get the list of all categories.
Example URI
Success
Body
Add Category
POST
/category/add
It's a Setrow API feature to add or update an category. If there is no record with this category id, it adds it, if it does, it updates it. With a single request, you can perform bulk transactions with a maximum of 1000 categories.
Example URI
Body
Success
Body
Error
Delete Category
DELETE
/category/delete/{categoryId}
It's a Setrow API feature to delete the category.
Example URI
Success
Body
Error
Product Operations¶
Get All Products
GET
/product/all/{status}
It's a Setrow API feature to get the list of all products. Status: 1>Active , 2>Passive
Example URI
Success
Body
Get Products By Code
GET
/product/code/{productCode}
It's a Setrow API feature to get the product by product code.
Example URI
Success
Body
Error
Get Products By Barcode
GET
/product/barcode/{barcode}
It's a Setrow API feature to get the product by product barcode.
Example URI
Success
Body
Error
Product Add/Update
POST
/product/add
It's a Setrow API feature to add or update a product.
Example URI
Body
Success
Body
Error
Delete Product By Code
DELETE
/product/delete/code/{productCode}
It's a Setrow API feature to delete a product by product code.
Example URI
Success
Body
Error
Delete Product By Barcode
DELETE
/product/delete/barcode/{barcode}
It's a Setrow API feature to delete a product by product barcode.
Example URI
Success
Body
Error
Favorite Operations¶
Get All Favorites
GET
/favorite/{email}
It's a Setrow API feature to get the list of favorite products of an email.
Example URI
Success
Body
Add Favorites
POST
/favorite
It's a Setrow API feature to add a product to favorites. With a single request, you can perform bulk transactions with a maximum of 1000 categories.
Example URI
Body
Success
Body
Error
Delete favorites
DELETE
/favorite
It's a Setrow API feature to delete the product from favorites.
Example URI
Body
Success
Body
Error
Basket Operations¶
Get Baskets
GET
/baskets/{email}
It's a Setrow API feature to get the list of baskets of an email.
Example URI
Success
Body
Add Basket
POST
/baskets
It's a Setrow API feature to add a product to basket. With a single request, you can perform bulk transactions with a maximum of 1000 baskets.
Example URI
Body
Success
Body
Delete Basket
DELETE
/baskets
It's a Setrow API feature to delete the product from basket.
Example URI
Body
Success
Body
Order Operations¶
Get Orders
GET
/orders/{email}
It's a Setrow API feature to get the list of orders of an email.
Example URI
Success
Body
Add Order
POST
/orders/add
It's a Setrow API feature to add an order. With a single request, you can perform bulk transactions with a maximum of 1000 orders.
Example URI
Body
Success
Body
Error
Update Order Status
POST
/orders/updateStatus
It's a Setrow API feature to update an order status. With a single request, you can perform bulk transactions with a maximum of 1000 orders.
Example URI
Body
Success
Body
Error
Delete Order
DELETE
/orders/delete
It's a Setrow API feature to delete an order. With a single request, you can perform bulk transactions with a maximum of 1000 orders.
Example URI
Body
Success
Body
Error
Unsubscribe Operations¶
Email Unsubscribe Operations
Email Unsubscribe List
GET
/unsubscribe/email/list/?{parameters}
It's a Setrow API feature to get the list of unsubscriber emails.
Example URI
Success
Body
Error
Add Email Address
POST
/unsubscribe/email
It's a Setrow API feature add the email address to unsubscribe list.
Example URI
Body
Success
Body
Error
Delete Email Address
DELETE
/unsubscribe/email
It's a Setrow API feature add the email address to unsubscribe list.
Example URI
Body
Success
Body
Error
Email Unsubscribe Status
GET
/unsubscribe/email
It's a Setrow API feature to get email unsubscribe status.
Example URI
Success
Body
SMS Unsubscribe Operations
Sms Unsubscribe List
GET
/unsubscribe/sms/list/?{parameters}
It's a Setrow API feature to get the list of unsubscriber sms numbers.
Example URI
Success
Body
Error
Add Sms Number
POST
/unsubscribe/sms
It's a Setrow API feature add the sms number to unsubscribe list.
Example URI
Body
Success
Body
Error
Delete Sms Number
DELETE
/unsubscribe/sms
It's a Setrow API feature add the sms number to unsubscribe list.
Example URI
Body
Success
Body
Error
SMS Unsubscribe Status
GET
/unsubscribe/sms
It's a Setrow API feature to get sms number unsubscribe status.
Example URI
Success
Body
Junk Address Operations¶
Get Junk List
GET
/junk/list/?{parameters}
It's a Setrow API feature to get the list of junk emails.
Example URI
Success
Body
Error
Get Junk Status
GET
/junk
It's a Setrow API feature to get the junk status of an email.
Example URI
Success
Body
Wrong Address Operations¶
Get Wrong Address List
GET
/wrong/list/?{parameters}
It's a Setrow API feature to get the list of wrong emails.
Example URI
Success
Body
Error
IYS Operations¶
IYS Get Errors
GET
/iys/errors/{hours}
It's a Setrow API feature to get the list of IYS send errors.
Example URI
Success
Body
Error
IYS Get Successes
GET
/iys/successes/{hours}
It's a Setrow API feature to get the list of successful IYS sends.
Example URI
Success
Body
Error
IYS Get Email Group Data
GET
/iys/list/email?{parameters}
It's a Setrow API feature to get the list of an IYS email group members with date filter.
Example URI
Success
Body
Error
IYS Get Sms Group Data
GET
/iys/list/sms?{parameters}
It's a Setrow API feature to get the list of an IYS sms group members with date filter.
Example URI
Success
Body
Error
IYS TransactionID Save
POST
/iys/transaction
After sending data to the IYS system using this API, you can store the requestid and the transaction id information in the requestid block for gsm numbers and email addresses. This way, you can have the IYS data transmission history reported and archived in the panel. To access the relevant records, you should check on the contact cards using the e-mail address or number. By default, an SMS account must be set up on the Setrow panel for GSM numbers.
Example URI
Body
Success
Body
Error
IYS Values
List of IYS OPT-IN source values.
| Value | Meaning |
|---|---|
| 1 | HS_FIZIKSELORTAM |
| 2 | HS_ISLAKIMZA |
| 3 | HS_WEB |
| 4 | HS_CAGRIMERKEZI |
| 5 | HS_SOSYALMEDYA |
| 6 | HS_MOBIL |
| 7 | HS_EORTAM |
| 8 | HS_ETKINLIK |
| 9 | HS_2015 |
| 10 | HS_ATM |
| 11 | HS_KARAR |
| 12 | IYS_3338 |
| 13 | IYS_CM |
| 14 | IYS_WEB |
| 15 | IYS_MOBIL |
| 16 | IYS_KISA_LINK |
List of IYS OPT-OUT source values.
| Value | Meaning |
|---|---|
| 1 | HS_EPOSTA |
| 2 | HS_MESAJ |
| 3 | HS_WEB |
| 4 | HS_MOBIL |
| 5 | HS_KARAR |
| 6 | HS_CAGRIMERKEZI |
| 7 | HS_EORTAM |
| 8 | HS_SOSYALMEDYA |
| 9 | HS_ATM |
| 10 | IYS_3338 |
| 11 | IYS_CM |
| 12 | IYS_WEB |
| 13 | IYS_MOBIL |
| 14 | IYS_KISA_LINK |
Allow status values.
| Value | Meaning |
|---|---|
| Y | Allowed |
| N | Not allowed |
| L | Legaly allowed |
| X | Changed from allowed to not allowed (Unsubscriber) |
Error Codes
List of error codes and error messages returned in response to API requests.
| Error Code | Error Description |
|---|---|
| E100 | A required parameter is not defined. |
| E101 | An error occurred during an operation. |
| E102 | A required info is no set. |
| E103 | A parameter is not valid. |
| E104 | Email address not registered in Setrow Databases. |
| E105 | You are not authorized for this group. |
| E106 | The entered auto group was not found. |
| E107 | Parameter must be longer than minimum character length limit. |
| E108 | Mini-plan customers can have a maximum of 10 manual groups. |
| E109 | Group name has already been used. |
| E110 | Sms settings not found. |
| E111 | There is no member with this address. |
| E112 | There is no product with this product_code. |
| E113 | There is no group with this group_id. |
| E114 | This product has already been added to favorites. |
| E115 | This e-mail address is already registered in the list. |
| E116 | This e-mail address is not registered in the list. |
| E117 | This number is already registered in the list. |
| E118 | This number is not registered in the list. |
| E119 | This number not registered in Setrow Databases. |
| E120 | This email address not registered in User Databases. |
| E121 | This number not registered in User Databases. |
| E122 | lastDate parameter must be greater than startDate parameter. |
| E123 | The difference between the startDate parameter and the lastDate parameter can be up to 30 days. |
| E124 | Request is not valid, please check API information. |
| E125 | Request is too long, max available length 1000. |
| E126 | This email address is registered in the list of those who do not want email. The operation cannot be performed. |
| E127 | This email address is registered in the list of wrong addresses. The operation cannot be performed. |
| E128 | This email address is registered in the list of junk addresses. The operation cannot be performed. |
| E129 | This phone number is registered in the list of those who do not want sms. The operation cannot be performed. |
| E130 | This number is not registered in the Setrow databases. |
| E131 | This number is not registered in this group. |
| E132 | This email address is not registered in this group. |
| E133 | At least one of the Number or Date filters must be used. |
| E134 | A numeric value must be entered. |
| E135 | Value cannot be greater than 96. |
| E136 | hour parameter cannot be greater than 96. |
| E137 | productBarcode or productCode parameter must set. |
| E138 | This barcode is defined for another product code. |
| E139 | The product could not be updated. Current data is already up to date. |
| E140 | The product not found in Setrow Databases. |
| E141 | The category not found in Setrow Databases. |
| E142 | categoryId and parentCategoryId are equal. |
| E143 | This product has already been deleted from favorites. |
| E144 | This order not found in Setrow Databases. |
| E145 | Account inactive. |
| E146 | The account does not have an IYS data transfer pool, please notify the e-mail address of yazilim@setrow.com. |
| E401 | User auth failed. |
| E403 | IP address not allowed, please contact destek@setrow.com |
| E404 | The server can not find the requested resource. |