Ramp
Get user KYC state
Changed onReturns the Chainrails KYC state and transaction requirements for a user.
get/ramp/kyc
Request
- Base URLhttps://api.chainrails.io/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
provider'FONBNK' | 'ONRAMP_MONEY' | 'GUARDARIAN' | 'YELLOW_CARD' required
The ramp provider to query KYC state for
userEmailstring required
Example:user@example.com
The end-user's email address
countryCodestring required
Example:NG
ISO 3166-1 alpha-2 transaction/corridor country. This does not update the user’s country of residence.
fiatCurrencystring required
Example:NGN
ISO 4217 fiat currency code
cryptoAmountnumber
Example:25
Amount of crypto (USDC) the user intends to receive. When provided, the response includes requiredKycType and canProceed.
Response
KYC state
Changes
- breaking
added the new required
queryrequest parameterfiatCurrency - info
added the new enum value
YELLOW_CARDto thequeryrequest parameterprovider
- breaking
- info
endpoint added
- info