العودة للمرجع
POST/merchant-wallets/{merchantId}/settlement-request
Merchant wallets

طلب تسوية تاجر

ينشئ طلب تسوية يدويًا لفترة محفظة التاجر.

مستوى الوصولmerchant_financeالحد60/minمنع التكرارbody:idempotency_keyالمصادقةBearerAuth
المصدرLuxApi/Modules/LuxPayIdentity/Http/Controllers/Api/MerchantWalletApiController.php::settlementRequestLuxPayProjects @ 146e98baa44e

المعاملات

X-Request-IDheader
stringاختياري

Client correlation identifier. LuxPay may generate one when omitted.

Example: req_01J...
merchantIdpath
integerإلزامي

Merchant/business identifier.

Example: 10101

جسم الطلب

MerchantSettlementRequestإلزامي
wallet_id
integer
period_start
string
period_end
string
idempotency_key
string
notes
string | null

JSON example

{
  "wallet_id": 1,
  "period_start": "2026-07-16",
  "period_end": "2026-07-16",
  "idempotency_key": "string",
  "notes": "string"
}

أمثلة الكود

العنوان المعروض Sandbox Placeholder حتى يتم تزويد النطاق الرسمي. لا تلصق رمز Production في متصفح عام.
curl --request POST \
  --url 'https://sandbox-api.luxpay.example/v1/merchant-wallets/10101/settlement-request' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "wallet_id": 1,
  "period_start": "2026-07-16",
  "period_end": "2026-07-16",
  "idempotency_key": "string",
  "notes": "string"
}'

الاستجابات

200Successful response.
status
boolean
Example: true
message
string | null
data
Settlement
{
  "status": true,
  "message": "string",
  "data": {
    "id": 1,
    "uuid": "00000000-0000-4000-8000-000000000001",
    "wallet_id": 1,
    "period_type": "daily",
    "period_start": "2026-07-16",
    "period_end": "2026-07-16",
    "status": "pending",
    "idempotency_key": "string",
    "notes": "string",
    "items": [
      {}
    ],
    "created_at": "2026-07-16T12:00:00Z"
  }
}
400
401
403
404
409
422
429
500
OpenAPI JSONOpenAPI YAMLPostman collection