CommerceInventoryService (Dev Preview)

Feature is available as a developer preview. Feature isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don't implement functionality developed with these commands or tools.

Init the apex class with the Default inventory provider

The Upsert Inventory Reservation is a wrapper for the inventory service which can create or update a reservation

ParamDescription
upsertReservationRequestThe reservation request.
currentReservationThe current state of the inventory reservation.
reservationChangeTypeThe type of change that will be made on the reservation. The possible values are ALL, HEADER, and ITEMS (otherwise an error will be sent)

Type

UpsertReservationResponse

Description

UpsertReservationResponse object representing response.

GovernorLimits (limits = GovernorLimits.LimitType.READONLY)

The deleteReservation is a wrapper for the inventory service to delete the inventory reservation

ParamDescription
reservationIdentifierThe identifier for the reservation record.
currentReservationThe current state of the inventory reservation.

Type

DeleteReservationResponse

Description

DeleteReservationResponse object representing response of the deletion.

GovernorLimits (limits = GovernorLimits.LimitType.READONLY)

The get reservation is a wrapper to get the reservation information from the inventory provider

ParamDescription
reservationIdentifierThe identifier for the reservation.

Type

InventoryReservation

Description

InventoryReservation object representing the reservation.

GovernorLimits (limits = GovernorLimits.LimitType.READONLY)

The check inventory is a wrapper to determine if a set of products and quantity are available

ParamDescription
requestThe inventory check request

GovernorLimits (limits = GovernorLimits.LimitType.READONLY)

The check inventory is a wrapper to determine if a set of products and quantity are available

ParamDescription
requestThe inventory check request

GovernorLimits (limits = GovernorLimits.LimitType.READONLY)