Binance · Capability

Binance Pay API — Refunds

Binance Pay API — Refunds. 1 operations. Lead operation: Refund order. Self-contained Naftiko capability covering one Binance business surface.

Run with Naftiko BinanceRefunds

What You Can Do

POST
Refundorder — Refund order
/v1/binancepay/openapi/order/refund

MCP Tools

refund-order

Refund order

Capability Spec

pay-refunds.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Binance Pay API — Refunds
  description: 'Binance Pay API — Refunds. 1 operations. Lead operation: Refund order. Self-contained Naftiko capability covering
    one Binance business surface.'
  tags:
  - Binance
  - Refunds
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BINANCE_API_KEY: BINANCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: pay-refunds
    baseUri: https://bpay.binanceapi.com
    description: Binance Pay API — Refunds business capability. Self-contained, no shared references.
    resources:
    - name: binancepay-openapi-order-refund
      path: /binancepay/openapi/order/refund
      operations:
      - name: refundorder
        method: POST
        description: Refund order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: BinancePay-Certificate-SN
      value: '{{env.BINANCE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: pay-refunds-rest
    port: 8080
    description: REST adapter for Binance Pay API — Refunds. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/binancepay/openapi/order/refund
      name: binancepay-openapi-order-refund
      description: REST surface for binancepay-openapi-order-refund.
      operations:
      - method: POST
        name: refundorder
        description: Refund order
        call: pay-refunds.refundorder
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: pay-refunds-mcp
    port: 9090
    transport: http
    description: MCP adapter for Binance Pay API — Refunds. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: refund-order
      description: Refund order
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: pay-refunds.refundorder
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.