GOV.UK Pay · Schema

CardDetails

A structure representing the payment card

PaymentsGovernmentUKPublic SectorRESTPCI DSSRefundsRecurring PaymentsWebhook

Properties

Name Type Description
billing_address object
card_brand string The brand of card the user paid with.
card_type string The type of card the user paid with.`null` means your user paid with Google Pay or we did not recognise which type of card they paid with.
cardholder_name string
expiry_date string The expiry date of the card the user paid with in `MM/YY` format.
first_digits_card_number string
last_digits_card_number string
wallet_type string The digital wallet type that the user paid with
View JSON Schema on GitHub

JSON Schema

CardDetails.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://github.com/api-evangelist/gov-uk-pay/blob/main/json-schema/CardDetails.json",
  "title": "CardDetails",
  "type": "object",
  "description": "A structure representing the payment card",
  "properties": {
    "billing_address": {
      "$ref": "#/components/schemas/Address"
    },
    "card_brand": {
      "type": "string",
      "description": "The brand of card the user paid with.",
      "example": "Visa",
      "readOnly": true
    },
    "card_type": {
      "type": "string",
      "description": "The type of card the user paid with.`null` means your user paid with Google Pay or we did not recognise which type of card they paid with.",
      "enum": [
        "debit",
        "credit",
        "null"
      ],
      "example": "debit",
      "readOnly": true
    },
    "cardholder_name": {
      "type": "string",
      "example": "Mr. Card holder"
    },
    "expiry_date": {
      "type": "string",
      "description": "The expiry date of the card the user paid with in `MM/YY` format.",
      "example": "04/24",
      "readOnly": true
    },
    "first_digits_card_number": {
      "type": "string",
      "example": "123456",
      "readOnly": true
    },
    "last_digits_card_number": {
      "type": "string",
      "example": "1234",
      "readOnly": true
    },
    "wallet_type": {
      "type": "string",
      "description": "The digital wallet type that the user paid with",
      "enum": [
        "Apple Pay",
        "Google Pay"
      ],
      "example": "Apple Pay"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/CardDetails"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.