Custom Properties
SCAPI allows you to set custom properties of business objects in input documents and to read custom properties in output documents. Whether a business object supports custom properties can be found in the following tables.
Custom properties are always marked with the prefix c_
and have therefore their own namespace.
The following example shows a document response including some custom properties:
SCAPI supports the following value types for input and output of custom properties:
- Text
- String
- Enum of Strings
- Set of Strings
- Integer
- Enum of Integers
- Set of Integers
- Double
- Set of Doubles
- Boolean
- Password
- Date
- Date+Time
The value types HTML and Image are only supported as output, but not as input value type for custom properties in SCAPI.
The following tables list the document types that support custom properties in OCAPI SHOP and DATA APIs. OCAPI modify...
hooks that used the referenced document types can
add custom properties using the c_
prefix. See Customization With Hooks for more information.
The following Shopper API documents support custom properties.
Document Type | Reference |
---|---|
Basket v1 | Basket v1 |
Basket v2 | Basket v2 |
BasketPaymentInstrumentRequest | BasketPaymentInstrumentRequest |
BonusDiscountLineItem | BonusDiscountLineItem |
Category | Category |
CouponItem | CouponItem |
CustomObject | customObject |
Customer | Customer |
CustomerAddress | CustomerAddress |
CustomerInfo | CustomerInfo |
CustomerPaymentInstrument | CustomerPaymentInstrument |
CustomerPaymentInstrumentRequest | CustomerPaymentInstrumentRequest |
CustomerProductList | CustomerProductList |
CustomerProductListItem | CustomerProductListItem |
CustomerProductListItemPurchase | CustomerProductListItemPurchase |
GiftCertificate | GiftCertificate |
GiftCertificateItem | GiftCertificateItem |
OptionItem | OptionItem |
Order | Order |
OrderAddress | OrderAddress |
OrderPaymentInstrument | OrderPaymentInstrument |
OrderPaymentInstrumentRequest | OrderPaymentInstrumentRequest |
PathRecord | PathRecord |
PaymentCardSpec | PaymentCardSpec |
PaymentMethod | PaymentMethod) |
PriceAdjustment | PriceAdjustment |
PriceAdjustmentRequest | PriceAdjustmentRequest |
Product | Product |
ProductItem | ProductItem |
ProductListItem | CustomerProductListItem |
ProductListItemReference | ProductListItemReference |
ProductListLink | ProductListLink |
ProductSearchHit | ProductSearchHit |
Promotion | Promotion |
PublicProductList | PublicProductList |
PublicProductListItem | PublicProductListItem |
PublicProductListLink | ProductListLink |
Recommendation | recommendation |
Shipment | Shipment |
ShippingItem | shipping_item |
ShippingMethod | ShippingMethod |
ShippingPromotion | ShippingPromotion |
Store | Store |
SuggestedCategory | SuggestedCategory |
SuggestedPhrase | SuggestedPhrase |
SuggestedProduct | SuggestedProduct |
Suggestion | Suggestion |