PayPal · Schema

cryptocurrency_quantity

Quantity of a cryptocurrency asset.
This is a decimal number with scale defined for each Cryptocurrency by the founders. For example,

  • Bitcoin(BTC) has 8 as scale,
  • Ethereum (ETH) has 18 as scale.

  • PayPal Cryptocurrency platform handles the scale to 8 digits for Bitcoin and its forks or offshoots and Ehereum.

    BillingCommerceDisputesInvoicesOrdersPaymentsPayoutsSubscriptionsTokensWebhooks
    View JSON Schema on GitHub

    JSON Schema

    paypal-cryptocurrency-quantity-schema.json Raw ↑
    {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "$id": "#/components/schemas/cryptocurrency_quantity",
      "title": "cryptocurrency_quantity",
      "type": "string",
      "minLength": 1,
      "maxLength": 40,
      "pattern": "^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$",
      "description": "Quantity of a cryptocurrency asset.<br/>This is a decimal number with scale defined for each Cryptocurrency by the founders. For example, <li>Bitcoin(BTC) has 8 as scale,</li><li>Ethereum (ETH) has 18 as scale.</li><br/>PayPal Cryptocurrency platform handles the scale to 8 digits for Bitcoin and its forks or offshoots and Ehereum."
    }