POST v1/ShoppingCarts/Checkout/SavedPayment

Completes the shopping experience using a saved payment for payment.

Request Information

URI Parameters

None.

Body Parameters

savedPaymentMethodCheckoutInput
NameDescriptionTypeAdditional information
cvv

string

None.

savedPaymentId

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "cvv": "sample string 1",
  "savedPaymentId": 2
}

text/html

Sample:
{"cvv":"sample string 1","savedPaymentId":2}

application/xml, text/xml

Sample:
<v1_ShoppingCarts_ShoppingCartEndpointController.savedPaymentMethodCheckoutInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ShoppingCarts_ShoppingCartEndpoint">
  <cvv>sample string 1</cvv>
  <savedPaymentId>2</savedPaymentId>
</v1_ShoppingCarts_ShoppingCartEndpointController.savedPaymentMethodCheckoutInput>

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

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>