All URIs are relative to https://connect.squareup.com
Method | HTTP request | Description |
---|---|---|
AdjustInventory | POST /v1/{location_id}/inventory/{variation_id} | Adjusts an item variation's current available inventory. |
ApplyFee | PUT /v1/{location_id}/items/{item_id}/fees/{fee_id} | Associates a fee with an item, meaning the fee is automatically applied to the item in Square Register. |
ApplyModifierList | PUT /v1/{location_id}/items/{item_id}/modifier-lists/{modifier_list_id} | Associates a modifier list with an item, meaning modifier options from the list can be applied to the item. |
CreateCategory | POST /v1/{location_id}/categories | Creates an item category. |
CreateDiscount | POST /v1/{location_id}/discounts | Creates a discount. |
CreateFee | POST /v1/{location_id}/fees | Creates a fee (tax). |
CreateItem | POST /v1/{location_id}/items | Creates an item and at least one variation for it. |
CreateModifierList | POST /v1/{location_id}/modifier-lists | Creates an item modifier list and at least one modifier option for it. |
CreateModifierOption | POST /v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options | Creates an item modifier option and adds it to a modifier list. |
CreatePage | POST /v1/{location_id}/pages | Creates a Favorites page in Square Register. |
CreateVariation | POST /v1/{location_id}/items/{item_id}/variations | Creates an item variation for an existing item. |
DeleteCategory | DELETE /v1/{location_id}/categories/{category_id} | Deletes an existing item category. |
DeleteDiscount | DELETE /v1/{location_id}/discounts/{discount_id} | Deletes an existing discount. |
DeleteFee | DELETE /v1/{location_id}/fees/{fee_id} | Deletes an existing fee (tax). |
DeleteItem | DELETE /v1/{location_id}/items/{item_id} | Deletes an existing item and all item variations associated with it. |
DeleteModifierList | DELETE /v1/{location_id}/modifier-lists/{modifier_list_id} | Deletes an existing item modifier list and all modifier options associated with it. |
DeleteModifierOption | DELETE /v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options/{modifier_option_id} | Deletes an existing item modifier option from a modifier list. |
DeletePage | DELETE /v1/{location_id}/pages/{page_id} | Deletes an existing Favorites page and all of its cells. |
DeletePageCell | DELETE /v1/{location_id}/pages/{page_id}/cells | Deletes a cell from a Favorites page in Square Register. |
DeleteVariation | DELETE /v1/{location_id}/items/{item_id}/variations/{variation_id} | Deletes an existing item variation from an item. |
ListCategories | GET /v1/{location_id}/categories | Lists all of a location's item categories. |
ListDiscounts | GET /v1/{location_id}/discounts | Lists all of a location's discounts. |
ListFees | GET /v1/{location_id}/fees | Lists all of a location's fees (taxes). |
ListInventory | GET /v1/{location_id}/inventory | Provides inventory information for all of a merchant's inventory-enabled item variations. |
ListItems | GET /v1/{location_id}/items | Provides summary information for all of a location's items. |
ListModifierLists | GET /v1/{location_id}/modifier-lists | Lists all of a location's modifier lists. |
ListPages | GET /v1/{location_id}/pages | Lists all of a location's Favorites pages in Square Register. |
RemoveFee | DELETE /v1/{location_id}/items/{item_id}/fees/{fee_id} | Removes a fee assocation from an item, meaning the fee is no longer automatically applied to the item in Square Register. |
RemoveModifierList | DELETE /v1/{location_id}/items/{item_id}/modifier-lists/{modifier_list_id} | Removes a modifier list association from an item, meaning modifier options from the list can no longer be applied to the item. |
RetrieveItem | GET /v1/{location_id}/items/{item_id} | Provides the details for a single item, including associated modifier lists and fees. |
RetrieveModifierList | GET /v1/{location_id}/modifier-lists/{modifier_list_id} | Provides the details for a single modifier list. |
UpdateCategory | PUT /v1/{location_id}/categories/{category_id} | Modifies the details of an existing item category. |
UpdateDiscount | PUT /v1/{location_id}/discounts/{discount_id} | Modifies the details of an existing discount. |
UpdateFee | PUT /v1/{location_id}/fees/{fee_id} | Modifies the details of an existing fee (tax). |
UpdateItem | PUT /v1/{location_id}/items/{item_id} | Modifies the core details of an existing item. |
UpdateModifierList | PUT /v1/{location_id}/modifier-lists/{modifier_list_id} | Modifies the details of an existing item modifier list. |
UpdateModifierOption | PUT /v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options/{modifier_option_id} | Modifies the details of an existing item modifier option. |
UpdatePage | PUT /v1/{location_id}/pages/{page_id} | Modifies the details of a Favorites page in Square Register. |
UpdatePageCell | PUT /v1/{location_id}/pages/{page_id}/cells | Modifies a cell of a Favorites page in Square Register. |
UpdateVariation | PUT /v1/{location_id}/items/{item_id}/variations/{variation_id} | Modifies the details of an existing item variation. |
V1InventoryEntry AdjustInventory (string locationId, string variationId, V1AdjustInventoryRequest body)
Adjusts an item variation's current available inventory.
Adjusts an item variation's current available inventory.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class AdjustInventoryExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var variationId = variationId_example; // string | The ID of the variation to adjust inventory information for.
var body = new V1AdjustInventoryRequest(); // V1AdjustInventoryRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Adjusts an item variation's current available inventory.
V1InventoryEntry result = apiInstance.AdjustInventory(locationId, variationId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.AdjustInventory: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
variationId | string | The ID of the variation to adjust inventory information for. | |
body | V1AdjustInventoryRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Item ApplyFee (string locationId, string itemId, string feeId)
Associates a fee with an item, meaning the fee is automatically applied to the item in Square Register.
Associates a fee with an item, meaning the fee is automatically applied to the item in Square Register.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ApplyFeeExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the fee's associated location.
var itemId = itemId_example; // string | The ID of the item to add the fee to.
var feeId = feeId_example; // string | The ID of the fee to apply.
try
{
// Associates a fee with an item, meaning the fee is automatically applied to the item in Square Register.
V1Item result = apiInstance.ApplyFee(locationId, itemId, feeId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.ApplyFee: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the fee's associated location. | |
itemId | string | The ID of the item to add the fee to. | |
feeId | string | The ID of the fee to apply. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Item ApplyModifierList (string locationId, string modifierListId, string itemId)
Associates a modifier list with an item, meaning modifier options from the list can be applied to the item.
Associates a modifier list with an item, meaning modifier options from the list can be applied to the item.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ApplyModifierListExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var modifierListId = modifierListId_example; // string | The ID of the modifier list to apply.
var itemId = itemId_example; // string | The ID of the item to add the modifier list to.
try
{
// Associates a modifier list with an item, meaning modifier options from the list can be applied to the item.
V1Item result = apiInstance.ApplyModifierList(locationId, modifierListId, itemId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.ApplyModifierList: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
modifierListId | string | The ID of the modifier list to apply. | |
itemId | string | The ID of the item to add the modifier list to. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Category CreateCategory (string locationId, V1Category body)
Creates an item category.
Creates an item category.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class CreateCategoryExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to create an item for.
var body = new V1Category(); // V1Category | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Creates an item category.
V1Category result = apiInstance.CreateCategory(locationId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.CreateCategory: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to create an item for. | |
body | V1Category | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Discount CreateDiscount (string locationId, V1Discount body)
Creates a discount.
Creates a discount.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class CreateDiscountExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to create an item for.
var body = new V1Discount(); // V1Discount | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Creates a discount.
V1Discount result = apiInstance.CreateDiscount(locationId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.CreateDiscount: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to create an item for. | |
body | V1Discount | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Fee CreateFee (string locationId, V1Fee body)
Creates a fee (tax).
Creates a fee (tax).
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class CreateFeeExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to create a fee for.
var body = new V1Fee(); // V1Fee | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Creates a fee (tax).
V1Fee result = apiInstance.CreateFee(locationId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.CreateFee: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to create a fee for. | |
body | V1Fee | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Item CreateItem (string locationId, V1Item body)
Creates an item and at least one variation for it.
Creates an item and at least one variation for it.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class CreateItemExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to create an item for.
var body = new V1Item(); // V1Item | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Creates an item and at least one variation for it.
V1Item result = apiInstance.CreateItem(locationId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.CreateItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to create an item for. | |
body | V1Item | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1ModifierList CreateModifierList (string locationId, V1ModifierList body)
Creates an item modifier list and at least one modifier option for it.
Creates an item modifier list and at least one modifier option for it.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class CreateModifierListExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to create a modifier list for.
var body = new V1ModifierList(); // V1ModifierList | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Creates an item modifier list and at least one modifier option for it.
V1ModifierList result = apiInstance.CreateModifierList(locationId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.CreateModifierList: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to create a modifier list for. | |
body | V1ModifierList | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1ModifierOption CreateModifierOption (string locationId, string modifierListId, V1ModifierOption body)
Creates an item modifier option and adds it to a modifier list.
Creates an item modifier option and adds it to a modifier list.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class CreateModifierOptionExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var modifierListId = modifierListId_example; // string | The ID of the modifier list to edit.
var body = new V1ModifierOption(); // V1ModifierOption | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Creates an item modifier option and adds it to a modifier list.
V1ModifierOption result = apiInstance.CreateModifierOption(locationId, modifierListId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.CreateModifierOption: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
modifierListId | string | The ID of the modifier list to edit. | |
body | V1ModifierOption | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Page CreatePage (string locationId, V1Page body)
Creates a Favorites page in Square Register.
Creates a Favorites page in Square Register.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class CreatePageExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to create an item for.
var body = new V1Page(); // V1Page | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Creates a Favorites page in Square Register.
V1Page result = apiInstance.CreatePage(locationId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.CreatePage: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to create an item for. | |
body | V1Page | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Variation CreateVariation (string locationId, string itemId, V1Variation body)
Creates an item variation for an existing item.
Creates an item variation for an existing item.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class CreateVariationExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var itemId = itemId_example; // string | The item's ID.
var body = new V1Variation(); // V1Variation | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Creates an item variation for an existing item.
V1Variation result = apiInstance.CreateVariation(locationId, itemId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.CreateVariation: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
itemId | string | The item's ID. | |
body | V1Variation | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Category DeleteCategory (string locationId, string categoryId)
Deletes an existing item category.
Deletes an existing item category.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class DeleteCategoryExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var categoryId = categoryId_example; // string | The ID of the category to delete.
try
{
// Deletes an existing item category.
V1Category result = apiInstance.DeleteCategory(locationId, categoryId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.DeleteCategory: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
categoryId | string | The ID of the category to delete. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Discount DeleteDiscount (string locationId, string discountId)
Deletes an existing discount.
Deletes an existing discount.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class DeleteDiscountExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var discountId = discountId_example; // string | The ID of the discount to delete.
try
{
// Deletes an existing discount.
V1Discount result = apiInstance.DeleteDiscount(locationId, discountId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.DeleteDiscount: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
discountId | string | The ID of the discount to delete. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Fee DeleteFee (string locationId, string feeId)
Deletes an existing fee (tax).
Deletes an existing fee (tax).
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class DeleteFeeExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the fee's associated location.
var feeId = feeId_example; // string | The ID of the fee to delete.
try
{
// Deletes an existing fee (tax).
V1Fee result = apiInstance.DeleteFee(locationId, feeId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.DeleteFee: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the fee's associated location. | |
feeId | string | The ID of the fee to delete. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Item DeleteItem (string locationId, string itemId)
Deletes an existing item and all item variations associated with it.
Deletes an existing item and all item variations associated with it.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class DeleteItemExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var itemId = itemId_example; // string | The ID of the item to modify.
try
{
// Deletes an existing item and all item variations associated with it.
V1Item result = apiInstance.DeleteItem(locationId, itemId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.DeleteItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
itemId | string | The ID of the item to modify. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1ModifierList DeleteModifierList (string locationId, string modifierListId)
Deletes an existing item modifier list and all modifier options associated with it.
Deletes an existing item modifier list and all modifier options associated with it.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class DeleteModifierListExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var modifierListId = modifierListId_example; // string | The ID of the modifier list to delete.
try
{
// Deletes an existing item modifier list and all modifier options associated with it.
V1ModifierList result = apiInstance.DeleteModifierList(locationId, modifierListId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.DeleteModifierList: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
modifierListId | string | The ID of the modifier list to delete. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1ModifierOption DeleteModifierOption (string locationId, string modifierListId, string modifierOptionId)
Deletes an existing item modifier option from a modifier list.
Deletes an existing item modifier option from a modifier list.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class DeleteModifierOptionExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var modifierListId = modifierListId_example; // string | The ID of the modifier list to delete.
var modifierOptionId = modifierOptionId_example; // string | The ID of the modifier list to edit.
try
{
// Deletes an existing item modifier option from a modifier list.
V1ModifierOption result = apiInstance.DeleteModifierOption(locationId, modifierListId, modifierOptionId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.DeleteModifierOption: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
modifierListId | string | The ID of the modifier list to delete. | |
modifierOptionId | string | The ID of the modifier list to edit. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Page DeletePage (string locationId, string pageId)
Deletes an existing Favorites page and all of its cells.
Deletes an existing Favorites page and all of its cells.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class DeletePageExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the Favorites page's associated location.
var pageId = pageId_example; // string | The ID of the page to delete.
try
{
// Deletes an existing Favorites page and all of its cells.
V1Page result = apiInstance.DeletePage(locationId, pageId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.DeletePage: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the Favorites page's associated location. | |
pageId | string | The ID of the page to delete. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Page DeletePageCell (string locationId, string pageId, string row = null, string column = null)
Deletes a cell from a Favorites page in Square Register.
Deletes a cell from a Favorites page in Square Register.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class DeletePageCellExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the Favorites page's associated location.
var pageId = pageId_example; // string | The ID of the page to delete.
var row = row_example; // string | The row of the cell to clear. Always an integer between 0 and 4, inclusive. Row 0 is the top row. (optional)
var column = column_example; // string | The column of the cell to clear. Always an integer between 0 and 4, inclusive. Column 0 is the leftmost column. (optional)
try
{
// Deletes a cell from a Favorites page in Square Register.
V1Page result = apiInstance.DeletePageCell(locationId, pageId, row, column);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.DeletePageCell: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the Favorites page's associated location. | |
pageId | string | The ID of the page to delete. | |
row | string | The row of the cell to clear. Always an integer between 0 and 4, inclusive. Row 0 is the top row. | [optional] |
column | string | The column of the cell to clear. Always an integer between 0 and 4, inclusive. Column 0 is the leftmost column. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Variation DeleteVariation (string locationId, string itemId, string variationId)
Deletes an existing item variation from an item.
Deletes an existing item variation from an item.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class DeleteVariationExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var itemId = itemId_example; // string | The ID of the item to delete.
var variationId = variationId_example; // string | The ID of the variation to delete.
try
{
// Deletes an existing item variation from an item.
V1Variation result = apiInstance.DeleteVariation(locationId, itemId, variationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.DeleteVariation: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
itemId | string | The ID of the item to delete. | |
variationId | string | The ID of the variation to delete. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List ListCategories (string locationId)
Lists all of a location's item categories.
Lists all of a location's item categories.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ListCategoriesExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to list categories for.
try
{
// Lists all of a location's item categories.
List<V1Category> result = apiInstance.ListCategories(locationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.ListCategories: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to list categories for. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List ListDiscounts (string locationId)
Lists all of a location's discounts.
Lists all of a location's discounts.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ListDiscountsExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to list categories for.
try
{
// Lists all of a location's discounts.
List<V1Discount> result = apiInstance.ListDiscounts(locationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.ListDiscounts: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to list categories for. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List ListFees (string locationId)
Lists all of a location's fees (taxes).
Lists all of a location's fees (taxes).
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ListFeesExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to list fees for.
try
{
// Lists all of a location's fees (taxes).
List<V1Fee> result = apiInstance.ListFees(locationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.ListFees: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to list fees for. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List ListInventory (string locationId, int? limit = null)
Provides inventory information for all of a merchant's inventory-enabled item variations.
Provides inventory information for all of a merchant's inventory-enabled item variations.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ListInventoryExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var limit = 56; // int? | The maximum number of inventory entries to return in a single response. This value cannot exceed 1000. (optional)
try
{
// Provides inventory information for all of a merchant's inventory-enabled item variations.
List<V1InventoryEntry> result = apiInstance.ListInventory(locationId, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.ListInventory: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
limit | int? | The maximum number of inventory entries to return in a single response. This value cannot exceed 1000. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List ListItems (string locationId)
Provides summary information for all of a location's items.
Provides summary information for all of a location's items.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ListItemsExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to list items for.
try
{
// Provides summary information for all of a location's items.
List<V1Item> result = apiInstance.ListItems(locationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.ListItems: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to list items for. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List ListModifierLists (string locationId)
Lists all of a location's modifier lists.
Lists all of a location's modifier lists.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ListModifierListsExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to list modifier lists for.
try
{
// Lists all of a location's modifier lists.
List<V1ModifierList> result = apiInstance.ListModifierLists(locationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.ListModifierLists: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to list modifier lists for. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List ListPages (string locationId)
Lists all of a location's Favorites pages in Square Register.
Lists all of a location's Favorites pages in Square Register.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ListPagesExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the location to list Favorites pages for.
try
{
// Lists all of a location's Favorites pages in Square Register.
List<V1Page> result = apiInstance.ListPages(locationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.ListPages: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the location to list Favorites pages for. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Item RemoveFee (string locationId, string itemId, string feeId)
Removes a fee assocation from an item, meaning the fee is no longer automatically applied to the item in Square Register.
Removes a fee assocation from an item, meaning the fee is no longer automatically applied to the item in Square Register.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class RemoveFeeExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the fee's associated location.
var itemId = itemId_example; // string | The ID of the item to add the fee to.
var feeId = feeId_example; // string | The ID of the fee to apply.
try
{
// Removes a fee assocation from an item, meaning the fee is no longer automatically applied to the item in Square Register.
V1Item result = apiInstance.RemoveFee(locationId, itemId, feeId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.RemoveFee: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the fee's associated location. | |
itemId | string | The ID of the item to add the fee to. | |
feeId | string | The ID of the fee to apply. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Item RemoveModifierList (string locationId, string modifierListId, string itemId)
Removes a modifier list association from an item, meaning modifier options from the list can no longer be applied to the item.
Removes a modifier list association from an item, meaning modifier options from the list can no longer be applied to the item.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class RemoveModifierListExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var modifierListId = modifierListId_example; // string | The ID of the modifier list to remove.
var itemId = itemId_example; // string | The ID of the item to remove the modifier list from.
try
{
// Removes a modifier list association from an item, meaning modifier options from the list can no longer be applied to the item.
V1Item result = apiInstance.RemoveModifierList(locationId, modifierListId, itemId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.RemoveModifierList: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
modifierListId | string | The ID of the modifier list to remove. | |
itemId | string | The ID of the item to remove the modifier list from. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Item RetrieveItem (string locationId, string itemId)
Provides the details for a single item, including associated modifier lists and fees.
Provides the details for a single item, including associated modifier lists and fees.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class RetrieveItemExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var itemId = itemId_example; // string | The item's ID.
try
{
// Provides the details for a single item, including associated modifier lists and fees.
V1Item result = apiInstance.RetrieveItem(locationId, itemId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.RetrieveItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
itemId | string | The item's ID. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1ModifierList RetrieveModifierList (string locationId, string modifierListId)
Provides the details for a single modifier list.
Provides the details for a single modifier list.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class RetrieveModifierListExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var modifierListId = modifierListId_example; // string | The modifier list's ID.
try
{
// Provides the details for a single modifier list.
V1ModifierList result = apiInstance.RetrieveModifierList(locationId, modifierListId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.RetrieveModifierList: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
modifierListId | string | The modifier list's ID. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Category UpdateCategory (string locationId, string categoryId, V1Category body)
Modifies the details of an existing item category.
Modifies the details of an existing item category.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class UpdateCategoryExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the category's associated location.
var categoryId = categoryId_example; // string | The ID of the category to edit.
var body = new V1Category(); // V1Category | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Modifies the details of an existing item category.
V1Category result = apiInstance.UpdateCategory(locationId, categoryId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.UpdateCategory: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the category's associated location. | |
categoryId | string | The ID of the category to edit. | |
body | V1Category | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Discount UpdateDiscount (string locationId, string discountId, V1Discount body)
Modifies the details of an existing discount.
Modifies the details of an existing discount.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class UpdateDiscountExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the category's associated location.
var discountId = discountId_example; // string | The ID of the discount to edit.
var body = new V1Discount(); // V1Discount | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Modifies the details of an existing discount.
V1Discount result = apiInstance.UpdateDiscount(locationId, discountId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.UpdateDiscount: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the category's associated location. | |
discountId | string | The ID of the discount to edit. | |
body | V1Discount | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Fee UpdateFee (string locationId, string feeId, V1Fee body)
Modifies the details of an existing fee (tax).
Modifies the details of an existing fee (tax).
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class UpdateFeeExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the fee's associated location.
var feeId = feeId_example; // string | The ID of the fee to edit.
var body = new V1Fee(); // V1Fee | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Modifies the details of an existing fee (tax).
V1Fee result = apiInstance.UpdateFee(locationId, feeId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.UpdateFee: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the fee's associated location. | |
feeId | string | The ID of the fee to edit. | |
body | V1Fee | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Item UpdateItem (string locationId, string itemId, V1Item body)
Modifies the core details of an existing item.
Modifies the core details of an existing item.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class UpdateItemExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var itemId = itemId_example; // string | The ID of the item to modify.
var body = new V1Item(); // V1Item | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Modifies the core details of an existing item.
V1Item result = apiInstance.UpdateItem(locationId, itemId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.UpdateItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
itemId | string | The ID of the item to modify. | |
body | V1Item | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1ModifierList UpdateModifierList (string locationId, string modifierListId, V1UpdateModifierListRequest body)
Modifies the details of an existing item modifier list.
Modifies the details of an existing item modifier list.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class UpdateModifierListExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var modifierListId = modifierListId_example; // string | The ID of the modifier list to edit.
var body = new V1UpdateModifierListRequest(); // V1UpdateModifierListRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Modifies the details of an existing item modifier list.
V1ModifierList result = apiInstance.UpdateModifierList(locationId, modifierListId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.UpdateModifierList: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
modifierListId | string | The ID of the modifier list to edit. | |
body | V1UpdateModifierListRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1ModifierOption UpdateModifierOption (string locationId, string modifierListId, string modifierOptionId, V1ModifierOption body)
Modifies the details of an existing item modifier option.
Modifies the details of an existing item modifier option.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class UpdateModifierOptionExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var modifierListId = modifierListId_example; // string | The ID of the modifier list to edit.
var modifierOptionId = modifierOptionId_example; // string | The ID of the modifier list to edit.
var body = new V1ModifierOption(); // V1ModifierOption | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Modifies the details of an existing item modifier option.
V1ModifierOption result = apiInstance.UpdateModifierOption(locationId, modifierListId, modifierOptionId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.UpdateModifierOption: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
modifierListId | string | The ID of the modifier list to edit. | |
modifierOptionId | string | The ID of the modifier list to edit. | |
body | V1ModifierOption | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Page UpdatePage (string locationId, string pageId, V1Page body)
Modifies the details of a Favorites page in Square Register.
Modifies the details of a Favorites page in Square Register.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class UpdatePageExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the Favorites page's associated location
var pageId = pageId_example; // string | The ID of the page to modify.
var body = new V1Page(); // V1Page | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Modifies the details of a Favorites page in Square Register.
V1Page result = apiInstance.UpdatePage(locationId, pageId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.UpdatePage: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the Favorites page's associated location | |
pageId | string | The ID of the page to modify. | |
body | V1Page | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Page UpdatePageCell (string locationId, string pageId, V1PageCell body)
Modifies a cell of a Favorites page in Square Register.
Modifies a cell of a Favorites page in Square Register.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class UpdatePageCellExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the Favorites page's associated location.
var pageId = pageId_example; // string | The ID of the page the cell belongs to.
var body = new V1PageCell(); // V1PageCell | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Modifies a cell of a Favorites page in Square Register.
V1Page result = apiInstance.UpdatePageCell(locationId, pageId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.UpdatePageCell: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the Favorites page's associated location. | |
pageId | string | The ID of the page the cell belongs to. | |
body | V1PageCell | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1Variation UpdateVariation (string locationId, string itemId, string variationId, V1Variation body)
Modifies the details of an existing item variation.
Modifies the details of an existing item variation.
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class UpdateVariationExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1ItemsApi();
var locationId = locationId_example; // string | The ID of the item's associated location.
var itemId = itemId_example; // string | The ID of the item to modify.
var variationId = variationId_example; // string | The ID of the variation to modify.
var body = new V1Variation(); // V1Variation | An object containing the fields to POST for the request. See the corresponding object definition for field details.
try
{
// Modifies the details of an existing item variation.
V1Variation result = apiInstance.UpdateVariation(locationId, itemId, variationId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1ItemsApi.UpdateVariation: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
locationId | string | The ID of the item's associated location. | |
itemId | string | The ID of the item to modify. | |
variationId | string | The ID of the variation to modify. | |
body | V1Variation | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]