All URIs are relative to https://api.sendinblue.com/v3
Method | HTTP request | Description |
---|---|---|
createBatchOrder | POST /orders/status/batch | Create orders in batch |
createOrder | POST /orders/status | Managing the status of the order |
createUpdateBatchCategory | POST /categories/batch | Create categories in batch |
createUpdateBatchProducts | POST /products/batch | Create products in batch |
createUpdateCategory | POST /categories | Create/Update a category |
createUpdateProduct | POST /products | Create/Update a product |
ecommerceActivatePost | POST /ecommerce/activate | Activate the eCommerce app |
getCategories | GET /categories | Return all your categories |
getCategoryInfo | GET /categories/{id} | Get a category details |
getProductInfo | GET /products/{id} | Get a product's details |
getProducts | GET /products | Return all your products |
createBatchOrder(orderBatch)
Create orders in batch
Create multiple orders at one time instead of one order at a time
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
OrderBatch orderBatch = new OrderBatch(); // OrderBatch |
try {
apiInstance.createBatchOrder(orderBatch);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#createBatchOrder");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
orderBatch | OrderBatch |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
createOrder(order)
Managing the status of the order
Manages the transactional status of the order
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
Order order = new Order(); // Order |
try {
apiInstance.createOrder(order);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#createOrder");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
order | Order |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
CreateUpdateBatchCategoryModel createUpdateBatchCategory(createUpdateBatchCategory)
Create categories in batch
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
CreateUpdateBatchCategory createUpdateBatchCategory = new CreateUpdateBatchCategory(); // CreateUpdateBatchCategory | Values to create a batch of categories
try {
CreateUpdateBatchCategoryModel result = apiInstance.createUpdateBatchCategory(createUpdateBatchCategory);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#createUpdateBatchCategory");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
createUpdateBatchCategory | CreateUpdateBatchCategory | Values to create a batch of categories |
CreateUpdateBatchCategoryModel
- Content-Type: application/json
- Accept: application/json
CreateUpdateBatchProductsModel createUpdateBatchProducts(createUpdateBatchProducts)
Create products in batch
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
CreateUpdateBatchProducts createUpdateBatchProducts = new CreateUpdateBatchProducts(); // CreateUpdateBatchProducts | Values to create a batch of products
try {
CreateUpdateBatchProductsModel result = apiInstance.createUpdateBatchProducts(createUpdateBatchProducts);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#createUpdateBatchProducts");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
createUpdateBatchProducts | CreateUpdateBatchProducts | Values to create a batch of products |
CreateUpdateBatchProductsModel
- Content-Type: application/json
- Accept: application/json
CreateCategoryModel createUpdateCategory(createUpdateCategory)
Create/Update a category
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
CreateUpdateCategory createUpdateCategory = new CreateUpdateCategory(); // CreateUpdateCategory | Values to create/update a category
try {
CreateCategoryModel result = apiInstance.createUpdateCategory(createUpdateCategory);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#createUpdateCategory");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
createUpdateCategory | CreateUpdateCategory | Values to create/update a category |
- Content-Type: application/json
- Accept: application/json
CreateProductModel createUpdateProduct(createUpdateProduct)
Create/Update a product
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
CreateUpdateProduct createUpdateProduct = new CreateUpdateProduct(); // CreateUpdateProduct | Values to create/update a product
try {
CreateProductModel result = apiInstance.createUpdateProduct(createUpdateProduct);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#createUpdateProduct");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
createUpdateProduct | CreateUpdateProduct | Values to create/update a product |
- Content-Type: application/json
- Accept: application/json
ecommerceActivatePost()
Activate the eCommerce app
Getting access to Sendinblue eCommerce.
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
try {
apiInstance.ecommerceActivatePost();
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#ecommerceActivatePost");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: application/json
- Accept: application/json
GetCategories getCategories(limit, offset, sort, ids)
Return all your categories
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
Long limit = 50L; // Long | Number of documents per page
Long offset = 0L; // Long | Index of the first document in the page
String sort = "desc"; // String | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
List<String> ids = Arrays.asList("ids_example"); // List<String> | Filter by category ids
try {
GetCategories result = apiInstance.getCategories(limit, offset, sort, ids);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#getCategories");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
limit | Long | Number of documents per page | [optional] [default to 50] |
offset | Long | Index of the first document in the page | [optional] [default to 0] |
sort | String | Sort the results in the ascending/descending order of record creation. Default order is descending if `sort` is not passed | [optional] [default to desc] [enum: asc, desc] |
ids | List<String> | Filter by category ids | [optional] |
- Content-Type: application/json
- Accept: application/json
GetCategoryDetails getCategoryInfo(id)
Get a category details
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
String id = "id_example"; // String | Category ID
try {
GetCategoryDetails result = apiInstance.getCategoryInfo(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#getCategoryInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Category ID |
- Content-Type: application/json
- Accept: application/json
GetProductDetails getProductInfo(id)
Get a product's details
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
String id = "id_example"; // String | Product ID
try {
GetProductDetails result = apiInstance.getProductInfo(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#getProductInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Product ID |
- Content-Type: application/json
- Accept: application/json
GetProducts getProducts(limit, offset, sort, ids)
Return all your products
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.EcommerceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
EcommerceApi apiInstance = new EcommerceApi();
Long limit = 50L; // Long | Number of documents per page
Long offset = 0L; // Long | Index of the first document in the page
String sort = "desc"; // String | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
List<String> ids = Arrays.asList("ids_example"); // List<String> | Filter by product ids
try {
GetProducts result = apiInstance.getProducts(limit, offset, sort, ids);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EcommerceApi#getProducts");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
limit | Long | Number of documents per page | [optional] [default to 50] |
offset | Long | Index of the first document in the page | [optional] [default to 0] |
sort | String | Sort the results in the ascending/descending order of record creation. Default order is descending if `sort` is not passed | [optional] [default to desc] [enum: asc, desc] |
ids | List<String> | Filter by product ids | [optional] |
- Content-Type: application/json
- Accept: application/json