get https://apiprod.fattlabs.com/customer/
Retrieves detailed information about a specific customer using their unique ID
The Get a Customer's Information endpoint retrieves detailed information about a specific customer using their unique ID. This allows merchants to access and review customer data for management and operational purposes.
Key Features
- Retrieve Specific Customer Details: Fetch all stored data for a specific customer by their
customer_id
. - Integration with Payment Methods: View a customer's associated payment methods using the Get all Payment Methods for a Customer endpoint.
- Data for Updates: Retrieve data that can be used with the Update Customer Information or Delete a Customer endpoints.
Usage Notes
Required Parameter: The customer_id
is mandatory to locate and fetch the customer record.
Payment Method Details: This endpoint does not include payment methods. Use the Get all Payment Methods for a Customer endpoint to retrieve them.
Use Case: Ideal for scenarios where detailed customer information is needed for review, updates, or integrations.
Response Structure
Code | Response | Description |
---|---|---|
200 | Success | Returns the full customer record. |
400 | Bad Request | Invalid or missing customer_id . |
401 | Unauthorized | API key invalid or missing. |
404 | Not Found | No customer found with the provided customer_id . |
500 | Internal Server Error | An unexpected error occurred on the server. |
Important Considerations
- Customer Deletion: If the
deleted_at
field in the response is non-null, the customer has been soft-deleted and will not appear in general customer lists. - Data Completeness: Ensure the customer ID provided matches an existing record. A non-matching ID will result in a
404
response. - Data Sensitivity: Avoid exposing sensitive customer data in your application's front end.
Best Practices
- Use this endpoint in conjunction with the Update Customer Information endpoint to maintain accurate records.
- For operations involving payment methods, follow up this call with the Get all Payment Methods for a Customer endpoint.
- Log or cache customer data judiciously to avoid repetitive API calls.