Proposals - Add New Proposals
POST yourdomain.com/api/proposals
Header
json
| Field | Type | Description |
|---|---|---|
| Authorization | String |
Basic Access Authentication token. |
Parameter
json
| Field | Type | Description |
|---|---|---|
| subject | String |
Mandatory. Proposal Subject Name. |
| Related | string |
Mandatory. Proposal Related. Allowed values: |
| rel_id | Number |
Mandatory. Related ID. |
| proposal_to | string |
Mandatory. Lead / Customer name. |
| date | Date |
Mandatory. Proposal Start Date. |
| open_till | Date |
Optional. Proposal Open Till Date. |
| currency | string |
Mandatory. currency id. |
| discount_type | string |
Optional. Proposal Open Till Date. |
| status | string |
Optional. status id. |
| Assigned | string |
Optional. Assignee id. |
| string |
Mandatory. Email id. |
|
| newitems | Array |
Mandatory. New Items to be added. |
Success 200
json
| Field | Type | Description |
|---|---|---|
| status | Boolean |
Request status. |
| message | String |
Proposal add successful. |
Error 4xx
json
| Name | Type | Description |
|---|---|---|
| status | Boolean |
Request status. |
| message | String |
Proposal add fail. |
HTTP/1.1 200 OK
{
"status": true,
"message": "Proposal add successful."
}
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Proposal add fail."
}