Marqeta · Capability
Core API — Credit Substatuses
Core API — Credit Substatuses. 5 operations. Lead operation: List substatuses. Self-contained Naftiko capability covering one Marqeta business surface.
What You Can Do
GET
Listsubstatuses
— List substatuses
/v1/substatuses
POST
Createsubstatus
— Create substatus
/v1/substatuses
GET
Retrievesubstatus
— Retrieve substatus
/v1/substatuses/{substatus-token}
PUT
Updatesubstatus
— Update substatus
/v1/substatuses/{substatus-token}
POST
Resendwebhookevent
— Resend credit event notification
/v1/webhooks/{event-type}/{resource-token}
MCP Tools
list-substatuses
List substatuses
read-only
idempotent
create-substatus
Create substatus
retrieve-substatus
Retrieve substatus
read-only
idempotent
update-substatus
Update substatus
idempotent
resend-credit-event-notification
Resend credit event notification
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Core API — Credit Substatuses
description: 'Core API — Credit Substatuses. 5 operations. Lead operation: List substatuses. Self-contained Naftiko capability
covering one Marqeta business surface.'
tags:
- Marqeta
- Credit Substatuses
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
MARQETA_API_KEY: MARQETA_API_KEY
capability:
consumes:
- type: http
namespace: core-credit-substatuses
baseUri: ''
description: Core API — Credit Substatuses business capability. Self-contained, no shared references.
resources:
- name: substatuses
path: /substatuses
operations:
- name: listsubstatuses
method: GET
description: List substatuses
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: account_token
in: query
type: string
description: Unique identifier of the account for which to retrieve substatuses.
- name: user_token
in: query
type: string
description: Unique identifier of the user for which to retrieve substatuses.
- name: is_active
in: query
type: boolean
description: Denotes whether a substatus is active.
- name: substatuses
in: query
type: array
description: Comma-delimited list of substatus types to include.
- name: count
in: query
type: integer
description: The number of resources to retrieve.
- name: start_index
in: query
type: integer
description: Sort order index of the first resource in the returned array.
- name: sort_by
in: query
type: string
description: Field on which to sort.
- name: createsubstatus
method: POST
description: Create substatus
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: substatuses-substatus_token
path: /substatuses/{substatus_token}
operations:
- name: retrievesubstatus
method: GET
description: Retrieve substatus
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: substatus_token
in: path
type: string
description: Unique identifier of the substatus to retrieve.
required: true
- name: updatesubstatus
method: PUT
description: Update substatus
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: substatus_token
in: path
type: string
description: Unique identifier of the account substatus resource to retrieve.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: webhooks-event_type-resource_token
path: /webhooks/{event_type}/{resource_token}
operations:
- name: resendwebhookevent
method: POST
description: Resend credit event notification
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: event_type
in: path
type: string
description: Specifies the type of event you want to resend.
required: true
- name: resource_token
in: path
type: string
description: Unique identifier of the resource for which you want to resend a notification.
required: true
authentication:
type: basic
username: '{{env.MARQETA_USER}}'
password: '{{env.MARQETA_PASS}}'
exposes:
- type: rest
namespace: core-credit-substatuses-rest
port: 8080
description: REST adapter for Core API — Credit Substatuses. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/substatuses
name: substatuses
description: REST surface for substatuses.
operations:
- method: GET
name: listsubstatuses
description: List substatuses
call: core-credit-substatuses.listsubstatuses
with:
account_token: rest.account_token
user_token: rest.user_token
is_active: rest.is_active
substatuses: rest.substatuses
count: rest.count
start_index: rest.start_index
sort_by: rest.sort_by
outputParameters:
- type: object
mapping: $.
- method: POST
name: createsubstatus
description: Create substatus
call: core-credit-substatuses.createsubstatus
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/substatuses/{substatus-token}
name: substatuses-substatus-token
description: REST surface for substatuses-substatus_token.
operations:
- method: GET
name: retrievesubstatus
description: Retrieve substatus
call: core-credit-substatuses.retrievesubstatus
with:
substatus_token: rest.substatus_token
outputParameters:
- type: object
mapping: $.
- method: PUT
name: updatesubstatus
description: Update substatus
call: core-credit-substatuses.updatesubstatus
with:
substatus_token: rest.substatus_token
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/webhooks/{event-type}/{resource-token}
name: webhooks-event-type-resource-token
description: REST surface for webhooks-event_type-resource_token.
operations:
- method: POST
name: resendwebhookevent
description: Resend credit event notification
call: core-credit-substatuses.resendwebhookevent
with:
event_type: rest.event_type
resource_token: rest.resource_token
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: core-credit-substatuses-mcp
port: 9090
transport: http
description: MCP adapter for Core API — Credit Substatuses. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: list-substatuses
description: List substatuses
hints:
readOnly: true
destructive: false
idempotent: true
call: core-credit-substatuses.listsubstatuses
with:
account_token: tools.account_token
user_token: tools.user_token
is_active: tools.is_active
substatuses: tools.substatuses
count: tools.count
start_index: tools.start_index
sort_by: tools.sort_by
outputParameters:
- type: object
mapping: $.
- name: create-substatus
description: Create substatus
hints:
readOnly: false
destructive: false
idempotent: false
call: core-credit-substatuses.createsubstatus
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: retrieve-substatus
description: Retrieve substatus
hints:
readOnly: true
destructive: false
idempotent: true
call: core-credit-substatuses.retrievesubstatus
with:
substatus_token: tools.substatus_token
outputParameters:
- type: object
mapping: $.
- name: update-substatus
description: Update substatus
hints:
readOnly: false
destructive: false
idempotent: true
call: core-credit-substatuses.updatesubstatus
with:
substatus_token: tools.substatus_token
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: resend-credit-event-notification
description: Resend credit event notification
hints:
readOnly: false
destructive: false
idempotent: false
call: core-credit-substatuses.resendwebhookevent
with:
event_type: tools.event_type
resource_token: tools.resource_token
outputParameters:
- type: object
mapping: $.