Purchases
List of endpoints to place, fetch, update and cancel order.
The Purchases Object
Attributes
Attribute | Data type | Required | Description |
---|---|---|---|
actTotalFee | string | true | Unique identifier for the customer |
outOrderNo | integer | true | Unique identifier for the customer's order |
productList | array | true | The cart items |
storeId | string | true | the store id obtained from lipalater team |
Product List Attributes
Attribute | Data type | Required | Description |
---|---|---|---|
actTotalFee | integer | true | Total paid price of goods |
brand | string | true | The item brand |
price | integer | true | product price |
productLogo | string | true | Product logo |
productName | string | true | Product name |
productNo | string | true | Product id |
productNum | integer | true | product quantity |
saleprice | integer | true | Total sales price of goods |
skuDesc | string | true | The product description |
API request
POST {BASE_URL}/op/order/{memberId}/create
curl -i -X POST '{BASE_URL}/op/order/{memberId}/create' \
-H 'Authorization: Bearer <access_token>' \
-H 'Content-Type: application/json' \
-H 'Noncestr: <none>' \
-H 'Sign: <sign>' \
-H 'Timestamp: <timestamp>' \
-d '{
"actTotalFee": 0,
"outOrderNo": "",
"productList": [
{
"actTotalFee": 0,
"brand": "",
"price": 0,
"productLogo": "",
"productName": "",
"productNo": "",
"productNum": 0,
"salePrice": 0,
"skuDesc": ""
}
],
"storeId": ""
}'
Request object
{
"actTotalFee": 0,
"outOrderNo": "",
"productList": [
{
"actTotalFee": 0,
"brand": "",
"price": 0,
"productLogo": "",
"productName": "",
"productNo": "",
"productNum": 0,
"salePrice": 0,
"skuDesc": ""
}
],
"storeId": ""
}
JSON response
{
"apiVersion": "2.0",
"status": 201,
"order_id": "113",
"data": [
{
"interest_rate": 4.2,
"loan_duration": 12,
"facility_status": "pending_collection_customer",
"preferred_option": "pick_up",
"facility_plan": 0,
"created_at": "2020-11-25T07:55:27.364Z",
"updated_at": "2020-11-25T07:55:27.364Z",
"item_type": "other",
"item_brand": "36GB A Series Walkman Video MP3",
"item_code": "H0148VPS1T",
"store_name": "QUEENS MOBILE",
"item_value": 50000.0,
"delivery_option": "customer_store_pickup",
"item_description": "16GB A Series Walkman Video MP3",
"item_topup": 0.0,
"topup_ref": "",
"upfront_fees": 0.0,
"source": "sales-rep",
"accepted_terms": "accepted",
"id": "33ac6c2d-5b4e-47a8-b107-6d1f0e5cc73f",
"loan_application_detail_id": "28fcaa6e-6fd3-4caf-9db5-b39cdd8734b3",
"partner_store_id": "61d273cf-6584-4429-af01-7b4dd2ae9f78",
"loan_product_id": "e55e5ec9-13b1-4dbf-ac14-40b482c5d677"
},...
]
}
Get Repayment Schedule
params
Attribute | Data type | Required | Description |
---|---|---|---|
countryId | integer | true | the country id options ke=10001 |
orderNo | string | true | The order number |
loanProductId | integer | true | product id |
request
POST {BASE_URL}/op/order/calculateSchedule/
curl -i -X POST '{BASE_URL}/op/order/calculateSchedule/' \
-H 'Authorization: Bearer <access_token>' \
-H 'Content-Type: application/json' \
-H 'Noncestr: <none>' \
-H 'Sign: <sign>' \
-H 'Timestamp: <timestamp>'