{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-me-payment-payment-method-schema.json",
  "title": "me.payment.PaymentMethod",
  "description": "Payment method object",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-me-openapi.yml#/components/schemas/me.payment.PaymentMethod",
  "type": "object",
  "properties": {
    "billingContactId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Associated billing contact ID",
      "readOnly": true
    },
    "creationDate": {
      "type": "string",
      "description": "Creation date",
      "format": "date-time",
      "readOnly": true
    },
    "default": {
      "type": "boolean",
      "description": "Indicates if payment method is the default one for this account"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Custom customer description"
    },
    "expirationDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Expiration date",
      "format": "date-time",
      "readOnly": true
    },
    "formSessionId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Form session ID",
      "readOnly": true
    },
    "icon": {
      "allOf": [
        {
          "$ref": "#/$defs/me.payment.Icon"
        }
      ],
      "description": "Payment method type icon",
      "readOnly": true
    },
    "integration": {
      "allOf": [
        {
          "$ref": "#/$defs/me.payment.IntegrationEnum"
        }
      ],
      "description": "Payment method integration type",
      "nullable": true,
      "readOnly": true
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "Payment method public label",
      "readOnly": true
    },
    "lastUpdate": {
      "type": "string",
      "description": "Last update date",
      "format": "date-time",
      "readOnly": true
    },
    "merchantId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Merchant ID",
      "readOnly": true
    },
    "oneclick": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Indicates if payment method support the oneclick functionality",
      "readOnly": true
    },
    "paymentMeanId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Payment mean ID associated to this payment method",
      "readOnly": true
    },
    "paymentMethodId": {
      "type": "integer",
      "description": "Payment method ID",
      "readOnly": true
    },
    "paymentSubType": {
      "allOf": [
        {
          "$ref": "#/$defs/me.payment.AvailableSubTypeEnum"
        }
      ],
      "description": "Payment method sub-type",
      "nullable": true,
      "readOnly": true
    },
    "paymentType": {
      "type": "string",
      "description": "Payment method type",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/me.payment.method.StatusEnum"
        }
      ],
      "description": "Payment method status",
      "readOnly": true
    }
  },
  "$defs": {
    "me.payment.AvailableSubTypeEnum": {
      "type": "string",
      "description": "Payment method available sub-type enum",
      "enum": [
        "30_DAYS",
        "45_DAYS",
        "60_DAYS",
        "AMERICAN_EXPRESS",
        "AURA",
        "CARTE_BANCAIRE",
        "CARTE_BLEUE",
        "CHORUS",
        "DINERS_CLUB",
        "DISCOVER",
        "JCB",
        "MAESTRO",
        "MASTERCARD",
        "NONE",
        "RUPAY",
        "VISA"
      ]
    },
    "me.payment.Icon": {
      "type": "object",
      "description": "Icon",
      "properties": {
        "data": {
          "type": [
            "string",
            "null"
          ],
          "description": "Icon in base64",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Icon name",
          "readOnly": true
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Icon URL",
          "readOnly": true
        }
      }
    },
    "me.payment.IntegrationEnum": {
      "type": "string",
      "description": "Register integration type enum",
      "enum": [
        "BANK_TRANSFER",
        "COMPONENT",
        "IFRAME_VANTIV",
        "IN_CONTEXT",
        "NONE",
        "OSP",
        "POST_FORM",
        "REDIRECT"
      ]
    },
    "me.payment.method.StatusEnum": {
      "type": "string",
      "description": "Payment method status",
      "enum": [
        "CANCELED",
        "CANCELING",
        "CREATED",
        "CREATING",
        "ERROR",
        "EXPIRED",
        "FAILED",
        "MAINTENANCE",
        "PAUSED",
        "REJECTED",
        "REPLACED",
        "VALID",
        "VALIDATING"
      ]
    }
  }
}