Payment Methods

List saved payment methods

Returns the saved payment methods for the authenticated user. Requires a Nevermined API key.

get/payment-methods

Request

  • Base URL: https://api.sandbox.nevermined.app/api/v1
  • URL: https://api.sandbox.nevermined.app/api/v1/payment-methods
  • Auth: HTTP bearer

Query parameters

accessible'true' | 'false'

When "true", return only payment methods accessible to the requesting API key (filters by allowedApiKeyIds and Active status).

provider'stripe' | 'braintree' | 'erc4337' | 'visa' | 'vgs'

When set, return only payment methods backed by this provider. Omit to return methods from every provider (default).

Response

List of saved payment methods

idstring required
typestring required
last4string required
brandstring required
expMonthinteger nullable required
expYearinteger nullable required
aliasstring nullable required
provider'stripe' | 'braintree' | 'erc4337' | 'visa' | 'vgs' required
status'Active' | 'Revoked' required
allowedApiKeyIdsstring[] nullable

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

orgIdstring nullable

Organization this card belongs to (null = personal).

Example response

[
  {
    "id": "pm_1Abc2Def3Ghi4Jkl",
    "type": "card",
    "last4": "4242",
    "brand": "visa",
    "expMonth": 12,
    "expYear": 2027,
    "alias": "My Card",
    "provider": "stripe",
    "status": "Active",
    "allowedApiKeyIds": [
      "sk-abc123",
      "sk-def456"
    ]
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.