POST api/pos/NewTransaction

ثبت تراکنش دستگاه کارت خوان

Request Information

URI Parameters

None.

Body Parameters

داده ورودی

ClassicPOSData
NameDescriptionTypeAdditional information
terminalNo

شماره ترمینال

merchantNo

شماره پذیرنده

terminalType

نوع ترمینال

serialNo

سریال دستگاه

transactionDateTime

تاریخ و ساعت تراکنش YYYYMMDDHHmmss میلادی

price

مبلغ تراکنش

stan

شماره پیگیری تراکنش

referenceNo

شماره مرجع

cardNo

شماره کارت مسک شده

Request Formats

application/json, text/json

Sample:
{
  "terminalNo": "sample string 1",
  "merchantNo": "sample string 2",
  "terminalType": "sample string 3",
  "serialNo": "sample string 4",
  "transactionDateTime": "sample string 5",
  "price": "sample string 6",
  "stan": "sample string 7",
  "referenceNo": "sample string 8",
  "cardNo": "sample string 9"
}

application/xml, text/xml

Sample:
<ClassicPOSData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MegaPayHub.Models.POS">
  <cardNo>sample string 9</cardNo>
  <merchantNo>sample string 2</merchantNo>
  <price>sample string 6</price>
  <referenceNo>sample string 8</referenceNo>
  <serialNo>sample string 4</serialNo>
  <stan>sample string 7</stan>
  <terminalNo>sample string 1</terminalNo>
  <terminalType>sample string 3</terminalType>
  <transactionDateTime>sample string 5</transactionDateTime>
</ClassicPOSData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ClassicPOSReturnData
NameDescriptionTypeAdditional information
megaPayId

کد رهگیری

message

توضیحات

Response Formats

application/json, text/json

Sample:
{
  "megaPayId": 1,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<ClassicPOSReturnData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MegaPayHub.Models.POS">
  <megaPayId>1</megaPayId>
  <message>sample string 2</message>
</ClassicPOSReturnData>