IBM API Hub
IBM Sterling Intelligent Promising APIs

By IBM Sterling Intelligent Promising

IBM Sterling Intelligent Promising is a stand-alone cloud service solution that provides reliable inventory promises at every stage of a shopper's order lifecycle.


API reference

Define node lead time

PATCH

/promising/{tenantId}/v1/configuration/nodes/{nodeId}/leadTime

Create or update the node lead time as defined by the request body.

Node lead times are defined as an upfront buffer to apply when processing orders to account for possible delays in scheduling and task assignment. Node lead times can be defined for both a node and for a node type. When not defined for the node, any lead time configured for the node's fulfillment node type will be used. When no lead time is configured for either node or node type, the node will not be considered for fulfilling orders.

If the supplied node ID identifies an existing node lead time then the existing node lead time is updated with the contents of the request body.

If the supplied node ID does not reference an existing node lead time, then a new node lead time is created based on the contents of the request body.

Request URL
https://api.watsoncommerce.ibm.com/promising/{tenantId}/v1/configuration/nodes/{nodeId}/leadTime
Security
http
bearer
Parameters
Name
Description
tenantId
nodeId
  • Content-type
    string
    (header)
    application/json
  • Request body
    Responses
    • 204

      Update applied successfully.

    • 400

      This response is returned when the promising service detects an error in the request's parameters or body.

    • 500

      Internal error prevented successful execution.

    Code snippet
      1curl --request PATCH \
      2  --url https://api.watsoncommerce.ibm.com/promising/REPLACE_TENANTID/v1/configuration/nodes/REPLACE_NODEID/leadTime \
      3  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
      4  --header 'accept: application/json' \
      5  --header 'content-type: application/json' \
      6  --data REPLACE_REQUEST_BODY
      

        Example response

        Update applied successfully.