Skip to main content
GET
/
merchant
/
customer
/
get
{
  "success": false,
  "error": {
    "status": 404,
    "code": "CUSTOMER_NOT_FOUND",
    "message": "Customer not found"
  },
  "data": null
}
Get detailed information about a specific customer.
customerId
string
required
Customer ID to retrieve
success
boolean
Indicates if the request was successful
data.id
string
Customer ID
data.email
string
Customer email
data.metadata
object
Customer metadata
data.createdAt
string
Creation timestamp

Example Request

curl -X GET "https://api.transaction.gg/merchant/customer/get?customerId=cus_V6n6SN2KnsIFCuQU" \
  -H "Authorization: Bearer jwt_token"

Example Response

{
  "success": true,
  "data": {
    "id": "cus_V6n6SN2KnsIFCuQU",
    "email": "[email protected]",
    "metadata": {
      "name": "John Doe",
      "phone": "+1234567890"
    },
    "createdAt": "2024-01-01T00:00:00Z"
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 404,
    "code": "CUSTOMER_NOT_FOUND",
    "message": "Customer not found"
  },
  "data": null
}