contacts.upsert and contacts.get names the customer by the CRM’s partyId. contacts.upsert returns it as id; when you only have your own id, an email or a Stripe customer id, resolve it.
Returns
No contact matches:not_found.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Find a customer’s partyId from one of your own handles on them.
contacts.upsert and contacts.get names the customer by the CRM’s partyId. contacts.upsert returns it as id; when you only have your own id, an email or a Stripe customer id, resolve it.
const [found, error] = await crm.contacts.resolve({ dbId: "user_42" });
// { partyId: "01a1f7c6-3a71-74f2-8a38-22909d8dc050" }
not_found.