POST v1/admin/company/{id}/ShoppingCarts/Checkout/GPay

Completes the shopping experience using GPay for admin payment.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

adminGPayCheckoutInput
NameDescriptionTypeAdditional information
cardNumber

string

Required

CCPartial

string

None.

saveForFutureUse

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "cardNumber": "sample string 1",
  "CCPartial": "sample string 2",
  "saveForFutureUse": true
}

text/html

Sample:
{"cardNumber":"sample string 1","CCPartial":"sample string 2","saveForFutureUse":true}

application/xml, text/xml

Sample:
<v1_Admin_adminCarts_adminShoppingCartEndpointController.adminGPayCheckoutInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_adminCarts_adminShoppingCartEndpoint">
  <CCPartial>sample string 2</CCPartial>
  <cardNumber>sample string 1</cardNumber>
  <saveForFutureUse>true</saveForFutureUse>
</v1_Admin_adminCarts_adminShoppingCartEndpointController.adminGPayCheckoutInput>

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

Response Information

Resource Description

adminCartCheckoutOutput
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_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>