Get one item location stockout count
fscmRestApi/scp/buyerPlanningItemStockouts/itemLocationStockoutCounts
Request
-
Item Location Stockout Counts:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
- */*
object
-
EndDate: string
Date indicating the last day of the query result.
-
PlanId: integer
(int64)
Value that uniquely identifies the plan.
-
StartDate: string
Date indicating the first day of the query result.
Response
- */*
Default Response
object
-
itemLocationStockoutCounts: integer
(int64)
The count of the total number of item locations with stockouts.
Examples
This example describes how to get one item location stockout count.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/scp/buyerPlanningItemStockouts/itemLocationStockoutCounts"
Example Request Body
The following example includes the contents of the request body in JSON format to get the count of item locations with stockouts. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it gets.
{"PlanId":300100573650379,"StartDate":"2024-01-18","EndDate":"2024-07-15"}
Example Response Body
The following example includes the contents of the response body in JSON format:
{ "ItemStockoutCount": 100 }