Payment Methods
Update a payment method
Updates a saved payment method, changing its friendly alias and/or the set of NVM API keys allowed to use it. Requires a Nevermined API key.
patch/payment-methods/{paymentMethodId}
Request
- Base URL: https://api.sandbox.nevermined.app/api/v1
- URL: https://api.sandbox.nevermined.app/api/v1/payment-methods/{paymentMethodId}
- Auth: HTTP bearer
Path parameters
paymentMethodIdstring required
Example:pm_1Abc2Def3Ghi4Jkl
Identifier of the payment method to update
Request body
Example request
{
"alias": "My Production Card",
"allowedApiKeyIds": [
"sk-abc123",
"sk-def456"
]
}Response
The updated payment method
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.