Onramp

Get onramp user limits

Changed on

Returns 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.

post/v2/onramp/limits

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Request body

object required
paymentMethodType, 'GUEST_CHECKOUT_APPLE_PAY' | 'GUEST_CHECKOUT_GOOGLE_PAY' required

The type of payment method to be used to complete an onramp order.

userId, string required

The user identifier value. For phone_number type, this must be in E.164 format.

userIdType, 'phone_number' required

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.

object required
limits, OnrampUserLimit[] required

The list of limits applicable to the user.

limitUpgradeOptions, OnrampLimitUpgradeOption[]

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_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    1 more change in this revision