Get a customer's full picture
get_customerResolve a customer by any identifier and view their monthly payment, active entitlements, and database read-cost in one consolidated result.
Instructions
Cross-match one customer across every layer Crossdeck joins by identity. Returns what they pay (monthly cents), their active entitlement count, and their database read-cost — in one view. Identify the person by ANY ONE of the identifiers below; they all resolve to the same canonical customer. Use for 'how much does this user pay and what do they cost us?'. If no customer resolves, returns a no-match result, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | Your own user id for this person — the value you pass to identify() in the SDK (e.g. 'user_847'). | |
| project | No | The app to read, as a project id from list_projects (e.g. 'proj_3a8f137bccdd4f'). With a workspace key (cd_wk_) this is required unless you've set a default via use_project; with a single-app key it is ignored. | |
| customerId | No | A Crossdeck customer id ('cdcust_…'). | |
| anonymousId | No | A pre-login anonymous/device id captured before the user signed in. | |
| stripeCustomerId | No | Stripe customer id ('cus_…'). | |
| googlePurchaseToken | No | Google Play purchase token for the customer's purchase. | |
| appleOriginalTransactionId | No | Apple StoreKit originalTransactionId for the customer's purchase. |