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
Nested Schema : order
Type: object
An OCC order
Nested Schema : appliedPromotions
Type: array
Nested Schema : payments
Type: array
List of payments.
Nested Schema : shippingGroups
Type: array
Nested Schema : shoppingCart
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: array
Nested Schema : shippingAddress
Type: object
Nested Schema : shippingMethod
Type: object
Nested Schema : items
Type: object
Nested Schema : coupons
Type: array
Nested Schema : items
Type: array
Nested Schema : items
Type: object
Nested Schema : items
Type: object

Response

Supported Media Types
  • application/json
200 Response
Additional properties to display in the Assisted Selling Application UI
Body
Root Schema : response
Nested Schema : payments
Type: array
Unique Items Required: true
Array of payments and their associated properties.
Nested Schema : items
Type: object
Nested Schema : properties
Type: object
A custom named property that represents an additional property associated with the parent payment type.
Nested Schema : summaryDisplayProperties
Type: array
Unique Items Required: true
List 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 : Property name that matches this regex: ^[a-zA-Z1-9]+$
Type: object
Nested Schema : options
Type: object
Collection of potential values for the property
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
                }
            }
        }
    ]
}