Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide API to present information for a specific lead by id #464

Closed
cbryanreapit opened this issue Feb 28, 2020 · 0 comments
Closed

Provide API to present information for a specific lead by id #464

cbryanreapit opened this issue Feb 28, 2020 · 0 comments
Assignees
Labels
back-end Relates to back end issues feature New feature or request
Milestone

Comments

@cbryanreapit
Copy link
Contributor

cbryanreapit commented Feb 28, 2020

Overview

This endpoint will be responsible for presenting information for a singular leads.

Location

GET /enquiries/{id} (protected: yes)

Request

Parameters

  • id - string - provided by route

Response

Success

200 OK

{
      "id": 10001,
      "created": "2018-02-12T09:45:01.0000000Z",
      "modified": "2019-06-23T12:30:12.0000000Z",
      "type": "salesApplicant/lettingsApplicant/salesValuation/lettingsValuation", 
      "status" : "added" [pending()/added(A)/rejected(R)/alreadyonSystem(D)/duplicateEnquiry(M,N)/spam(S)]
      "message": "I would like to view this property",
      "propertyIds": [ "OXF200001" ],
      "officeId" : "OXF"
      "position" : "nothingToSell" [notSet(),renting(RE),instructedThisAgent(SU),instructedOtherAgent(OM),privateSale(PV),notOnMarket(OF)]
      "title": "Mr",
      "forename": "John",
      "surname": "Smith",
      "marketingConsent": "grant",
      "sourceName": "My Proptech",
      "homePhone": "01234 567890",
      "workPhone": null,
      "mobilePhone": "07890 123456",
      "email": "example@email.com",
      "address": {
        "buildingName": "",
        "buildingNumber": "15",
        "line1": "Example street",
        "line2": "Solihull",
        "line3": "West Midlands",
        "line4": "",
        "postcode": "B91 2XX",
        "countryId": "GB"
      },
}

Failure

400 Bad Request
401 Authorised
403 Forbidden
404 Not Found

@cbryanreapit cbryanreapit added feature New feature or request back-end Relates to back end issues labels Feb 28, 2020
@cbryanreapit cbryanreapit added this to the Leads API milestone Feb 28, 2020
@cbryanreapit cbryanreapit added this to Backlog in Front end Kanban via automation Feb 28, 2020
@cbryanreapit cbryanreapit moved this from Backlog to Ready for dev in Front end Kanban Feb 28, 2020
@plittlewood-rpt plittlewood-rpt moved this from Ready for dev to Backlog in Front end Kanban Mar 2, 2020
@plittlewood-rpt plittlewood-rpt moved this from Backlog to Ready for dev in Front end Kanban Mar 2, 2020
@RWilcox-Reapit RWilcox-Reapit moved this from Ready for dev to In progress in Front end Kanban Mar 11, 2020
@RWilcox-Reapit RWilcox-Reapit self-assigned this Mar 11, 2020
@RWilcox-Reapit RWilcox-Reapit moved this from In progress to Review in progress in Front end Kanban Mar 12, 2020
@RWilcox-Reapit RWilcox-Reapit moved this from Review in progress to Done in Front end Kanban Mar 12, 2020
Front end Kanban automation moved this from Done to QA Mar 20, 2020
@cbryanreapit cbryanreapit moved this from QA to Done in Front end Kanban Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Relates to back end issues feature New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants