naftiko: 1.0.0-alpha2 info: label: OpenMercantil Public API — Billing description: 'OpenMercantil Public API — Billing. 2 operations. Lead operation: Create Stripe Checkout Session. Self-contained Naftiko capability covering one Openmercantil business surface.' tags: - Openmercantil - Billing created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPENMERCANTIL_API_KEY: OPENMERCANTIL_API_KEY capability: consumes: - type: http namespace: openmercantil-billing baseUri: https://openmercantil.es description: OpenMercantil Public API — Billing business capability. Self-contained, no shared references. resources: - name: api-v1-checkout path: /api/v1/checkout operations: - name: createcheckoutsession method: POST description: Create Stripe Checkout Session outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v1-donation path: /api/v1/donation operations: - name: createdonationsession method: POST description: Create Stripe One-Time Donation Session 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: session value: '{{env.OPENMERCANTIL_API_KEY}}' placement: cookie exposes: - type: rest namespace: openmercantil-billing-rest port: 8080 description: REST adapter for OpenMercantil Public API — Billing. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/checkout name: api-v1-checkout description: REST surface for api-v1-checkout. operations: - method: POST name: createcheckoutsession description: Create Stripe Checkout Session call: openmercantil-billing.createcheckoutsession outputParameters: - type: object mapping: $. - path: /v1/api/v1/donation name: api-v1-donation description: REST surface for api-v1-donation. operations: - method: POST name: createdonationsession description: Create Stripe One-Time Donation Session call: openmercantil-billing.createdonationsession with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: openmercantil-billing-mcp port: 9090 transport: http description: MCP adapter for OpenMercantil Public API — Billing. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-stripe-checkout-session description: Create Stripe Checkout Session hints: readOnly: false destructive: false idempotent: false call: openmercantil-billing.createcheckoutsession outputParameters: - type: object mapping: $. - name: create-stripe-one-time-donation description: Create Stripe One-Time Donation Session hints: readOnly: false destructive: false idempotent: false call: openmercantil-billing.createdonationsession with: body: tools.body outputParameters: - type: object mapping: $.