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": "jsmith@example.com",
  "totalEarned": 123,
  "commissionRate": 123
}'
This response does not have an example.

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

Total amount earned from the sale

commissionRate
number

Commission rate for the sale

Response

Sale updated successfully