From 998664446a902ab371a8c0baf84e47d1f885e31b Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 09:04:11 +0000 Subject: [PATCH] docs(kyc): align EDD sandbox example with OpenAPI schema The sandbox-verification.mdx example referenced a non-existent `POST /customers/edd` endpoint and used an invalid `PERSONAL_SPEND` enum value. Updated to: - Use `PATCH /customers/{customerId}` (the actual endpoint for EDD) - Replace `PERSONAL_SPEND` with valid `P2P_TRANSFERS` from PurposeOfAccount enum - Add required `customerType: INDIVIDUAL` to the PATCH request body Co-Authored-By: Claude Opus 4.5 --- mintlify/snippets/sandbox-verification.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mintlify/snippets/sandbox-verification.mdx b/mintlify/snippets/sandbox-verification.mdx index 413713603..e947fd585 100644 --- a/mintlify/snippets/sandbox-verification.mdx +++ b/mintlify/snippets/sandbox-verification.mdx @@ -8,7 +8,7 @@ The **last 3 characters** of the `fullName` on `POST /customers` (with `customer |--------|---------|----------| | **001** | `verificationStatus: IN_PROGRESS`, `kycStatus: PENDING` | KYC verification remains pending (manual review) | | **002** | `verificationStatus: REJECTED`, `kycStatus: REJECTED` | KYC verification is rejected | -| **003** | `verificationStatus: RESOLVE_ERRORS` with `MISSING_FIELD` errors on `edd.*` fields | EDD is required — call `POST /customers/edd` with `customerId` and the requested fields, then retry `POST /verifications` | +| **003** | `verificationStatus: RESOLVE_ERRORS` with `MISSING_FIELD` errors on `edd.*` fields | EDD is required — call `PATCH /customers/{customerId}` with the requested fields, then retry `POST /verifications` | | **Any other** | `verificationStatus: IN_PROGRESS`, `kycStatus: APPROVED` | KYC verification is approved | EDD flow example: @@ -32,14 +32,14 @@ curl -X POST "https://api.lightspark.com/grid/2025-10-13/verifications" \ -H "Content-Type: application/json" \ -d '{ "customerId": "Customer:..." }' -# Supply the EDD fields -curl -X POST "https://api.lightspark.com/grid/2025-10-13/customers/edd" \ +# Supply the EDD fields via PATCH +curl -X PATCH "https://api.lightspark.com/grid/2025-10-13/customers/Customer:..." \ -u "$GRID_CLIENT_ID:$GRID_CLIENT_SECRET" \ -H "Content-Type: application/json" \ -d '{ - "customerId": "Customer:...", + "customerType": "INDIVIDUAL", "sourceOfWealthCategories": ["SALARY"], - "purposeOfAccount": "PERSONAL_SPEND", + "purposeOfAccount": "P2P_TRANSFERS", "annualIncomeRange": "RANGE_100K_250K" }'