Update Risk Assessment of Cart

Endpoint

POST
undefined/msapi/sales/shopping-cart-api/v1/carts/{id}/risk-assessment

This API is responsible for updating risk assessment info & provide valid cart response back which is need for every commerce operation.

arrowSecurity

http

This API supports Basic Authentication.
scheme:basic
arrowRequest

Path Parameters

    Header Parameters

          Body Parameters

          Responses

          arrowBody

          application/json

          REQUEST

          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          15
          16
          17
          18
          curl --request POST \
               --url https://example.com/msapi/sales/shopping-cart-api/v1/carts/string/risk-assessment \
               --header 'accept: application/json' \
               --header 'content-type: application/json' \
               --data '
          {
            "channel": {
              "name": "SelfService",
              "role": "owner"
            },
            "autoApplyRiskAssesmentPolicyToCart": true,
            "applicationDetails": {
              "id": "cas_application_id_12345",
              "unifiedCreditTransactionId": "APPLIN_TRANS_ID_123123",
              "debtPaymentComplete": false
            }
          }
          '

          RESPONSE

          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          15
          16
          17
          18
          19
          20
          21
          22
          23
          24
          25
          26
          27
          28
          29
          30
          31
          32
          33
          34
          35
          36
          37
          38
          39
          40
          41
          42
          43
          44
          45
          46
          47
          48
          49
          50
          51
          52
          53
          54
          55
          56
          57
          58
          59
          60
          61
          62
          {
            "submitted": {
              "status": "success",
              "policyImpactToCart": true,
              "policyAppliedToCart": true,
              "applicationDetails": {
                "id": "cas_application_id_12345",
                "unifiedCreditTransactionId": "APPLIN_TRANS_ID_123123",
                "unifiedPolicyTransactionId": "P20210818000068739"
              },
              "riskAssessmentResult": [
                {
                  "productType": "WIRELINE_PRODUCTS",
                  "securityType": "ADVPAY",
                  "securityDescription": "Advance Pay",
                  "securityAmount": 100,
                  "resource": [
                    {
                      "id": "billing_account_id",
                      "type": "BillingAccount"
                    }
                  ]
                },
                {
                  "productType": "WIRELINE_PRODUCTS",
                  "securityType": "NOSEC",
                  "securityDescription": "No Security/Fees",
                  "securityAmount": 0,
                  "resource": [
                    {
                      "id": "billing_account_id",
                      "type": "BillingAccount"
                    }
                  ]
                },
                {
                  "productType": "WIRELESS_PRODUCTS",
                  "securityType": "NOSEC",
                  "securityDescription": "NOSEC",
                  "securityAmount": 0,
                  "resource": [
                    {
                      "id": "billing_account_id",
                      "type": "BillingAccount"
                    }
                  ]
                },
                {
                  "productType": "WIRELESS_PRODUCTS",
                  "securityType": "ADVPAY",
                  "securityDescription": "Advance Pay",
                  "securityAmount": 320,
                  "resource": [
                    {
                      "id": "billing_account_id",
                      "type": "BillingAccount"
                    }
                  ]
                }
              ]
            }
          }