Get onramp user limits
Changed onReturns the transaction limits for an onramp user based on their payment method and user identifier. Use this API to show users their remaining purchase capacity before initiating an onramp transaction. Currently supports GUEST_CHECKOUT_APPLE_PAY payment method with phone number identification. The phone number must have been previously verified via OTP.
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP bearer
Request body
The type of payment method to be used to complete an onramp order.
The user identifier value. For phone_number type, this must be in E.164 format.
The type of user identifier:
- phone_number: A phone number in E.164 format associated with an onramp user.
Example request
{
"paymentMethodType": "GUEST_CHECKOUT_APPLE_PAY",
"userId": "+12055555555",
"userIdType": "phone_number"
}Response
Successfully retrieved user limits.
The list of limits applicable to the user.
The user's limit upgrade status and associated upgrade details. Omitted when limit upgrades are not available for the calling app or user. Use the Request Limit Upgrade endpoint to request a limit upgrade.
Example response
{
"limits": [
{
"limitType": "weekly_spending",
"currency": "USD",
"limit": "2500",
"remaining": "2000"
}
],
"limitUpgradeOptions": [
{
"status": "unrequested",
"fields": [
"ssnLast4",
"dateOfBirth"
],
"limitUpgrades": [
{
"limitType": "weekly_spending",
"maxUpgrade": "2500"
},
{
"limitType": "lifetime_transactions",
"maxUpgrade": "2147483647"
}
]
}
]
}Changes
- warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status
1 more change in this revision
- warning