Custom attributes

The custom attributes are specific attributes that aid in extensibility.

Custom attributes enable a system integrator to register one or more attributes that are considered by Sterling Intelligent Promising for different purposes. A system integrator can associate the following business purpose to a certain supported number of custom attributes of each data type:
Sourcing
Sourcing business purpose is associated with string, double, and date data types and supports up to 20 custom attributes. Registered custom attributes of mentioned data types can be considered with sourcing business purpose for different tasks. For example, if there is a sourcing constraint for an order from a specific channel, the custom attributes can be considered for fulfilling the request by a designated node.
Supply
Supply business purpose is associated with string, double, and date data types and supports up to 20 custom attributes. Registered custom attributes of mentioned data types can be considered with supply business purpose for different tasks. For example, if there is a supply discrepancy and the fulfillment manager wants to improve the supply audit capability by including a Modify User ID as part of supply update. The system integrator can register Modify User ID to be considered in the supply flow that is recorded in the supply audit and supply change event for further review.
Transfer
Transfer business purpose is associated with string, double, and date data types and it supports up to 20 custom attributes. The transfer business purpose is meant to apply the transfer rules using the same key/value matching logic. The transfer custom attributes support string and double data types.
Inventory tag
Inventory tag business purpose is meant to capture additional batch level details by creating custom tags during supply receipt. These inventory tags represents the manufacturing or customization numbers such as lot number, batch number, or revision number based on the product. With small product extensions, the inventory tag can also represent a combination of identification numbers for cases where two inventory identification numbers together uniquely identify the product. For example, a inventory tag can be mill certificate number with its manufacturing date. The inventory tag support string, double and date data types.

Configuring custom attributes

You can configure the custom attribute by using the createCustomAttribute API. For more information, see Creating custom attributes for sourcing by using an API.

Check the example that demonstrates how to create custom attributes that are associated with different business purposes.
Example
As Systems Integrator, you want to track the third-party seller handling inbound orders so you can create an inbound attribute VendorOrganization to be considered for:
  • Supply adjustment audit and Supply change event
  • Sourcing - Constraint consideration
POST https://api.watsoncommerce.ibm.com/configuration/{tenant}/v1/attributes/{attributeId}
{
  "label": "VendorOrganization",
  "datatype": "string",
  "isEnabled": true,
  "businessPurposes": [
    "supply", "sourcing"
  ]
}

For more information about creating custom attributes by using Order Hub UI, see Configuring custom attributes.