Skip to main content
PATCH
Update a payment method

Authorizations

Authorization
string
header
required

Your Nevermined API Key (starts with 'nvm:'). Get one at nevermined.app under Settings > API Keys.

Path Parameters

paymentMethodId
string
required

Identifier of the payment method to update

Example:

"pm_1Abc2Def3Ghi4Jkl"

Body

application/json
alias
string

Optional friendly name for the card

Example:

"My Production Card"

allowedApiKeyIds
string[] | null

Array of NVM API Key skId values allowed to use this card. Null or empty = any key can use it.

Example:
orgId
string | null

Move the card to an org (a valid orgId) or to personal (null). Omit to leave unchanged.

Response

The updated payment method

id
string
required
Example:

"pm_1Abc2Def3Ghi4Jkl"

type
string
required
Example:

"card"

last4
string
required
Example:

"4242"

brand
string
required
Example:

"visa"

expMonth
integer | null
required
Example:

12

expYear
integer | null
required
Example:

2027

alias
string | null
required
Example:

"My Card"

provider
enum<string>
required
Available options:
stripe,
braintree,
erc4337,
visa,
vgs
Example:

"stripe"

status
enum<string>
required
Available options:
Active,
Revoked
Example:

"Active"

allowedApiKeyIds
string[] | null

NVM API Key IDs allowed to use this card. Null = any key can use it.

Example:
orgId
string | null

Organization this card belongs to (null = personal).