POST Subscriber/{subscriberId}/Consumer/{consumerId}/PaymentMethods/CreditCard

Stores a credit card payment for a consumer at the subscriber based on the CreditCardPaymentAddRequest.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
consumerId

Consumer the temporary payment method is usable by

integer

Required

subscriberId

string

None.

Body Parameters

The credit card payment information

CreditCardPaymentAddRequest
NameDescriptionTypeAdditional information
CardNumber

string

None.

CardType

string

None.

ExpirationMonth

integer

None.

ExpirationYear

integer

None.

BillingInfo

BillingInfo

None.

ExchangeCard

boolean

None.

TrackData

string

None.

TrackDataEncrypted

boolean

None.

TemporarilyStore

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CardNumber": "sample string 1",
  "CardType": "sample string 2",
  "ExpirationMonth": 3,
  "ExpirationYear": 4,
  "BillingInfo": {
    "Name": "sample string 1",
    "Address": {
      "Street": [
        "sample string 1",
        "sample string 2"
      ],
      "City": "sample string 1",
      "StateCode": "sample string 2",
      "PostalCode": "sample string 3",
      "CountryCode": "sample string 4"
    }
  },
  "ExchangeCard": true,
  "TrackData": "sample string 6",
  "TrackDataEncrypted": true,
  "TemporarilyStore": true
}

application/xml, text/xml

Sample:
<CreditCardPaymentAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.MarketplacePayments.Requests">
  <TemporarilyStore>true</TemporarilyStore>
  <BillingInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.MarketplacePayments.Models">
    <d2p1:Address>
      <d2p1:City>sample string 1</d2p1:City>
      <d2p1:CountryCode>sample string 4</d2p1:CountryCode>
      <d2p1:PostalCode>sample string 3</d2p1:PostalCode>
      <d2p1:StateCode>sample string 2</d2p1:StateCode>
      <d2p1:Street xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:Street>
    </d2p1:Address>
    <d2p1:Name>sample string 1</d2p1:Name>
  </BillingInfo>
  <CardNumber>sample string 1</CardNumber>
  <CardType>sample string 2</CardType>
  <ExchangeCard>true</ExchangeCard>
  <ExpirationMonth>3</ExpirationMonth>
  <ExpirationYear>4</ExpirationYear>
  <TrackData>sample string 6</TrackData>
  <TrackDataEncrypted>true</TrackDataEncrypted>
</CreditCardPaymentAddRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PaymentMethod
NameDescriptionTypeAdditional information
Name

string

None.

Description

string

None.

Type

string

None.

PaymentMethodTypeId

integer

None.

Templates

Collection of ItemMetadataTemplate

None.

Options

Collection of ItemOption

None.

Rules

Collection of ItemRule

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "Type": "sample string 3",
  "PaymentMethodTypeId": 4,
  "Templates": [
    {
      "Name": "sample string 1",
      "TemplateType": "sample string 2",
      "Metadata": [
        {
          "Key": "sample string 1",
          "Value": "sample string 2",
          "Type": "sample string 3",
          "Label": "sample string 4",
          "Rules": [
            {
              "Rule": "sample string 1",
              "Value": "sample string 2"
            },
            {
              "Rule": "sample string 1",
              "Value": "sample string 2"
            }
          ]
        },
        {
          "Key": "sample string 1",
          "Value": "sample string 2",
          "Type": "sample string 3",
          "Label": "sample string 4",
          "Rules": [
            {
              "Rule": "sample string 1",
              "Value": "sample string 2"
            },
            {
              "Rule": "sample string 1",
              "Value": "sample string 2"
            }
          ]
        }
      ]
    },
    {
      "Name": "sample string 1",
      "TemplateType": "sample string 2",
      "Metadata": [
        {
          "Key": "sample string 1",
          "Value": "sample string 2",
          "Type": "sample string 3",
          "Label": "sample string 4",
          "Rules": [
            {
              "Rule": "sample string 1",
              "Value": "sample string 2"
            },
            {
              "Rule": "sample string 1",
              "Value": "sample string 2"
            }
          ]
        },
        {
          "Key": "sample string 1",
          "Value": "sample string 2",
          "Type": "sample string 3",
          "Label": "sample string 4",
          "Rules": [
            {
              "Rule": "sample string 1",
              "Value": "sample string 2"
            },
            {
              "Rule": "sample string 1",
              "Value": "sample string 2"
            }
          ]
        }
      ]
    }
  ],
  "Options": [
    {
      "MetadataType": "sample string 1",
      "Items": [
        {
          "Name": "sample string 1",
          "Value": "sample string 2",
          "Properties": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          }
        },
        {
          "Name": "sample string 1",
          "Value": "sample string 2",
          "Properties": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          }
        }
      ]
    },
    {
      "MetadataType": "sample string 1",
      "Items": [
        {
          "Name": "sample string 1",
          "Value": "sample string 2",
          "Properties": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          }
        },
        {
          "Name": "sample string 1",
          "Value": "sample string 2",
          "Properties": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          }
        }
      ]
    }
  ],
  "Rules": [
    {
      "Rule": "sample string 1",
      "Values": [
        "sample string 1",
        "sample string 2"
      ],
      "Key": "sample string 2",
      "Operation": "sample string 3"
    },
    {
      "Rule": "sample string 1",
      "Values": [
        "sample string 1",
        "sample string 2"
      ],
      "Key": "sample string 2",
      "Operation": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<PaymentMethod xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Payments">
  <Description>sample string 2</Description>
  <Name>sample string 1</Name>
  <Options xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog.Item">
    <d2p1:ItemOption>
      <d2p1:Items>
        <d2p1:ItemOptionItem>
          <d2p1:Name>sample string 1</d2p1:Name>
          <d2p1:Properties xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>sample string 1</d6p1:Key>
              <d6p1:Value>sample string 2</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>sample string 3</d6p1:Key>
              <d6p1:Value>sample string 4</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d2p1:Properties>
          <d2p1:Value>sample string 2</d2p1:Value>
        </d2p1:ItemOptionItem>
        <d2p1:ItemOptionItem>
          <d2p1:Name>sample string 1</d2p1:Name>
          <d2p1:Properties xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>sample string 1</d6p1:Key>
              <d6p1:Value>sample string 2</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>sample string 3</d6p1:Key>
              <d6p1:Value>sample string 4</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d2p1:Properties>
          <d2p1:Value>sample string 2</d2p1:Value>
        </d2p1:ItemOptionItem>
      </d2p1:Items>
      <d2p1:MetadataType>sample string 1</d2p1:MetadataType>
    </d2p1:ItemOption>
    <d2p1:ItemOption>
      <d2p1:Items>
        <d2p1:ItemOptionItem>
          <d2p1:Name>sample string 1</d2p1:Name>
          <d2p1:Properties xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>sample string 1</d6p1:Key>
              <d6p1:Value>sample string 2</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>sample string 3</d6p1:Key>
              <d6p1:Value>sample string 4</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d2p1:Properties>
          <d2p1:Value>sample string 2</d2p1:Value>
        </d2p1:ItemOptionItem>
        <d2p1:ItemOptionItem>
          <d2p1:Name>sample string 1</d2p1:Name>
          <d2p1:Properties xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>sample string 1</d6p1:Key>
              <d6p1:Value>sample string 2</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>sample string 3</d6p1:Key>
              <d6p1:Value>sample string 4</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d2p1:Properties>
          <d2p1:Value>sample string 2</d2p1:Value>
        </d2p1:ItemOptionItem>
      </d2p1:Items>
      <d2p1:MetadataType>sample string 1</d2p1:MetadataType>
    </d2p1:ItemOption>
  </Options>
  <PaymentMethodTypeId>4</PaymentMethodTypeId>
  <Rules xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog.Item">
    <d2p1:ItemRule>
      <d2p1:Key>sample string 2</d2p1:Key>
      <d2p1:Operation>sample string 3</d2p1:Operation>
      <d2p1:Rule>sample string 1</d2p1:Rule>
      <d2p1:Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:Values>
    </d2p1:ItemRule>
    <d2p1:ItemRule>
      <d2p1:Key>sample string 2</d2p1:Key>
      <d2p1:Operation>sample string 3</d2p1:Operation>
      <d2p1:Rule>sample string 1</d2p1:Rule>
      <d2p1:Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:Values>
    </d2p1:ItemRule>
  </Rules>
  <Templates xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog.Item.Metadata">
    <d2p1:ItemMetadataTemplate>
      <d2p1:Metadata>
        <d2p1:ItemMetadata>
          <d2p1:Key>sample string 1</d2p1:Key>
          <d2p1:Label>sample string 4</d2p1:Label>
          <d2p1:Rules>
            <d2p1:ItemMetadataRule>
              <d2p1:Rule>sample string 1</d2p1:Rule>
              <d2p1:Value>sample string 2</d2p1:Value>
            </d2p1:ItemMetadataRule>
            <d2p1:ItemMetadataRule>
              <d2p1:Rule>sample string 1</d2p1:Rule>
              <d2p1:Value>sample string 2</d2p1:Value>
            </d2p1:ItemMetadataRule>
          </d2p1:Rules>
          <d2p1:Type>sample string 3</d2p1:Type>
          <d2p1:Value>sample string 2</d2p1:Value>
        </d2p1:ItemMetadata>
        <d2p1:ItemMetadata>
          <d2p1:Key>sample string 1</d2p1:Key>
          <d2p1:Label>sample string 4</d2p1:Label>
          <d2p1:Rules>
            <d2p1:ItemMetadataRule>
              <d2p1:Rule>sample string 1</d2p1:Rule>
              <d2p1:Value>sample string 2</d2p1:Value>
            </d2p1:ItemMetadataRule>
            <d2p1:ItemMetadataRule>
              <d2p1:Rule>sample string 1</d2p1:Rule>
              <d2p1:Value>sample string 2</d2p1:Value>
            </d2p1:ItemMetadataRule>
          </d2p1:Rules>
          <d2p1:Type>sample string 3</d2p1:Type>
          <d2p1:Value>sample string 2</d2p1:Value>
        </d2p1:ItemMetadata>
      </d2p1:Metadata>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:TemplateType>sample string 2</d2p1:TemplateType>
    </d2p1:ItemMetadataTemplate>
    <d2p1:ItemMetadataTemplate>
      <d2p1:Metadata>
        <d2p1:ItemMetadata>
          <d2p1:Key>sample string 1</d2p1:Key>
          <d2p1:Label>sample string 4</d2p1:Label>
          <d2p1:Rules>
            <d2p1:ItemMetadataRule>
              <d2p1:Rule>sample string 1</d2p1:Rule>
              <d2p1:Value>sample string 2</d2p1:Value>
            </d2p1:ItemMetadataRule>
            <d2p1:ItemMetadataRule>
              <d2p1:Rule>sample string 1</d2p1:Rule>
              <d2p1:Value>sample string 2</d2p1:Value>
            </d2p1:ItemMetadataRule>
          </d2p1:Rules>
          <d2p1:Type>sample string 3</d2p1:Type>
          <d2p1:Value>sample string 2</d2p1:Value>
        </d2p1:ItemMetadata>
        <d2p1:ItemMetadata>
          <d2p1:Key>sample string 1</d2p1:Key>
          <d2p1:Label>sample string 4</d2p1:Label>
          <d2p1:Rules>
            <d2p1:ItemMetadataRule>
              <d2p1:Rule>sample string 1</d2p1:Rule>
              <d2p1:Value>sample string 2</d2p1:Value>
            </d2p1:ItemMetadataRule>
            <d2p1:ItemMetadataRule>
              <d2p1:Rule>sample string 1</d2p1:Rule>
              <d2p1:Value>sample string 2</d2p1:Value>
            </d2p1:ItemMetadataRule>
          </d2p1:Rules>
          <d2p1:Type>sample string 3</d2p1:Type>
          <d2p1:Value>sample string 2</d2p1:Value>
        </d2p1:ItemMetadata>
      </d2p1:Metadata>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:TemplateType>sample string 2</d2p1:TemplateType>
    </d2p1:ItemMetadataTemplate>
  </Templates>
  <Type>sample string 3</Type>
</PaymentMethod>