curl --location '/TenantTransaction/Banking/Withdrawal/atm' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"tenantId": 9,
"serialNo": "11111111-1111-1111-1111-111111111111",
"currencyId": "YER",
"amount": 500000,
"note": "سحب عبر الصراف الآلي للعميل أحمد سالم",
"debitAccountId": 13010001,
"creditAccountId": 11040001,
"cardNumber": "**** **** **** 1234",
"atmId": "ATM-SANAA-001",
"atmLocation": "صنعاء - حي الحصبة - شارع الزبيري",
"commissionAmount": 2000,
"commissionAccountId": 4102,
"dailyLimit": 5000000,
"transactionReference": null,
"status": null,
"createdAt": null,
"creatorUserId": 9,
"creatorDeviceId": "e1b3b11d-70d0-5abd-8a45-ce85c27af0d4",
"documentReferences": [
{
"type": 55,
"otherType": null,
"reference": "ATM-REC-001",
"url": null,
"description": "إيصال الصراف الآلي"
},
{
"type": 20,
"otherType": null,
"reference": "CV-2024-001",
"url": null,
"description": "التحقق من البطاقة"
}
]
}'[
{
"tenantId": 0,
"serviceId": 0,
"id": 0,
"serialNo": "8fe20539-3963-42bc-bcbe-d270b89c0cea",
"currencyId": "string",
"amount": 0,
"toCurrencyId": "string",
"toAmount": 0,
"description": null,
"status": 0,
"creatorUserId": 0,
"createdAt": "2019-08-24T14:15:22.123Z",
"updatorUserId": 0,
"updatedAt": "2019-08-24T14:15:22.123Z",
"TenantTransactionTransfers": [
{
"rowNo": 0,
"tenantId": 0,
"serviceId": 0,
"transactionId": 0,
"id": 0,
"accountId": 0,
"currencyId": "string",
"amount": 0,
"description": null,
"status": 0,
"creatorUserId": 0,
"createdAt": "2019-08-24T14:15:22.123Z",
"updatorUserId": 0,
"updatedAt": "2019-08-24T14:15:22.123Z"
}
],
"TenantBalances": [
{
"rowNo": 0,
"tenantId": 0,
"accountId": 0,
"currencyId": "string",
"amount": 0,
"ceilAmount": 0,
"upId": 0,
"typeId": 0,
"groupId": 0,
"isMain": true,
"isAutomatic": true,
"relatedUserId": 0,
"description": null,
"status": 0,
"creatorUserId": 0,
"createdAt": "2019-08-24T14:15:22.123Z",
"updatorUserId": 0,
"updatedAt": "2019-08-24T14:15:22.123Z"
}
],
"TenantTransactionProducts": [
{
"rowNo": 0,
"tenantId": 0,
"serviceId": 0,
"transactionId": 0,
"productId": 0,
"measureUnitId": 0,
"currencyId": "string",
"storeId": 0,
"productionAt": "2019-08-24",
"expiryAt": "2019-08-24",
"price": 0,
"costPrice": 0,
"quantity": 0,
"description": null,
"status": 0,
"isFree": true,
"creatorUserId": 0,
"createdAt": "2019-08-24T14:15:22.123Z",
"updatorUserId": 0,
"updatedAt": "2019-08-24T14:15:22.123Z"
}
],
"TenantRequest": [
{
"rowNo": 0,
"askTenantId": 0,
"responseTenantId": 0,
"serviceId": 0,
"id": 0,
"serialNo": "8fe20539-3963-42bc-bcbe-d270b89c0cea",
"description": null,
"status": 0,
"creatorUserId": 0,
"createdAt": "2019-08-24T14:15:22.123Z",
"updatorUserId": 0,
"updatedAt": "2019-08-24T14:15:22.123Z"
}
],
"TenantLogs": [
{
"rowNo": 0,
"tenantId": 0,
"id": 0,
"description": null,
"status": 0,
"creatorUserId": 0,
"createdAt": "2019-08-24T14:15:22.123Z"
}
],
"TenantProductStorages": [
{
"rowNo": 0,
"tenantId": 0,
"productId": 0,
"measureUnitId": 0,
"barcode": "string",
"currencyId": "str",
"storeId": 0,
"productionAt": "2019-08-24",
"expiryAt": "2019-08-24",
"costPrice": 0,
"quantity": 0,
"status": 0,
"creatorUserId": 0,
"createdAt": "2019-08-24T14:15:22.123Z",
"updatorUserId": 0,
"updatedAt": "2019-08-24T14:15:22.123Z",
"description": null
}
],
"deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a"
}
]