{"status": 200,"message": "List splash pages","data": []}
{"status_code": 401,"message": "access_token not found! Please contact Nextify at [email protected] for help"}
{"status": 404,"status_code": 404,"message": "pos_id does not exist!"}
Tên | Type_page |
Trang đăng ký | register |
Trang chào mặc định | default |
Chúc mừng sinh nhật | birthday |
Trang chào theo lượt đến | loyal |
Trang chào theo tag | tag |
Trang chào theo khung giờ | hour |
Trang chào theo khoảng ngày | promotion |
Trang khảo sát | survey |
curl -X GET \'{{ base_url }}/splash_pages?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}'
{"status": 200,"status_code": 200,"message": "Success!"}
{"status": 400,"status_code": 400,"message": "Wrong data!"}
{"status_code": 401,"message": "access_token not found! Please contact Nextify at [email protected] for help"}
{"status": 404,"status_code": 404,"message": "pos_id does not exist!"}
curl -X POST \'{{ base_url }}/splash_pages/default?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F photo=@{{ photo_path }} \-F content={{ content }} \-F title={{ title }} \-F auto_popup=https://www.facebook.com/nextifyvn/ \-F welcome_text=Hello \-F connect_button=connect \-F ignore_register=False
hotspot_method ( Hình thức hotspot ) | giải thích |
profile_code | |
default | |
{"status": 200,"status_code": 200,"message": "Success!"}
{"status": 400,"status_code": 400,"message": "Wrong data!"}
{"status_code": 401,"message": "access_token not found! Please contact Nextify at [email protected] for help"}
{"status": 404,"status_code": 404,"message": "pos_id does not exist!"}
curl -X POST \'{{ base_url }}/splash_pages/register?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: application/json' \-d '{"name": "False","name_require": "False","email": "False","email_require": "False","birthday": "False","birthday_require": "False","year_birthday": "False","year_birthday_require": "False","gender": "False","gender_require": "False","welcome_text": "HELLO","birthday_text": "Moi ban Nhap Vao Ngay sinh","welcome_button": "Connect","otp": "True"}'
curl -X GET \'{{ base_url }}/splash_pages/{{ type_page }}?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}'
Loại trang chào | type_page |
Trang chào theo khoảng ngày | promotion |
Trang chào theo giờ | hour |
Trang chào khảo sát | survey |
Trang chào sinh nhật | birthday |
Trang chào theo lượt đến | loyal |
Trng chào theo tag | tag |
Trang chào mặc định | default |
Trang đăng ký | register |
Trang chào theo ngày trong tuần | weekday |
{"status": 200,"message": [{"message": "Detele success!","card_id": "5d960c99a066db1615fbbf40","isError": false},{"message": "Card does not exist!","card_id": "5d960c99a066db1615fbbf3e","isError": true}]}
{"status": 400,"message": "key must be card_id"}
{"status_code": "404","message": "pos_id does not exist!"}
curl -X DELETE \'{{ base_url }}/splash_pages/default?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ card_id }}' \-H 'Content-Type: multipart/form-data' \-F card_id={{ card_id }}
curl -X PUT \'{{ base_url }}/splash_pages/default/card?pos_id={{ pos_id }}&card_id={{ card_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F photo=@{{ photo_path }} \-F content={{ content }} \-F title={{ title }}
{"status": 200,"message": "Success!"}
{"status": 400,"message": "invalid period!"}
{"status_code": "401","message": "access_token not found! Please contact Nextify at [email protected] for help"}
curl -X POST \'{{ base_url }}/splash_pages/promotion?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F auto_popup=https://www.facebook.com/nextifyvn/ \-F photo=@{{ photo_path }} \-F title={{ title }} \-F content={{ content }} \-F date_from=04-10-2019 \-F date_to=05-10-2019 \-F active=False
{"status": 200,"message": "Success!"}
{"status": 400,"message": "Tags must be List, Please contact Nextify at [email protected] for help!"}
curl -X POST \'{{ base_url }}/splash_pages/tag?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F photo=@{{ photo_path }} \-F tags={{ tag_id }} \-F tags={{ tag_id }} \-F title={{ title }} \-F content={{ content }} \-F auto_popup={{ auto_popup }}
{"status": 200,"message": "Success!"}
{"status": 400,"message": "loyal_count, loyal_count_max is wrong!"}
curl -X POST \'{{ base_url }}/splash_pages/loyal?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F photo=@{{ photo_path }} \-F title={{ title }} \-F content={{ content }} \-F loyal_count=1 \-F auto_popup=https://www.facebook.com/nextifyvn/ \-F active=true \-F loyal_count_max=10 \-F visit_by=shop
{"status": 200,"message": "Success!"}
{"status": 400,"message": "weekday is required, you can choice in: 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'"}
curl -X POST \'{{ base_url }}/splash_pages/weekday?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F photo=@{{ photo_path }} \-F title={{ title }} \-F 'content=Bạn nghĩ gì về dịch vụ của chúng tôi' \-F auto_popup=https://www.facebook.com/nextifyvn/ \-F active=true \-F weekday=monday
{"status": 200,"message": "Success!"}
{"status": 400,"message": "invalid period!"}
curl -X POST \'{{ base_url }}/splash_pages/hour?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F photo=@{{ photo_path }} \-F title={{ title }} \-F 'content=Bạn nghĩ gì về dịch vụ của chúng tôi' \-F hour_to=13:00 \-F auto_popup=https://www.facebook.com/nextifyvn/ \-F active=true \-F hour_from=11:00
{"status": 200,"message": "success","data": {}}
curl -X POST \'{{ base_url }}/splash_pages/birthday?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F photo=@{{ photo_path }} \-F title={{ title }} \-F 'content={{ content }}' \-F auto_popup={{ auto_popup }} \-F active=true
{"status": 200,"message": "Success!"}
Loại khảo sát | survey_type | Mô tả |
Chọn nhiều đáp án | multi_select | Bắt buộc phải có trường answer |
Chọn một đáp án | one_select | Bắt buộc phải có trường answer |
Chấm điểm | rating | Bắt buộc phải có trường min_point, max_point |
# survey_type: ratingcurl -X POST \'{{ base_url }}/splash_pages/survey?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F photo=@{{ photo_path }} \-F survey_type=rating \-F 'question=Bạn nghĩ gì về dịch vụ của chúng tôi' \-F auto_popup=https://www.facebook.com/nextifyvn/ \-F active=true \-F min_point=1 \-F max_point=5# survey_type: multi_selectcurl -X POST \'{{ base_url }}/splash_pages/survey?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}' \-H 'Content-Type: multipart/form-data' \-F photo=@{{ photo_path }} \-F survey_type=multi_select \-F 'question=Bạn nghĩ gì về dịch vụ của chúng tôi' \-F auto_popup=https://www.facebook.com/nextifyvn/ \-F active=true \-F 'answer={"tag": {{ tag_id }},"value": "Nội dung câu trả lời"}' \-F 'answer={"tag": {{ tag_id }},"value": "Nội dung câu trả lời"}'
Form câu trả lời{"tag": {{ id_tag }},"value": "Nội dung câu trả lời"}
{"status": 200,"message": "active splash page success!"}
{"status": 404,"message": "splash_id does not exists!"}
curl -X PUT \'{{ base_url }}/splash_pages/survey?pos_id={{ pos_id }}&splash_id={{ splash_id }}&status={{ status }}'-H 'Authorization: Bearer {{ access_token }}'
curl -X DELETE \'{{ base_url }}/splash_pages/{{ type_page }}?pos_id={{ pos_id }}&splash_id={{ splash_id }}'-H 'Authorization: Bearer {{ access_token }}'
Loại trang chào | type_page |
Trang chào theo khoảng ngày | promotion |
Trang chào theo giờ | hour |
Trang chào khảo sát | survey |
Trang chào sinh nhật | birthday |
Trang chào theo lượt đến | loyal |
Trang chào theo tag | tag |
{"status": 200,"message": "Success!","data": {"priority_splash_page": [thứ tự ưu tiên trang chào],"priority_splash_page_status": [trang chào đã được kích hoạt và theo thứ tự ưu tiên]}}
curl -X GET \'{{ base_url }}/splash_pages/priority?pos_id={{ pos_id }}' \-H 'Authorization: Bearer {{ access_token }}'
{"status": 200,"message": "Success!","data": {"priority_splash_page": [thứ tự ưu tiên trang chào]}}
curl -X POST \'{{ base_url }}/splash_pages/priority?pos_id={{ pos_id }}&splash_pages=survey,birthday,weekday,hour,promotion,tag,loyal,plus_register,default' \-H 'Authorization: Bearer {{ access_token }}'