Skip to main content

Export Sales

export sale

This endpoint retrieves the sales of a shop in a period in a json format

GET ledger/export-sales/json?shop=<shop_uuid>&start=<start_date>&end=<end_date>

Authentication

  • add in the header
Authorization : Basic <encoded_username_password_string>

kenzup will encode a username and a password which will be securely transmitted/communicated to the partner. eg Authorization : "Basic aGFja2VyOnRyeWluZ3RvZGVjb2Rl"

Request Parameters:

ParameterTypeDescription
shopstringused for specifying the uuid of the shop
startstringused for specifying the starting date of the sales in the format YYYY-MM-DD
endstringused for specifying the ending date of the sales in the format YYYY-MM-DD

Sample Request:

    https://app.kenzup.com/api/v1/ledger/export-sales/json?shop=<shop_uuid>&start=<start_date>&end=<end_date>

"shop_uuid": b5f6e9e3-6848-49cd-bcc0-726cbe99bf68,
"start_date_": 2023-08-27,
"end_date": 2023-08-30

Response Parameters:

ParameterTypeDescription
earn_burnstringthe type of sale
amountstringthe amount earned by customer of the sale depending on the sale type
sale_amountstringthe original amount of the sale
payment_typestringthe payment type used eg card, out of app, points
points_pending_approvalbooleanif customer has points from the sale that must be manually assigned to him
shop_commercial_namestringname of shop
shop_idstringuuid of the shop
typestringtype of the shop
brandstringbrand of the shop
order_idstringthe order id of the sale
terminal_idstringthe id of the terminale used for the sale
agent_idstringid of the agent who proceesed the sale
sale_timestampstringtime the sale was created
mobile_numberstringmobile_number of customer who did the sale

Sample Response:

[{
"earn_burn": "earn",
"amount": 0.9,
"sale_amount": 100.0,
"payment_type": "out_of_app",
"points_pending_approval": false,
"shop_commercial_name": "SOUK SEBT",
"shop_id": "2157d5d9-103e-4947-a5e1-dd605e5e245b",
"type": "auto",
"brand": "Afriquia",
"order_id": "b06ed2dc-0683-4f6b-b763-e1c3e8ad5c80",
"terminal_id": "c36051db-dcfa-4eb1-a109-3ecb2575ebf0",
"agent_id": null,
"sale_timestamp": "2022-01-18T11:33:52.998214+00:00",
"mobile_number": "+212620481025"
}]