Staples · Capability

Staples Advantage eProcurement API — Account

Staples Advantage eProcurement API — Account. 2 operations. Lead operation: Get Account. Self-contained Naftiko capability covering one Staples business surface.

Run with Naftiko StaplesAccount

What You Can Do

GET
Getaccount — Get Account
/v1/v1/account
GET
Listcostcenters — List Cost Centers
/v1/v1/account/cost-centers

MCP Tools

get-account

Get Account

read-only idempotent
list-cost-centers

List Cost Centers

read-only idempotent

Capability Spec

advantage-eprocurement-account.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Staples Advantage eProcurement API — Account
  description: 'Staples Advantage eProcurement API — Account. 2 operations. Lead operation: Get Account. Self-contained Naftiko
    capability covering one Staples business surface.'
  tags:
  - Staples
  - Account
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STAPLES_API_KEY: STAPLES_API_KEY
capability:
  consumes:
  - type: http
    namespace: advantage-eprocurement-account
    baseUri: https://api.staplesadvantage.com
    description: Staples Advantage eProcurement API — Account business capability. Self-contained, no shared references.
    resources:
    - name: v1-account
      path: /v1/account
      operations:
      - name: getaccount
        method: GET
        description: Get Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-account-cost-centers
      path: /v1/account/cost-centers
      operations:
      - name: listcostcenters
        method: GET
        description: List Cost Centers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.STAPLES_API_KEY}}'
  exposes:
  - type: rest
    namespace: advantage-eprocurement-account-rest
    port: 8080
    description: REST adapter for Staples Advantage eProcurement API — Account. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/account
      name: v1-account
      description: REST surface for v1-account.
      operations:
      - method: GET
        name: getaccount
        description: Get Account
        call: advantage-eprocurement-account.getaccount
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/account/cost-centers
      name: v1-account-cost-centers
      description: REST surface for v1-account-cost-centers.
      operations:
      - method: GET
        name: listcostcenters
        description: List Cost Centers
        call: advantage-eprocurement-account.listcostcenters
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: advantage-eprocurement-account-mcp
    port: 9090
    transport: http
    description: MCP adapter for Staples Advantage eProcurement API — Account. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-account
      description: Get Account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: advantage-eprocurement-account.getaccount
      outputParameters:
      - type: object
        mapping: $.
    - name: list-cost-centers
      description: List Cost Centers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: advantage-eprocurement-account.listcostcenters
      outputParameters:
      - type: object
        mapping: $.