Skip to main content
Question

API v2 - Get list of customers response does not match documentation


Forum|alt.badge.img

When I call Get List of Customers endpoint I get only 6 fields of information for every customer. The documentation shows that should be more fields.

URL: https://api.revenuecat.com/v2/projects/proj_id/customers

Your API v2 response (just for Item object):

{
  "experiment": null,
  "first_seen_at": 1744314095343,
  "id": "123456789",
  "last_seen_at": 1744314095367,
  "object": "customer",
  "project_id": "proj_id"
}

The documentation show that i should get this:

{
  "object": "list",
  "items": [
    {
      "object": "customer",
      "id": "19b8de26-77c1-49f1-aa18-019a391603e2",
      "project_id": "proj1ab2c3d4",
      "first_seen_at": 1658399423658,
      "last_seen_at": 1658399423658,
      "active_entitlements": {
        "object": "list",
        "items": [
          {
            "object": "customer.active_entitlement",
            "entitlement_id": "entla1b2c3d4e5",
            "expires_at": 1658399423658
          }
        ],
        "next_page": "/v2/projects/proj1ab2c3d4/customers/19b8de26-77c1-49f1-aa18-019a391603e2/active_entitlements?starting_after=entlab21dac",
        "url": "/v2/projects/proj1ab2c3d4/customers/19b8de26-77c1-49f1-aa18-019a391603e2/active_entitlements"
      },
      "experiment": {
        "object": "experiment_enrollment",
        "id": "string",
        "name": "string",
        "variant": "a"
      },
      "attributes": {
        "object": "list",
        "items": [
          {
            "object": "customer.attribute",
            "name": "$email",
            "value": "garfield@revenuecat.com",
            "updated_at": 1658399423658
          }
        ],
        "next_page": "/v2/projects/proj1ab2c3d4/customers/19b8de26-77c1-49f1-aa18-019a391603e2/attributes?starting_after=myCustomAttribute",
        "url": "/v2/projects/proj1ab2c3d4/customers/19b8de26-77c1-49f1-aa18-019a391603e2/attributes"
      }
    }
  ],
  "next_page": "/v2/projects/projec1a2b3c4d/customers?starting_after=223xx1100",
  "url": "/v2/projects/projec1a2b3c4d/customers"
}

 

What I am trying to achieve is to sync my local user status based on the data in RevenueCat. For this I should be able to match app_user_id with my local user id and also to see the subscription status and get eventual transactions. However, even if I get the documented response, I do not see where I can find the app_user_id

This post has been closed for comments

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings