Ecommerce
Transaction

Transaction List

Get all transaction list, this route for specific transaction define by GET Method

http://ecom.coderorbit.com/public/api/admin/{{app_token}}/transaction
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}

### Result

{
    "trasactions": {
      "current_page": 2,
      "data": [
        {
          "id": 11,
          "unique_id": "3RrNS1x6jdslOIL",
          "order_id": "1688272740",
          "transaction_id": "8Pp7WIySGTkEZXj",
          "user_id": 14,
          "total_amount": 0,
          "debit": 0,
          "credit": 18,
          "payment_method": "Promo Code",
          "payment_id": "MS20",
          "extend_props": null,
          "description": null,
          "deleted_at": null,
          "created_at": "2023-07-02T04:39:00.000000Z",
          "updated_at": "2023-07-02T04:39:00.000000Z"
        }
      ],
      "first_page_url": "",
      "from": 2,
      "last_page": 12,
      "last_page_url": "",
      "links": [
        {
          "url": "",
          "label": "« Previous",
          "active": false
        },
        {
          "url": "",
          "label": "1",
          "active": false
        },
        {
          "url": "",
          "label": "2",
          "active": true
        },
        {
            ....
        }
        
      ],
      "next_page_url": "",
      "path": "",
      "per_page": 1,
      "prev_page_url": "",
      "to": 2,
      "total": 12
    }
  }

=== Query Parameters ===

limit_per_page = 1 // Default 15
page = 1 // number of page for pagination
data = all

Transaction Filter

Get all transaction list, this route for specific transaction define by POST Method

http://ecom.coderorbit.com/public/api/admin/{{app_token}}/transaction
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}
 
body:{
 
# All input field are optional so you will use for your requirement here is 2 type data. 1) is and condition. 2) or condition
  "and_order_id": "7050338801",
  "and_transaction_id": "9245550740",
  "and_payment_method": "Cash on delivery",
  "and_user_id": 14,
  "and_vendor_id": 1,
  "and_amount": 100,
  "and_transaction_date": "2023-07-31",
  "and_extend_props":{
    "contact": {
        "email": "majadul.dev@gmail.com2",
        "mobile": "01677270944"
      }
  },
 
  "and_between_transaction_date": ["2023-07-05 00:00:00","2023-07-05 23:59:59"],
  "and_between_order_id": ["7050338801", "..."],
  "and_between_transaction_id": ["9245550740", "..."],
  "and_between_payment_method": ["1", "3"],
  "and_between_user_id": ["1", ".."],
  "and_between_vendor_id": ["1", ".."],
  "and_between_amount": ["1", ".."],
 
 
 
  "or_order_id": "7050338801",
  "or_transaction_id": "9245550740",
  "or_payment_method": "Cash on delivery",
  "or_user_id": 14,
  "or_vendor_id": 1,
  "or_amount": 100,
  "or_transaction_date": "2023-07-31",
 
  "or_between_transaction_date": ["2023-07-05 00:00:00","2023-07-05 23:59:59"],
  "or_between_order_id": ["7050338801", "..."],
  "or_between_transaction_id": ["9245550740", "..."],
  "or_between_payment_method": ["1", "3"],
  "or_between_user_id": ["1", ".."],
  "or_between_vendor_id": ["1", ".."],
  "or_between_amount": ["1", ".."]
}

### Result

    {
    "trasactions": {
      "current_page": 2,
      "data": [
        {
          "id": 11,
          "unique_id": "3RrNS1x6jdslOIL",
          "order_id": "1688272740",
          "transaction_id": "8Pp7WIySGTkEZXj",
          "user_id": 14,
          "total_amount": 0,
          "debit": 0,
          "credit": 18,
          "payment_method": "Promo Code",
          "payment_id": "MS20",
          "extend_props": null,
          "description": null,
          "deleted_at": null,
          "created_at": "2023-07-02T04:39:00.000000Z",
          "updated_at": "2023-07-02T04:39:00.000000Z"
        }
      ],
      "first_page_url": "",
      "from": 2,
      "last_page": 12,
      "last_page_url": "2",
      "links": [
        {
          "url": "",
          "label": "« Previous",
          "active": false
        },
        {
          "url": "",
          "label": "1",
          "active": false
        },
        {
          "url": "",
          "label": "2",
          "active": true
        },
        {
          "url": "",
          "label": "3",
          "active": false
        },
        {
          "url": "",
          "label": "4",
          "active": false
        },
        {
          "url": "",
          "label": "Next »",
          "active": false
        }
      ],
      "next_page_url": "",
      "path": "",
      "per_page": 1,
      "prev_page_url": "",
      "to": 2,
      "total": 12
    }
  }
CODER ORBIT
Bangladesh Office:
Call: 01534-645492
11/C, House-01, Lane-10
Road-11, Dhaka 1216
Email: support@coderorbit.com
Others
Domain & Hosting
Course
Debug
Portfolio
FOLLOW US
SUBSCRIBE US
Subscribe
2018 - 2024 Copyright © Coder Orbit. All rights reserved.