Skip to main content
GET
/
merchant
/
customer
/
list
{
  "success": false,
  "error": {
    "status": 401,
    "code": "UNAUTHORISED",
    "message": "Invalid or missing authentication"
  },
  "data": null
}
Get a list of all customers for the merchant.
page
integer
Page number
limit
integer
Items per page
Search by email
success
boolean
Indicates if the request was successful
data.customers
array
Array of customer objects
data.pagination
object
Pagination information

Example Request

curl -X GET "https://api.transaction.gg/merchant/customer/list?page=1&limit=10&search=john" \
  -H "Authorization: Bearer jwt_token"

Example Response

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

Error Responses

{
  "success": false,
  "error": {
    "status": 401,
    "code": "UNAUTHORISED",
    "message": "Invalid or missing authentication"
  },
  "data": null
}