Skip to main content
POST
Revert deal to draft

Authorizations

nonce
string
query
required

WordPress AJAX nonce — either sagescreen_frontend_nonce or sagescreen_sales_calc depending on the endpoint (see each endpoint description). Sent as a form field in the POST body.

Body

application/x-www-form-urlencoded
nonce
string
required
Example:

"abc123def456"

action
string
required
Allowed value: "sagescreen_revert_deal_to_draft"
deal_id
integer
required
Example:

1042

reason
string

Optional reason for reverting

Example:

"Customer requested pricing changes"

Response

Deal reverted to draft

success
boolean
data
object