Skip to main content
PUT
/
sales
Update a sale by ID
curl --request PUT \
  --url https://www.pushlapgrowth.com/api/v1/sales \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "saleId": 123,
  "name": "<string>",
  "email": "[email protected]",
  "totalEarned": 123,
  "commissionRate": 123
}
'
{
  "error": 123,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Sale update details

saleId
integer
required

The sale ID to delete

name
string

Name of the sale

email
string<email>

Email of the customer associated with the sale

totalEarned
number<float>

Total amount earned from the sale

commissionRate
number<float>

Commission rate for the sale

Response

Sale updated successfully