Uber · Capability

Uber Direct API — Refunds

Uber Direct API — Refunds. 1 operations. Lead operation: Create Refund. Self-contained Naftiko capability covering one Uber business surface.

Run with Naftiko UberRefunds

What You Can Do

POST
Createrefund — Create Refund
/v1/eats/refunds

MCP Tools

create-refund

Create Refund

Capability Spec

direct-refunds.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Uber Direct API — Refunds
  description: 'Uber Direct API — Refunds. 1 operations. Lead operation: Create Refund. Self-contained Naftiko capability
    covering one Uber business surface.'
  tags:
  - Uber
  - Refunds
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UBER_API_KEY: UBER_API_KEY
capability:
  consumes:
  - type: http
    namespace: direct-refunds
    baseUri: https://api.uber.com/v1
    description: Uber Direct API — Refunds business capability. Self-contained, no shared references.
    resources:
    - name: eats-refunds
      path: /eats/refunds
      operations:
      - name: createrefund
        method: POST
        description: Create Refund
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.UBER_API_KEY}}'
  exposes:
  - type: rest
    namespace: direct-refunds-rest
    port: 8080
    description: REST adapter for Uber Direct API — Refunds. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/eats/refunds
      name: eats-refunds
      description: REST surface for eats-refunds.
      operations:
      - method: POST
        name: createrefund
        description: Create Refund
        call: direct-refunds.createrefund
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: direct-refunds-mcp
    port: 9090
    transport: http
    description: MCP adapter for Uber Direct API — Refunds. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-refund
      description: Create Refund
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: direct-refunds.createrefund
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.