Update a Payment Method

This function updates a payment-method after it already exists whether it was created through Stax.js or direct-post.

Update details of an existing payment method. This is useful for updating expiration dates, metadata, or reactivating a soft-deleted payment method.

Key Features

  • Modify metadata or properties of a stored payment method.
  • Reactivate a soft-deleted payment method by setting deleted_at to null.
  • Supports both card and bank account payment methods.

Usage Notes

Partial Updates: You can update one or multiple fields without affecting others.

Reactivating Payment Methods: To reactivate a payment method, set deleted_at to null.

Validation: Ensure provided values are valid and in the correct format.


Response Structure

CodeResponseReason
200SuccessReturns the updated payment method object with new details.
400Bad RequestInvalid input or unmodifiable fields provided.
401UnauthorizedAuthentication failed.
404Unprocessable EntityPayment method with the specified ID does not exist.

Important Considerations

Data Integrity: Avoid making changes that could invalidate the payment method.

Customer Notification: Consider notifying customers if their payment method details have changed.

Security: Do not include sensitive information (e.g., full card number) in the update.

Language
Credentials
OAuth2
Click Try It! to start a request and see the response here!