Zuora · Capability

API Reference — Accounting Codes

API Reference — Accounting Codes. 7 operations. Lead operation: Create an accounting code. Self-contained Naftiko capability covering one Zuora business surface.

Run with Naftiko ZuoraAccounting Codes

What You Can Do

POST
Postaccountingcode — Create an accounting code
/v1/v1/accounting-codes
GET
Getallaccountingcodes — List all accounting codes
/v1/v1/accounting-codes
DELETE
Deleteaccountingcode — Delete an accounting code
/v1/v1/accounting-codes/{ac-id}
GET
Getaccountingcode — Retrieve an accounting code
/v1/v1/accounting-codes/{ac-id}
PUT
Putaccountingcode — Update an accounting code
/v1/v1/accounting-codes/{ac-id}
PUT
Putactivateaccountingcode — Activate an accounting code
/v1/v1/accounting-codes/{ac-id}/activate
PUT
Putdeactivateaccountingcode — Deactivate an accounting code
/v1/v1/accounting-codes/{ac-id}/deactivate

MCP Tools

create-accounting-code

Create an accounting code

list-all-accounting-codes

List all accounting codes

read-only idempotent
delete-accounting-code

Delete an accounting code

idempotent
retrieve-accounting-code

Retrieve an accounting code

read-only idempotent
update-accounting-code

Update an accounting code

idempotent
activate-accounting-code

Activate an accounting code

idempotent
deactivate-accounting-code

Deactivate an accounting code

idempotent

Capability Spec

v1-accounting-codes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Reference — Accounting Codes
  description: 'API Reference — Accounting Codes. 7 operations. Lead operation: Create an accounting code. Self-contained
    Naftiko capability covering one Zuora business surface.'
  tags:
  - Zuora
  - Accounting Codes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ZUORA_API_KEY: ZUORA_API_KEY
capability:
  consumes:
  - type: http
    namespace: v1-accounting-codes
    baseUri: https://rest.zuora.com
    description: API Reference — Accounting Codes business capability. Self-contained, no shared references.
    resources:
    - name: v1-accounting-codes
      path: /v1/accounting-codes
      operations:
      - name: postaccountingcode
        method: POST
        description: Create an accounting code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Request
          in: body
          type: string
          required: true
      - name: getallaccountingcodes
        method: GET
        description: List all accounting codes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-accounting-codes-ac-id
      path: /v1/accounting-codes/{ac-id}
      operations:
      - name: deleteaccountingcode
        method: DELETE
        description: Delete an accounting code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ac-id
          in: path
          type: string
          description: ID of the accounting code you want to delete.
          required: true
      - name: getaccountingcode
        method: GET
        description: Retrieve an accounting code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ac-id
          in: path
          type: string
          description: ID of the accounting code you want to query.
          required: true
      - name: putaccountingcode
        method: PUT
        description: Update an accounting code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ac-id
          in: path
          type: string
          description: ID of the accounting code you want to update.
          required: true
        - name: Request
          in: body
          type: string
          required: true
    - name: v1-accounting-codes-ac-id-activate
      path: /v1/accounting-codes/{ac-id}/activate
      operations:
      - name: putactivateaccountingcode
        method: PUT
        description: Activate an accounting code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ac-id
          in: path
          type: string
          description: ID of the accounting code you want to activate.
          required: true
    - name: v1-accounting-codes-ac-id-deactivate
      path: /v1/accounting-codes/{ac-id}/deactivate
      operations:
      - name: putdeactivateaccountingcode
        method: PUT
        description: Deactivate an accounting code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ac-id
          in: path
          type: string
          description: ID of the accounting code you want to deactivate.
          required: true
  exposes:
  - type: rest
    namespace: v1-accounting-codes-rest
    port: 8080
    description: REST adapter for API Reference — Accounting Codes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/accounting-codes
      name: v1-accounting-codes
      description: REST surface for v1-accounting-codes.
      operations:
      - method: POST
        name: postaccountingcode
        description: Create an accounting code
        call: v1-accounting-codes.postaccountingcode
        with:
          Request: rest.Request
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getallaccountingcodes
        description: List all accounting codes
        call: v1-accounting-codes.getallaccountingcodes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/accounting-codes/{ac-id}
      name: v1-accounting-codes-ac-id
      description: REST surface for v1-accounting-codes-ac-id.
      operations:
      - method: DELETE
        name: deleteaccountingcode
        description: Delete an accounting code
        call: v1-accounting-codes.deleteaccountingcode
        with:
          ac-id: rest.ac-id
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getaccountingcode
        description: Retrieve an accounting code
        call: v1-accounting-codes.getaccountingcode
        with:
          ac-id: rest.ac-id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putaccountingcode
        description: Update an accounting code
        call: v1-accounting-codes.putaccountingcode
        with:
          ac-id: rest.ac-id
          Request: rest.Request
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/accounting-codes/{ac-id}/activate
      name: v1-accounting-codes-ac-id-activate
      description: REST surface for v1-accounting-codes-ac-id-activate.
      operations:
      - method: PUT
        name: putactivateaccountingcode
        description: Activate an accounting code
        call: v1-accounting-codes.putactivateaccountingcode
        with:
          ac-id: rest.ac-id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/accounting-codes/{ac-id}/deactivate
      name: v1-accounting-codes-ac-id-deactivate
      description: REST surface for v1-accounting-codes-ac-id-deactivate.
      operations:
      - method: PUT
        name: putdeactivateaccountingcode
        description: Deactivate an accounting code
        call: v1-accounting-codes.putdeactivateaccountingcode
        with:
          ac-id: rest.ac-id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: v1-accounting-codes-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Reference — Accounting Codes. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-accounting-code
      description: Create an accounting code
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: v1-accounting-codes.postaccountingcode
      with:
        Request: tools.Request
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-accounting-codes
      description: List all accounting codes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v1-accounting-codes.getallaccountingcodes
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-accounting-code
      description: Delete an accounting code
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: v1-accounting-codes.deleteaccountingcode
      with:
        ac-id: tools.ac-id
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-accounting-code
      description: Retrieve an accounting code
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v1-accounting-codes.getaccountingcode
      with:
        ac-id: tools.ac-id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-accounting-code
      description: Update an accounting code
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: v1-accounting-codes.putaccountingcode
      with:
        ac-id: tools.ac-id
        Request: tools.Request
      outputParameters:
      - type: object
        mapping: $.
    - name: activate-accounting-code
      description: Activate an accounting code
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: v1-accounting-codes.putactivateaccountingcode
      with:
        ac-id: tools.ac-id
      outputParameters:
      - type: object
        mapping: $.
    - name: deactivate-accounting-code
      description: Deactivate an accounting code
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: v1-accounting-codes.putdeactivateaccountingcode
      with:
        ac-id: tools.ac-id
      outputParameters:
      - type: object
        mapping: $.