POST v1/admin/company/{id}/ShoppingCarts/Checkout/CreditCard
Completes the shopping experience using a credit card for admin payment.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
adminCreditCardCheckoutInputName | Description | Type | Additional 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_Admin_adminCarts_adminShoppingCartEndpointController.adminCreditCardCheckoutInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_adminCarts_adminShoppingCartEndpoint"> <cardNumber>sample string 2</cardNumber> <cvv>sample string 1</cvv> <expirationMonth>3</expirationMonth> <expirationYear>4</expirationYear> <saveForFutureUse>true</saveForFutureUse> </v1_Admin_adminCarts_adminShoppingCartEndpointController.adminCreditCardCheckoutInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
adminCartCheckoutOutputName | Description | Type | Additional 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_Admin_adminCarts_adminShoppingCartEndpointController.adminCartCheckoutOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_adminCarts_adminShoppingCartEndpoint"> <id>1</id> </v1_Admin_adminCarts_adminShoppingCartEndpointController.adminCartCheckoutOutput>