get https://apiprod.fattlabs.com/payment-method/
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
Code | Response | Reason |
---|---|---|
200 | Success | Returns a payment method object with details. |
400 | Bad Request | Invalid payment method ID format. |
401 | Unauthorized | Authentication failed. |
404 | Not Found | A payment method does not exist. |
500 | Internal Server Error | An 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.