⚡Add Sale
This endpoint allows you to add a new sale record.
Endpoint
POST
https://api.keepup.store/v2.0/sales/add
Headers
Authorization: Bearer API_KEY
Body Parameters
customer_name date | optional | Customer's full name. |
phone_number string | optional | Customer's phone number. |
customer_email string | optional | Customer's email address. |
items json | required | List of items being sold in JSON format. Example: |
fulfillment_type string | optional | Type of fulfillment |
location_name string | optional | Location name for the sale. |
location string | optional | Detailed address for delivery. |
lat string | optional | Latitude for delivery location. |
lng string | optional | Longitude for delivery location. |
fulfillment_cost string | optional | Cost associated with the fulfillment method. |
discount_type string | optional | Type of discount |
discount_amount string | optional | Amount of discount given. |
tax_profile string | optional | Tax profile ID applicable to the sale. |
note string | optional | Any additional notes about the sale. |
issue_date string | optional | Date the sale was issued |
due_date string | optional | Date by which the sale should be settled |
payment_type string | optional | Type of payment received. |
amount_received string | optional | Amount received for the sale. |
alert_customer string | optional | Whether to alert the customer ( |
sale_type string | optional | Type of sale document |
sale_type
is set automatically when amount_received
is more than 0 (zero)
. To learn more checkout the sale cycle.
Sample Requests
Sample Response
Last updated