Amazon · Capability

Amazon Selling Partner API — Orders

Amazon Selling Partner API — Orders. 3 operations. Lead operation: Amazon Search Orders. Self-contained Naftiko capability covering one Amazon business surface.

Run with Naftiko AmazonOrders

What You Can Do

GET
Searchorders — Amazon Search Orders
/v1/orders/2026-01-01/orders
GET
Getorder — Amazon Get Order Details
/v1/orders/2026-01-01/orders/{orderid}
GET
Getorderitems — Amazon Get Order Items
/v1/orders/2026-01-01/orders/{orderid}/orderitems

MCP Tools

amazon-search-orders

Amazon Search Orders

read-only idempotent
amazon-get-order-details

Amazon Get Order Details

read-only idempotent
amazon-get-order-items

Amazon Get Order Items

read-only idempotent

Capability Spec

selling-partner-orders.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Selling Partner API — Orders
  description: 'Amazon Selling Partner API — Orders. 3 operations. Lead operation: Amazon Search Orders. Self-contained Naftiko
    capability covering one Amazon business surface.'
  tags:
  - Amazon
  - Orders
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_API_KEY: AMAZON_API_KEY
capability:
  consumes:
  - type: http
    namespace: selling-partner-orders
    baseUri: https://sellingpartnerapi-na.amazon.com
    description: Amazon Selling Partner API — Orders business capability. Self-contained, no shared references.
    resources:
    - name: orders-2026-01-01-orders
      path: /orders/2026-01-01/orders
      operations:
      - name: searchorders
        method: GET
        description: Amazon Search Orders
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: CreatedAfter
          in: query
          type: string
        - name: CreatedBefore
          in: query
          type: string
        - name: OrderStatuses
          in: query
          type: array
        - name: MaxResultsPerPage
          in: query
          type: integer
        - name: NextToken
          in: query
          type: string
    - name: orders-2026-01-01-orders-orderId
      path: /orders/2026-01-01/orders/{orderId}
      operations:
      - name: getorder
        method: GET
        description: Amazon Get Order Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orders-2026-01-01-orders-orderId-orderItems
      path: /orders/2026-01-01/orders/{orderId}/orderItems
      operations:
      - name: getorderitems
        method: GET
        description: Amazon Get Order Items
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NextToken
          in: query
          type: string
    authentication:
      type: bearer
      token: '{{env.AMAZON_API_KEY}}'
  exposes:
  - type: rest
    namespace: selling-partner-orders-rest
    port: 8080
    description: REST adapter for Amazon Selling Partner API — Orders. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/orders/2026-01-01/orders
      name: orders-2026-01-01-orders
      description: REST surface for orders-2026-01-01-orders.
      operations:
      - method: GET
        name: searchorders
        description: Amazon Search Orders
        call: selling-partner-orders.searchorders
        with:
          CreatedAfter: rest.CreatedAfter
          CreatedBefore: rest.CreatedBefore
          OrderStatuses: rest.OrderStatuses
          MaxResultsPerPage: rest.MaxResultsPerPage
          NextToken: rest.NextToken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orders/2026-01-01/orders/{orderid}
      name: orders-2026-01-01-orders-orderid
      description: REST surface for orders-2026-01-01-orders-orderId.
      operations:
      - method: GET
        name: getorder
        description: Amazon Get Order Details
        call: selling-partner-orders.getorder
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orders/2026-01-01/orders/{orderid}/orderitems
      name: orders-2026-01-01-orders-orderid-orderitems
      description: REST surface for orders-2026-01-01-orders-orderId-orderItems.
      operations:
      - method: GET
        name: getorderitems
        description: Amazon Get Order Items
        call: selling-partner-orders.getorderitems
        with:
          NextToken: rest.NextToken
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: selling-partner-orders-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Selling Partner API — Orders. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: amazon-search-orders
      description: Amazon Search Orders
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: selling-partner-orders.searchorders
      with:
        CreatedAfter: tools.CreatedAfter
        CreatedBefore: tools.CreatedBefore
        OrderStatuses: tools.OrderStatuses
        MaxResultsPerPage: tools.MaxResultsPerPage
        NextToken: tools.NextToken
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-get-order-details
      description: Amazon Get Order Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: selling-partner-orders.getorder
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-get-order-items
      description: Amazon Get Order Items
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: selling-partner-orders.getorderitems
      with:
        NextToken: tools.NextToken
      outputParameters:
      - type: object
        mapping: $.