MENU
      Credit Card Masking Config
      • 16 Jun 2022
      • 1 Minute to read

      Credit Card Masking Config


      Article summary

      Credit Card Masking Config

      Credit Card Masking Config JSON Format

      Credit Card Masking Config is represented as simple flat JSON objects with the following keys:

      NameTypeDescription
      siteIdintegerId of the site.
      isEnabledboolWhether Credit Card Masking is enabled or not.

      Get a single Credit Card Masking Config

      GET global/creditCardMaskingConfig

      • Parameters:

      No Parameters

      • Response:

      Credit Card Masking Config

      • Example

      Sample Request:

      curl https://api11.comm100.io/v4/global/creditCardMaskingConfig \
          -X 'GET' \
          -H 'Authorization: Bearer {access_token}' \
      Shell

      Response:

      HTTP/1.1 200 OK

      {
        "siteId": 10000,
        "isEnabled": false
      }
      JSON

      Disable the Credit Card Masking Config

      POST global/creditCardMaskingConfig:disable

      • Parameters:

      No Parameters

      • Response:

      Credit Card Masking Config

      • Example

      Sample Request:

      curl https://api11.comm100.io/v4/global/creditCardMaskingConfig:disable \
          -X 'POST' \
          -H 'Authorization: Bearer {access_token}' \
      Shell

      Response:

      HTTP/1.1 200 OK

      {
        "siteId": 10000,
        "isEnabled": false
      }
      JSON

      Enable the Credit Card Masking Config

      POST global/creditCardMaskingConfig:enable

      • Parameters:

      No Parameters

      • Response:

      Credit Card Masking Config

      • Example

      Sample Request:

      curl https://api11.comm100.io/v4/global/creditCardMaskingConfig:enable \
          -X 'POST' \
          -H 'Authorization: Bearer {access_token}' \
      Shell

      Response:

      HTTP/1.1 200 OK

      {
        "siteId": 10000,
        "isEnabled": true
      }
      JSON

      Update the Credit Card Masking Config

      PUT global/creditCardMaskingConfig

      • Parameters:

      NameTypeinRequiredDescription
      isEnabledboolbodynoWhether Credit Card Masking is enabled or not.
      • Response:

      Credit Card Masking Config

      • Example

      Sample Request:

      curl https://api11.comm100.io/v4/global/creditCardMaskingConfig \
          -X 'PUT' \
          -H 'Authorization: Bearer {access_token}' \
          -H 'Content-Type: application/json' \
          -D '{"isEnabled":false}'
      Shell

      Response:

      HTTP/1.1 200 OK

      {
        "siteId": 10000,
        "isEnabled": false
      }
      JSON

      Remove the Credit Card Masking Config

      DELETE global/creditCardMaskingConfig

      • Parameters:

      No Parameters

      • Response:

      No Content

      • Example

      Sample Request:

      curl https://api11.comm100.io/v4/global/creditCardMaskingConfig \
          -X 'DELETE' \
          -H 'Authorization: Bearer {access_token}' \
      Shell

      Response:

      HTTP/1.1 204 No Content


      Was this article helpful?