E-State
  1. Discounts
E-State
  • Prepare Api
  • E-state
    • Client
      • Attention Requests
        • index
        • store
        • show
      • Auth
        • profile
        • logout
        • register
        • login
      • Units
        • index
        • show
        • units client
      • Sales
        • index
        • show
    • System
      • Projects
        • index
        • show
      • Units
        • index
        • show units by project
        • show
      • Sales
        • SaleRefund
          • index
          • show
        • index
        • show
      • Attention Requests
        • index
        • show
      • Clients
        • index
        • show
      • Discounts
        • index
          GET
        • show
          GET
      • Lands
        • owners
        • index
        • show
        • show land owner
      • marketings
        • campaign-types
        • show campaign type
        • campaign-goals
        • show campaign goals
        • index
        • show
      • Purchase Orders
        • index
        • show
        • raise-budgets
        • show raise-budgets
      • Purchase Requests
        • index
        • show
      • Rental Requests
        • rental-requests
        • show rental-requests
  1. Discounts

show

Developing
GET
http://estate.test/api/v1{{url}}/system/discounts/1
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://estate.test/api/v1/system/discounts/1' \
--header 'x-secret-key: FkSF0PDbMOgLmLlJeMDSDzBFIl5dloAC' \
--header 'x-api-key;'
Response Response Example
{
    "status": "true",
    "message": "Operation completed successfully",
    "data": {
        "id": 1,
        "unit_id": 5,
        "client_id": 4,
        "status_updated_by_user_id": 3,
        "project_id": 4,
        "building_id": 9,
        "name": "Mr. Cody Morar DDS",
        "type": "ullamco aute ut consequat Lorem",
        "max_value": "cillum",
        "name_text": "Delia Senger",
        "value_type_icon": "https://avatars.githubusercontent.com/u/22289169",
        "value_type": "et Ut",
        "value": "anim est",
        "start_date": "2024-10-30T20:56:05.530Z",
        "end_date": "2025-02-05T05:58:24.320Z",
        "status": "consequat eu ut esse nostrud",
        "status_updated_at": "2024-08-17T09:28:09.669Z",
        "target_type": "id officia labore",
        "project": {
            "id": 3,
            "name": "Tasty Rubber Chicken",
            "code": "s",
            "status": "coepi",
            "type": "conservo",
            "image": "https://some-hexagon.net",
            "start_work_date": "2025-09-19T02:21:50.278Z",
            "end_work_date": "2025-04-05T21:47:46.923Z"
        },
        "building": {
            "id": 9,
            "name": "Frederick Reynolds-Jacobs",
            "project_id": 8,
            "type": "W",
            "land_area": "armarium",
            "tax_value": 4,
            "price_after_tax": 845
        },
        "client": {
            "id": 4,
            "name": "Candice Nitzsche",
            "phone": "752.813.1162",
            "email": "Eldora.Senger32@yahoo.com"
        },
        "unit": {
            "id": 6,
            "building_id": 5,
            "project_id": 1,
            "is_for_rent": false,
            "name": "Dixie Wolf",
            "status": "magna",
            "floor": "labore in commodo ex dolore",
            "room_count": 3,
            "bathroom_count": 0
        },
        "statusUpdatedByUser": {
            "id": 1,
            "name": "Heather Jakubowski",
            "email": "Cathrine.Thiel@hotmail.com",
            "phone": 534.998,
            "job_title": "/:UEoP8z*s",
            "id_number": 1
        },
        "projects_count": 8,
        "projects": [
            {
                "id": 4,
                "name": "Refined Fresh Chair",
                "code": "A",
                "status": "coniuratio",
                "type": "pariatur",
                "image": "https://polished-equal.net/",
                "start_work_date": "2025-11-14T04:37:49.425Z",
                "end_work_date": "2025-06-21T05:40:07.148Z"
            }
        ]
    }
}

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Header Params
x-api-key
string 
optional
Example:
{{x-api-key}}
x-secret-key
string 
optional
Example:
{{x-secret-key}}

Responses

🟢200Success
application/json
Body
status
string 
required
status
message
string 
required
data
object (Discount ) 
required
id
number 
required
unit_id
number 
required
client_id
number 
required
status_updated_by_user_id
number 
required
project_id
number 
required
building_id
number 
required
name
string 
required
type
string 
required
max_value
string 
required
name_text
string 
required
value_type_icon
string 
required
value_type
string 
required
value
string 
required
start_date
string 
required
end_date
string 
required
status
string 
required
status_updated_at
string 
required
target_type
string 
required
project
object (Project Simple) 
required
building
object (Building Simple) 
required
client
object (Client Simple) 
required
unit
object (Unit Simple) 
required
statusUpdatedByUser
object (User Simple) 
required
projects_count
number 
required
projects
array[object (Project Simple) {8}] 
required
Modified at 2025-04-10 14:42:37
Previous
index
Next
owners
Built with