sangraha
    sangraha
    • 🐶 Walk through Apidog
    • orders_data
      GET
    • login_user
      POST
    • user_registration
      POST
    • make_order
      POST
    • single_order_data
      GET
    • change_order_status
      POST
    • get_order_cart
      GET
    • get_all_societies
      GET
    • add_society_to_business
      POST
    • remove_society_from_business
      POST
    • subscription_status
      GET
    • get_indian_states
      GET
    • get_cities_by_state_id
      GET
    • get_society_member
      GET
    • get_all_society_members
      GET
    • society_register_member
      POST
    • society_edit_member
      POST
    • remove_society_member
      POST
    • society_suggestion
      POST

      get_order_cart

      GET
      /api/orders/orderbycart/

      Get Orders by Cart#

      This endpoint retrieves orders based on the cart with the specified parameters.

      Request#

      Endpoint#

      GET api/orders/orderbycart/#

      Query Parameters#

      societyid (integer) - The ID of the society.
      bizid (integer) - The ID of the business.
      limit (integer) - The maximum number of orders to retrieve.
      offset (integer) - The number of orders to skip before starting to return results.
      order (string) - The order in which the results should be returned (e.g., "asc" or "desc").

      Response#

      Status#

      200 - OK

      Headers#

      Content-Type: application/json

      Body#

      {
          "status": true,
          "message": "",
          "total": 0,
          "data": {
              "order": [
                  {
                      "id": "",
                      "orderid": "",
                      "item_name": "",
                      "item_id": "",
                      "societyid": "",
                      "cityname": "",
                      "statename": "",
                      "useraddress": null,
                      "userphone": null,
                      "username": null,
                      "useremail": null,
                      "societyaddress": "",
                      "ordertime": "",
                      "status": ""
                  }
              ]
          }
      }
      
      The response contains a boolean status, an optional message, the total number of orders, and an array of order objects with their respective details.

      Request

      Authorization
      Add parameter in header
      Example:
      X-Token: ********************
      Query Params
      societyid
      string 
      required
      Example:
      6
      bizid
      string 
      required
      business id (required)
      Example:
      1
      limit
      string 
      required
      rows limit (optional)
      offset
      string 
      required
      rows offset (optional)
      order
      string 
      required
      order (desc or asc) (optional)
      Example:
      desc
      Header Params
      marchant-id
      string 
      required
      Example:
      BIZ12354124
      Body Params application/json
      object {0}
      Example
      {}

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET '/api/orders/orderbycart/?societyid=6&bizid=1&limit=&offset=&order=desc' \
      --header 'marchant-id: BIZ12354124' \
      --header 'Content-Type: application/json' \
      --data-raw '{}'

      Responses

      🟢200Success
      application/json
      Body
      object {0}
      Example
      {}
      Previous
      change_order_status
      Next
      get_all_societies
      Built with