این API امکان تطبیق کد ملی با شماره شبا را فراهم میکند. سرویس برای احراز هویت مالک حساب بانکی و جلوگیری از تقلب ساخته شده است.
POST/api/services/iban-national-code-match/
نیاز به احراز هویت
Token
100 requests/minute
مستندات
Overview
Overview
The IBAN & National Code Match API allows you to verify that an IBAN belongs to the owner of a specific national code. This is essential for KYC, AML, and payment compliance workflows.
When you call this API:
IBAN format is validated
National code format is validated
Sepal Yar verifies ownership
Wallet credits are deducted on success
A unique request reference is returned
Authentication
Authentication
This API uses token-based authentication along with a unique code header.
Errors include error.code, error.message, and optional details/errors.
Error Handling
Error Handling
Standard HTTP codes are used:
400 - Invalid parameters
401 - Authentication error
402 - Insufficient balance
404 - IBAN not found/invalid
500 - Internal error
Platform-specific errors (e.g., 1002) are returned under error.errors.
Use Cases
Use Cases
KYC and AML workflows
Payment gateway compliance
Account ownership verification
Preventing fraudulent withdrawals
Best Practices
Best Practices
Validate IBAN and national code format before calling API
Cache successful match results when possible
Store request_ref for future audits
Monitor wallet balance to avoid 402 errors
Retry transient 5xx errors with exponential backoff
Rate Limits
Rate Limits
Default rate limit is 100 requests per minute per client. Exceeding the limit returns 429 Too Many Requests.
Pricing
Pricing
Each successful request costs 10,000 Rials which is deducted from the wallet upon success.
Support
Support
Provide the request_ref and ref_id when contacting support for faster resolution.
پارامترهای درخواست
پارامتر
نوع
اجباری
توضیحات
مثال
iban
String
اجباری
شماره شبا (IBAN) که باید با IR شروع شود و دقیقاً 26 کاراکتر باشد. فقط اعداد پس از IR مجاز است. میتوانید با یا بدون فاصله ارسال کنید.
اعتبارسنجی: Must start with IR and be 26 characters. Only digits allowed after IR.
IR110170000000219950976002
national_code
String
اجباری
کد ملی صاحب حساب. باید فقط شامل اعداد باشد (10 تا 15 رقم).
اعتبارسنجی: Must contain only digits. Length between 10 and 15 digits.
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Token YOUR_AUTH_TOKEN");
client.DefaultRequestHeaders.Add("X-Unique-Code", "YOUR_UNIQUE_CODE");
var data = new
{
iban = "IR110170000000219950976002",
national_code = "4640229534"
};
var json = JsonSerializer.Serialize(data);
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync(
"https://inquiry.sepal.ir/api/services/iban-national-code-match/",
content
);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}