-
-
Save mojowen/bd0f6bad2c14191064f021be0242b567 to your computer and use it in GitHub Desktop.
Leads Reducer Actions and APi Calls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Leads Actions: | |
------------ | |
GetLeads (URL: /locations/:location_id/leads?filter=<active|archived>) | |
------------ | |
GetLead (URL: /locations/:location_id/leads/:lead_id) | |
------------ | |
UpdateLead (URL: /locations/:location_id/leads/:lead_id) | |
Accept (put) = | |
API payload: { new_status: "accept" } | |
API Response: The updated lead | |
Decline (put) = | |
API payload: { reason: "", new_status: "reject", other_reason: "" } | |
API Response: The updated lead | |
Archive (put) = | |
API payload: { archived: true } | |
API Response: The updated lead |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment