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

      make_order

      POST
      /api/orders/makeorder/

      Make Order#

      This endpoint allows the client to create a new order.

      Request Body#

      orderdata (object)
      order_name (string): Name of the order.
      bizid (string, required): Business ID.
      society_id (string, required): Society ID.
      service_charge (string, optional): Service charge for the order.
      delivery_charge (string, optional): Delivery charge for the order.
      userid (string, required): User ID.
      order_status (string, optional): Status of the order.
      orderitems (array)
      item_id (string, required): ID of the item.
      item_price (string, required): Price of the item.
      item_name (string, required): Name of the item.
      item_qty (string, required): Quantity of the item.

      Response (200 - OK)#

      The response will be a JSON object with the following schema:
      {
        "type": "object",
        "properties": {
          "status": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "orderid": {
                "type": "string"
              }
            }
          }
        }
      }
      

      Request

      Authorization
      Add parameter in header
      Example:
      X-Token: ********************
      Header Params
      marchant-id
      string 
      required
      Example:
      BIZ12354124
      Body Params application/json
      orderdata
      object 
      required
      order_name
      string 
      required
      bizid
      string 
      required
      society_id
      string 
      required
      service_charge
      string 
      required
      delivery_charge
      string 
      required
      userid
      string 
      required
      order_status
      string 
      required
      orderitems
      array [object {4}] 
      required
      item_id
      string 
      required
      item_price
      string 
      required
      item_name
      string 
      required
      item_qty
      string 
      required
      Example
      {"orderdata":{"order_name":"xxx new order","bizid":"1","society_id":"3","service_charge":"0","delivery_charge":"0","userid":"1","order_status":"0"},"orderitems":[{"item_id":"13","item_price":"100","item_name":"Writing Pen","item_qty":"1"},{"item_id":"14","item_price":"300","item_name":"Note Book","item_qty":"3"}]}

      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 POST '/api/orders/makeorder/' \
      --header 'marchant-id: BIZ12354124' \
      --header 'Content-Type: application/json' \
      --data-raw '{"orderdata":{"order_name":"xxx new order","bizid":"1","society_id":"3","service_charge":"0","delivery_charge":"0","userid":"1","order_status":"0"},"orderitems":[{"item_id":"13","item_price":"100","item_name":"Writing Pen","item_qty":"1"},{"item_id":"14","item_price":"300","item_name":"Note Book","item_qty":"3"}]}'

      Responses

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