Get a Payment Method By ID

Retrieves the payment method matching the given id.

Retrieve detailed information about a specific payment method using its unique ID. This includes non-sensitive details such as card brand, last four digits, expiration date, and metadata.

Key Features

  • Obtain payment method details by ID.
  • Check card type and prepaid status.
  • Useful for managing payment methods and verifying details.

Usage Notes

Sensitive Data Exclusion: Full card numbers and security codes are not returned for security reasons.

Card Information:

  • Debit or Credit Indicator: Use bin_type to determine if the card is "DEBIT" or "CREDIT".
  • Prepaid Card Check: Use meta.prepaid to check if the card is prepaid.

Updating Payment Methods: Use in conjunction with PUT /payment-method/{id} to update payment methods.


Response Structure

CodeResponseReason
200SuccessReturns a payment method object with details.
400Bad RequestInvalid payment method ID format.
401UnauthorizedAuthentication failed.
404Not FoundA payment method does not exist.
500Internal Server ErrorAn unexpected error occurred on the server.

Important Considerations

Data Security: Sensitive information is excluded to maintain PCI compliance.

Payment Method Status: Check the status field to ensure the payment method is active.

Customer Association: Verify the customer_id to confirm ownership of the payment method.

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