Roku · Capability

Roku Pay Web Services — Billing

Roku Pay Web Services — Billing. 3 operations. Lead operation: Roku Issue Service Credit. Self-contained Naftiko capability covering one Roku business surface.

Run with Naftiko RokuBilling

What You Can Do

POST
Issueservicecredit — Roku Issue Service Credit
/v1/issue-service-credit
POST
Refundsubscription — Roku Refund Subscription
/v1/refund-subscription
POST
Updatebillcycle — Roku Update Bill Cycle
/v1/update-bill-cycle

MCP Tools

roku-issue-service-credit

Roku Issue Service Credit

roku-refund-subscription

Roku Refund Subscription

roku-update-bill-cycle

Roku Update Bill Cycle

Capability Spec

pay-web-services-billing.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Roku Pay Web Services — Billing
  description: 'Roku Pay Web Services — Billing. 3 operations. Lead operation: Roku Issue Service Credit. Self-contained Naftiko
    capability covering one Roku business surface.'
  tags:
  - Roku
  - Billing
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ROKU_API_KEY: ROKU_API_KEY
capability:
  consumes:
  - type: http
    namespace: pay-web-services-billing
    baseUri: https://apipub.roku.com/listen/transaction-service.svc
    description: Roku Pay Web Services — Billing business capability. Self-contained, no shared references.
    resources:
    - name: issue-service-credit
      path: /issue-service-credit
      operations:
      - name: issueservicecredit
        method: POST
        description: Roku Issue Service Credit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: refund-subscription
      path: /refund-subscription
      operations:
      - name: refundsubscription
        method: POST
        description: Roku Refund Subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: update-bill-cycle
      path: /update-bill-cycle
      operations:
      - name: updatebillcycle
        method: POST
        description: Roku Update Bill Cycle
        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: partnerAPIKey
      value: '{{env.ROKU_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: pay-web-services-billing-rest
    port: 8080
    description: REST adapter for Roku Pay Web Services — Billing. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/issue-service-credit
      name: issue-service-credit
      description: REST surface for issue-service-credit.
      operations:
      - method: POST
        name: issueservicecredit
        description: Roku Issue Service Credit
        call: pay-web-services-billing.issueservicecredit
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/refund-subscription
      name: refund-subscription
      description: REST surface for refund-subscription.
      operations:
      - method: POST
        name: refundsubscription
        description: Roku Refund Subscription
        call: pay-web-services-billing.refundsubscription
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/update-bill-cycle
      name: update-bill-cycle
      description: REST surface for update-bill-cycle.
      operations:
      - method: POST
        name: updatebillcycle
        description: Roku Update Bill Cycle
        call: pay-web-services-billing.updatebillcycle
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: pay-web-services-billing-mcp
    port: 9090
    transport: http
    description: MCP adapter for Roku Pay Web Services — Billing. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: roku-issue-service-credit
      description: Roku Issue Service Credit
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: pay-web-services-billing.issueservicecredit
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: roku-refund-subscription
      description: Roku Refund Subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: pay-web-services-billing.refundsubscription
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: roku-update-bill-cycle
      description: Roku Update Bill Cycle
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: pay-web-services-billing.updatebillcycle
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.