POST
Transactions/wallets/{walletId}/withdrawسحب من المحفظة
ينفذ سحبًا وقد يخضع لسياسة موافقة حسب ضوابط العملية.
مستوى الوصولbusiness_operatorالحد20/minمنع التكرارbody:idempotency_keyالمصادقةBearerAuth
المصدر
LuxApi/app/Http/Controllers/Api/WalletApiController.php::withdrawLuxPayProjects @ 146e98baa44eالمعاملات
X-Request-IDheaderClient correlation identifier. LuxPay may generate one when omitted.
Example:req_01J...walletIdpathNumeric wallet identifier.
Example:42جسم الطلب
WalletMovementRequestإلزامي
amountnumber
Example:
5000currency_codestring
Example:
YERidempotency_keystring
Example:
wallet_move_01JABC...payment_methodstring | null
Example:
cashdescriptionstring | null
Example:
Cash desk depositJSON example
{
"amount": 5000,
"currency_code": "YER",
"idempotency_key": "wallet_move_01JABC...",
"payment_method": "cash",
"description": "Cash desk deposit"
}أمثلة الكود
العنوان المعروض Sandbox Placeholder حتى يتم تزويد النطاق الرسمي. لا تلصق رمز Production في متصفح عام.
curl --request POST \
--url 'https://sandbox-api.luxpay.example/v1/wallets/42/withdraw' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 5000,
"currency_code": "YER",
"idempotency_key": "wallet_move_01JABC...",
"payment_method": "cash",
"description": "Cash desk deposit"
}'الاستجابات
200Successful response.
statusboolean
Example:
truemessagestring | null
message_translatedstring | null
dataTransaction
{
"status": true,
"message": "string",
"message_translated": "string",
"data": {
"id": 901,
"uuid": "00000000-0000-4000-8000-000000000001",
"wallet_id": 42,
"owner_type": "customer",
"owner_id": 2201,
"transaction_type": "transfer",
"status": "completed",
"amount": 1250.5,
"currency_code": "YER",
"exchange_rate": 1,
"local_amount": 1,
"fee_amount": 0,
"net_amount": 1250.5,
"reference_type": "string",
"reference_id": 1,
"external_reference": "string",
"idempotency_key": "string",
"business_id": 1,
"branch_id": 1,
"payment_method": "string",
"description": "string",
"meta": {},
"completed_at": "2026-07-16T12:00:00Z",
"failed_at": "2026-07-16T12:00:00Z",
"reversed_at": "2026-07-16T12:00:00Z",
"created_at": "2026-07-16T12:00:00Z"
}
}