Amazon · Capability

Amazon Pay API — Checkout Sessions

Amazon Pay API — Checkout Sessions. 4 operations. Lead operation: Amazon Create Checkout Session. Self-contained Naftiko capability covering one Amazon business surface.

Run with Naftiko AmazonCheckout Sessions

What You Can Do

POST
Createcheckoutsession — Amazon Create Checkout Session
/v1/checkoutsessions
GET
Getcheckoutsession — Amazon Get Checkout Session
/v1/checkoutsessions/{checkoutsessionid}
PATCH
Updatecheckoutsession — Amazon Update Checkout Session
/v1/checkoutsessions/{checkoutsessionid}
POST
Completecheckoutsession — Amazon Complete Checkout Session
/v1/checkoutsessions/{checkoutsessionid}/complete

MCP Tools

amazon-create-checkout-session

Amazon Create Checkout Session

amazon-get-checkout-session

Amazon Get Checkout Session

read-only idempotent
amazon-update-checkout-session

Amazon Update Checkout Session

idempotent
amazon-complete-checkout-session

Amazon Complete Checkout Session

Capability Spec

pay-checkout-sessions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Pay API — Checkout Sessions
  description: 'Amazon Pay API — Checkout Sessions. 4 operations. Lead operation: Amazon Create Checkout Session. Self-contained
    Naftiko capability covering one Amazon business surface.'
  tags:
  - Amazon
  - Checkout Sessions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_API_KEY: AMAZON_API_KEY
capability:
  consumes:
  - type: http
    namespace: pay-checkout-sessions
    baseUri: https://pay-api.amazon.com/live/v2
    description: Amazon Pay API — Checkout Sessions business capability. Self-contained, no shared references.
    resources:
    - name: checkoutSessions
      path: /checkoutSessions
      operations:
      - name: createcheckoutsession
        method: POST
        description: Amazon Create Checkout Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: checkoutSessions-checkoutSessionId
      path: /checkoutSessions/{checkoutSessionId}
      operations:
      - name: getcheckoutsession
        method: GET
        description: Amazon Get Checkout Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: checkoutSessionId
          in: path
          type: string
          required: true
      - name: updatecheckoutsession
        method: PATCH
        description: Amazon Update Checkout Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: checkoutSessionId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: checkoutSessions-checkoutSessionId-complete
      path: /checkoutSessions/{checkoutSessionId}/complete
      operations:
      - name: completecheckoutsession
        method: POST
        description: Amazon Complete Checkout Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: checkoutSessionId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: authorization
      value: '{{env.AMAZON_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: pay-checkout-sessions-rest
    port: 8080
    description: REST adapter for Amazon Pay API — Checkout Sessions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/checkoutsessions
      name: checkoutsessions
      description: REST surface for checkoutSessions.
      operations:
      - method: POST
        name: createcheckoutsession
        description: Amazon Create Checkout Session
        call: pay-checkout-sessions.createcheckoutsession
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/checkoutsessions/{checkoutsessionid}
      name: checkoutsessions-checkoutsessionid
      description: REST surface for checkoutSessions-checkoutSessionId.
      operations:
      - method: GET
        name: getcheckoutsession
        description: Amazon Get Checkout Session
        call: pay-checkout-sessions.getcheckoutsession
        with:
          checkoutSessionId: rest.checkoutSessionId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecheckoutsession
        description: Amazon Update Checkout Session
        call: pay-checkout-sessions.updatecheckoutsession
        with:
          checkoutSessionId: rest.checkoutSessionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/checkoutsessions/{checkoutsessionid}/complete
      name: checkoutsessions-checkoutsessionid-complete
      description: REST surface for checkoutSessions-checkoutSessionId-complete.
      operations:
      - method: POST
        name: completecheckoutsession
        description: Amazon Complete Checkout Session
        call: pay-checkout-sessions.completecheckoutsession
        with:
          checkoutSessionId: rest.checkoutSessionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: pay-checkout-sessions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Pay API — Checkout Sessions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: amazon-create-checkout-session
      description: Amazon Create Checkout Session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: pay-checkout-sessions.createcheckoutsession
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-get-checkout-session
      description: Amazon Get Checkout Session
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: pay-checkout-sessions.getcheckoutsession
      with:
        checkoutSessionId: tools.checkoutSessionId
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-update-checkout-session
      description: Amazon Update Checkout Session
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: pay-checkout-sessions.updatecheckoutsession
      with:
        checkoutSessionId: tools.checkoutSessionId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-complete-checkout-session
      description: Amazon Complete Checkout Session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: pay-checkout-sessions.completecheckoutsession
      with:
        checkoutSessionId: tools.checkoutSessionId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.