v54

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-01594762.7 KB
Scheduled delivery

Get capacity reservation usage by window

Retrieves capacity usage of a specific scheduled delivery reservation window.

⚠️ While most API endpoints return time fields in UTC format, this endpoint returns time adjusted to the configured time zone of the VTEX account.

Note that the combined string carrier@{capacityType}@{shippingPolicyId} can be referred to as a "resource" in the API's messages.

Permissions

Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code 403 error. These are the applicable resources for this endpoint:

ProductCategoryResource
LogisticsLogistics accessLogistics viewer
LogisticsLogistics accessLogistics full access
LogisticsLogistics accessLogistics shipping full access

You can create a custom role with that resource or use one of the following predefined roles:

RoleResource
Logistics - Full accessLogistics viewer
Logistics - Read onlyLogistics viewer
Logistics - Full accessLogistics full access
OMS - Full accessLogistics full access
Logistics - Full accessLogistics shipping full access
OMS - Full accessLogistics shipping full access

❗ Assigning a predefined role to users or application keys usually grants permission to multiple License Manager resources. If some of these permissions are not necessary, consider creating a custom role instead. For more information regarding security, see Best practices for using application keys. To learn more about machine authentication at VTEX, see Authentication overview.

get/api/logistics-capacity/resources/carrier@{capacityType}@{shippingPolicyId}/time-frames/{windowDay}F{windowStartTime}T{windowEndTime}

Path parameters

capacityTypestring required
Example:orders_quantity

Defines how the delivery capacity is set in the shipping policy, which can be by maximum number of orders (orders_quantity) or items (skus_quantity).

shippingPolicyIdstring required
Example:168e017

ID of the shipping policy being searched for capacity reservation.

windowDaystring required
Example:2024-07-19

Date of the scheduled delivery window being consulted for reservations. The format is YYYY-MM-DD.

windowStartTimestring required
Example:1030

Starting time of the scheduled delivery window being consulted for reservations. The format is HHMM.

windowEndTimestring required
Example:1159

Ending time of the scheduled delivery window being consulted for reservations. The format is HHMM.

Headers

Content-Typestring required

Type of the content being sent.

Acceptstring required
Example:application/vnd.vtex.availability.v1+json

HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.

Response

OK

idstring

Capacity reservation ID generated by the request.

resourceIdstring

Combined string carrier@{capacityType}@{shippingPolicyId} used in the request.

startDatestring

Starting date and time of the period considered for the request, in the format YYYY-MM-DDTHH:MM:SSZ. The time zone is set according to the store account.

endDatestring

Ending date and time of the period considered for the request, in the format YYYY-MM-DDTHH:MM:SSZ. The time zone is set according to the store account.

ownMaxCapacitynumber

Delivery capacity available, which is the total capacity minus the reserved orders or items, according to the capacity type set.

resourceMaxCapacitynumber

Maximum delivery capacity of orders or items.

reservedValuenumber

Orders or items reserved from the delivery capacity.