naftiko: 1.0.0-alpha2 info: label: Squarespace Orders API — Orders description: 'Squarespace Orders API — Orders. 4 operations. Lead operation: Retrieve All Orders. Self-contained Naftiko capability covering one Squarespace business surface.' tags: - Squarespace - Orders created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SQUARESPACE_API_KEY: SQUARESPACE_API_KEY capability: consumes: - type: http namespace: orders-orders baseUri: https://api.squarespace.com/1.0 description: Squarespace Orders API — Orders business capability. Self-contained, no shared references. resources: - name: commerce-orders path: /commerce/orders operations: - name: listorders method: GET description: Retrieve All Orders outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: modifiedAfter in: query type: string description: ISO 8601 UTC date-time string. Only returns orders modified after this date and time. - name: modifiedBefore in: query type: string description: ISO 8601 UTC date-time string. Only returns orders modified before this date and time. - name: fulfillmentStatus in: query type: string description: Filter orders by fulfillment status - name: createorder method: POST description: Create an Order outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: commerce-orders-orderId path: /commerce/orders/{orderId} operations: - name: getorder method: GET description: Retrieve a Specific Order outputRawFormat: json outputParameters: - name: result type: object value: $. - name: commerce-orders-orderId-fulfillments path: /commerce/orders/{orderId}/fulfillments operations: - name: fulfillorder method: POST description: Fulfill an Order outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.SQUARESPACE_API_KEY}}' exposes: - type: rest namespace: orders-orders-rest port: 8080 description: REST adapter for Squarespace Orders API — Orders. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/commerce/orders name: commerce-orders description: REST surface for commerce-orders. operations: - method: GET name: listorders description: Retrieve All Orders call: orders-orders.listorders with: modifiedAfter: rest.modifiedAfter modifiedBefore: rest.modifiedBefore fulfillmentStatus: rest.fulfillmentStatus outputParameters: - type: object mapping: $. - method: POST name: createorder description: Create an Order call: orders-orders.createorder with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/commerce/orders/{orderid} name: commerce-orders-orderid description: REST surface for commerce-orders-orderId. operations: - method: GET name: getorder description: Retrieve a Specific Order call: orders-orders.getorder outputParameters: - type: object mapping: $. - path: /v1/commerce/orders/{orderid}/fulfillments name: commerce-orders-orderid-fulfillments description: REST surface for commerce-orders-orderId-fulfillments. operations: - method: POST name: fulfillorder description: Fulfill an Order call: orders-orders.fulfillorder with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: orders-orders-mcp port: 9090 transport: http description: MCP adapter for Squarespace Orders API — Orders. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: retrieve-all-orders description: Retrieve All Orders hints: readOnly: true destructive: false idempotent: true call: orders-orders.listorders with: modifiedAfter: tools.modifiedAfter modifiedBefore: tools.modifiedBefore fulfillmentStatus: tools.fulfillmentStatus outputParameters: - type: object mapping: $. - name: create-order description: Create an Order hints: readOnly: false destructive: false idempotent: false call: orders-orders.createorder with: body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-specific-order description: Retrieve a Specific Order hints: readOnly: true destructive: false idempotent: true call: orders-orders.getorder outputParameters: - type: object mapping: $. - name: fulfill-order description: Fulfill an Order hints: readOnly: false destructive: false idempotent: false call: orders-orders.fulfillorder with: body: tools.body outputParameters: - type: object mapping: $.