ChargeService


Click here for a complete list of operations.

BulkBillPaymentWS

برای پرداخت قبض گروهی از این متد استفاده میشود توجه داشته باشید حداکثر تعداد قبض های ارسالی در هر بار بیش از 20 عدد نباشد.

برای استفاده از این متد شما باید پارامترهای ورودی را به مانند جدول زیر ارسال نمایید

پارامتر ورودی شرح 
Username

نام کاربری وب سرویس

Passwordکلمه عبور
ReturnUrlلینک بازگشت نتیجه متد
BatchBillRequestDataItemلیستی رشته ای از نوع جیسون شامل شناسه قبض و شناسه پرداخت و کد سفارش مشتری

___________________________________________________

BatchBillRequestDataItem شامل موارد ورودی زیر میباشد

پارامتر ورودی شرح 
BillID

شناسه قبض

PayIDشناسه پرداخت
ExtOrderIDکد سفارش مشتری

___________________________________________________

خروجی در مرحله اول فراخوانی این متد شامل موارد زیر است

پارامتر خروجی شرح
BatchBillPaymentResponseDataItemsوضعیت اولیه قبض ها در سامانه
Statusکد نتیجه
StatusMessageشرح کد نتیجه فراخوانی این متد
BatchToken

کد توکن گروهی یا کد پیگیری گروهی که به ازاء فراخوانی این متد ایجاد میگردد

TotalAmount

مجموع کل قبوض وارده شده

PaymentUrl

لینک پرداخت برای این متد نتیجه نهایی بعد از اجرای این متد به لینکی در ایتدای توضیحات این متد آورده شد برگشت داده میشود

___________________________________________________

BatchBillPaymentResponseDataItems شامل موارد خروجی زیر میباشد

پارامتر خروجی شرح
BillIDشناسه قبض
PayIDشناسه پرداخت
Statusوضعیت
StatusMessageشرح کد وضعیت
Price

مبلغ قبض

BillType

نوع قبض

BillTypeCode

کد نوع قبض

ExtOrderID

کد سفارش مشتری

___________________________________________________

نمونه ReturnUrl

http://yourdomain?BatchTokenID={0}&Status={1}&StatusDescription={2}&BillItems={3}


___________________________________________________

پارامتر خروجی شرح
BatchTokenIDکد پیگیری گروهی دریافتی در مرحله قبل
Statusوضعیت عملیات پرداخت
StatusDescriptionشرح کد عملیات پرداخت
BillItemsلیست قبض ها ی ارسالی

___________________________________________________

BillItems شامل خروجی های زیر میباشد


پارامتر خروجی شرح
Amountمبلغ قبض
BillIDشناسه قبض
PayIDشناسه پرداخت
billTypeIDکد نوع قبض
billTypeName

نوع قبض

ExtOrderID

کد سفارش مشتری

SaleReferenceID

SaleReferenceID

Sataus

کد نتیجه

SatausDescription

شرح کد نتیجه

Token

کد پیگیری قبض


Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /UserWebservice.asmx HTTP/1.1
Host: ws.toshanet.ir
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.toranjsoft.com/BulkBillPaymentWS"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <BulkBillPaymentWS xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <ReturnUrl>string</ReturnUrl>
      <BatchBillRequestDataItem>string</BatchBillRequestDataItem>
    </BulkBillPaymentWS>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <BulkBillPaymentWSResponse xmlns="http://www.toranjsoft.com">
      <BulkBillPaymentWSResult>string</BulkBillPaymentWSResult>
    </BulkBillPaymentWSResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /UserWebservice.asmx HTTP/1.1
Host: ws.toshanet.ir
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <BulkBillPaymentWS xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <ReturnUrl>string</ReturnUrl>
      <BatchBillRequestDataItem>string</BatchBillRequestDataItem>
    </BulkBillPaymentWS>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <BulkBillPaymentWSResponse xmlns="http://www.toranjsoft.com">
      <BulkBillPaymentWSResult>string</BulkBillPaymentWSResult>
    </BulkBillPaymentWSResponse>
  </soap12:Body>
</soap12:Envelope>