7digital · Schema

PaymentCard

PaymentCard schema from 7digital API

MusicStreamingLicensingCatalogueB2BRoyalty ReportingPublic APIs

Properties

Name Type Description
cardId string
last4 string
brand string
expiryMonth integer
expiryYear integer
isDefault boolean
View JSON Schema on GitHub

JSON Schema

api-payment-card-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/7digital/refs/heads/main/json-schema/api-payment-card-schema.json",
  "title": "PaymentCard",
  "description": "PaymentCard schema from 7digital API",
  "type": "object",
  "properties": {
    "cardId": {
      "type": "string",
      "example": "card-789012"
    },
    "last4": {
      "type": "string",
      "example": "4242"
    },
    "brand": {
      "type": "string",
      "enum": [
        "visa",
        "mastercard",
        "amex",
        "discover"
      ],
      "example": "visa"
    },
    "expiryMonth": {
      "type": "integer",
      "example": 12
    },
    "expiryYear": {
      "type": "integer",
      "example": 2028
    },
    "isDefault": {
      "type": "boolean",
      "example": true
    }
  }
}