Skip to main content
POST
Load deal for editing

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_load_deal"
deal_id
integer
required

WordPress post ID of the deal

Example:

1042

Response

Deal data returned

success
boolean
data
object

Flat object of all deal meta fields as returned by get_deal_data(). Keys match the meta field names in the Deal schema.