PayPal · Schema

Legal Consent

The customer-provided consent.

BillingCommerceDisputesInvoicesOrdersPaymentsPayoutsSubscriptionsTokensWebhooks

Properties

Name Type Description
type string The type of consent. `SHARE_DATA_CONSENT` gives consent to you to share your customer's data with PayPal.
granted boolean Indicates whether the customer agreed to share this type of data. To give consent, specify `true`. To withhold consent, specify `false`.
View JSON Schema on GitHub

JSON Schema

paypal-legal-consent-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/legal_consent",
  "title": "Legal Consent",
  "type": "object",
  "description": "The customer-provided consent.",
  "additionalProperties": false,
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of consent. `SHARE_DATA_CONSENT` gives consent to you to share your customer's data with PayPal.",
      "pattern": "^[0-9A-Z_-]+$",
      "minLength": 1,
      "maxLength": 127,
      "enum": [
        "SHARE_DATA_CONSENT"
      ]
    },
    "granted": {
      "type": "boolean",
      "description": "Indicates whether the customer agreed to share this type of data. To give consent, specify `true`. To withhold consent, specify `false`."
    }
  },
  "required": [
    "type",
    "granted"
  ]
}