@include('pages.palace_api._css')

About Palace API

        API Endpoint

        https://test-bo.lakuemas.com/api/
            

Lakuemas Palace API will capture sales data on Buys jewellery Pays using LEI EDC.

To use this API, you need an API key using basic auth (username:password). Please contact us at nanda@lakuemas.com to get your own API key.

Parameters API


# Here is a PHP curl example

$dataArray = [
    "store_code" => "P07",
    "store_name" => "The Palace Bekasi",
    "plu" => "D20015227",
    "customer_handphone" => "081256579545",
    "customer_name" => "JOICE AGNES",
    "customer_email" => "LISAPINATACIU@GMAIL.COM",
    "tgp" => "850909.09",
    "value" => "3276000.00",
    "weight" => "3.85",
    "rate" => "75.5",
    "so_no" => "SO/P/1/011/22/03/0265",
    "date" => "2022-06-30",
    "payment_method" => "DEBIT",
    "payment_obj_data" => [
        "edc" => "BCA LE",
        "bank" => "BCA"
    ],
];
$client = new \GuzzleHttp\Client(['base_uri' => 'http://backoffice.lakuemas.com']);
$response = $client->post('/api/palace/store_sales_data', [
    'auth' => ['admin', 'admin123'],
    'body' => json_encode($dataArray, true),
    'headers' => [
        'Content-Type' => 'application/json',
        'Accept' => 'application/json',
    ]
    ]);
return $response->getBody();
                

To capture sales order data you need to make route POST following url :
https://test-bo.lakuemas/api/palace/store_sales_data POST



Result example :
{
  data: {
    "store_code": "P06",
    "store_name": "The Palace Bekasi",
    "plu": "D20015227",
    "customer_handphone": "081256579545",
    "customer_name": "JOICE AGNES",
    "customer_email": "LISAPINATACIU@GMAIL.COM",
    "tgp": "850909.09",
    "value": "3276000.00",
    "weight": "3.85",
    "rate": "75.5",
    "so_no": "SO/P/1/011/22/03/0265",
    "date": "31/03/2022",
    "payment_method": "DEBIT",
    "payment_obj_data : {
        "edc": "BCA LE",
        "bank": "BCA"
    }
  },
  msg: "Sales Data has been stored!",
  status_code: 201,
  success: true,
  uri: ''
}
                

FIELD PARAMETER

Field Type Description
store_code String A store code example: "P06".
store_name String A store name example: "The Palace Bekasi"
plu String A Plu code example: "D20015227"
customer_handphone String A number handphone of customer example: "081256579545"
customer_name String A name of Customer example: "JOICE AGNES"
tgp decimal ,2 A capital price example: "850909.09"
value decimal ,2 a value of jewelry example: "3276000.00"
weight decimal ,2 a weight of jewelry/example: "3.85"
rate decimal ,2 a rate of jewelry/example: "75.5"
so_no string a sales order number example: "SO/P/1/011/22/03/0265"
date date a date of transaction example: "31/03/2022"
payment_method string a payment method of transaction example: "DEBIT"
payment_obj_data json/string a payment method object data example: { "edc": "BCA LE", "bank": "BCA" }
@include('pages.palace_api._js')