cURL
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>" }
Updates a sale based on their ID
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Sale update details
The sale ID to delete
Name of the sale
Email of the customer associated with the sale
Total amount earned from the sale
Commission rate for the sale
Sale updated successfully