POST v1/MembershipApplication/Checkout/CreditCard

Completes membership product checkout using a credit card.

Request Information

URI Parameters

None.

Body Parameters

membershipCreditCardInput
NameDescriptionTypeAdditional information
cvv

string

None.

cardNumber

string

Required

expirationMonth

integer

Required

expirationYear

integer

Required

saveForFutureUse

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "cvv": "sample string 1",
  "cardNumber": "sample string 2",
  "expirationMonth": 3,
  "expirationYear": 4,
  "saveForFutureUse": true
}

text/html

Sample:
{"cvv":"sample string 1","cardNumber":"sample string 2","expirationMonth":3,"expirationYear":4,"saveForFutureUse":true}

application/xml, text/xml

Sample:
<v1_MembershipProducts_MembershipProductEndpointController.membershipCreditCardInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_MembershipProducts_MembershipProductEndpoint">
  <cardNumber>sample string 2</cardNumber>
  <cvv>sample string 1</cvv>
  <expirationMonth>3</expirationMonth>
  <expirationYear>4</expirationYear>
  <saveForFutureUse>true</saveForFutureUse>
</v1_MembershipProducts_MembershipProductEndpointController.membershipCreditCardInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'membershipCreditCardInput'.

Response Information

Resource Description

membershipCreditCardOutput
NameDescriptionTypeAdditional information
id

The ID of created order

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1
}

text/html

Sample:
{"id":1}

application/xml, text/xml

Sample:
<v1_MembershipProducts_MembershipProductEndpointController.membershipCreditCardOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_MembershipProducts_MembershipProductEndpoint">
  <id>1</id>
</v1_MembershipProducts_MembershipProductEndpointController.membershipCreditCardOutput>