Opportunity
Opportunity

Opportunity Endpoints

Opportunity endpoints allow you to create opportunities.

Opportunity Object

Property NameType
idinteger
namestring
amountinteger
close_datedate
enterprise_idinteger
user_idinteger
who_createdinteger
extra_fieldsarray
stateobject ( State )
statesarray ( State )
EXAMPLE
{
    "close_date": "2025-01-01T00:00:00",
    "enterprise_id": 23443,
    "user_id": 30,
    "name": "Contact Test_12-03-2025_9",
    "who_created": 30,
    "id": 11638,
    "state": {
        "id": 26614,
        "state": 1,
        "amount": "1000.00",
        "comment": null,
        "name": "Stop - 0%"
    },
    "amount": "1000.00",
    "states": [
        {
            "id": 26614,
            "state": 1,
            "amount": "1000.00",
            "comment": null,
            "name": "Stop - 0%"
        }
    ]
}

State Object

Property NameType
staterequired integer. You can find the state id here (opens in a new tab)
amountrequired integer
commentstring
EXAMPLE
{
    "state": 1,
    "amount": "1000.00",
    "comment": null,
}