Salesforce · JSON Structure

Salesforce Create Payment Method Request Structure

Type: object Properties: 5 Required: 5
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

CreatePaymentMethodRequest is a JSON Structure definition published by Salesforce, describing 5 properties, of which 5 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

paymentGatewayId cardPaymentMethod phone email additionalData

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "CreatePaymentMethodRequest",
  "properties": {
    "paymentGatewayId": {
      "type": "string"
    },
    "cardPaymentMethod": {
      "type": "object",
      "properties": {
        "cardHolderName": {
          "type": "string"
        },
        "expiryMonth": {
          "type": "string"
        },
        "expiryYear": {
          "type": "string"
        },
        "cardNumber": {
          "type": "string"
        },
        "cvv": {
          "type": "string"
        },
        "cardCategory": {
          "type": "string"
        },
        "cardType": {
          "type": "string"
        },
        "startYear": {
          "type": "string"
        },
        "startMonth": {
          "type": "string"
        },
        "nickName": {
          "type": "string"
        },
        "accountId": {
          "type": "string"
        }
      },
      "required": [
        "cardHolderName",
        "expiryMonth",
        "expiryYear",
        "cardNumber",
        "cvv",
        "cardCategory",
        "cardType",
        "startYear",
        "startMonth",
        "nickName",
        "accountId"
      ]
    },
    "phone": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "additionalData": {
      "type": "object",
      "properties": {
        "key1": {
          "type": "string"
        },
        "key2": {
          "type": "string"
        }
      },
      "required": [
        "key1",
        "key2"
      ]
    }
  },
  "required": [
    "paymentGatewayId",
    "cardPaymentMethod",
    "phone",
    "email",
    "additionalData"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}