• Getting Started
    • Mobile Integration (Android/IOS)
      Enterprise Solutions
      Accept Payments
      Process Payments
      Disbursals
      API References
      Webhooks
      Testing
      Refunds
      Guides
      Other Processes
      Mini Program Platform
        Website Integration

      checkJSAPI

      Use Case


      This API allows to check if any inbuilt bridge is available or not before using it in the application.


      Request Attributes

      Content format: JSON

      ParameterDescriptionRequiredExample Value
      apithe name of any of the inbuilt bridgesYestoast

      Response Attributes

      Success:

      ParameterDescriptionExample Value
      dataBooleantrue

      Error Responses:

      ParameterDescriptionExample Value
      errorError2
      messageError messageInvalid parameter

      ERROR CODES

      codeDescription
      2Invalid parameter


      Request CodeResponse JSON
      
                  const requestObject={
                       api: 'toast' // put the name of any of the inbuilt bridges
               }
      
                   JSBridge.call('checkJSAPI',requestObject,
                    function(result) {
                      console.log(JSON.stringify(result))
                  });