> ## Documentation Index
> Fetch the complete documentation index at: https://help.narmi.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Replace a missing card
> Submits a request to the card processor to send a replacement to the user, as well as notifying the user of said action via email.
All monetary values are represented in minor units, or the smallest unit of the currency with no decimal (e.g., cents). For example, $10.00 is represented as 1000.
How can we improve these docs? Share your feedback.
## OpenAPI
````json POST /v1/cards/{card_id}/replace_card/
{
"openapi": "3.0.3",
"info": {
"title": "Narmi Public API",
"version": "v1 (main)",
"description": "To read about Public API access and authentication, go to [API Overview](https://docs.narmi.com/docs/narmi-developer-docs/xl9dvbz84o11l-introduction).\n\n### Content types\n\nRequests and responses default to JSON. To use [TOON](https://toonformat.dev/) (Token-Oriented Object Notation), a compact, lossless encoding of JSON that uses fewer tokens in LLM contexts, send `Content-Type: application/toon` for request bodies and `Accept: application/toon` for responses.",
"termsOfService": "https://www.narmi.com/policies/developer-terms-conditions",
"contact": {
"name": "Narmi Support",
"email": "support@narmi.com"
}
},
"servers": [
{
"url": "https://api.sandbox.narmi.dev/",
"description": ""
}
],
"tags": [
{
"name": "accessibility"
},
{
"name": "account balances"
},
{
"name": "account opening"
},
{
"name": "accounts"
},
{
"name": "ach companies"
},
{
"name": "ach destinations"
},
{
"name": "ach import"
},
{
"name": "ach nacha passthrough"
},
{
"name": "ach payments"
},
{
"name": "ach transfers"
},
{
"name": "alerts"
},
{
"name": "automatic savings enrollment"
},
{
"name": "bill pay"
},
{
"name": "bulk payment templates"
},
{
"name": "bulk payments"
},
{
"name": "card linked offers"
},
{
"name": "cards"
},
{
"name": "data access management"
},
{
"name": "deposits"
},
{
"name": "documents"
},
{
"name": "enrollments"
},
{
"name": "express-checkout"
},
{
"name": "external transactions"
},
{
"name": "fedwire destinations"
},
{
"name": "fedwire templates"
},
{
"name": "file imports"
},
{
"name": "income source"
},
{
"name": "instant transfers"
},
{
"name": "institution"
},
{
"name": "international wires"
},
{
"name": "invoices"
},
{
"name": "loan autopay"
},
{
"name": "me"
},
{
"name": "merchants"
},
{
"name": "mfa"
},
{
"name": "payees"
},
{
"name": "payments"
},
{
"name": "ping"
},
{
"name": "receipts"
},
{
"name": "recipients"
},
{
"name": "reports"
},
{
"name": "same-day transfers"
},
{
"name": "scheduled transfers"
},
{
"name": "search"
},
{
"name": "subscriptions"
},
{
"name": "support"
},
{
"name": "surveys"
},
{
"name": "swift transactions"
},
{
"name": "swift wire templates"
},
{
"name": "teams"
},
{
"name": "threads"
},
{
"name": "transactions"
},
{
"name": "unverified ach reversals"
},
{
"name": "unverified ach transactions"
},
{
"name": "users"
},
{
"name": "whatismyip"
},
{
"name": "wire import"
},
{
"name": "wire recipients"
},
{
"name": "wires"
}
],
"x-stoplight": {
"id": "68n444msv6n7x"
},
"paths": {
"/v1/cards/{card_id}/replace_card/": {
"post": {
"operationId": "cards_replace_card_create",
"description": "Submits a request to the card processor to send a replacement to the user, as well as notifying the user of said action via email.\n\nAll monetary values are represented in minor units, or the smallest unit of the currency with no decimal (e.g., cents). For example, $10.00 is represented as 1000.\n\n\n\nHow can we improve these docs? Share your feedback.",
"summary": "Replace a missing card",
"parameters": [
{
"in": "path",
"name": "card_id",
"schema": {
"type": "string"
},
"required": true
},
{
"in": "query",
"name": "format",
"schema": {
"type": "string",
"enum": [
"json",
"toon"
]
}
}
],
"tags": [
"cards"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MissingCardRequest"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/MissingCardRequest"
}
},
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/MissingCardRequest"
}
},
"application/toon": {
"schema": {
"$ref": "#/components/schemas/MissingCardRequest"
}
}
},
"required": true
},
"security": [
{
"oauth2": [
"write"
]
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommonCard"
},
"examples": {
"READ": {
"value": {
"id": "405",
"core_user_id": "gszAmFzCglfoGwyD",
"last_four_digits": "0058",
"state": "normal",
"bin": "478763",
"network": "Visa",
"name": "Standard Rewards",
"card_type": "debit"
}
}
}
},
"application/toon": {
"schema": {
"$ref": "#/components/schemas/CommonCard"
}
}
},
"description": ""
},
"400": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"id": {
"type": "string"
}
}
},
"examples": {
"ValidationError": {
"value": {
"message": "Please enter a valid reason.",
"id": "invalid"
}
}
}
},
"application/toon": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"id": {
"type": "string"
}
}
},
"examples": {
"ValidationError": {
"value": {
"message": "Please enter a valid reason.",
"id": "invalid"
}
}
}
}
},
"description": ""
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
"examples": {
"PermissionDenied": {
"value": {
"id": "permission_denied",
"message": "You do not have permission to perform this action."
}
}
}
},
"application/toon": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
"examples": {
"PermissionDenied": {
"value": {
"id": "permission_denied",
"message": "You do not have permission to perform this action."
}
}
}
}
},
"description": ""
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
"examples": {
"NotFound": {
"value": {
"id": "not_found",
"message": "Card not found"
}
}
}
},
"application/toon": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
"examples": {
"NotFound": {
"value": {
"id": "not_found",
"message": "Card not found"
}
}
}
}
},
"description": ""
},
"500": {
"description": "Server side error. Typically an issue related to connecting to the core or a third-party API."
}
},
"x-permissions": {
"allOf": [
{
"feature": {
"name": "cards"
}
},
{
"feature": {
"name": "integrations.base.Card_permission"
}
}
]
},
"x-stoplight": {
"id": "wiy6vrwdotcx7"
}
}
}
},
"components": {
"schemas": {
"MissingCardRequest": {
"type": "object",
"properties": {
"reason": {
"$ref": "#/components/schemas/ReasonEnum"
}
},
"required": [
"reason"
],
"x-stoplight": {
"id": "htvopglvr495y"
}
},
"CommonCard": {
"type": "object",
"description": "integrations.cards.common.Card",
"properties": {
"id": {
"type": "string",
"description": "An identifier for the card object."
},
"core_user_id": {
"type": "string",
"description": "String uniquely identifying a user or user's primary account on the banking core"
},
"last_four_digits": {
"type": "string",
"description": "Last four digits of the card's account number."
},
"state": {
"allOf": [
{
"$ref": "#/components/schemas/StateBd5Enum"
}
],
"description": "Indicates whether the card is functional, and if not for what reason.\n\n* `locked` - locked\n* `normal` - normal\n* `shipped` - shipped\n* `cancelled` - cancelled\n* `damaged` - damaged",
"readOnly": true
},
"bin": {
"type": "string",
"description": "Bank Identification Number (BIN) is the first 6 to 8 digits of the Primary Account Number (PAN)."
},
"network": {
"type": "string",
"description": "The credit card processing network, such as Visa, Discover, etc."
},
"name": {
"type": "string",
"description": "The card product's name."
},
"card_type": {
"type": "string",
"description": "The card's type, debit, credit or atm."
}
},
"required": [
"bin",
"card_type",
"core_user_id",
"id",
"last_four_digits",
"name",
"network"
],
"x-stoplight": {
"id": "chf14nszhkbex"
}
},
"ReasonEnum": {
"enum": [
"damaged",
"lost",
"stolen"
],
"type": "string",
"description": "* `damaged` - damaged\n* `lost` - lost\n* `stolen` - stolen",
"x-stoplight": {
"id": "dnkxb7jc76rkm"
}
},
"StateBd5Enum": {
"enum": [
"locked",
"normal",
"shipped",
"cancelled",
"damaged"
],
"type": "string",
"description": "* `locked` - locked\n* `normal` - normal\n* `shipped` - shipped\n* `cancelled` - cancelled\n* `damaged` - damaged",
"x-stoplight": {
"id": "xhbwau39q9oko"
}
}
},
"securitySchemes": {
"oauth2": {
"type": "oauth2",
"flows": {
"authorizationCode": {
"authorizationUrl": "/v2/oauth/authorize/",
"tokenUrl": "/v2/oauth/token/",
"refreshUrl": "/v2/oauth/token/",
"scopes": {
"introspection": "Permit introspection on a valid active bearer token.",
"openid": "OpenID Connect scope",
"offline_access": "Includes long-lived refresh token along with access token",
"claudeai": "Authorizes access to Claude AI services.",
"read": "View your banking data.",
"write": "Update your data",
"banking:accounts:read": "Can read account information.",
"banking:transactions:read": "Can read transaction information.",
"banking:scheduled_transfers:read": "Can read scheduled transfer information.",
"banking:scheduled_transfers:write": "Can create and update scheduled transfers.",
"banking:accounts:write": "Can update account information.",
"banking:transactions:write": "Can update transaction information.",
"banking:users:read": "Can read user profile information.",
"banking:users:write": "Can update user profile information.",
"banking:products:read": "Can read product information.",
"banking:documents:read": "Can read user statements and documents.",
"banking:documents:write": "Can create and download document archives.",
"banking:support_schedules:read": "Can read institution schedule and Federal Reserve holiday information.",
"banking:payees:read": "Can read bill pay payee information.",
"banking:payees:write": "Can create, update, and delete bill pay payees.",
"banking:payments:read": "Can read bill pay payment information.",
"banking:payments:write": "Can create and delete bill pay payments.",
"banking:deposits:read": "Can read deposit information.",
"banking:deposits:write": "Can create and update deposits.",
"banking:recipients:read": "Can read recipient information.",
"banking:recipients:write": "Can create and update recipients.",
"banking:subscriptions:read": "Can read webhook subscription information.",
"banking:subscriptions:write": "Can create and update webhook subscriptions.",
"banking:transfers:read": "Can read transfer information.",
"banking:transfers:write": "Can create transfers.",
"banking:wires:read": "Can read wire information.",
"banking:wires:write": "Can create wires.",
"profile": "Standard claim for extended user information",
"email": "User registered email address",
"write:preferences": "Read and write user preferences",
"read:profile": "Access extended information about the user including address"
}
}
}
}
}
}
}
````