Get Wallet Data
Author: Rohit Agnihotri
30 views
GET
Get Wallet Data
{{URL}}/api/agent/transaction/details
HEADERS
Accept
application/json
None
Content-Type
application/json
None
client
{{client}}
None
Authorization
{{Authorization}}
None
BODY raw
Example Request
- Get Wallet Data
Example Response
{- order_cost: 1.1
- driver_cost: 1.1
- lifetime_earnings: 1.1
- cash_to_be_collected: 185
- wallet_balance: "126.10"
- payments: {
- current_page: 1
- data: [
- {
- id: 3134
- transaction_type: "task"
- order_id: 1490
- dependent_task_id: null
- task_type_id: 1
- location_id: 379
- appointment_duration: null
- task_status: "4"
- allocation_type: "a"
- amount: null
- type: null
- meta: null
- dr: null
- cr: null
- created_at: "2023-03-24T07:08:13.000000Z"
- location: {
- id: 379
- latitude: "30.74105170"
- longitude: "76.77901500"
- short_name: null
- address: "Sector 17, Chandigarh, India"
- post_code: ""
- customer_id: 52
- created_at: "2022-03-29T09:09:20.000000Z"
- updated_at: "2023-03-24T07:07:08.000000Z"
- phone_number: "0000000000"
- email: "xxxxx@support.com"
- location_status: 1
- due_after: "00:00:00"
- due_before: "00:00:00"
- flat_no: null
- warehouse_id: null
} - tasktype: {
- id: 1
- name: "Pickup"
} - order: {
- id: 1490
- customer_id: 52
- driver_id: 141
- recipient_phone: "0000000000"
- Recipient_email: "admin@example.com"
- task_description: "Order From :Plog Electronics"
- auto_alloction: "a"
- order_time: "2023-03-24 07:08:13"
- status: "completed"
- cash_to_be_collected: "185.00"
- amount: "185.00"
- driver_cost: "1.10"
- task_images: [
] - unique_id: "mF6SXA"
- call_back_url: "{{DispatchUrl}}/dispatch-order-status-update/97641d4c5daf4ea"
- actual_distance: "1.70"
- actual_time: "4.00"
- is_restricted: 0
- vendor_id: 7
- order_vendor_id: 8
- sync_order_id: 9
- order_number: "47751229"
- dbname: "ace"
- customer: {
- id: 52
- name: "dlvrd"
- email: "admin@example.com"
- phone_number: "0000000000"
- dial_code: null
- address: null
- status: "Active"
- created_at: "2022-03-11T11:03:45.000000Z"
- updated_at: "2023-03-24T07:08:13.000000Z"
- sync_customer_id: 1
- user_icon: "{{ImageUrl}}/insecure/fill/512/512/ce/0/plain/{{S3Url}}/default/default_image.png@webp"
}
}
} - {
- id: 3135
- transaction_type: "task"
- order_id: 1490
- dependent_task_id: 3134
- task_type_id: 2
- location_id: 475
- appointment_duration: null
- task_status: "4"
- allocation_type: "a"
- amount: null
- type: null
- meta: null
- dr: null
- cr: null
- created_at: "2023-03-24T07:08:13.000000Z"
- location: {
- id: 475
- latitude: "30.73331480"
- longitude: "76.77941790"
- short_name: null
- address: "Chandigarh, India"
- post_code: ""
- customer_id: 52
- created_at: "2022-04-29T11:46:24.000000Z"
- updated_at: "2023-03-24T06:06:03.000000Z"
- phone_number: "0000000000"
- email: "admin@example.com"
- location_status: 1
- due_after: "00:00:00"
- due_before: "00:00:00"
- flat_no: null
- warehouse_id: null
} - tasktype: {
- id: 2
- name: "Drop"
} - order: {
- id: 1490
- customer_id: 52
- driver_id: 141
- recipient_phone: "0000000000"
- Recipient_email: "admin@example.com"
- task_description: "Order From :Plog Electronics"
- auto_alloction: "a"
- order_time: "2023-03-24 07:08:13"
- status: "completed"
- cash_to_be_collected: "185.00"
- amount: "185.00"
- driver_cost: "1.10"
- task_images: [
] - unique_id: "mF6SXA"
- call_back_url: "{{DispatchUrl}}/dispatch-order-status-update/97641d4c5daf4ea"
- actual_distance: "1.70"
- actual_time: "4.00"
- is_restricted: 0
- vendor_id: 7
- order_vendor_id: 8
- sync_order_id: 9
- order_number: "47751229"
- dbname: "ace"
- customer: {
- id: 52
- name: "dlvrd"
- email: "admin@example.com"
- phone_number: "0000000000"
- dial_code: null
- address: null
- status: "Active"
- created_at: "2022-03-11T11:03:45.000000Z"
- updated_at: "2023-03-24T07:08:13.000000Z"
- sync_customer_id: 1
- user_icon: "{{ImageUrl}}/insecure/fill/512/512/ce/0/plain/{{S3Url}}/default/default_image.png@webp"
}
}
} - {
- id: 51
- transaction_type: "wallet"
- order_id: null
- dependent_task_id: null
- task_type_id: null
- location_id: null
- appointment_duration: null
- task_status: null
- allocation_type: null
- amount: "10.00"
- type: "deposit"
- meta: {
- type: "wallet"
- description: "Wallet has been Credited by transaction reference pay_LVGtjvixzi5beq"
- payment_option: ""
- transaction_id: "pay_LVGtjvixzi5beq"
- transaction_type: "wallet_topup"
} - dr: null
- cr: null
- created_at: "2023-03-24T07:01:26.000000Z"
- location: null
- tasktype: null
- order: null
} - {
- id: 50
- transaction_type: "wallet"
- order_id: null
- dependent_task_id: null
- task_type_id: null
- location_id: null
- appointment_duration: null
- task_status: null
- allocation_type: null
- amount: "300.00"
- type: "deposit"
- meta: {
- type: "wallet"
- description: "Wallet has been Credited by transaction reference ch_3Mp4FwAMx49Z5ivs3Gq2mc6R"
- payment_option: "Stripe"
- transaction_id: "ch_3Mp4FwAMx49Z5ivs3Gq2mc6R"
- transaction_type: "wallet_topup"
} - dr: null
- cr: null
- created_at: "2023-03-24T06:37:45.000000Z"
- location: null
- tasktype: null
- order: null
}
] - first_page_url: "{{Url}}/api/agent/transaction/details/141?page=1"
- from: 1
- last_page: 1
- last_page_url: "{{Url}}/api/agent/transaction/details/141?page=1"
- next_page_url: null
- path: "{{Url}}/api/agent/transaction/details/141"
- per_page: "50"
- prev_page_url: null
- to: 4
- total: 4
} - totalCashCollected: 370
}
Still stuck? How can we help?
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.