StoresService
A list of all methods in the StoresService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
StoresVGetStoresAsync | |
StoresVCreateStoreAsync | |
StoresVGetStoreAsync | |
StoresVUpdateStoreAsync | Updates a store. externalId is the store identifier. |
StoresVGetStoresAsync
- HTTP Method:
GET
- Endpoint:
/api/v2/stores
Parameters
Name | Type | Required | Description |
---|---|---|---|
includeInactive | bool | ❌ | Value indicating if the inactive stores should be included or not. (Default value = false) |
Return Type
List<ApiStore>
Example Usage Code Snippet
using VoyadoEngage;
var client = new VoyadoEngageClient();
var response = await client.Stores.StoresVGetStoresAsync(false);
Console.WriteLine(response);
StoresVCreateStoreAsync
- HTTP Method:
POST
- Endpoint:
/api/v2/stores
Parameters
Name | Type | Required | Description |
---|---|---|---|
input | ApiStore | ✅ | The request body. |
Return Type
ApiStore
Example Usage Code Snippet
using VoyadoEngage;
using VoyadoEngage.Models;
var client = new VoyadoEngageClient();
var input = new ApiStore();
var response = await client.Stores.StoresVCreateStoreAsync(input);
Console.WriteLine(response);
StoresVGetStoreAsync
- HTTP Method:
GET
- Endpoint:
/api/v2/stores/{externalId}
Parameters
Name | Type | Required | Description |
---|---|---|---|
externalId | string | ✅ | The external id of the store to get. |
includeInactive | bool | ❌ | Value indicating if the store can be inactive or not. (Default value = false) |
Return Type
ApiStore
Example Usage Code Snippet
using VoyadoEngage;
var client = new VoyadoEngageClient();
var response = await client.Stores.StoresVGetStoreAsync("externalId", true);
Console.WriteLine(response);
StoresVUpdateStoreAsync
Updates a store. externalId is the store identifier.
- HTTP Method:
POST
- Endpoint:
/api/v2/stores/{externalId}
Parameters
Name | Type | Required | Description |
---|---|---|---|
input | ApiStore | ✅ | The request body. |
externalId | string | ✅ | The external id of the store to update. |
Return Type
ApiStore
Example Usage Code Snippet
using VoyadoEngage;
using VoyadoEngage.Models;
var client = new VoyadoEngageClient();
var input = new ApiStore();
var response = await client.Stores.StoresVUpdateStoreAsync(input, "externalId");
Console.WriteLine(response);
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs