Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update customer ID documentation

Steven Tey0fdd5309a6d6
diff --git a/apps/web/lib/zod/schemas/customers.ts b/apps/web/lib/zod/schemas/customers.ts
index 6eefca2444..33ee3e202f 100644
--- a/apps/web/lib/zod/schemas/customers.ts
+++ b/apps/web/lib/zod/schemas/customers.ts
@@ -49,7 +49,11 @@ export const updateCustomerBodySchema = createCustomerBodySchema.partial();
// customer object schema
export const CustomerSchema = z.object({
- id: z.string().describe("The unique identifier of the customer in Dub."),
+ id: z
+ .string()
+ .describe(
+ "The unique ID of the customer to update. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).",
+ ),
externalId: z
.string()
.describe("Unique identifier for the customer in the client's app."),