public interface InventoryApi
Modifier and Type | Method and Description |
---|---|
BatchChangeInventoryResponse |
batchChangeInventory(BatchChangeInventoryRequest body)
Applies adjustments and counts to the provided item quantities.
|
CompletableFuture<BatchChangeInventoryResponse> |
batchChangeInventoryAsync(BatchChangeInventoryRequest body)
Applies adjustments and counts to the provided item quantities.
|
BatchRetrieveInventoryChangesResponse |
batchRetrieveInventoryChanges(BatchRetrieveInventoryChangesRequest body)
Returns historical physical counts and adjustments based on the
provided filter criteria.
|
CompletableFuture<BatchRetrieveInventoryChangesResponse> |
batchRetrieveInventoryChangesAsync(BatchRetrieveInventoryChangesRequest body)
Returns historical physical counts and adjustments based on the
provided filter criteria.
|
BatchRetrieveInventoryCountsResponse |
batchRetrieveInventoryCounts(BatchRetrieveInventoryCountsRequest body)
Returns current counts for the provided
[CatalogObject](#type-catalogobject)s at the requested
[Location](#type-location)s.
|
CompletableFuture<BatchRetrieveInventoryCountsResponse> |
batchRetrieveInventoryCountsAsync(BatchRetrieveInventoryCountsRequest body)
Returns current counts for the provided
[CatalogObject](#type-catalogobject)s at the requested
[Location](#type-location)s.
|
RetrieveInventoryAdjustmentResponse |
retrieveInventoryAdjustment(String adjustmentId)
Returns the [InventoryAdjustment](#type-inventoryadjustment) object
with the provided `adjustment_id`.
|
CompletableFuture<RetrieveInventoryAdjustmentResponse> |
retrieveInventoryAdjustmentAsync(String adjustmentId)
Returns the [InventoryAdjustment](#type-inventoryadjustment) object
with the provided `adjustment_id`.
|
RetrieveInventoryChangesResponse |
retrieveInventoryChanges(String catalogObjectId,
String locationIds,
String cursor)
Returns a set of physical counts and inventory adjustments for the
provided [CatalogObject](#type-catalogobject) at the requested
[Location](#type-location)s.
|
CompletableFuture<RetrieveInventoryChangesResponse> |
retrieveInventoryChangesAsync(String catalogObjectId,
String locationIds,
String cursor)
Returns a set of physical counts and inventory adjustments for the
provided [CatalogObject](#type-catalogobject) at the requested
[Location](#type-location)s.
|
RetrieveInventoryCountResponse |
retrieveInventoryCount(String catalogObjectId,
String locationIds,
String cursor)
Retrieves the current calculated stock count for a given
[CatalogObject](#type-catalogobject) at a given set of
[Location](#type-location)s.
|
CompletableFuture<RetrieveInventoryCountResponse> |
retrieveInventoryCountAsync(String catalogObjectId,
String locationIds,
String cursor)
Retrieves the current calculated stock count for a given
[CatalogObject](#type-catalogobject) at a given set of
[Location](#type-location)s.
|
RetrieveInventoryPhysicalCountResponse |
retrieveInventoryPhysicalCount(String physicalCountId)
Returns the [InventoryPhysicalCount](#type-inventoryphysicalcount)
object with the provided `physical_count_id`.
|
CompletableFuture<RetrieveInventoryPhysicalCountResponse> |
retrieveInventoryPhysicalCountAsync(String physicalCountId)
Returns the [InventoryPhysicalCount](#type-inventoryphysicalcount)
object with the provided `physical_count_id`.
|
RetrieveInventoryAdjustmentResponse retrieveInventoryAdjustment(String adjustmentId) throws ApiException, IOException
adjustmentId
- Required parameter: ID of the [InventoryAdjustment](#type-inventoryadjustment) to retrieve.ApiException
IOException
CompletableFuture<RetrieveInventoryAdjustmentResponse> retrieveInventoryAdjustmentAsync(String adjustmentId)
adjustmentId
- Required parameter: ID of the [InventoryAdjustment](#type-inventoryadjustment) to retrieve.BatchChangeInventoryResponse batchChangeInventory(BatchChangeInventoryRequest body) throws ApiException, IOException
body
- Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.ApiException
IOException
CompletableFuture<BatchChangeInventoryResponse> batchChangeInventoryAsync(BatchChangeInventoryRequest body)
body
- Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.BatchRetrieveInventoryChangesResponse batchRetrieveInventoryChanges(BatchRetrieveInventoryChangesRequest body) throws ApiException, IOException
body
- Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.ApiException
IOException
CompletableFuture<BatchRetrieveInventoryChangesResponse> batchRetrieveInventoryChangesAsync(BatchRetrieveInventoryChangesRequest body)
body
- Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.BatchRetrieveInventoryCountsResponse batchRetrieveInventoryCounts(BatchRetrieveInventoryCountsRequest body) throws ApiException, IOException
body
- Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.ApiException
IOException
CompletableFuture<BatchRetrieveInventoryCountsResponse> batchRetrieveInventoryCountsAsync(BatchRetrieveInventoryCountsRequest body)
body
- Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.RetrieveInventoryPhysicalCountResponse retrieveInventoryPhysicalCount(String physicalCountId) throws ApiException, IOException
physicalCountId
- Required parameter: ID of the [InventoryPhysicalCount](#type-inventoryphysicalcount) to retrieve.ApiException
IOException
CompletableFuture<RetrieveInventoryPhysicalCountResponse> retrieveInventoryPhysicalCountAsync(String physicalCountId)
physicalCountId
- Required parameter: ID of the [InventoryPhysicalCount](#type-inventoryphysicalcount) to retrieve.RetrieveInventoryCountResponse retrieveInventoryCount(String catalogObjectId, String locationIds, String cursor) throws ApiException, IOException
catalogObjectId
- Required parameter: ID of the [CatalogObject](#type-catalogobject) to retrieve.locationIds
- Optional parameter: The [Location](#type-location) IDs to look up as a comma-separated list. An empty list queries all locations.cursor
- Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information.ApiException
IOException
CompletableFuture<RetrieveInventoryCountResponse> retrieveInventoryCountAsync(String catalogObjectId, String locationIds, String cursor)
catalogObjectId
- Required parameter: ID of the [CatalogObject](#type-catalogobject) to retrieve.locationIds
- Optional parameter: The [Location](#type-location) IDs to look up as a comma-separated list. An empty list queries all locations.cursor
- Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information.RetrieveInventoryChangesResponse retrieveInventoryChanges(String catalogObjectId, String locationIds, String cursor) throws ApiException, IOException
catalogObjectId
- Required parameter: ID of the [CatalogObject](#type-catalogobject) to retrieve.locationIds
- Optional parameter: The [Location](#type-location) IDs to look up as a comma-separated list. An empty list queries all locations.cursor
- Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.ApiException
IOException
CompletableFuture<RetrieveInventoryChangesResponse> retrieveInventoryChangesAsync(String catalogObjectId, String locationIds, String cursor)
catalogObjectId
- Required parameter: ID of the [CatalogObject](#type-catalogobject) to retrieve.locationIds
- Optional parameter: The [Location](#type-location) IDs to look up as a comma-separated list. An empty list queries all locations.cursor
- Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.Copyright © 2020. All rights reserved.