SahamatiNet
  • Background
  • SahamatiNet POC
    • Introduction
    • Applications
    • Observability
    • Integration Steps
      • Sandbox Onboarding
      • IAM APIs
      • CR APIs
      • Integration with Router
        • Sample Code Snippets
          • Python
          • Java
          • JavaScript
          • GoLang
          • C#
        • Router APIs Specifications
          • FIU API Specification
          • AA API Specification
          • FIP API Specification
      • ReBIT Workflows using Router
        • Account Discovery & Linking
        • Consent Workflow
        • FI Request Workflow
    • Integration with Simulators
      • AA Simulator
      • FIP Simulator
      • FIU Simulator
    • Validation of Integration
  • Glossary
  • Guidelines
  • Frequently Asked Questions
  • How To Guides
    • How To Onboard to Sandbox ?
    • How To Decide on an Entity ID ?
    • How To Generate a Certificate ?
    • How To Generate Tokens ?
Powered by GitBook
LogoLogo

Copyright © 2025 - Sahamati Foundation

On this page

Was this helpful?

Export as PDF
  1. No Longer Relevent
  2. Technical Specifications
  3. Router API Specs
  4. Integration using Simulator

Custom Responses Usage

Was this helpful?

This page explains the integration of custom entities and custom responses configured with router APIs.

Overview:

Using mock entities, developers can simulate the behavior of real entities within a controlled environment. Likewise, mock responses enable developers to define and manipulate the expected outcomes of API calls, replicating various scenarios that may arise in the workflow.

The sample workflow diagrams below illustrates the usage of the Mock Entities and Responses by including entity id and scenario id under headers.

The following two details are required in the request to use the APIs with custom entity and respective configured response:

Sample Request Headers:

x-request-meta: [Base64 of {"recipient-id": "<custom-aa-id>"}]
x-scenario-id: custom-aa-id-500-error

x-request-meta: This header specifies the router that will route the request to the respective custom entity created using .

x-scenario-id: This header should contain the scenario id for the specific response configured for respective entity using

Create API
Add response API
Sample workflow of mocking success scenario
Sample workflow of mocking error scenario