POST api/User/CarPark/Payment/Complete

Request Information

URI Parameters

None.

Body Parameters

InitiatePaymentBindingModel
NameDescriptionTypeAdditional information
PaymentType

PaymentType

None.

DiscountCode

string

None.

Tip

decimal number

None.

DeliveryLocationId

globally unique identifier

None.

PaymentReference

string

String length: inclusive between 0 and 16

SessionId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentType": 0,
  "DiscountCode": "sample string 1",
  "Tip": 2.0,
  "DeliveryLocationId": "8eb2ec173b4f4ec0951052490fb728c6",
  "PaymentReference": "sample string 3",
  "SessionId": "875edbfd12d741c6b895f41d88946643"
}

application/xml, text/xml

Sample:
<InitiatePaymentBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Models.BindingModels">
  <SessionId>875edbfd-12d7-41c6-b895-f41d88946643</SessionId>
  <DeliveryLocationId>8eb2ec17-3b4f-4ec0-9510-52490fb728c6</DeliveryLocationId>
  <DiscountCode>sample string 1</DiscountCode>
  <PaymentReference>sample string 3</PaymentReference>
  <PaymentType>NotSet</PaymentType>
  <Tip>2</Tip>
</InitiatePaymentBindingModel>

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

Response Information

Resource Description

ServiceResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

MessageId

integer

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "MessageId": 899,
  "Message": "\r\n",
  "Data": {}
}

application/xml, text/xml

Sample:
<ServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Services.Response">
  <MessageLog xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string></d2p1:string>
    <d2p1:string></d2p1:string>
  </MessageLog>
</ServiceResponse>