POST v1/ShoppingCarts/Checkout/CreditCard

Completes the shopping experience using a credit card for payment.

Request Information

URI Parameters

None.

Body Parameters

creditCardCheckoutInput
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_ShoppingCarts_ShoppingCartEndpointController.creditCardCheckoutInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ShoppingCarts_ShoppingCartEndpoint">
  <cardNumber>sample string 2</cardNumber>
  <cvv>sample string 1</cvv>
  <expirationMonth>3</expirationMonth>
  <expirationYear>4</expirationYear>
  <saveForFutureUse>true</saveForFutureUse>
</v1_ShoppingCarts_ShoppingCartEndpointController.creditCardCheckoutInput>

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

Response Information

Resource Description

CartCheckoutOutput
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.CartCheckoutOutput 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.CartCheckoutOutput>