asaAdditionalProperties
post
/ccadmin/v1/webhook/asaAdditionalProperties
The WebHook that is triggered to retrieve additional properties for display in the Assisted Selling Application UI.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : request
- locale
-
Type:
stringLocale of the requested additional properties. - order
-
Type:
objectorderAdditional Properties Allowed:An OCC order - priceGroup
-
Type:
stringPrice group info. - siteId
-
Type:
stringId of the curent site.
Nested Schema : order
Type:
objectAn OCC order
- appliedPromotions
-
Type:
arrayappliedPromotionsAdditional Properties Allowed: - id
-
Type:
stringInternal OCC ID - op
-
Type:
stringThe order operation being performed. - orderId
-
Type:
stringThe ID - payments
-
Type:
arraypaymentsAdditional Properties Allowed:List of payments. - profileId
-
Type:
stringThe ID of the shopper profile that owns the order. - shippingGroups
-
Type:
arrayshippingGroupsAdditional Properties Allowed: - shoppingCart
-
Type:
objectshoppingCartRequired:trueAdditional Properties Allowed:
Nested Schema : appliedPromotions
Type:
array-
Type:
string
Nested Schema : payments
Nested Schema : shoppingCart
Type:
objectNested Schema : items
Type:
object- amount
-
Type:
numberAmount to be paid using this paymentMethod. - cardCVV
-
Type:
stringCredit/Debit card secret pin. PaymentMethodType: card. - cardNumber
-
Type:
stringCredit/Debit card number used for payment. PaymentMethodType: card. - cardType
-
Type:
stringCredit/Debit card type. e.g. visa. PaymentMethodType: card. - cardTypeName
-
Type:
stringCredit/Debit card type name. e.g. Visa. Payment type:card. - endMonth
-
Type:
stringCredit/Debit card expiry month. PaymentMethodType: card. - endYear
-
Type:
stringCredit/Debit card expiry year. PaymentMethodType: card. - giftCardNumber
-
Type:
stringGift card number. - giftCardPin
-
Type:
stringGift card secret PIN. - nameOnCard
-
Type:
stringName on the credit/debit card. PaymentMethodType: card. - PayerID
-
Type:
stringPayer ID relevant to paypal checkout type. PaymentMethodType: paypalCheckout. - PaymentGroupId
-
Type:
stringPayment Group ID relevant to the PaymentMethodType. - paymentId
-
Type:
stringPayment ID relevant to the PaymentMethodType. PaymentMethodType: paypalCheckout - PONumber
-
Type:
stringPurchase order number for invoice payment. Payment type: invoice - type
-
Type:
stringRequired:true
Nested Schema : items
Type:
object- items
-
Type:
arrayitemsAdditional Properties Allowed: - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed: - shippingMethod
-
Type:
objectshippingMethodAdditional Properties Allowed:
Nested Schema : shippingAddress
Type:
object- address1
-
Type:
stringRequired:trueAddress Line 1. - address2
-
Type:
stringAddress Line 2. - address3
-
Type:
stringAddress Line 3. - alias
-
Type:
string - city
-
Type:
stringRequired:trueThe city of the customer - country
-
Type:
stringRequired:trueThe country of the customer -
Type:
stringRequired:trueThe email of the customer - firstName
-
Type:
stringRequired:trueThe first name of the customer - isDefaultAddress
-
Type:
boolean - lastName
-
Type:
stringRequired:trueThe last name of customer - middleName
-
Type:
stringThe middle name of the customer - phoneNumber
-
Type:
stringRequired:trueThe phone number of the customer - postalCode
-
Type:
stringRequired:trueThe postal code - repositoryId
-
Type:
string - selectedCountry
-
Type:
stringRequired:true - selectedState
-
Type:
stringRequired:trueThe state - state
-
Type:
stringRequired:trueThe state - state_ISOCode
-
Type:
stringRequired:trueThe state represented by ISO code
Nested Schema : shippingMethod
Type:
object- value
-
Type:
stringRequired:trueSelected shipping method
Nested Schema : items
Type:
object- catRefId
-
Type:
stringRequired:truecatRefId of the product - productId
-
Type:
stringRequired:trueThe ID of the product. - quantity
-
Type:
integerRequired:trueThe quantity included.
Nested Schema : items
Type:
object- code
-
Type:
stringRequired:trueCode of the coupon applied. - description
-
Type:
stringDescription of promotion - id
-
Type:
stringRequired:trueId of the promotion - level
-
Type:
stringRequired:trueThe promotion level. - status
-
Type:
stringRequired:true
Nested Schema : items
Type:
object- catRefId
-
Type:
stringRequired:truecatRefId of the product - displayName
-
Type:
stringThe product's display name. - listPrice
-
Type:
numberThe monetary amount of the list price. - onSale
-
Type:
booleanWhether is on sale. - productId
-
Type:
stringRequired:trueThe ID of the product. - quantity
-
Type:
integerRequired:trueThe quantity included. - rawTotalPrice
-
Type:
numberThe raw total price. - stockStatus
-
Type:
string - unitPrice
-
Type:
numberThe detailed unit price: amount / quantity.
Response
Supported Media Types
- application/json
200 Response
Additional properties to display in the Assisted Selling Application UI
Body
Root Schema : response
- payments
-
Type:
arraypaymentsAdditional Properties Allowed:Unique Items Required:trueArray of payments and their associated properties.
Nested Schema : payments
Nested Schema : items
Type:
object- paymentMethod
-
Type:
stringRequired:trueThe payment method type such as card, physicalGiftCard etc - paymentMethodName
-
Type:
stringRequired:trueDisplayed name for the payment method - properties
-
Type:
objectpropertiesRequired:trueAdditional Properties Allowed:falseA custom named property that represents an additional property associated with the parent payment type. - summaryDisplayProperties
-
Type:
arraysummaryDisplayPropertiesAdditional Properties Allowed:Unique Items Required:trueList of properties whose values will be displayed against a payment on an order. If omitted, the payment method name will be used in lieu.
Nested Schema : properties
Type:
objectA custom named property that represents an additional property associated with the parent payment type.
- Property name that matches this regex: ^[a-zA-Z1-9]+$
-
Additional Properties Allowed:
false
Nested Schema : summaryDisplayProperties
Type:
arrayUnique Items Required:
trueList of properties whose values will be displayed against a payment on an order. If omitted, the payment method name will be used in lieu.
-
Type:
string
Nested Schema : Property name that matches this regex: ^[a-zA-Z1-9]+$
Type:
object- default
-
Type:
stringRequired:trueDefault value for the property - hidden
-
Type:
booleanDefines whether visible in the UI - label
-
Type:
stringRequired:trueDisplayed text used to describe the property - options
-
Type:
objectoptionsAdditional Properties Allowed:falseCollection of potential values for the property - required
-
Type:
booleanRequired:trueWhether a value is required - type
-
Required:
trueAllowed Values:[ "shortText", "richText", "date", "number", "checkbox" ]Type of the property - uiEditorType
-
Required:
trueAllowed Values:[ "shortText", "richText", "date", "number", "checkbox", "list" ]The user interface type used to display / edit the property.
Nested Schema : options
Type:
objectCollection of potential values for the property
- Property name that matches this regex: ^[a-zA-Z1-9]+$
-
Type:
string
Example application/json
{
"payments":[
{
"summaryDisplayProperties":[
"installmentOptions"
],
"paymentMethod":"subscription",
"paymentMethodName":"Pay in Installments",
"properties":{
"installmentOptions":{
"uiEditorType":"list",
"default":null,
"options":{
"option3":"5 payments of $60",
"option4":"20 payments of $16",
"option1":"2 payments of $150",
"option2":"10 payments of $31"
},
"label":"Installment Options",
"type":"shortText",
"required":true
},
"nationalIdentificationCode":{
"uiEditorType":"shortText",
"default":null,
"label":"National ID",
"type":"shortText",
"required":true
}
}
},
{
"paymentMethod":"card",
"paymentMethodName":"Pay by card",
"properties":{
"nationalIdentificationCode":{
"uiEditorType":"shortText",
"default":null,
"label":"National ID",
"type":"shortText",
"required":true
}
}
},
{
"paymentMethod":"deferred",
"paymentMethodName":"Some kind of deffered payment",
"properties":{
"CPF":{
"uiEditorType":"number",
"default":null,
"hidden":false,
"label":"Relevant number to enter",
"type":"number",
"required":true
}
}
}
]
}