POST v1/OrderDetails/{id}/{orderId}/MakePayment/CreditCard

Make payment of the unpaid order using a credit card, without logging in.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

orderId

integer

Required

Body Parameters

makepaymentWithoutLoginCreditCardInput
NameDescriptionTypeAdditional information
cardNumber

string

Required

expirationMonth

integer

Required

expirationYear

integer

Required

cvv

string

None.

saveForFutureUse

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "cardNumber": "sample string 1",
  "expirationMonth": 2,
  "expirationYear": 3,
  "cvv": "sample string 4",
  "saveForFutureUse": true
}

text/html

Sample:
{"cardNumber":"sample string 1","expirationMonth":2,"expirationYear":3,"cvv":"sample string 4","saveForFutureUse":true}

application/xml, text/xml

Sample:
<v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpointController.makepaymentWithoutLoginCreditCardInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpoint">
  <cardNumber>sample string 1</cardNumber>
  <cvv>sample string 4</cvv>
  <expirationMonth>2</expirationMonth>
  <expirationYear>3</expirationYear>
  <saveForFutureUse>true</saveForFutureUse>
</v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpointController.makepaymentWithoutLoginCreditCardInput>

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

Response Information

Resource Description

makepaymentWithoutLoginCreditCardOutput
NameDescriptionTypeAdditional information
id

integer

None.

orderDate

date

None.

orderStatus

string

None.

orderType

string

None.

paymentType

string

None.

totalSavings

decimal number

None.

subTotal

decimal number

None.

shipping

decimal number

None.

handling

decimal number

None.

tax

decimal number

None.

grandTotalBeforeDiscount

decimal number

None.

currencyTypeID

integer

None.

currencySymbol

string

None.

trackingNumber

string

None.

shipDate

date

None.

shipmentMethod

string

None.

shipToName

string

None.

shipToAddressID

integer

None.

shipToLine1

string

None.

shipToLine2

string

None.

shipToCity

string

None.

shipToState

string

None.

shipToZipCode

string

None.

shipToCountry

string

None.

billToName

string

None.

billToLine1

string

None.

billToLine2

string

None.

billToCity

string

None.

billToState

string

None.

billToZipCode

string

None.

billToCountry

string

None.

amountDue

The amount due for this order

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "orderDate": "2024-10-31T14:39:28.968491+00:00",
  "orderStatus": "sample string 3",
  "orderType": "sample string 4",
  "paymentType": "sample string 5",
  "totalSavings": 6.0,
  "subTotal": 7.0,
  "shipping": 8.0,
  "handling": 9.0,
  "tax": 10.0,
  "grandTotalBeforeDiscount": 11.0,
  "currencyTypeID": 12,
  "currencySymbol": "sample string 13",
  "trackingNumber": "sample string 14",
  "shipDate": "2024-10-31T14:39:28.968491+00:00",
  "shipmentMethod": "sample string 16",
  "shipToName": "sample string 17",
  "shipToAddressID": 18,
  "shipToLine1": "sample string 19",
  "shipToLine2": "sample string 20",
  "shipToCity": "sample string 21",
  "shipToState": "sample string 22",
  "shipToZipCode": "sample string 23",
  "shipToCountry": "sample string 24",
  "billToName": "sample string 25",
  "billToLine1": "sample string 26",
  "billToLine2": "sample string 27",
  "billToCity": "sample string 28",
  "billToState": "sample string 29",
  "billToZipCode": "sample string 30",
  "billToCountry": "sample string 31",
  "amountDue": 32.0
}

text/html

Sample:
{"id":1,"orderDate":"2024-10-31T14:39:28.968491+00:00","orderStatus":"sample string 3","orderType":"sample string 4","paymentType":"sample string 5","totalSavings":6.0,"subTotal":7.0,"shipping":8.0,"handling":9.0,"tax":10.0,"grandTotalBeforeDiscount":11.0,"currencyTypeID":12,"currencySymbol":"sample string 13","trackingNumber":"sample string 14","shipDate":"2024-10-31T14:39:28.968491+00:00","shipmentMethod":"sample string 16","shipToName":"sample string 17","shipToAddressID":18,"shipToLine1":"sample string 19","shipToLine2":"sample string 20","shipToCity":"sample string 21","shipToState":"sample string 22","shipToZipCode":"sample string 23","shipToCountry":"sample string 24","billToName":"sample string 25","billToLine1":"sample string 26","billToLine2":"sample string 27","billToCity":"sample string 28","billToState":"sample string 29","billToZipCode":"sample string 30","billToCountry":"sample string 31","amountDue":32.0}

application/xml, text/xml

Sample:
<v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpointController.makepaymentWithoutLoginCreditCardOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpoint">
  <amountDue>32</amountDue>
  <billToCity>sample string 28</billToCity>
  <billToCountry>sample string 31</billToCountry>
  <billToLine1>sample string 26</billToLine1>
  <billToLine2>sample string 27</billToLine2>
  <billToName>sample string 25</billToName>
  <billToState>sample string 29</billToState>
  <billToZipCode>sample string 30</billToZipCode>
  <currencySymbol>sample string 13</currencySymbol>
  <currencyTypeID>12</currencyTypeID>
  <grandTotalBeforeDiscount>11</grandTotalBeforeDiscount>
  <handling>9</handling>
  <id>1</id>
  <orderDate>2024-10-31T14:39:28.968491+00:00</orderDate>
  <orderStatus>sample string 3</orderStatus>
  <orderType>sample string 4</orderType>
  <paymentType>sample string 5</paymentType>
  <shipDate>2024-10-31T14:39:28.968491+00:00</shipDate>
  <shipToAddressID>18</shipToAddressID>
  <shipToCity>sample string 21</shipToCity>
  <shipToCountry>sample string 24</shipToCountry>
  <shipToLine1>sample string 19</shipToLine1>
  <shipToLine2>sample string 20</shipToLine2>
  <shipToName>sample string 17</shipToName>
  <shipToState>sample string 22</shipToState>
  <shipToZipCode>sample string 23</shipToZipCode>
  <shipmentMethod>sample string 16</shipmentMethod>
  <shipping>8</shipping>
  <subTotal>7</subTotal>
  <tax>10</tax>
  <totalSavings>6</totalSavings>
  <trackingNumber>sample string 14</trackingNumber>
</v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpointController.makepaymentWithoutLoginCreditCardOutput>