All URIs are relative to https://connect.squareup.com
Method | HTTP request | Description |
---|---|---|
AdjustInventory | POST /v1/{location_id}/inventory/{variation_id} | AdjustInventory |
ApplyFee | PUT /v1/{location_id}/items/{item_id}/fees/{fee_id} | ApplyFee |
ApplyModifierList | PUT /v1/{location_id}/items/{item_id}/modifier-lists/{modifier_list_id} | ApplyModifierList |
CreateCategory | POST /v1/{location_id}/categories | CreateCategory |
CreateDiscount | POST /v1/{location_id}/discounts | CreateDiscount |
CreateFee | POST /v1/{location_id}/fees | CreateFee |
CreateItem | POST /v1/{location_id}/items | CreateItem |
CreateModifierList | POST /v1/{location_id}/modifier-lists | CreateModifierList |
CreateModifierOption | POST /v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options | CreateModifierOption |
CreatePage | POST /v1/{location_id}/pages | CreatePage |
CreateVariation | POST /v1/{location_id}/items/{item_id}/variations | CreateVariation |
DeleteCategory | DELETE /v1/{location_id}/categories/{category_id} | DeleteCategory |
DeleteDiscount | DELETE /v1/{location_id}/discounts/{discount_id} | DeleteDiscount |
DeleteFee | DELETE /v1/{location_id}/fees/{fee_id} | DeleteFee |
DeleteItem | DELETE /v1/{location_id}/items/{item_id} | DeleteItem |
DeleteModifierList | DELETE /v1/{location_id}/modifier-lists/{modifier_list_id} | DeleteModifierList |
DeleteModifierOption | DELETE /v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options/{modifier_option_id} | DeleteModifierOption |
DeletePage | DELETE /v1/{location_id}/pages/{page_id} | DeletePage |
DeletePageCell | DELETE /v1/{location_id}/pages/{page_id}/cells | DeletePageCell |
DeleteVariation | DELETE /v1/{location_id}/items/{item_id}/variations/{variation_id} | DeleteVariation |
ListCategories | GET /v1/{location_id}/categories | ListCategories |
ListDiscounts | GET /v1/{location_id}/discounts | ListDiscounts |
ListFees | GET /v1/{location_id}/fees | ListFees |
ListInventory | GET /v1/{location_id}/inventory | ListInventory |
ListItems | GET /v1/{location_id}/items | ListItems |
ListModifierLists | GET /v1/{location_id}/modifier-lists | ListModifierLists |
ListPages | GET /v1/{location_id}/pages | ListPages |
RemoveFee | DELETE /v1/{location_id}/items/{item_id}/fees/{fee_id} | RemoveFee |
RemoveModifierList | DELETE /v1/{location_id}/items/{item_id}/modifier-lists/{modifier_list_id} | RemoveModifierList |
RetrieveItem | GET /v1/{location_id}/items/{item_id} | RetrieveItem |
RetrieveModifierList | GET /v1/{location_id}/modifier-lists/{modifier_list_id} | RetrieveModifierList |
UpdateCategory | PUT /v1/{location_id}/categories/{category_id} | UpdateCategory |
UpdateDiscount | PUT /v1/{location_id}/discounts/{discount_id} | UpdateDiscount |
UpdateFee | PUT /v1/{location_id}/fees/{fee_id} | UpdateFee |
UpdateItem | PUT /v1/{location_id}/items/{item_id} | UpdateItem |
UpdateModifierList | PUT /v1/{location_id}/modifier-lists/{modifier_list_id} | UpdateModifierList |
UpdateModifierOption | PUT /v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options/{modifier_option_id} | UpdateModifierOption |
UpdatePage | PUT /v1/{location_id}/pages/{page_id} | UpdatePage |
UpdatePageCell | PUT /v1/{location_id}/pages/{page_id}/cells | UpdatePageCell |
UpdateVariation | PUT /v1/{location_id}/items/{item_id}/variations/{variation_id} | UpdateVariation |
Note: This endpoint is deprecated.
V1InventoryEntry AdjustInventory (string locationId, string variationId, V1AdjustInventoryRequest body)
AdjustInventory
Adjusts the current available inventory of an item variation. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// AdjustInventory
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]
Note: This endpoint is deprecated.
V1Item ApplyFee (string locationId, string itemId, string feeId)
ApplyFee
Associates a fee with an item so the fee is automatically applied to the item in Square Point of Sale. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// ApplyFee
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]
Note: This endpoint is deprecated.
V1Item ApplyModifierList (string locationId, string modifierListId, string itemId)
ApplyModifierList
Associates a modifier list with an item so the associated modifier options can be applied to the item. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// ApplyModifierList
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]
Note: This endpoint is deprecated.
V1Category CreateCategory (string locationId, V1Category body)
CreateCategory
Creates an item category. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// CreateCategory
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]
Note: This endpoint is deprecated.
V1Discount CreateDiscount (string locationId, V1Discount body)
CreateDiscount
Creates a discount. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// CreateDiscount
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]
Note: This endpoint is deprecated.
V1Fee CreateFee (string locationId, V1Fee body)
CreateFee
Creates a fee (tax). - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// CreateFee
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]
Note: This endpoint is deprecated.
V1Item CreateItem (string locationId, V1Item body)
CreateItem
Creates an item and at least one variation for it. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- Item-related entities include fields you can use to associate them with entities in a non-Square system. When you create an item-related entity, you can optionally specify id
. This value must be unique among all IDs ever specified for the account, including those specified by other applications. You can never reuse an entity ID. If you do not specify an ID, Square generates one for the entity. Item variations have a user_data
string that lets you associate arbitrary metadata with the variation. The string cannot exceed 255 characters.
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
{
// CreateItem
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]
Note: This endpoint is deprecated.
V1ModifierList CreateModifierList (string locationId, V1ModifierList body)
CreateModifierList
Creates an item modifier list and at least 1 modifier option for it. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// CreateModifierList
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]
Note: This endpoint is deprecated.
V1ModifierOption CreateModifierOption (string locationId, string modifierListId, V1ModifierOption body)
CreateModifierOption
Creates an item modifier option and adds it to a modifier list. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// CreateModifierOption
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]
Note: This endpoint is deprecated.
V1Page CreatePage (string locationId, V1Page body)
CreatePage
Creates a Favorites page in Square Point of Sale. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// CreatePage
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]
Note: This endpoint is deprecated.
V1Variation CreateVariation (string locationId, string itemId, V1Variation body)
CreateVariation
Creates an item variation for an existing item. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// CreateVariation
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]
Note: This endpoint is deprecated.
V1Category DeleteCategory (string locationId, string categoryId)
DeleteCategory
Deletes an existing item category. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- DeleteCategory returns nothing on success but Connect SDKs map the empty response to an empty V1DeleteCategoryRequest
object as documented below.
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
{
// DeleteCategory
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]
Note: This endpoint is deprecated.
V1Discount DeleteDiscount (string locationId, string discountId)
DeleteDiscount
Deletes an existing discount. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- DeleteDiscount returns nothing on success but Connect SDKs map the empty response to an empty V1DeleteDiscountRequest
object as documented below.
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
{
// DeleteDiscount
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]
Note: This endpoint is deprecated.
V1Fee DeleteFee (string locationId, string feeId)
DeleteFee
Deletes an existing fee (tax). - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- DeleteFee returns nothing on success but Connect SDKs map the empty response to an empty V1DeleteFeeRequest
object as documented below.
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
{
// DeleteFee
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]
Note: This endpoint is deprecated.
V1Item DeleteItem (string locationId, string itemId)
DeleteItem
Deletes an existing item and all item variations associated with it. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- DeleteItem returns nothing on success but Connect SDKs map the empty response to an empty V1DeleteItemRequest
object as documented below.
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
{
// DeleteItem
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]
Note: This endpoint is deprecated.
V1ModifierList DeleteModifierList (string locationId, string modifierListId)
DeleteModifierList
Deletes an existing item modifier list and all modifier options associated with it. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- DeleteModifierList returns nothing on success but Connect SDKs map the empty response to an empty V1DeleteModifierListRequest
object as documented below.
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
{
// DeleteModifierList
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]
Note: This endpoint is deprecated.
V1ModifierOption DeleteModifierOption (string locationId, string modifierListId, string modifierOptionId)
DeleteModifierOption
Deletes an existing item modifier option from a modifier list. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- DeleteModifierOption returns nothing on success but Connect SDKs map the empty response to an empty V1DeleteModifierOptionRequest
object.
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
{
// DeleteModifierOption
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]
Note: This endpoint is deprecated.
V1Page DeletePage (string locationId, string pageId)
DeletePage
Deletes an existing Favorites page and all of its cells. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- DeletePage returns nothing on success but Connect SDKs map the empty response to an empty V1DeletePageRequest
object.
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
{
// DeletePage
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]
Note: This endpoint is deprecated.
V1Page DeletePageCell (string locationId, string pageId, string row = null, string column = null)
DeletePageCell
Deletes a cell from a Favorites page in Square Point of Sale. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- DeletePageCell returns nothing on success but Connect SDKs map the empty response to an empty V1DeletePageCellRequest
object as documented below.
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
{
// DeletePageCell
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]
Note: This endpoint is deprecated.
V1Variation DeleteVariation (string locationId, string itemId, string variationId)
DeleteVariation
Deletes an existing item variation from an item. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - -- DeleteVariation returns nothing on success but Connect SDKs map the empty response to an empty V1DeleteVariationRequest
object as documented below.
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
{
// DeleteVariation
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]
Note: This endpoint is deprecated.
List ListCategories (string locationId)
ListCategories
Lists all the item categories for a given location. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// ListCategories
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]
Note: This endpoint is deprecated.
List ListDiscounts (string locationId)
ListDiscounts
Lists all the discounts for a given location. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// ListDiscounts
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]
Note: This endpoint is deprecated.
List ListFees (string locationId)
ListFees
Lists all the fees (taxes) for a given location. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// ListFees
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]
Note: This endpoint is deprecated.
List ListInventory (string locationId, int? limit = null, string batchToken = null)
ListInventory
Provides inventory information for all inventory-enabled item variations. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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)
var batchToken = batchToken_example; // string | A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional)
try
{
// ListInventory
List<V1InventoryEntry> result = apiInstance.ListInventory(locationId, limit, batchToken);
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] |
batchToken | string | A pagination cursor to retrieve the next set of results for your original query to the endpoint. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Note: This endpoint is deprecated.
List ListItems (string locationId, string batchToken = null)
ListItems
Provides summary information of all items for a given location. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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.
var batchToken = batchToken_example; // string | A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional)
try
{
// ListItems
List<V1Item> result = apiInstance.ListItems(locationId, batchToken);
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. | |
batchToken | string | A pagination cursor to retrieve the next set of results for your original query to the endpoint. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Note: This endpoint is deprecated.
List ListModifierLists (string locationId)
ListModifierLists
Lists all the modifier lists for a given location. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// ListModifierLists
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]
Note: This endpoint is deprecated.
List ListPages (string locationId)
ListPages
Lists all Favorites pages (in Square Point of Sale) for a given location. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// ListPages
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]
Note: This endpoint is deprecated.
V1Item RemoveFee (string locationId, string itemId, string feeId)
RemoveFee
Removes a fee assocation from an item so the fee is no longer automatically applied to the item in Square Point of Sale. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// RemoveFee
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]
Note: This endpoint is deprecated.
V1Item RemoveModifierList (string locationId, string modifierListId, string itemId)
RemoveModifierList
Removes a modifier list association from an item so the modifier options from the list can no longer be applied to the item. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// RemoveModifierList
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]
Note: This endpoint is deprecated.
V1Item RetrieveItem (string locationId, string itemId)
RetrieveItem
Provides the details for a single item, including associated modifier lists and fees. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// RetrieveItem
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]
Note: This endpoint is deprecated.
V1ModifierList RetrieveModifierList (string locationId, string modifierListId)
RetrieveModifierList
Provides the details for a single modifier list. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// RetrieveModifierList
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]
Note: This endpoint is deprecated.
V1Category UpdateCategory (string locationId, string categoryId, V1Category body)
UpdateCategory
Modifies the details of an existing item category. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// UpdateCategory
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]
Note: This endpoint is deprecated.
V1Discount UpdateDiscount (string locationId, string discountId, V1Discount body)
UpdateDiscount
Modifies the details of an existing discount. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// UpdateDiscount
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]
Note: This endpoint is deprecated.
V1Fee UpdateFee (string locationId, string feeId, V1Fee body)
UpdateFee
Modifies the details of an existing fee (tax). - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// UpdateFee
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]
Note: This endpoint is deprecated.
V1Item UpdateItem (string locationId, string itemId, V1Item body)
UpdateItem
Modifies the core details of an existing item. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// UpdateItem
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]
Note: This endpoint is deprecated.
V1ModifierList UpdateModifierList (string locationId, string modifierListId, V1UpdateModifierListRequest body)
UpdateModifierList
Modifies the details of an existing item modifier list. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// UpdateModifierList
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]
Note: This endpoint is deprecated.
V1ModifierOption UpdateModifierOption (string locationId, string modifierListId, string modifierOptionId, V1ModifierOption body)
UpdateModifierOption
Modifies the details of an existing item modifier option. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// UpdateModifierOption
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]
Note: This endpoint is deprecated.
V1Page UpdatePage (string locationId, string pageId, V1Page body)
UpdatePage
Modifies the details of a Favorites page in Square Point of Sale. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// UpdatePage
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]
Note: This endpoint is deprecated.
V1Page UpdatePageCell (string locationId, string pageId, V1PageCell body)
UpdatePageCell
Modifies a cell of a Favorites page in Square Point of Sale. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// UpdatePageCell
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]
Note: This endpoint is deprecated.
V1Variation UpdateVariation (string locationId, string itemId, string variationId, V1Variation body)
UpdateVariation
Modifies the details of an existing item variation. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
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
{
// UpdateVariation
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]