Mastercard Developer Hub for FDX APIs Fdx Resource API — Consent

Mastercard Developer Hub for FDX APIs Fdx Resource API — Consent. 4 operations. Lead operation: Mastercard Developer Hub for FDX APIs Register Consent. Self-contained Naftiko capability covering one Mastercard Developer Hub For Fdx Apis business surface.

Run with Naftiko Mastercard Developer Hub For Fdx ApisConsent

What You Can Do

POST
Registerconsent — Mastercard Developer Hub for FDX APIs Register Consent
/v1/consent
GET
Getaccountsbyuserid — Mastercard Developer Hub for FDX APIs Get Account by user Id
/v1/consent/accounts
GET
Getconsent — Mastercard Developer Hub for FDX APIs Get Consent by consent Id
/v1/consent/{consentid}
PUT
Updateconsent — Mastercard Developer Hub for FDX APIs Update Consent by consent Id
/v1/consent/{consentid}

MCP Tools

mastercard-developer-hub-fdx-apis

Mastercard Developer Hub for FDX APIs Register Consent

mastercard-developer-hub-fdx-apis-2

Mastercard Developer Hub for FDX APIs Get Account by user Id

read-only idempotent
mastercard-developer-hub-fdx-apis-3

Mastercard Developer Hub for FDX APIs Get Consent by consent Id

read-only idempotent
mastercard-developer-hub-fdx-apis-4

Mastercard Developer Hub for FDX APIs Update Consent by consent Id

idempotent

Capability Spec

fdx-resource-consent.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mastercard Developer Hub for FDX APIs Fdx Resource API — Consent
  description: 'Mastercard Developer Hub for FDX APIs Fdx Resource API — Consent. 4 operations. Lead operation: Mastercard
    Developer Hub for FDX APIs Register Consent. Self-contained Naftiko capability covering one Mastercard Developer Hub For
    Fdx Apis business surface.'
  tags:
  - Mastercard Developer Hub For Fdx Apis
  - Consent
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MASTERCARD_DEVELOPER_HUB_FOR_FDX_APIS_API_KEY: MASTERCARD_DEVELOPER_HUB_FOR_FDX_APIS_API_KEY
capability:
  consumes:
  - type: http
    namespace: fdx-resource-consent
    baseUri: http://localhost:9090
    description: Mastercard Developer Hub for FDX APIs Fdx Resource API — Consent business capability. Self-contained, no
      shared references.
    resources:
    - name: consent
      path: /consent
      operations:
      - name: registerconsent
        method: POST
        description: Mastercard Developer Hub for FDX APIs Register Consent
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          description: This field indicate the Access Token id
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: consent-accounts
      path: /consent/accounts
      operations:
      - name: getaccountsbyuserid
        method: GET
        description: Mastercard Developer Hub for FDX APIs Get Account by user Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userId
          in: query
          type: string
          description: This field indicate the user id
          required: true
        - name: Authorization
          in: header
          type: string
          description: This field indicate the Access Token id
          required: true
    - name: consent-consentId
      path: /consent/{consentId}
      operations:
      - name: getconsent
        method: GET
        description: Mastercard Developer Hub for FDX APIs Get Consent by consent Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: consentId
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: This field indicate the Access Token id
          required: true
      - name: updateconsent
        method: PUT
        description: Mastercard Developer Hub for FDX APIs Update Consent by consent Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: consentId
          in: path
          type: string
          description: This field indicate the Consent ID
          required: true
        - name: Authorization
          in: header
          type: string
          description: Access Token id
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.MASTERCARD_DEVELOPER_HUB_FOR_FDX_APIS_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: fdx-resource-consent-rest
    port: 8080
    description: REST adapter for Mastercard Developer Hub for FDX APIs Fdx Resource API — Consent. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/consent
      name: consent
      description: REST surface for consent.
      operations:
      - method: POST
        name: registerconsent
        description: Mastercard Developer Hub for FDX APIs Register Consent
        call: fdx-resource-consent.registerconsent
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/consent/accounts
      name: consent-accounts
      description: REST surface for consent-accounts.
      operations:
      - method: GET
        name: getaccountsbyuserid
        description: Mastercard Developer Hub for FDX APIs Get Account by user Id
        call: fdx-resource-consent.getaccountsbyuserid
        with:
          userId: rest.userId
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/consent/{consentid}
      name: consent-consentid
      description: REST surface for consent-consentId.
      operations:
      - method: GET
        name: getconsent
        description: Mastercard Developer Hub for FDX APIs Get Consent by consent Id
        call: fdx-resource-consent.getconsent
        with:
          consentId: rest.consentId
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateconsent
        description: Mastercard Developer Hub for FDX APIs Update Consent by consent Id
        call: fdx-resource-consent.updateconsent
        with:
          consentId: rest.consentId
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fdx-resource-consent-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mastercard Developer Hub for FDX APIs Fdx Resource API — Consent. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: mastercard-developer-hub-fdx-apis
      description: Mastercard Developer Hub for FDX APIs Register Consent
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fdx-resource-consent.registerconsent
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mastercard-developer-hub-fdx-apis-2
      description: Mastercard Developer Hub for FDX APIs Get Account by user Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fdx-resource-consent.getaccountsbyuserid
      with:
        userId: tools.userId
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: mastercard-developer-hub-fdx-apis-3
      description: Mastercard Developer Hub for FDX APIs Get Consent by consent Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fdx-resource-consent.getconsent
      with:
        consentId: tools.consentId
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: mastercard-developer-hub-fdx-apis-4
      description: Mastercard Developer Hub for FDX APIs Update Consent by consent Id
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: fdx-resource-consent.updateconsent
      with:
        consentId: tools.consentId
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.