POST api/SystemSettings/CreateSessionviaServices

Request Information

URI Parameters

None.

Body Parameters

PaymentRequestviaServices
NameDescriptionTypeAdditional information
Amount

decimal number

None.

ChannelID

integer

None.

ServiceID

integer

None.

IsPlatformApplePay

boolean

None.

IsBillPayment

boolean

None.

IsQparkingPayment

boolean

None.

IsTopUpPayment

boolean

None.

IsGiftCardPayment

boolean

None.

IsMetroCardPayment

boolean

None.

IsCharityPayment

boolean

None.

BillPaymentData

BillPaymentData

None.

QparkingData

ParkingTicketQatarPayRequest

None.

TopUpData

ReserveRequest

None.

GiftCardData

GiftCardRequestOnline

None.

MetroCardData

RefillRequestModel

None.

CharityData

NoqsTransferRequestViaCharityEmail

None.

IsShared

boolean

None.

IsTokenized

boolean

None.

TokenizedData

PaymentRequestViaServicesTokenized

None.

QRCodeData

string

None.

Request Formats

application/json, text/json, application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SessionResponse
NameDescriptionTypeAdditional information
service_charge

decimal number

None.

BaseAmount

decimal number

None.

TotalAmount

decimal number

None.

PlatformSessionID

string

None.

SessionID

string

None.

UUID

string

None.

PaymentRequestID

integer

None.

ReferenceNo

string

None.

success

boolean

None.

code

string

None.

message

string

None.

errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "service_charge": 1.0,
  "BaseAmount": 2.0,
  "TotalAmount": 3.0,
  "PlatformSessionID": "sample string 4",
  "SessionID": "sample string 5",
  "UUID": "sample string 6",
  "PaymentRequestID": 7,
  "ReferenceNo": "sample string 8",
  "success": true,
  "code": "sample string 10",
  "message": "sample string 11",
  "errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<SessionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QatarPay.Models.SystemSettings">
  <code xmlns="http://schemas.datacontract.org/2004/07/QatarPay.Models">sample string 10</code>
  <errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/QatarPay.Models">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </errors>
  <message xmlns="http://schemas.datacontract.org/2004/07/QatarPay.Models">sample string 11</message>
  <success xmlns="http://schemas.datacontract.org/2004/07/QatarPay.Models">true</success>
  <BaseAmount>2</BaseAmount>
  <PaymentRequestID>7</PaymentRequestID>
  <PlatformSessionID>sample string 4</PlatformSessionID>
  <ReferenceNo>sample string 8</ReferenceNo>
  <SessionID>sample string 5</SessionID>
  <TotalAmount>3</TotalAmount>
  <UUID>sample string 6</UUID>
  <service_charge>1</service_charge>
</SessionResponse>