Lithic · Capability
Lithic Developer API — Payment
Lithic Developer API — Payment. 9 operations. Lead operation: List payments. Self-contained Naftiko capability covering one Lithic business surface.
What You Can Do
GET
Searchpayments
— List payments
/v1/v1/payments
POST
Createpayment
— Create payment
/v1/v1/payments
GET
Getpaymentbytoken
— Get payment by token
/v1/v1/payments/{payment-token}
POST
Retrypayment
— Retry payment
/v1/v1/payments/{payment-token}/retry
POST
Returnpayment
— Return payment
/v1/v1/payments/{payment-token}/return
POST
Simulatepaymentsreceipt
— Simulate receipt
/v1/v1/simulate/payments/receipt
POST
Simulatepaymentsrelease
— Simulate release payment
/v1/v1/simulate/payments/release
POST
Simulatepaymentsreturn
— Simulate return payment
/v1/v1/simulate/payments/return
POST
Simulatepaymentaction
— Simulate payment lifecycle event
/v1/v1/simulate/payments/{payment-token}/action
MCP Tools
list-payments
List payments
read-only
idempotent
create-payment
Create payment
get-payment-token
Get payment by token
read-only
idempotent
retry-payment
Retry payment
return-payment
Return payment
simulate-receipt
Simulate receipt
simulate-release-payment
Simulate release payment
simulate-return-payment
Simulate return payment
simulate-payment-lifecycle-event
Simulate payment lifecycle event
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Lithic Developer API — Payment
description: 'Lithic Developer API — Payment. 9 operations. Lead operation: List payments. Self-contained Naftiko capability
covering one Lithic business surface.'
tags:
- Lithic
- Payment
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
LITHIC_API_KEY: LITHIC_API_KEY
capability:
consumes:
- type: http
namespace: lithic-payment
baseUri: https://sandbox.lithic.com
description: Lithic Developer API — Payment business capability. Self-contained, no shared references.
resources:
- name: v1-payments
path: /v1/payments
operations:
- name: searchpayments
method: GET
description: List payments
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: financial_account_token
in: query
type: string
- name: business_account_token
in: query
type: string
- name: account_token
in: query
type: string
- name: result
in: query
type: string
- name: status
in: query
type: string
- name: category
in: query
type: string
- name: createpayment
method: POST
description: Create payment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v1-payments-payment_token
path: /v1/payments/{payment_token}
operations:
- name: getpaymentbytoken
method: GET
description: Get payment by token
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: payment_token
in: path
type: string
required: true
- name: v1-payments-payment_token-retry
path: /v1/payments/{payment_token}/retry
operations:
- name: retrypayment
method: POST
description: Retry payment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: payment_token
in: path
type: string
required: true
- name: v1-payments-payment_token-return
path: /v1/payments/{payment_token}/return
operations:
- name: returnpayment
method: POST
description: Return payment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: payment_token
in: path
type: string
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v1-simulate-payments-receipt
path: /v1/simulate/payments/receipt
operations:
- name: simulatepaymentsreceipt
method: POST
description: Simulate receipt
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v1-simulate-payments-release
path: /v1/simulate/payments/release
operations:
- name: simulatepaymentsrelease
method: POST
description: Simulate release payment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v1-simulate-payments-return
path: /v1/simulate/payments/return
operations:
- name: simulatepaymentsreturn
method: POST
description: Simulate return payment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v1-simulate-payments-payment_token-action
path: /v1/simulate/payments/{payment_token}/action
operations:
- name: simulatepaymentaction
method: POST
description: Simulate payment lifecycle event
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: payment_token
in: path
type: string
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: false
authentication:
type: apikey
key: Authorization
value: '{{env.LITHIC_API_KEY}}'
placement: header
exposes:
- type: rest
namespace: lithic-payment-rest
port: 8080
description: REST adapter for Lithic Developer API — Payment. One Spectral-compliant resource per consumed operation,
prefixed with /v1.
resources:
- path: /v1/v1/payments
name: v1-payments
description: REST surface for v1-payments.
operations:
- method: GET
name: searchpayments
description: List payments
call: lithic-payment.searchpayments
with:
financial_account_token: rest.financial_account_token
business_account_token: rest.business_account_token
account_token: rest.account_token
result: rest.result
status: rest.status
category: rest.category
outputParameters:
- type: object
mapping: $.
- method: POST
name: createpayment
description: Create payment
call: lithic-payment.createpayment
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/v1/payments/{payment-token}
name: v1-payments-payment-token
description: REST surface for v1-payments-payment_token.
operations:
- method: GET
name: getpaymentbytoken
description: Get payment by token
call: lithic-payment.getpaymentbytoken
with:
payment_token: rest.payment_token
outputParameters:
- type: object
mapping: $.
- path: /v1/v1/payments/{payment-token}/retry
name: v1-payments-payment-token-retry
description: REST surface for v1-payments-payment_token-retry.
operations:
- method: POST
name: retrypayment
description: Retry payment
call: lithic-payment.retrypayment
with:
payment_token: rest.payment_token
outputParameters:
- type: object
mapping: $.
- path: /v1/v1/payments/{payment-token}/return
name: v1-payments-payment-token-return
description: REST surface for v1-payments-payment_token-return.
operations:
- method: POST
name: returnpayment
description: Return payment
call: lithic-payment.returnpayment
with:
payment_token: rest.payment_token
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/v1/simulate/payments/receipt
name: v1-simulate-payments-receipt
description: REST surface for v1-simulate-payments-receipt.
operations:
- method: POST
name: simulatepaymentsreceipt
description: Simulate receipt
call: lithic-payment.simulatepaymentsreceipt
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/v1/simulate/payments/release
name: v1-simulate-payments-release
description: REST surface for v1-simulate-payments-release.
operations:
- method: POST
name: simulatepaymentsrelease
description: Simulate release payment
call: lithic-payment.simulatepaymentsrelease
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/v1/simulate/payments/return
name: v1-simulate-payments-return
description: REST surface for v1-simulate-payments-return.
operations:
- method: POST
name: simulatepaymentsreturn
description: Simulate return payment
call: lithic-payment.simulatepaymentsreturn
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/v1/simulate/payments/{payment-token}/action
name: v1-simulate-payments-payment-token-action
description: REST surface for v1-simulate-payments-payment_token-action.
operations:
- method: POST
name: simulatepaymentaction
description: Simulate payment lifecycle event
call: lithic-payment.simulatepaymentaction
with:
payment_token: rest.payment_token
body: rest.body
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: lithic-payment-mcp
port: 9090
transport: http
description: MCP adapter for Lithic Developer API — Payment. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: list-payments
description: List payments
hints:
readOnly: true
destructive: false
idempotent: true
call: lithic-payment.searchpayments
with:
financial_account_token: tools.financial_account_token
business_account_token: tools.business_account_token
account_token: tools.account_token
result: tools.result
status: tools.status
category: tools.category
outputParameters:
- type: object
mapping: $.
- name: create-payment
description: Create payment
hints:
readOnly: false
destructive: false
idempotent: false
call: lithic-payment.createpayment
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: get-payment-token
description: Get payment by token
hints:
readOnly: true
destructive: false
idempotent: true
call: lithic-payment.getpaymentbytoken
with:
payment_token: tools.payment_token
outputParameters:
- type: object
mapping: $.
- name: retry-payment
description: Retry payment
hints:
readOnly: false
destructive: false
idempotent: false
call: lithic-payment.retrypayment
with:
payment_token: tools.payment_token
outputParameters:
- type: object
mapping: $.
- name: return-payment
description: Return payment
hints:
readOnly: false
destructive: false
idempotent: false
call: lithic-payment.returnpayment
with:
payment_token: tools.payment_token
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: simulate-receipt
description: Simulate receipt
hints:
readOnly: false
destructive: false
idempotent: false
call: lithic-payment.simulatepaymentsreceipt
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: simulate-release-payment
description: Simulate release payment
hints:
readOnly: false
destructive: false
idempotent: false
call: lithic-payment.simulatepaymentsrelease
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: simulate-return-payment
description: Simulate return payment
hints:
readOnly: false
destructive: false
idempotent: false
call: lithic-payment.simulatepaymentsreturn
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: simulate-payment-lifecycle-event
description: Simulate payment lifecycle event
hints:
readOnly: false
destructive: false
idempotent: false
call: lithic-payment.simulatepaymentaction
with:
payment_token: tools.payment_token
body: tools.body
outputParameters:
- type: object
mapping: $.