Huuray · Capability

Huuray API — Order

Huuray API — Order. 1 operations. Lead operation: Used to order giftcards. Self-contained Naftiko capability covering one Huuray business surface.

Run with Naftiko HuurayOrder

What You Can Do

POST
Post — Used to order giftcards
/v1/v4/order

MCP Tools

used-order-giftcards

Used to order giftcards

Capability Spec

huuray-order.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Huuray API — Order
  description: 'Huuray API — Order. 1 operations. Lead operation: Used to order giftcards. Self-contained Naftiko capability
    covering one Huuray business surface.'
  tags:
  - Huuray
  - Order
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUURAY_API_KEY: HUURAY_API_KEY
capability:
  consumes:
  - type: http
    namespace: huuray-order
    baseUri: ''
    description: Huuray API — Order business capability. Self-contained, no shared references.
    resources:
    - name: v4-Order
      path: /v4/Order
      operations:
      - name: post
        method: POST
        description: Used to order giftcards
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-API-NONCE
          in: header
          type: string
          description: A random value that can only be used once every 60 days. (max 50 characters)<br /><small>(this prevents
            your message from being re-transmitted, and thereby also
          required: true
        - name: X-API-HASH
          in: header
          type: string
          description: 'The SHA512 hash of a concatenated string containing the following: ( API-SECRET + NONCE ).<br /><small>(this
            is used to authenticate you)</small>'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: X-API-TOKEN
      value: '{{env.HUURAY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: huuray-order-rest
    port: 8080
    description: REST adapter for Huuray API — Order. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/v4/order
      name: v4-order
      description: REST surface for v4-Order.
      operations:
      - method: POST
        name: post
        description: Used to order giftcards
        call: huuray-order.post
        with:
          X-API-NONCE: rest.X-API-NONCE
          X-API-HASH: rest.X-API-HASH
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: huuray-order-mcp
    port: 9090
    transport: http
    description: MCP adapter for Huuray API — Order. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: used-order-giftcards
      description: Used to order giftcards
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: huuray-order.post
      with:
        X-API-NONCE: tools.X-API-NONCE
        X-API-HASH: tools.X-API-HASH
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.