Jump to content
[[Template core/front/profile/profileHeader is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
Reputation
0
About YUIKJOO
  • Rank
    Observer
    Observer
Personal Information
  • Business: Fashion Boutique
  1. Here's my applescript. tell application "Finder" set fullname to name of (selection as alias) set AppleScript's text item delimiters to {"_"} set Cname to first text item of fullname set Cmobile to second text item of fullname set Ccustomer to second text item of fullname display dialog ("์ด๋ฆ„: " & Cname & " ์ „ํ™”๋ฒˆํ˜ธ: " & Cmobile & " ๊ณ ๊ฐ๋ฒˆํ˜ธ: " & Ccustomer) do shell script "Cname=" & Cname & " Cmobile=" & Cmobile & " Ccustomer=" & Ccustomer & "; curl --location --request POST 'https://api.loyverse.com/v1.0/customers' --header 'Content-Type: application/json;charset=UTF-8' --header 'Authorization: Bearer d911043####################' --header 'Cookie: AWSALB=327XFY8AKfJFItTfErSMIf2R+cKJfgQeedICFa0WH5yC6qVfsZL5Rhxb+S2DBmdx0lmLIBquXdSVrB0yfMMQ00z6tH9imVXEzF6VZ8a993Kze1AkeH9grq######; AWSALBCORS=327XFY8AKfJFItTfErSMIf2R+cKJfgQeedICFa0WH5yC6qVfsZL5Rhxb+S2DBmdx0lmLIBquXdSVrB0yfMMQ00z6tH9imVXEzF6VZ8a993Kze1AkeH9grq######' --data-raw '{ \"name\": '$Cname', \"phone_number\": '$Cmobile', \"customer_code\": '$Ccustomer', \"note\": \"\"}'" --do shell script "Cname=" & Cname & " Cmobile=" & Cmobile & " Ccustomer=" & Ccustomer & "; echo $Cname $Cmobile $Ccustomer" end tell Cname is ํ™๊ธธ๋™ Cmobile is 01000000000 Ccustomer is 01000000000 By doing this, I can register customers to loyverse from Finder by based on filename. But it gets error regarding""{\"errors\":[{\"code\":\"BAD_REQUEST\",\"details\":\"Invalid UTF-8 start byte 0x84 (line 1 character 16)\"}]}"" When I echo it to see if variable works, it shows find. Where should I fix?
  2. ์ถ”๊ฐ€ ๊ธฐ์ข… ์—…๋ฐ์ดํŠธ ์˜ˆ์ •์ด ์žˆ๋‚˜์š”?
  3. I am trying to test if it works that add customer through API with postman. I've already set base url and token. But it gets error. I don't know why body has filled with random contents in Postman. Where should I look into?

Loyverse Point of Sale

ย 

ย 

ย 

ย 

×
×
  • Create New...