naftiko: 1.0.0-alpha2 info: label: Zendit API — Vouchers description: 'Zendit API — Vouchers. 5 operations. Lead operation: Zendit List Voucher Offers. Self-contained Naftiko capability covering one Zendit business surface.' tags: - Zendit - Vouchers created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ZENDIT_API_KEY: ZENDIT_API_KEY capability: consumes: - type: http namespace: zendit-vouchers baseUri: https://api.zendit.io/v1 description: Zendit API — Vouchers business capability. Self-contained, no shared references. resources: - name: vouchers-offers path: /vouchers/offers operations: - name: listvoucheroffers method: GET description: Zendit List Voucher Offers outputRawFormat: json outputParameters: - name: result type: object value: $. - name: vouchers-offers-offerId path: /vouchers/offers/{offerId} operations: - name: getvoucheroffer method: GET description: Zendit Get Voucher Offer outputRawFormat: json outputParameters: - name: result type: object value: $. - name: vouchers-purchases path: /vouchers/purchases operations: - name: listvoucherpurchases method: GET description: Zendit List Voucher Purchases outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createvoucherpurchase method: POST description: Zendit Create Voucher Purchase outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: vouchers-purchases-transactionId path: /vouchers/purchases/{transactionId} operations: - name: getvoucherpurchase method: GET description: Zendit Get Voucher Purchase outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ZENDIT_API_KEY}}' exposes: - type: rest namespace: zendit-vouchers-rest port: 8080 description: REST adapter for Zendit API — Vouchers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/vouchers/offers name: vouchers-offers description: REST surface for vouchers-offers. operations: - method: GET name: listvoucheroffers description: Zendit List Voucher Offers call: zendit-vouchers.listvoucheroffers outputParameters: - type: object mapping: $. - path: /v1/vouchers/offers/{offerid} name: vouchers-offers-offerid description: REST surface for vouchers-offers-offerId. operations: - method: GET name: getvoucheroffer description: Zendit Get Voucher Offer call: zendit-vouchers.getvoucheroffer outputParameters: - type: object mapping: $. - path: /v1/vouchers/purchases name: vouchers-purchases description: REST surface for vouchers-purchases. operations: - method: GET name: listvoucherpurchases description: Zendit List Voucher Purchases call: zendit-vouchers.listvoucherpurchases outputParameters: - type: object mapping: $. - method: POST name: createvoucherpurchase description: Zendit Create Voucher Purchase call: zendit-vouchers.createvoucherpurchase with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/vouchers/purchases/{transactionid} name: vouchers-purchases-transactionid description: REST surface for vouchers-purchases-transactionId. operations: - method: GET name: getvoucherpurchase description: Zendit Get Voucher Purchase call: zendit-vouchers.getvoucherpurchase outputParameters: - type: object mapping: $. - type: mcp namespace: zendit-vouchers-mcp port: 9090 transport: http description: MCP adapter for Zendit API — Vouchers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: zendit-list-voucher-offers description: Zendit List Voucher Offers hints: readOnly: true destructive: false idempotent: true call: zendit-vouchers.listvoucheroffers outputParameters: - type: object mapping: $. - name: zendit-get-voucher-offer description: Zendit Get Voucher Offer hints: readOnly: true destructive: false idempotent: true call: zendit-vouchers.getvoucheroffer outputParameters: - type: object mapping: $. - name: zendit-list-voucher-purchases description: Zendit List Voucher Purchases hints: readOnly: true destructive: false idempotent: true call: zendit-vouchers.listvoucherpurchases outputParameters: - type: object mapping: $. - name: zendit-create-voucher-purchase description: Zendit Create Voucher Purchase hints: readOnly: false destructive: false idempotent: false call: zendit-vouchers.createvoucherpurchase with: body: tools.body outputParameters: - type: object mapping: $. - name: zendit-get-voucher-purchase description: Zendit Get Voucher Purchase hints: readOnly: true destructive: false idempotent: true call: zendit-vouchers.getvoucherpurchase outputParameters: - type: object mapping: $.