Plazbot
  1. Opportunity
Plazbot
  • Plazbot Developer Hub
  • Automation
    • Update Agente IA Prompt
      POST
  • Contact
    • Get Contacts
      GET
    • Create Contact
      POST
    • Update Contact
      PUT
    • Get Contact By Id
      GET
    • Get Contact By Email
      GET
    • Get Contact By Phone
      GET
    • Update Activities to Contact
      POST
  • Message
    • Send Message Whatsapp
      POST
    • List Conversation
      GET
    • Send Conversation
      POST
  • Opportunity
    • Get Opportunity
      GET
    • Create Opportunity
      POST
    • Get Opportunity by Id
      GET
    • Delete Opportunity
      DELETE
    • Create Activity for Opportunity
      POST
  • Task
    • Create Task
      POST
    • Get Task By Id
      GET
    • Delete Task
      DELETE
  • User
    • Create User
      POST
    • Get Information by Email
      GET
    • Login Access
      POST
    • Send Reset Password
      POST
    • Update Password
      POST
  • Workspace
    • Get Workspace by ID
  1. Opportunity

Create Opportunity

POST
/api/opportunity
opportunity
Servicio de creación de una oportunidad.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.plazbot.com/api/opportunity' \
--header 'x-workspace-id;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "workspaceId": "string",
    "name": "string",
    "description": "string",
    "assignedComercialId": "string",
    "amount": 1200.5
}'
Response Response Example
{
  "success": true,
  "code": 200,
  "errorCode": null,
  "message": "Opportunity successfully created.",
  "data": {
    "id": "string",
    "opportunity": {
      "id": "string",
      "opportCode": "string",
      "opportStatus": 1,
      "winLossStatus": 0,
      "winLossDate": null,
      "finalAmount": 0,
      "creationDate": "2025-04-08T03:52:53.3774876Z",
      "creationTypeId": 1,
      "updatedDate": null,
      "deletionDate": null,
      "userDeletion": null,
      "statusId": 1,
      "files": [],
      "orderInCards": 1,
      "orderInCardsLastUpdated": "2025-04-08T03:52:54.663308Z",
      "activities": [],
      "segmentationId": null,
      "workspaceId": "string",
      "name": "string",
      "description": "string",
      "amount": 0,
      "userCreation": "string",
      "contactId": "string",
      "expirationDate": null,
      "assignedAgentId": null,
      "stageId": null
    }
  }
}

Request

Header Params
x-workspace-id
string 
required
Body Params application/json
workspaceId
string 
required
WorkspaceID
name
string 
required
Nombre de la oportunidad.
description
string 
required
Descripcion de la oportunidad
assignedComercialId
string 
optional
Comercial Id asociado a la oportunidad. Esta informacion se puede sacar de la api de User: GetInformationByEmail
amount
number 
required
Monto de la oportunidad
Examples

Responses

🟢200OK
application/json
OK
Body
success
boolean 
required
code
integer 
required
errorCode
null 
required
message
string 
required
data
object 
required
id
string 
required
opportunity
object 
required
Previous
Get Opportunity
Next
Get Opportunity by Id
Built with