All URIs are relative to https://api.api2cart.com/v1.1
Method | HTTP request | Description |
---|---|---|
customerAdd | POST /customer.add.json | customer.add |
customerAddWithHttpInfo | POST /customer.add.json | customer.add |
customerAddressAdd | POST /customer.address.add.json | customer.address.add |
customerAddressAddWithHttpInfo | POST /customer.address.add.json | customer.address.add |
customerAttributeList | GET /customer.attribute.list.json | customer.attribute.list |
customerAttributeListWithHttpInfo | GET /customer.attribute.list.json | customer.attribute.list |
customerCount | GET /customer.count.json | customer.count |
customerCountWithHttpInfo | GET /customer.count.json | customer.count |
customerDelete | DELETE /customer.delete.json | customer.delete |
customerDeleteWithHttpInfo | DELETE /customer.delete.json | customer.delete |
customerFind | GET /customer.find.json | customer.find |
customerFindWithHttpInfo | GET /customer.find.json | customer.find |
customerGroupAdd | POST /customer.group.add.json | customer.group.add |
customerGroupAddWithHttpInfo | POST /customer.group.add.json | customer.group.add |
customerGroupList | GET /customer.group.list.json | customer.group.list |
customerGroupListWithHttpInfo | GET /customer.group.list.json | customer.group.list |
customerInfo | GET /customer.info.json | customer.info |
customerInfoWithHttpInfo | GET /customer.info.json | customer.info |
customerList | GET /customer.list.json | customer.list |
customerListWithHttpInfo | GET /customer.list.json | customer.list |
customerUpdate | PUT /customer.update.json | customer.update |
customerUpdateWithHttpInfo | PUT /customer.update.json | customer.update |
customerWishlistList | GET /customer.wishlist.list.json | customer.wishlist.list |
customerWishlistListWithHttpInfo | GET /customer.wishlist.list.json | customer.wishlist.list |
customerAdd(customerAddRequest): ApiRequest[CustomerAdd200Response]
customer.add
Add customer into store.
// Import classes:
import
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val customerAdd: CustomerAdd = // CustomerAdd |
val request = apiInstance.customerAdd(customerAdd)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerAdd")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerAdd")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
customerAdd | CustomerAdd |
ApiRequest[CustomerAdd200Response]
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerAddressAdd(customerAddressAddRequest): ApiRequest[AttributeAdd200Response]
customer.address.add
Add customer address.
// Import classes:
import
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val customerAddressAdd: CustomerAddressAdd = // CustomerAddressAdd |
val request = apiInstance.customerAddressAdd(customerAddressAdd)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerAddressAdd")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerAddressAdd")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
customerAddressAdd | CustomerAddressAdd |
ApiRequest[AttributeAdd200Response]
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerAttributeList(customerAttributeListRequest): ApiRequest[ModelResponseCustomerAttributeList]
customer.attribute.list
Get attributes for specific customer
// Import classes:
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val customerId: String = 5 // String | Retrieves orders specified by customer id
val count: Int = 20 // Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250
val pageCursor: String = // String | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter)
val storeId: String = 1 // String | Store Id
val langId: String = 3 // String | Language id
val responseFields: String = {return_code,return_message,pagination,result} // String | Set this parameter in order to choose which entity fields you want to retrieve
val params: String = id,model,price,images // String | Set this parameter in order to choose which entity fields you want to retrieve
val exclude: String = false // String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
val request = apiInstance.customerAttributeList(customerId, count, pageCursor, storeId, langId, responseFields, params, exclude)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerAttributeList")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerAttributeList")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
customerId | String | Retrieves orders specified by customer id | |
count | Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250 | [optional] |
pageCursor | String | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) | [optional] |
storeId | String | Store Id | [optional] |
langId | String | Language id | [optional] |
responseFields | String | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
params | String | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
exclude | String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all | [optional] |
ApiRequest[ModelResponseCustomerAttributeList]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerCount(customerCountRequest): ApiRequest[CustomerCount200Response]
customer.count
Get number of customers from store.
// Import classes:
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val ids: String = 24,25 // String | Counts customers specified by ids
val sinceId: String = 56 // String | Retrieve entities starting from the specified id.
val customerListId: String = exampleListId // String | The numeric ID of the customer list in Demandware.
val groupId: String = 3 // String | Customer group_id
val storeId: String = 1 // String | Counts customer specified by store id
val avail: Boolean = false // Boolean | Defines category's visibility status
val findValue: String = mail@gmail.com // String | Entity search that is specified by some value
val findWhere: String = email // String | Counts customers that are searched specified by field
val createdFrom: String = 2010-07-29 13:45:52 // String | Retrieve entities from their creation date
val createdTo: String = 2100-08-29 13:45:52 // String | Retrieve entities to their creation date
val modifiedFrom: String = 2010-07-29 13:45:52 // String | Retrieve entities from their modification date
val modifiedTo: String = 2100-08-29 13:45:52 // String | Retrieve entities to their modification date
val request = apiInstance.customerCount(ids, sinceId, customerListId, groupId, storeId, avail, findValue, findWhere, createdFrom, createdTo, modifiedFrom, modifiedTo)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerCount")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerCount")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
ids | String | Counts customers specified by ids | [optional] |
sinceId | String | Retrieve entities starting from the specified id. | [optional] |
customerListId | String | The numeric ID of the customer list in Demandware. | [optional] |
groupId | String | Customer group_id | [optional] |
storeId | String | Counts customer specified by store id | [optional] |
avail | Boolean | Defines category's visibility status | [optional] |
findValue | String | Entity search that is specified by some value | [optional] |
findWhere | String | Counts customers that are searched specified by field | [optional] |
createdFrom | String | Retrieve entities from their creation date | [optional] |
createdTo | String | Retrieve entities to their creation date | [optional] |
modifiedFrom | String | Retrieve entities from their modification date | [optional] |
modifiedTo | String | Retrieve entities to their modification date | [optional] |
ApiRequest[CustomerCount200Response]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerDelete(customerDeleteRequest): ApiRequest[CustomerDelete200Response]
customer.delete
Delete customer from store.
// Import classes:
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val id: String = 10 // String | Identifies customer specified by the id
val request = apiInstance.customerDelete(id)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerDelete")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerDelete")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifies customer specified by the id |
ApiRequest[CustomerDelete200Response]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerFind(customerFindRequest): ApiRequest[CustomerFind200Response]
customer.find
Find customers in store.
// Import classes:
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val findValue: String = mail@gmail.com // String | Entity search that is specified by some value
val findWhere: String = email // String | Entity search that is specified by the comma-separated unique fields
val findParams: String = regex // String | Entity search that is specified by comma-separated parameters
val storeId: String = 1 // String | Store Id
val request = apiInstance.customerFind(findValue, findWhere, findParams, storeId)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerFind")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerFind")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
findValue | String | Entity search that is specified by some value | |
findWhere | String | Entity search that is specified by the comma-separated unique fields | [optional] |
findParams | String | Entity search that is specified by comma-separated parameters | [optional] |
storeId | String | Store Id | [optional] |
ApiRequest[CustomerFind200Response]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerGroupAdd(customerGroupAddRequest): ApiRequest[CustomerGroupAdd200Response]
customer.group.add
Create customer group.
// Import classes:
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val name: String = new_group // String | Customer group name
val storeId: String = 1 // String | Store Id
val storesIds: String = 1,2 // String | Assign customer group to the stores that is specified by comma-separated stores' id
val request = apiInstance.customerGroupAdd(name, storeId, storesIds)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerGroupAdd")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerGroupAdd")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Customer group name | |
storeId | String | Store Id | [optional] |
storesIds | String | Assign customer group to the stores that is specified by comma-separated stores' id | [optional] |
ApiRequest[CustomerGroupAdd200Response]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerGroupList(customerGroupListRequest): ApiRequest[ModelResponseCustomerGroupList]
customer.group.list
Get list of customers groups.
// Import classes:
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val start: Int = 0 // Int | This parameter sets the number from which you want to get entities
val count: Int = 20 // Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250
val pageCursor: String = // String | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter)
val groupIds: String = 1,2,3 // String | Groups that will be assigned to a customer
val storeId: String = 1 // String | Store Id
val langId: String = 3 // String | Language id
val responseFields: String = {return_code,return_message,pagination,result} // String | Set this parameter in order to choose which entity fields you want to retrieve
val params: String = id,model,price,images // String | Set this parameter in order to choose which entity fields you want to retrieve
val exclude: String = false // String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
val disableCache: Boolean = false // Boolean | Disable cache for current request
val request = apiInstance.customerGroupList(start, count, pageCursor, groupIds, storeId, langId, responseFields, params, exclude, disableCache)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerGroupList")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerGroupList")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
start | Int | This parameter sets the number from which you want to get entities | [optional] |
count | Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250 | [optional] |
pageCursor | String | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) | [optional] |
groupIds | String | Groups that will be assigned to a customer | [optional] |
storeId | String | Store Id | [optional] |
langId | String | Language id | [optional] |
responseFields | String | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
params | String | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
exclude | String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all | [optional] |
disableCache | Boolean | Disable cache for current request | [optional] |
ApiRequest[ModelResponseCustomerGroupList]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerInfo(customerInfoRequest): ApiRequest[CustomerInfo200Response]
customer.info
Get customers' details from store.
// Import classes:
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val id: String = 10 // String | Retrieves customer's info specified by customer id
val storeId: String = 1 // String | Retrieves customer info specified by store id
val responseFields: String = {result{id,parent_id,sku,upc,images,combination}} // String | Set this parameter in order to choose which entity fields you want to retrieve
val params: String = id,email // String | Set this parameter in order to choose which entity fields you want to retrieve
val exclude: String = id,email // String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
val request = apiInstance.customerInfo(id, storeId, responseFields, params, exclude)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerInfo")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerInfo")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Retrieves customer's info specified by customer id | |
storeId | String | Retrieves customer info specified by store id | [optional] |
responseFields | String | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
params | String | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
exclude | String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all | [optional] |
ApiRequest[CustomerInfo200Response]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerList(customerListRequest): ApiRequest[ModelResponseCustomerList]
customer.list
Get list of customers from store.
// Import classes:
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val start: Int = 0 // Int | This parameter sets the number from which you want to get entities
val count: Int = 20 // Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250
val pageCursor: String = // String | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter)
val ids: String = 24,25 // String | Retrieves customers specified by ids
val sinceId: String = 56 // String | Retrieve entities starting from the specified id.
val customerListId: String = exampleListId // String | The numeric ID of the customer list in Demandware.
val groupId: String = 3 // String | Customer group_id
val storeId: String = 1 // String | Retrieves customers specified by store id
val avail: Boolean = false // Boolean | Defines category's visibility status
val findValue: String = mail@gmail.com // String | Entity search that is specified by some value
val findWhere: String = email // String | Customer search that is specified by field
val createdFrom: String = 2010-07-29 13:45:52 // String | Retrieve entities from their creation date
val createdTo: String = 2100-08-29 13:45:52 // String | Retrieve entities to their creation date
val modifiedFrom: String = 2010-07-29 13:45:52 // String | Retrieve entities from their modification date
val modifiedTo: String = 2100-08-29 13:45:52 // String | Retrieve entities to their modification date
val sortBy: String = value_id // String | Set field to sort by
val sortDirection: String = asc // String | Set sorting direction
val responseFields: String = {result{customer}} // String | Set this parameter in order to choose which entity fields you want to retrieve
val params: String = id,email // String | Set this parameter in order to choose which entity fields you want to retrieve
val exclude: String = id,email // String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
val request = apiInstance.customerList(start, count, pageCursor, ids, sinceId, customerListId, groupId, storeId, avail, findValue, findWhere, createdFrom, createdTo, modifiedFrom, modifiedTo, sortBy, sortDirection, responseFields, params, exclude)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerList")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerList")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
start | Int | This parameter sets the number from which you want to get entities | [optional] |
count | Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250 | [optional] |
pageCursor | String | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) | [optional] |
ids | String | Retrieves customers specified by ids | [optional] |
sinceId | String | Retrieve entities starting from the specified id. | [optional] |
customerListId | String | The numeric ID of the customer list in Demandware. | [optional] |
groupId | String | Customer group_id | [optional] |
storeId | String | Retrieves customers specified by store id | [optional] |
avail | Boolean | Defines category's visibility status | [optional] |
findValue | String | Entity search that is specified by some value | [optional] |
findWhere | String | Customer search that is specified by field | [optional] |
createdFrom | String | Retrieve entities from their creation date | [optional] |
createdTo | String | Retrieve entities to their creation date | [optional] |
modifiedFrom | String | Retrieve entities from their modification date | [optional] |
modifiedTo | String | Retrieve entities to their modification date | [optional] |
sortBy | String | Set field to sort by | [optional] |
sortDirection | String | Set sorting direction | [optional] |
responseFields | String | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
params | String | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
exclude | String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all | [optional] |
ApiRequest[ModelResponseCustomerList]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerUpdate(customerUpdateRequest): ApiRequest[AccountConfigUpdate200Response]
customer.update
Update information of customer in store.
// Import classes:
import
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val customerUpdate: CustomerUpdate = // CustomerUpdate |
val request = apiInstance.customerUpdate(customerUpdate)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerUpdate")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerUpdate")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
customerUpdate | CustomerUpdate |
ApiRequest[AccountConfigUpdate200Response]
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
customerWishlistList(customerWishlistListRequest): ApiRequest[ModelResponseCustomerWishlistList]
customer.wishlist.list
Get a Wish List of customer from the store.
// Import classes:
import
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._
import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Example extends App {
implicit val system: ActorSystem = ActorSystem()
import system.dispatcher
// Configure API key authorization: StoreKeyAuth
implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
// Configure API key authorization: ApiKeyAuth
implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")
val apiInvoker = ApiInvoker()
val apiInstance = CustomerApi("https://api.api2cart.com/v1.1")
val customerId: String = 5 // String | Retrieves orders specified by customer id
val start: Int = 0 // Int | This parameter sets the number from which you want to get entities
val count: Int = 20 // Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250
val pageCursor: String = // String | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter)
val id: String = 10 // String | Entity id
val storeId: String = 1 // String | Store Id
val responseFields: String = {return_code,return_message,pagination,result} // String | Set this parameter in order to choose which entity fields you want to retrieve
val request = apiInstance.customerWishlistList(customerId, start, count, pageCursor, id, storeId, responseFields)
val response = apiInvoker.execute(request)
response.onComplete {
case Success(ApiResponse(code, content, headers)) =>
System.out.println(s"Status code: $code}")
System.out.println(s"Response headers: ${headers.mkString(", ")}")
System.out.println(s"Response body: $content")
case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
System.err.println("Exception when calling CustomerApi#customerWishlistList")
System.err.println(s"Status code: $code}")
System.err.println(s"Reason: $responseContent")
System.err.println(s"Response headers: ${headers.mkString(", ")}")
error.printStackTrace();
case Failure(exception) =>
System.err.println("Exception when calling CustomerApi#customerWishlistList")
exception.printStackTrace();
}
}
Name | Type | Description | Notes |
---|---|---|---|
customerId | String | Retrieves orders specified by customer id | |
start | Int | This parameter sets the number from which you want to get entities | [optional] |
count | Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250 | [optional] |
pageCursor | String | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) | [optional] |
id | String | Entity id | [optional] |
storeId | String | Store Id | [optional] |
responseFields | String | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
ApiRequest[ModelResponseCustomerWishlistList]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |