Kode QR

GET https://linktrle.com/api/qr-codes/
curl --request GET \
--url 'https://linktrle.com/api/qr-codes/' \
--header 'Authorization: Bearer {api_key}' \
Parameter Rincian Deskripsi
page Opsional Bilangan bulat Nomor halaman yang Anda ingin dapatkan hasilnya. Defaultnya adalah 1
results_per_page Opsional Bilangan bulat Berapa banyak hasil yang Anda inginkan per halaman. Nilai yang diizinkan adalah: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Default ke 25
{ "data": [ { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://linktrle.com/uploads/qr_code/example.svg", "qr_code_logo": null, "qr_code_background": null, "settings": { "foreground_type": "color", "foreground_color": "#000000", "background_color": "#ffffff", "custom_eyes_color": false, "qr_code_logo_size": 25, "size": 500, "margin": 0, "ecc": "L", "url": "https://example.com" ... }, "embedded_data": "https://example.com", "last_datetime": "2021-10-31 09:47:25", "datetime": "2021-10-29 16:32:25" }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://linktrle.com/api/qr-codes?&page=1", "last": "https://linktrle.com/api/qr-codes?&page=1", "next": null, "prev": null, "self": "https://linktrle.com/api/qr-codes?&page=1" } }
GET https://linktrle.com/api/qr-codes/{qr_code_id}
curl --request GET \
--url 'https://linktrle.com/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://linktrle.com/uploads/qr_code/example.svg", "qr_code_logo": null, "qr_code_background": null, "settings": { "foreground_type": "color", "foreground_color": "#000000", "background_color": "#ffffff", "custom_eyes_color": false, "qr_code_logo_size": 25, "size": 500, "margin": 0, "ecc": "L", "url": "https://example.com" ... }, "embedded_data": "https://example.com", "last_datetime": "2021-10-31 09:47:25", "datetime": "2021-10-29 16:32:25" } }
POST https://linktrle.com/api/qr-codes
Parameter Rincian Deskripsi
project_id Opsional Bilangan bulat -
name Diperlukan String -
type Diperlukan String Nilai yang diizinkan: text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
is_bulk Opsional Boolean Tersedia ketika: type = text
style Opsional String Nilai yang diizinkan: square, dot, round, diamond, heart
inner_eye_style Opsional String Nilai yang diizinkan: square, dot, rounded, diamond, flower, leaf
outer_eye_style Opsional String Nilai yang diizinkan: square, circle, rounded, flower, leaf
foreground_type Opsional String Nilai yang diizinkan: color, gradient
foreground_color Opsional String Tersedia ketika: foreground_type = color
foreground_gradient_style Opsional String Nilai yang diizinkan: vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one Opsional String Tersedia ketika: foreground_type = gradient
foreground_gradient_two Opsional String Tersedia ketika: foreground_type = gradient
background_color Opsional String
background_color_transparency Opsional Bilangan bulat
custom_eyes_color Opsional Boolean
eyes_inner_color Opsional String Tersedia ketika: custom_eyes_color = 1
eyes_outer_color Opsional String Tersedia ketika: custom_eyes_color = 1
qr_code_logo Opsional Berkas -
qr_code_logo_size Opsional Bilangan bulat 5-35
qr_code_background Opsional Berkas -
qr_code_background_transparency Opsional Bilangan bulat 0-100
qr_code_foreground Opsional Berkas -
qr_code_foreground_transparency Opsional Bilangan bulat 0-100
frame Opsional String Nilai yang diizinkan: round_bottom_text, round_top_text, tooltip_bottom_text, tooltip_top_text, ribbon_bottom_text, ribbon_top_text, tooltip_snap_top_text, tooltip_snap_bottom_text
frame_text Opsional String
frame_text_size Opsional Bilangan bulat -5 - 5
frame_text_font Opsional String Nilai yang diizinkan: times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, lucida_console, monaco, comic_sans_ms, impact
frame_custom_colors Opsional Boolean
frame_color Opsional String Tersedia ketika: frame_custom_colors = 1
frame_text_color Opsional String Tersedia ketika: frame_custom_colors = 1
size Opsional Bilangan bulat 50-2000
margin Opsional Bilangan bulat 0-25
ecc Opsional String Nilai yang diizinkan: L, M, Q, H
text Opsional String Tersedia ketika: type = text
url Opsional String Tersedia ketika: type = url
phone Opsional String Tersedia ketika: type = phone
sms Opsional String Tersedia ketika: type = sms
sms_body Opsional String Tersedia ketika: type = sms
email Opsional String Tersedia ketika: type = email
whatsapp Opsional String Tersedia ketika: type = whatsapp
whatsapp_body Opsional String Tersedia ketika: type = whatsapp
facetime Opsional String Tersedia ketika: type = facetime
location
location_latitude Opsional Melayang Tersedia ketika: type = location
location_longitude Opsional Melayang Tersedia ketika: type = location
wifi
wifi_ssid Opsional String Tersedia ketika: type = wifi
wifi_encryption Opsional String Nilai yang diizinkan: nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password Opsional String Tersedia ketika: type = wifi
wifi_is_hidden Opsional Boolean Tersedia ketika: type = wifi
event Opsional String Tersedia ketika: type = event
event_location Opsional String Tersedia ketika: type = event
event_url Opsional String Tersedia ketika: type = event
event_note Opsional String Tersedia ketika: type = event
event_timezone Opsional String Tersedia ketika: type = event
event_start_datetime Opsional String Tersedia ketika: type = event
event_end_datetime Opsional String Tersedia ketika: type = event
event_first_alert_datetime Opsional String Tersedia ketika: type = event
event_second_alert_datetime Opsional String Tersedia ketika: type = event
crypto
crypto_coin Opsional String Tersedia ketika: type = crypto
crypto_address Opsional String Tersedia ketika: type = crypto
crypto_amount Opsional String Tersedia ketika: type = crypto
vcard
vcard_first_name Opsional String Tersedia ketika: type = vcard
vcard_last_name Opsional String Tersedia ketika: type = vcard
vcard_company Opsional String Tersedia ketika: type = vcard
vcard_phone_number_label[index] Opsional String Tersedia ketika: type = vcard
vcard_phone_number_value[index] Opsional String Tersedia ketika: type = vcard
vcard_email Opsional String Tersedia ketika: type = vcard
vcard_url Opsional String Tersedia ketika: type = vcard
vcard_job_title Opsional String Tersedia ketika: type = vcard
vcard_birthday Opsional String Tersedia ketika: type = vcard
vcard_street Opsional String Tersedia ketika: type = vcard
vcard_city Opsional String Tersedia ketika: type = vcard
vcard_zip Opsional String Tersedia ketika: type = vcard
vcard_region Opsional String Tersedia ketika: type = vcard
vcard_country Opsional String Tersedia ketika: type = vcard
vcard_note Opsional String Tersedia ketika: type = vcard
vcard_social_label[index] Opsional String Tersedia ketika: type = vcard
vcard_social_value[index] Opsional String Tersedia ketika: type = vcard
paypal
paypal_type Opsional String Nilai yang diizinkan: buy_now, add_to_cart, donation (type=paypal)
paypal_email Opsional String Tersedia ketika: type = paypal
paypal_title Opsional String Tersedia ketika: type = paypal
paypal_currency Opsional String Tersedia ketika: type = paypal
paypal_price Opsional Melayang Tersedia ketika: type = paypal
paypal_thank_you_url Opsional String Tersedia ketika: type = paypal
paypal_cancel_url Opsional String Tersedia ketika: type = paypal
upi
upi_payee_id Opsional String Tersedia ketika: type = upi
upi_payee_name Opsional String Tersedia ketika: type = upi
upi_currency Opsional String Tersedia ketika: type = upi
upi_amount Opsional Melayang Tersedia ketika: type = upi
upi_transaction_id Opsional String Tersedia ketika: type = upi
upi_transaction_note Opsional String Tersedia ketika: type = upi
upi_transaction_reference Opsional String Tersedia ketika: type = upi
upi_thank_you_url Opsional String Tersedia ketika: type = upi
epc
epc_iban Opsional String Tersedia ketika: type = epc
epc_payee_name Opsional String Tersedia ketika: type = epc
epc_currency Opsional String Tersedia ketika: type = epc
epc_amount Opsional Melayang Tersedia ketika: type = epc
epc_bic Opsional String Tersedia ketika: type = epc
epc_remittance_reference Opsional String Tersedia ketika: type = epc
epc_remittance_text Opsional String Tersedia ketika: type = epc
information Opsional String Tersedia ketika: type = epc
pix
pix_payee_key Opsional String Tersedia ketika: type = pix
pix_payee_name Opsional String Tersedia ketika: type = pix
pix_currency Opsional String Tersedia ketika: type = pix
pix_amount Opsional Melayang Tersedia ketika: type = pix
pix_city Opsional String Tersedia ketika: type = pix
pix_transaction_id Opsional String Tersedia ketika: type = pix
pix_description Opsional String Tersedia ketika: type = pix
Parameter Rincian Deskripsi
curl --request POST \
--url 'https://linktrle.com/api/qr-codes' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=New York' \
--form 'type=text' \
--form 'text=Hello!' \
{ "data": { "id": 1 } }
POST https://linktrle.com/api/qr-codes/{qr_code_id}
Parameter Rincian Deskripsi
project_id Opsional String -
name Opsional String -
type Opsional String Nilai yang diizinkan: text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
style Opsional String Nilai yang diizinkan: square, dot, round, diamond, heart
inner_eye_style Opsional String Nilai yang diizinkan: square, dot, rounded, diamond, flower, leaf
outer_eye_style Opsional String Nilai yang diizinkan: square, circle, rounded, flower, leaf
foreground_type Opsional String Nilai yang diizinkan: color, gradient
foreground_color Opsional String Tersedia ketika: foreground_type = color
foreground_gradient_style Opsional String Nilai yang diizinkan: vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one Opsional String Tersedia ketika: foreground_type = gradient
foreground_gradient_two Opsional String Tersedia ketika: foreground_type = gradient
background_color Opsional String
background_color_transparency Opsional Bilangan bulat 0 - 100
custom_eyes_color Opsional Boolean
eyes_inner_color Opsional String Tersedia ketika: custom_eyes_color = 1
eyes_outer_color Opsional String Tersedia ketika: custom_eyes_color = 1
qr_code_logo Opsional Berkas -
qr_code_logo_size Opsional Bilangan bulat 5-35
qr_code_background Opsional Berkas -
qr_code_background_transparency Opsional Bilangan bulat 0-100
qr_code_foreground Opsional Berkas -
qr_code_foreground_transparency Opsional Bilangan bulat 0-100
frame Opsional String Nilai yang diizinkan: round_bottom_text, round_top_text, tooltip_bottom_text, tooltip_top_text, ribbon_bottom_text, ribbon_top_text, tooltip_snap_top_text, tooltip_snap_bottom_text
frame_text Opsional String
frame_text_size Opsional Bilangan bulat -5 -> 5
frame_text_font Opsional String Nilai yang diizinkan: times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, lucida_console, monaco, comic_sans_ms, impact
frame_custom_colors Opsional Boolean
frame_color Opsional String Tersedia ketika: frame_custom_colors = 1
frame_text_color Opsional String Tersedia ketika: frame_custom_colors = 1
size Opsional Bilangan bulat 50-2000
margin Opsional Bilangan bulat 0-25
ecc Opsional String Nilai yang diizinkan: L, M, Q, H
text Opsional String Tersedia ketika: type = text
url Opsional String Tersedia ketika: type = url
phone Opsional String Tersedia ketika: type = phone
sms Opsional String Tersedia ketika: type = sms
sms_body Opsional String Tersedia ketika: type = sms
email Opsional String Tersedia ketika: type = email
whatsapp Opsional String Tersedia ketika: type = whatsapp
whatsapp_body Opsional String Tersedia ketika: type = whatsapp
facetime Opsional String Tersedia ketika: type = facetime
location
location_latitude Opsional Melayang Tersedia ketika: type = location
location_longitude Opsional Melayang Tersedia ketika: type = location
wifi
wifi_ssid Opsional String Tersedia ketika: type = wifi
wifi_encryption Opsional String Nilai yang diizinkan: nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password Opsional String Tersedia ketika: type = wifi
wifi_is_hidden Opsional Boolean Tersedia ketika: type = wifi
event Opsional String Tersedia ketika: type = event
event_location Opsional String Tersedia ketika: type = event
event_url Opsional String Tersedia ketika: type = event
event_note Opsional String Tersedia ketika: type = event
event_timezone Opsional String Tersedia ketika: type = event
event_start_datetime Opsional String Tersedia ketika: type = event
event_end_datetime Opsional String Tersedia ketika: type = event
event_first_alert_datetime Opsional String Tersedia ketika: type = event
event_second_alert_datetime Opsional String Tersedia ketika: type = event
crypto
crypto_coin Opsional String Tersedia ketika: type = crypto
crypto_address Opsional String Tersedia ketika: type = crypto
crypto_amount Opsional String Tersedia ketika: type = crypto
vcard
vcard_first_name Opsional String Tersedia ketika: type = vcard
vcard_last_name Opsional String Tersedia ketika: type = vcard
vcard_company Opsional String Tersedia ketika: type = vcard
vcard_phone_number_label[index] Opsional String Tersedia ketika: type = vcard
vcard_phone_number_value[index] Opsional String Tersedia ketika: type = vcard
vcard_email Opsional String Tersedia ketika: type = vcard
vcard_url Opsional String Tersedia ketika: type = vcard
vcard_job_title Opsional String Tersedia ketika: type = vcard
vcard_birthday Opsional String Tersedia ketika: type = vcard
vcard_street Opsional String Tersedia ketika: type = vcard
vcard_city Opsional String Tersedia ketika: type = vcard
vcard_zip Opsional String Tersedia ketika: type = vcard
vcard_region Opsional String Tersedia ketika: type = vcard
vcard_country Opsional String Tersedia ketika: type = vcard
vcard_note Opsional String Tersedia ketika: type = vcard
vcard_social_label[index] Opsional String Tersedia ketika: type = vcard
vcard_social_value[index] Opsional String Tersedia ketika: type = vcard
paypal
paypal_type Opsional String Nilai yang diizinkan: buy_now, add_to_cart, donation (type=paypal)
paypal_email Opsional String Tersedia ketika: type = paypal
paypal_title Opsional String Tersedia ketika: type = paypal
paypal_currency Opsional String Tersedia ketika: type = paypal
paypal_price Opsional Melayang Tersedia ketika: type = paypal
paypal_thank_you_url Opsional String Tersedia ketika: type = paypal
paypal_cancel_url Opsional String Tersedia ketika: type = paypal
upi
upi_payee_id Opsional String Tersedia ketika: type = upi
upi_payee_name Opsional String Tersedia ketika: type = upi
upi_currency Opsional String Tersedia ketika: type = upi
upi_amount Opsional Melayang Tersedia ketika: type = upi
upi_transaction_id Opsional String Tersedia ketika: type = upi
upi_transaction_note Opsional String Tersedia ketika: type = upi
upi_transaction_reference Opsional String Tersedia ketika: type = upi
upi_thank_you_url Opsional String Tersedia ketika: type = upi
epc
epc_iban Opsional String Tersedia ketika: type = epc
epc_payee_name Opsional String Tersedia ketika: type = epc
epc_currency Opsional String Tersedia ketika: type = epc
epc_amount Opsional Melayang Tersedia ketika: type = epc
epc_bic Opsional String Tersedia ketika: type = epc
epc_remittance_reference Opsional String Tersedia ketika: type = epc
epc_remittance_text Opsional String Tersedia ketika: type = epc
information Opsional String Tersedia ketika: type = epc
pix
pix_payee_key Opsional String Tersedia ketika: type = pix
pix_payee_name Opsional String Tersedia ketika: type = pix
pix_currency Opsional String Tersedia ketika: type = pix
pix_amount Opsional Melayang Tersedia ketika: type = pix
pix_city Opsional String Tersedia ketika: type = pix
pix_transaction_id Opsional String Tersedia ketika: type = pix
pix_description Opsional String Tersedia ketika: type = pix
curl --request POST \
--url 'https://linktrle.com/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
{ "data": { "id": 1 } }
DELETE https://linktrle.com/api/qr-codes/{qr_code_id}
curl --request DELETE \
--url 'https://linktrle.com/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \