This is a developer preview of Kubbos API. It's in beta, so it's subject to changes. If you need any of the "Coming soon" API services documented as soon as possible. Contact Us!

#opportunityState.list
#opportunityState.findById
#opportunityState.create
#opportunityState.update
#opportunityState.delete

opportunityState.list

Request

{
/* — search criteria (optional) — */
"opportunityStateDescription":""
}

Response

{
    "data":     {
        "result":         [
                        {
                "version": 1,
                "id": "33",
                "opportunityStateDescription": "Lanzamiento nueva version"
            },
                        {
				.....
			},
                        {
                "version": 0,
                "id": "11",
                "opportunityStateDescription": "Campaña marketing"
            }
        ],
        "total": 5
    },
    "success": true
}

opportunityState.findById

opportunityState.findById

Request

{
"id": "33"
}

Response

{
    "data":     {
        "version": 1,
        "id": "33",
        "opportunityStateDescription": "Lanzamiento nueva version"
    },
    "success": true
}

opportunityState.create

Request

{
"opportunityStateDescription": "Lanzamiento versión"
}

Response

{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "33",
    "success": true,
    "version": 0
}

opportunityState.update

Request

{
"opportunityStateDescription": "Lanzamiento nueva versión",
"id": "33",
"version": 0
}

Response

{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "33",
    "success": true,
    "version": 1
}

opportunityState.delete

Request

{
"id": "33",
"version": 1
}

Response

{
    "data":     {
        "errors": [],
        "messages": [        {
            "args": ["33"],
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "success": true
}
  • No labels