Shift4 Payments · Capability

Shift4 Payments API — File Uploads

Shift4 Payments API — File Uploads. 1 operations. Lead operation: Upload a File. Self-contained Naftiko capability covering one Shift4 Payments business surface.

Run with Naftiko Shift4 PaymentsFile Uploads

What You Can Do

POST
Uploadfile — Upload a File
/v1/files

MCP Tools

upload-file

Upload a File

Capability Spec

shift4-file-uploads.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Shift4 Payments API — File Uploads
  description: 'Shift4 Payments API — File Uploads. 1 operations. Lead operation: Upload a File. Self-contained Naftiko capability
    covering one Shift4 Payments business surface.'
  tags:
  - Shift4 Payments
  - File Uploads
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SHIFT4_PAYMENTS_API_KEY: SHIFT4_PAYMENTS_API_KEY
capability:
  consumes:
  - type: http
    namespace: shift4-file-uploads
    baseUri: https://api.shift4.com
    description: Shift4 Payments API — File Uploads business capability. Self-contained, no shared references.
    resources:
    - name: files
      path: /files
      operations:
      - name: uploadfile
        method: POST
        description: Upload a File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.SHIFT4_PAYMENTS_USER}}'
      password: '{{env.SHIFT4_PAYMENTS_PASS}}'
  exposes:
  - type: rest
    namespace: shift4-file-uploads-rest
    port: 8080
    description: REST adapter for Shift4 Payments API — File Uploads. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/files
      name: files
      description: REST surface for files.
      operations:
      - method: POST
        name: uploadfile
        description: Upload a File
        call: shift4-file-uploads.uploadfile
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: shift4-file-uploads-mcp
    port: 9090
    transport: http
    description: MCP adapter for Shift4 Payments API — File Uploads. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: upload-file
      description: Upload a File
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: shift4-file-uploads.uploadfile
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.