---
updatedAt: 2026-10-27T08:51:21.000Z
---

# /api/v1/openfx-margins/application/{applicationId}

This endpoint retrieve the overridden saved Open Fx margins

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAPI definition",
    "version": "v0"
  },
  "servers": [
    {
      "url": "https://merchant-services.fiservapp.com/boarding-ui/external-api/lts",
      "description": "Generated server url"
    }
  ],
  "paths": {
    "/api/v1/openfx-margins/application/{applicationId}": {
      "get": {
        "tags": [
          "open-fx-controller"
        ],
        "description": "This endpoint retrieve the overridden saved Open Fx margins",
        "operationId": "getTransactionalOpenFx",
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpenFxResponseDto"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No register was found"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "description": "Date and time of error",
            "format": "date-time"
          },
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code",
            "format": "int32"
          },
          "statusMessage": {
            "type": "string",
            "description": "HTTP status message"
          },
          "errorType": {
            "type": "string",
            "description": "HTTP error type"
          },
          "requestPath": {
            "type": "string",
            "description": "HTTP request path"
          },
          "errors": {
            "type": "array",
            "description": "Error list",
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "description": "Error list"
              },
              "description": "Error list"
            }
          }
        }
      },
      "OpenFxResponseDto": {
        "type": "object",
        "properties": {
          "idOpenfxTransactionalFx": {
            "type": "integer",
            "description": "Transaction Open FX Identity",
            "example": 12345
          },
          "applicationId": {
            "type": "integer",
            "description": "Application's ID.",
            "example": 12345
          },
          "serviceAcquirer": {
            "type": "number",
            "description": "Servicer margin in BPS",
            "example": 10
          },
          "location": {
            "type": "number",
            "description": "Location margin in BPS",
            "example": 500.5
          },
          "agent": {
            "type": "number",
            "description": "Agent margin in BPS",
            "example": 350
          },
          "client": {
            "type": "number",
            "description": "Sub Client margin in BPS",
            "example": 5000
          },
          "overrideMargin": {
            "type": "boolean",
            "description": "Value will be true if margin has to be overridden at the location level",
            "example": true
          },
          "serviceType": {
            "type": "string",
            "description": "Service type",
            "example": "DCC_SPOT_FX",
            "enum": [
              "DCC_TRANSACTIONAL_FX",
              "DCC_SPOT_FX",
              "DCC_PERIODICAL_FX",
              "MCP"
            ]
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```