Summary of the steps
- Look up the Meld
customerIdfor a user who has already been KYC-approved - Get the user’s consent to share their KYC data with the receiving product
- Call the export endpoint — either a share token or raw data plus documents
- Pass the result to your own KYC provider integration
Before you begin
- You have contacted your Meld account manager to enable this product for you
- You have an agreement with the onramps to be able to fetch KYC data from them
- You can store the Meld
customerIdagainst each of your users - The Meld
customerIdis tied to the email address of the user, and you have OTPed the user to prove they have access to that email - You gather end-user consent in your UI before sharing KYC data with Meld, yourself, and your downstream partners
Flows at a glance
Raw-data export returns
multipart/form-data, not JSON. Parse the response as multipart: a JSON data part plus one file part per document image.
For broader Unified KYC context (reusing KYC across onramps), see Unified KYC.
Step 1: Retrieve Meld customer
CallPOST /accounts/customers once per user. This will create the Meld customer if they don’t exist, or fetch the existing customer if they exist.
Request
Response
id as the Meld customerId. You need it for submit and export.
With Meld-Version dated 2023-04-01 or later, the customer response also includes serviceProviderCustomers (including KYC status after submit).
Step 2: Retrieve KYC
Call:POST /accounts/customers/{customerId}/kyc/export
Nothing is persisted during retrieval. The customer must already have been KYCed by Meld or by the onramp; otherwise the API returns 404. Choose a mode:
Note that the steps below show the Sumsub as the KYC provider as an example.
Mode A — KYC provider share token (TOKEN)
Use when the consuming product uses the same KYC provider as the one in your request to Meld and can import via share token. No raw PII or images transit through your retrieval response.
Request
Response (application/json)
shareToken (and applicantId if needed) to your own KYC provider integration.
Mode B — Raw applicant data (RAW_DATA)
Use when the consuming product needs PII and document images directly.
Request
Response (multipart/form-data)
Example data part
- Document part names follow
{idDocType}_{idDocSubType}_{imageId}(or{idDocType}_{imageId}when there is no subtype). UseapplicantData.documents[].partto match each file part. idDocType/idDocSubTypeare passed through as returned by the KYC provider (strings, not necessarily limited to Meld’s submit enums).- Fields not available from the provider may be
null. - Address
statemay be an ISO 3166-2 code (e.g.US-CA) when the KYC provider providesstateCode.
Example (curl) — token export
Example (curl) — raw export
kyc-export.multipart as multipart: read the data JSON part, then each document file part named in documents[].part.