ملی پیامک مستندات وب‌سرویس پیامک
ملی پیامک مستندات وب‌سرویس پیامک
ملی پیامک مستندات وب‌سرویس پیامک

گزارش دریافت با شناسۀ رکورد در بازۀ زمانی 7 روزه

آخرین به‌روزرسانی: 20 آبان 1405

آدرس وب سرویس

متد GetReceptionsRecID

متد GetReceptionsRecID برای گزارش دریافت با شناسۀ رکورد در بازۀ زمانی است. این متد گزارش گیرندگان و شناسۀ رکورد را در بازۀ حداکثر هفت‌روزه برمی‌گرداند.

پارامتر های ورودی

نام پارامترنوع پارامترتوضیحات
username string اجباری نام کاربری پنل پیامکی شما در سامانه.
password string اجباری کلید APIkey وب‌سرویس؛ موجود در تنظیمات وب‌سرویس سامانه.
dateFrom dateTimeاجباری ابتدای بازۀ تاریخ مورد نظر. (به‌صورت میلادی)
dateTo dateTimeاجباری انتهای بازۀ تاریخ مورد نظر؛ فاصلۀ بازه نباید بیش از 7 روز باشد. (به‌صورت میلادی)
index intاجباری اندیس شروع نتایج؛ مقدار پیشنهادی 0 است.
count intاجباری تعداد رکورد درخواستی؛ حدأکثر 100.

مقدار بازگشتی

نام پارامترنوع پارامترتوضیحات
returnValue []ReceptionsRecID فهرست گزارش‌ها.
در پارامترهای ورودی نامعتبر، بازۀ بیش از هفت روز یا تعداد درخواست بیش از 100، مقدار «null» بازمی‌گردد.

دریافت وضعیت چندگانه تحویل به‌صورت رشته از طریق URL:

https://api.payamak-panel.com/post/send.asmx/GetReceptionsRecID?username=&password=&dateFrom=&dateTo=&index=&count=

GetReceptionsRecID
$client = new SoapClient('https://api.payamak-panel.com/post/send.asmx?wsdl', ['encoding' => 'UTF-8', 'exceptions' => true]);
$params = [
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_API_KEY',
    'dateFrom' => '2026-01-01T00:00:00',
    'dateTo' => '2026-01-07T23:59:59',
    'index' => 0,
    'count' => 20,
];
$result = $client->__soapCall('GetReceptionsRecID', [$params]);
var_dump($result);
import soap from "soap";
const [client] = await soap.createClientAsync("https://api.payamak-panel.com/post/send.asmx?wsdl");
const [result] = await client.GetReceptionsRecIDAsync({
  username: "YOUR_USERNAME",
  password: "YOUR_API_KEY",
  dateFrom: "2026-01-01T00:00:00",
  dateTo: "2026-01-07T23:59:59",
  index: 0,
  count: 20,
});
console.log(result);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var requestBody = """

               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  
    
      YOUR_USERNAME
      YOUR_API_KEY
      2026-01-01T00:00:00
      2026-01-07T23:59:59
      0
      20
    
  

""";
var request = HttpRequest.newBuilder().uri(URI.create("https://api.payamak-panel.com/post/send.asmx"))
    .header("Content-Type", "text/xml; charset=utf-8")
    .header("SOAPAction", "\"http://tempuri.org/GetReceptionsRecID\"")
    .POST(HttpRequest.BodyPublishers.ofString(requestBody)).build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
// Add https://api.payamak-panel.com/post/send.asmx?wsdl as a Connected Service before using the generated proxy.
var client = new SendSoapClient(SendSoapClient.EndpointConfiguration.SendSoap);
var request = new GetReceptionsRecIDRequest
{
    username = "YOUR_USERNAME",
    password = "YOUR_API_KEY",
    dateFrom = "2026-01-01T00:00:00",
    dateTo = "2026-01-07T23:59:59",
    index = 0,
    count = 20,
};
var result = await client.GetReceptionsRecIDAsync(request);
Console.WriteLine(result);
from zeep import Client
client = Client("https://api.payamak-panel.com/post/send.asmx?wsdl")
result = client.service.GetReceptionsRecID(
    username="YOUR_USERNAME",
    password="YOUR_API_KEY",
    dateFrom="2026-01-01T00:00:00",
    dateTo="2026-01-07T23:59:59",
    index=0,
    count=20,
)
print(result)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var requestBody = """

               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  
    
      YOUR_USERNAME
      YOUR_API_KEY
      2026-01-01T00:00:00
      2026-01-07T23:59:59
      0
      20
    
  

""";
var request = HttpRequest.newBuilder().uri(URI.create("https://api.payamak-panel.com/post/send.asmx"))
    .header("Content-Type", "text/xml; charset=utf-8")
    .header("SOAPAction", "\"http://tempuri.org/GetReceptionsRecID\"")
    .POST(HttpRequest.BodyPublishers.ofString(requestBody)).build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
package main
import ("fmt"; "io"; "net/http"; "strings")
func main() {
  requestBody := `
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  
    
      YOUR_USERNAME
      YOUR_API_KEY
      2026-01-01T00:00:00
      2026-01-07T23:59:59
      0
      20
    
  
`
  request, err := http.NewRequest(http.MethodPost, "https://api.payamak-panel.com/post/send.asmx", strings.NewReader(requestBody)); if err != nil { panic(err) }
  request.Header.Set("Content-Type", "text/xml; charset=utf-8")
  request.Header.Set("SOAPAction", "\"http://tempuri.org/GetReceptionsRecID\"")
  response, err := http.DefaultClient.Do(request); if err != nil { panic(err) }; defer response.Body.Close()
  body, err := io.ReadAll(response.Body); if err != nil { panic(err) }; fmt.Println(string(body))
}
// پاسخ موفق SOAP
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetReceptionsRecIDResponse xmlns="http://tempuri.org/">
      <GetReceptionsRecIDResult><ReceptionsRecID><RecID>123456789</RecID><RecNumber>98912XXXXXXX</RecNumber></ReceptionsRecID></GetReceptionsRecIDResult>
    </GetReceptionsRecIDResponse>
  </soap:Body>
</soap:Envelope>

// خطای کاربردی SOAP
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetReceptionsRecIDResponse xmlns="http://tempuri.org/">
      <GetReceptionsRecIDResult></GetReceptionsRecIDResult>
    </GetReceptionsRecIDResponse>
  </soap:Body>
</soap:Envelope>