naftiko: 1.0.0-alpha2 info: label: eBay Order API — Guest_purchase_order description: 'eBay Order API — Guest_purchase_order. 1 operations. Lead operation: Guest_purchase_order. Self-contained Naftiko capability covering one Ebay business surface.' tags: - Ebay - Guest_purchase_order created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: EBAY_API_KEY: EBAY_API_KEY capability: consumes: - type: http namespace: order-guest-purchase-order baseUri: https://apix.ebay.com{basePath} description: eBay Order API — Guest_purchase_order business capability. Self-contained, no shared references. resources: - name: guest_purchase_order-purchaseOrderId path: /guest_purchase_order/{purchaseOrderId} operations: - name: getguestpurchaseorder method: GET description: Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: purchaseOrderId in: path type: string description: This path parameter specifies the unique identifier of a purchase order made by a guest buyer, for which details are to be retrieved.

Note: For this method, this value must match the - name: X-EBAY-C-ENDUSERCTX in: header type: string description: This header is used to specify the deviceId for the device/user attempting to make the call.

It contains an alphanumeric string that allows a paym authentication: type: bearer token: '{{env.EBAY_API_KEY}}' exposes: - type: rest namespace: order-guest-purchase-order-rest port: 8080 description: REST adapter for eBay Order API — Guest_purchase_order. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/guest-purchase-order/{purchaseorderid} name: guest-purchase-order-purchaseorderid description: REST surface for guest_purchase_order-purchaseOrderId. operations: - method: GET name: getguestpurchaseorder description: Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the
v1_beta version call: order-guest-purchase-order.getguestpurchaseorder with: purchaseOrderId: rest.purchaseOrderId X-EBAY-C-MARKETPLACE-ID: rest.X-EBAY-C-MARKETPLACE-ID X-EBAY-C-ENDUSERCTX: rest.X-EBAY-C-ENDUSERCTX outputParameters: - type: object mapping: $. - type: mcp namespace: order-guest-purchase-order-mcp port: 9090 transport: http description: MCP adapter for eBay Order API — Guest_purchase_order. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: span-class-tablenote-b-note-b-order-api description: Note: The Order API (v2) currently only supports the guest payment/checkout flow. If you need to support member payment/checkout flow, use the v1_beta version hints: readOnly: true destructive: false idempotent: true call: order-guest-purchase-order.getguestpurchaseorder with: purchaseOrderId: tools.purchaseOrderId X-EBAY-C-MARKETPLACE-ID: tools.X-EBAY-C-MARKETPLACE-ID X-EBAY-C-ENDUSERCTX: tools.X-EBAY-C-ENDUSERCTX outputParameters: - type: object mapping: $.