POST v1/Fundraising/Checkout/CreditCard

Completes fundraising checkout using a credit card.

Request Information

URI Parameters

None.

Body Parameters

fundraisingCreditCardInput
NameDescriptionTypeAdditional information
cvv

string

None.

productId

integer

Required

amount

decimal number

Required

cardNumber

string

Required

expirationMonth

integer

Required

expirationYear

integer

Required

saveForFutureUse

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "cvv": "sample string 1",
  "productId": 2,
  "amount": 3.0,
  "cardNumber": "sample string 4",
  "expirationMonth": 5,
  "expirationYear": 6,
  "saveForFutureUse": true
}

text/html

Sample:
{"cvv":"sample string 1","productId":2,"amount":3.0,"cardNumber":"sample string 4","expirationMonth":5,"expirationYear":6,"saveForFutureUse":true}

application/xml, text/xml

Sample:
<v1_ShoppingCarts_ShoppingCartEndpointController.fundraisingCreditCardInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ShoppingCarts_ShoppingCartEndpoint">
  <amount>3</amount>
  <cardNumber>sample string 4</cardNumber>
  <cvv>sample string 1</cvv>
  <expirationMonth>5</expirationMonth>
  <expirationYear>6</expirationYear>
  <productId>2</productId>
  <saveForFutureUse>true</saveForFutureUse>
</v1_ShoppingCarts_ShoppingCartEndpointController.fundraisingCreditCardInput>

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 'fundraisingCreditCardInput'.

Response Information

Resource Description

fundraisingCreditCardOutput
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_ShoppingCarts_ShoppingCartEndpointController.fundraisingCreditCardOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ShoppingCarts_ShoppingCartEndpoint">
  <id>1</id>
</v1_ShoppingCarts_ShoppingCartEndpointController.fundraisingCreditCardOutput>