مرجع API
كل المسارات والترويسات ومخططات الطلب والاستجابة في API v2.
عنوان الأساس: https://watadcash.com/api/v2. مصدر الحقول هو ملف OpenAPI المنشور من وتد كاش والمرفق مع هذه الوثائق. الأمثلة معروضة للنسخ ولا تنفّذ طلبات.
/walletرصيد محفظة التاجر
الصلاحية: wallet:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
},
"wallet": {
"type": "object",
"required": [
"currency",
"available",
"locked",
"withdrawable_gateway"
],
"properties": {
"currency": {
"const": "USD"
},
"available": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)\\.[0-9]{2}$"
},
"locked": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)\\.[0-9]{2}$"
},
"withdrawable_gateway": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)\\.[0-9]{2}$"
}
}
}
},
"additionalProperties": true
}/transactionsحركات المحفظة
الصلاحية: transactions:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/customersالعملاء
الصلاحية: customers:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/customersإنشاء عميل
الصلاحية: customers:write
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
name | string | نعم | {"minLength":2,"maxLength":100} |
email | string | نعم | {"maxLength":190} |
external_reference | string | نعم | {"pattern":"^[A-Za-z0-9_.:-]{1,100}$"} |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 100
},
"email": {
"type": "string",
"format": "email",
"maxLength": 190
},
"external_reference": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,100}$"
}
},
"required": [
"name",
"email",
"external_reference"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/customers/{id}تفاصيل العملاء
الصلاحية: customers:read
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
id | path | نعم |
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/cardsالبطاقات
الصلاحية: cards:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/cardsطلب إصدار بطاقة
الصلاحية: cards:create
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
Idempotency-Key | header | نعم |
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
plan_code | string | نعم | {"enum":["cards_500","cards_2500","cards_unlimited"]} |
customer_id | integer | نعم | {"minimum":1} |
product_id | integer | نعم | {"minimum":1} |
reference | string | نعم | {"pattern":"^[A-Za-z0-9_.:-]{1,100}$"} |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"plan_code": {
"type": "string",
"enum": [
"cards_500",
"cards_2500",
"cards_unlimited"
]
},
"customer_id": {
"type": "integer",
"minimum": 1
},
"product_id": {
"type": "integer",
"minimum": 1
},
"reference": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,100}$"
}
},
"required": [
"plan_code",
"customer_id",
"product_id",
"reference"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/cards/{id}تفاصيل البطاقات
الصلاحية: cards:read
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
id | path | نعم |
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/card-ordersطلبات البطاقات
الصلاحية: cards:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/card-orders/{id}تفاصيل طلبات البطاقات
الصلاحية: cards:read
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
id | path | نعم |
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/invoicesفواتير USDT للعملاء
الصلاحية: invoices:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/invoicesفتح فاتورة USDT لعميل
الصلاحية: invoices:create
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
Idempotency-Key | header | نعم |
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
customer_id | integer | نعم | {"minimum":1} |
amount | string | نعم | {"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$"} |
external_reference | string | لا | {"pattern":"^[A-Za-z0-9_.:-]{1,100}$"} |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"customer_id": {
"type": "integer",
"minimum": 1
},
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$",
"description": "Decimal string; positive value and current server limits are checked before acceptance."
},
"external_reference": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,100}$"
}
},
"required": [
"customer_id",
"amount"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/invoices/{id}تفاصيل فواتير USDT للعملاء
الصلاحية: invoices:read
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
id | path | نعم |
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/wallet-paymentsطلبات الدفع من محفظة WATADCASH
الصلاحية: wallet_payments:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/wallet-paymentsطلب دفع من محفظة WATADCASH
الصلاحية: wallet_payments:create
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
Idempotency-Key | header | نعم |
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
amount | string | نعم | {"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$"} |
description | string | نعم | {"maxLength":200} |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$",
"description": "Decimal string; positive value and current server limits are checked before acceptance."
},
"description": {
"type": "string",
"maxLength": 200
}
},
"required": [
"amount",
"description"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/wallet-payments/{id}تفاصيل طلبات الدفع من محفظة WATADCASH
الصلاحية: wallet_payments:read
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
id | path | نعم |
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/withdrawalsالسحوبات
الصلاحية: withdrawals:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/withdrawalsتأكيد طلب السحب
الصلاحية: withdrawals:create
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
Idempotency-Key | header | نعم |
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
quote_id | string | نعم | {"pattern":"^[a-f0-9]{64}$"} |
nonce | string | نعم | {"pattern":"^[a-f0-9]{48}$"} |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"quote_id": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"nonce": {
"type": "string",
"pattern": "^[a-f0-9]{48}$"
}
},
"required": [
"quote_id",
"nonce"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/withdrawals/{id}تفاصيل السحوبات
الصلاحية: withdrawals:read
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
id | path | نعم |
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/transfersالتحويلات
الصلاحية: transactions:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/transfersتحويل إلى حساب WATADCASH
الصلاحية: transfers:create
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
Idempotency-Key | header | نعم |
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
amount | string | نعم | {"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$"} |
recipient | string | نعم | — |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$",
"description": "Decimal string; positive value and current server limits are checked before acceptance."
},
"recipient": {
"type": "string",
"description": "Actual WATADCASH account number of the recipient."
}
},
"required": [
"amount",
"recipient"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/transfers/{id}تفاصيل التحويلات
الصلاحية: transactions:read
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
id | path | نعم |
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/office-transfersالحوالات المكتبية
الصلاحية: transactions:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/office-transfersحوالة إلى مكتب
الصلاحية: office:transfers:create
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
Idempotency-Key | header | نعم |
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
amount | string | نعم | {"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$"} |
recipient_name | string | نعم | — |
recipient_phone | string | نعم | — |
office | string | نعم | — |
receive_currency | string | نعم | — |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$",
"description": "Decimal string; positive value and current server limits are checked before acceptance."
},
"recipient_name": {
"type": "string"
},
"recipient_phone": {
"type": "string"
},
"office": {
"type": "string",
"description": "A currently available office code from the merchant account configuration."
},
"receive_currency": {
"type": "string",
"description": "Currently supported office receiving currency."
}
},
"required": [
"amount",
"recipient_name",
"recipient_phone",
"office",
"receive_currency"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/office-transfers/{id}تفاصيل الحوالات المكتبية
الصلاحية: transactions:read
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
id | path | نعم |
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/card-productsمنتجات البطاقات المتاحة
الصلاحية: cards:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/fundingفواتير تمويل محفظة التاجر
الصلاحية: wallet:read
الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/fundingفاتورة USDT لتمويل محفظة التاجر
الصلاحية: wallet:fund
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
Idempotency-Key | header | نعم |
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
amount | string | نعم | {"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$"} |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$",
"description": "Decimal string; positive value and current server limits are checked before acceptance."
}
},
"required": [
"amount"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/cards/{id}/fundطلب تمويل بطاقة مملوكة
الصلاحية: cards:fund
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
id | path | نعم |
Idempotency-Key | header | نعم |
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
plan_code | string | نعم | {"enum":["cards_500","cards_2500","cards_unlimited"]} |
amount | string | نعم | {"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]{1,2})?$"} |
reference | string | نعم | {"pattern":"^[A-Za-z0-9_.:-]{1,100}$"} |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"plan_code": {
"type": "string",
"enum": [
"cards_500",
"cards_2500",
"cards_unlimited"
]
},
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,2})?$"
},
"reference": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,100}$"
}
},
"required": [
"plan_code",
"amount",
"reference"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}/withdrawals/quoteعرض سحب USDT عبر TRON
الصلاحية: withdrawals:create
الترويسات ومعاملات المسار
| الحقل | الموضع | مطلوب |
|---|---|---|
Idempotency-Key | header | نعم |
جسم JSON
| الحقل | النوع | مطلوب | القيود |
|---|---|---|---|
amount | string | نعم | {"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$"} |
address | string | نعم | {"pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$"} |
مخطط الطلب الكامل
{
"type": "object",
"additionalProperties": false,
"properties": {
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$",
"description": "Decimal string; positive value and current server limits are checked before acceptance."
},
"address": {
"type": "string",
"pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
}
},
"required": [
"amount",
"address"
]
}الاستجابة
رموز الاستجابة الموثقة: 200 · 400 · 401 · 403 · 404 · 409 · 422 · 429 · 503
مخطط استجابة 200
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"const": true
}
},
"additionalProperties": true
}