POST api/Order/SelfOrderUS/v2/flute/session

Request Information

URI Parameters

None.

Body Parameters

CreatePaymentSession
NameDescriptionTypeAdditional information
FlowType

string

None.

OrderId

string

None.

ReferenceId

string

None.

Amount

decimal number

None.

Currency

string

None.

BranchID

globally unique identifier

None.

SaveCardConsent

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "FlowType": "sample string 1",
  "OrderId": "sample string 2",
  "ReferenceId": "sample string 3",
  "Amount": 4.0,
  "Currency": "sample string 5",
  "BranchID": "999fc630-445b-4307-80bd-74e05caac61f",
  "SaveCardConsent": true
}

application/xml, text/xml

Sample:
<CreatePaymentSession xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.APIOrderOnline.Models.Payment">
  <Amount>4</Amount>
  <BranchID>999fc630-445b-4307-80bd-74e05caac61f</BranchID>
  <Currency>sample string 5</Currency>
  <FlowType>sample string 1</FlowType>
  <OrderId>sample string 2</OrderId>
  <ReferenceId>sample string 3</ReferenceId>
  <SaveCardConsent>true</SaveCardConsent>
</CreatePaymentSession>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIOrderOnlineResultOfPaymentSessionCreated
NameDescriptionTypeAdditional information
Data

PaymentSessionCreated

None.

Success

boolean

None.

ErrorMessage

string

None.

ErrorType

OrderOnlineAPIErrorType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "SessionId": "sample string 1",
    "Provider": "sample string 2",
    "ExpiresAt": "2026-09-29T10:55:16.8180074+07:00"
  },
  "Success": true,
  "ErrorMessage": "sample string 2",
  "ErrorType": 0,
  "Total": 3,
  "Message": "sample string 4"
}

application/xml, text/xml

Sample:
<APIOrderOnlineResultOfPaymentSessionCreatedQSHONJZj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MISA.QLNH.APIOrderOnline.Models.Payment">
    <d2p1:ExpiresAt>2026-09-29T10:55:16.8180074+07:00</d2p1:ExpiresAt>
    <d2p1:Provider>sample string 2</d2p1:Provider>
    <d2p1:SessionId>sample string 1</d2p1:SessionId>
  </Data>
  <ErrorMessage>sample string 2</ErrorMessage>
  <ErrorType>None</ErrorType>
  <Message>sample string 4</Message>
  <Success>true</Success>
  <Total>3</Total>
</APIOrderOnlineResultOfPaymentSessionCreatedQSHONJZj>