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

      user_registration

      POST
      /api/auth/registration/
      This endpoint allows users to register with the application. The request should be sent as an HTTP POST to the specified URL. The request body should be of form-data type and include the following parameters:
      first_name (text): User first name
      last_name (text): User last name
      bdate (text): User birth date
      phone (text): User phone
      email (text): User email
      password (text): User password
      address (text): User address
      roll (text):
      type (text): User for 1 / Business for 2
      bname (text): Business name
      bemail (text): Business email
      bpincode (text): Business pin code
      bcity (text): Business city
      bstate (text): Business state
      blogo (text): Business logo
      bpocname (text):
      category (text): Business categories
      bmobile (text): Business mobile
      referral_id (text): Business referrers
      The response to the request will have a status code of 200 and a content type of application/json. The response body will include the following fields:
      status (boolean): Indicates the status of the response
      response (integer): Response code
      message (string): Additional message, if any
      data (integer): Additional data, if any

      Request

      Authorization
      Add parameter in header
      Example:
      X-Token: ********************
      Header Params
      marchant-id
      string 
      required
      Example:
      BIZ12354124
      Body Params multipart/form-data
      first_name
      string 
      required
      User first name (required)
      Example:
      Sam
      last_name
      string 
      required
      User last name (required)
      Example:
      Menon
      bdate
      string 
      required
      User birth date (required)
      Example:
      25-10-1990
      phone
      string 
      required
      User phone (required)
      Example:
      9856024358
      email
      string 
      required
      User email (required)
      Example:
      sam@example.com
      password
      string 
      required
      User password (required)
      Example:
      login_pass
      address
      string 
      required
      User address (required)
      Example:
      abc address, india
      roll
      string 
      required
      this is for admin (can't vhange)
      Example:
      1
      type
      string 
      required
      User for 1 / Business for 2
      Example:
      2
      bname
      string 
      required
      Business name
      Example:
      Sam business
      bemail
      string 
      required
      Business email
      Example:
      sb@gmail.com
      bpincode
      string 
      required
      Business pin code
      Example:
      411039
      bcity
      string 
      required
      Business city
      Example:
      Pune
      bstate
      string 
      required
      Business state
      Example:
      Maharashtra
      blogo
      string 
      required
      Business logo
      bpocname
      string 
      required
      optional
      category
      string 
      required
      Business categories
      Example:
      Software Company
      bmobile
      string 
      required
      Business mobile
      Example:
      9856024358
      referral_id
      string 
      required
      Business reffers (optional)

      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/auth/registration/' \
      --header 'marchant-id: BIZ12354124' \
      --form 'first_name="Sam"' \
      --form 'last_name="Menon"' \
      --form 'bdate="25-10-1990"' \
      --form 'phone="9856024358"' \
      --form 'email="sam@example.com"' \
      --form 'password="login_pass"' \
      --form 'address="abc address, india"' \
      --form 'roll="1"' \
      --form 'type="2"' \
      --form 'bname="Sam business"' \
      --form 'bemail="sb@gmail.com"' \
      --form 'bpincode="411039"' \
      --form 'bcity="Pune"' \
      --form 'bstate="Maharashtra"' \
      --form 'blogo=""' \
      --form 'bpocname=""' \
      --form 'category="Software Company"' \
      --form 'bmobile="9856024358"' \
      --form 'referral_id=""'

      Responses

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