Códigos QR

GET https://sqr.co/api/qr-codes/
curl --request GET \
--url 'https://sqr.co/api/qr-codes/' \
--header 'Authorization: Bearer {api_key}' \
Parámetros Details Description
page Opcional Entero El número de página del que quieres resultados. Por defecto es 1.
results_per_page Opcional Entero ¿Cuántos resultados quieres por página? Los valores permitidos son: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Se establece por defecto en 25
{ "data": [ { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://sqr.co/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://sqr.co/api/qr-codes?&page=1", "last": "https://sqr.co/api/qr-codes?&page=1", "next": null, "prev": null, "self": "https://sqr.co/api/qr-codes?&page=1" } }
GET https://sqr.co/api/qr-codes/{qr_code_id}
curl --request GET \
--url 'https://sqr.co/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://sqr.co/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://sqr.co/api/qr-codes
Parámetros Details Description
link_id Opcional Entero -
project_id Opcional Entero -
name Requerido String -
type Requerido String Valores permitidos: text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
is_bulk Opcional Booleano Available when: type = text
style Opcional String Valores permitidos: square, dot, round, diamond, heart
inner_eye_style Opcional String Valores permitidos: square, dot, rounded, diamond, flower, leaf
outer_eye_style Opcional String Valores permitidos: square, circle, rounded, flower, leaf
foreground_type Opcional String Valores permitidos: color, gradient
foreground_color Opcional String Available when: foreground_type = color
foreground_gradient_style Opcional String Valores permitidos: vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one Opcional String Available when: foreground_type = gradient
foreground_gradient_two Opcional String Available when: foreground_type = gradient
background_color Opcional String
background_color_transparency Opcional Entero
custom_eyes_color Opcional Booleano
eyes_inner_color Opcional String Available when: custom_eyes_color = 1
eyes_outer_color Opcional String Available when: custom_eyes_color = 1
qr_code_logo Opcional Archivo -
qr_code_logo_size Opcional Entero 5-35
qr_code_background Opcional Archivo -
qr_code_background_transparency Opcional Entero 0-100
qr_code_foreground Opcional Archivo -
qr_code_foreground_transparency Opcional Entero 0-100
frame Opcional String Valores permitidos: 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 Opcional String
frame_text_size Opcional Entero -5 - 5
frame_text_font Opcional String Valores permitidos: times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, monaco, comic_sans_ms, impact, luminari, baskerville, papyrus, brush_script_mt
frame_custom_colors Opcional Booleano
frame_color Opcional String Available when: frame_custom_colors = 1
frame_text_color Opcional String Available when: frame_custom_colors = 1
size Opcional Entero 50-2000
margin Opcional Entero 0-25
ecc Opcional String Valores permitidos: L, M, Q, H
text Opcional String Available when: type = text
url Opcional String Available when: type = url
phone Opcional String Available when: type = phone
sms Opcional String Available when: type = sms
sms_body Opcional String Available when: type = sms
email Opcional String Available when: type = email
whatsapp Opcional String Available when: type = whatsapp
whatsapp_body Opcional String Available when: type = whatsapp
facetime Opcional String Available when: type = facetime
location
location_latitude Opcional Flotante Available when: type = location
location_longitude Opcional Flotante Available when: type = location
wifi
wifi_ssid Opcional String Available when: type = wifi
wifi_encryption Opcional String Valores permitidos: nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password Opcional String Available when: type = wifi
wifi_is_hidden Opcional Booleano Available when: type = wifi
event Opcional String Available when: type = event
event_location Opcional String Available when: type = event
event_url Opcional String Available when: type = event
event_note Opcional String Available when: type = event
event_timezone Opcional String Available when: type = event
event_start_datetime Opcional String Available when: type = event
event_end_datetime Opcional String Available when: type = event
event_first_alert_datetime Opcional String Available when: type = event
event_second_alert_datetime Opcional String Available when: type = event
crypto
crypto_coin Opcional String Available when: type = crypto
crypto_address Opcional String Available when: type = crypto
crypto_amount Opcional String Available when: type = crypto
vcard
vcard_first_name Opcional String Available when: type = vcard
vcard_last_name Opcional String Available when: type = vcard
vcard_company Opcional String Available when: type = vcard
vcard_phone_number_label[index] Opcional String Available when: type = vcard
vcard_phone_number_value[index] Opcional String Available when: type = vcard
vcard_email Opcional String Available when: type = vcard
vcard_url Opcional String Available when: type = vcard
vcard_job_title Opcional String Available when: type = vcard
vcard_birthday Opcional String Available when: type = vcard
vcard_street Opcional String Available when: type = vcard
vcard_city Opcional String Available when: type = vcard
vcard_zip Opcional String Available when: type = vcard
vcard_region Opcional String Available when: type = vcard
vcard_country Opcional String Available when: type = vcard
vcard_note Opcional String Available when: type = vcard
vcard_social_label[index] Opcional String Available when: type = vcard
vcard_social_value[index] Opcional String Available when: type = vcard
paypal
paypal_type Opcional String Valores permitidos: buy_now, add_to_cart, donation (type=paypal)
paypal_email Opcional String Available when: type = paypal
paypal_title Opcional String Available when: type = paypal
paypal_currency Opcional String Available when: type = paypal
paypal_price Opcional Flotante Available when: type = paypal
paypal_thank_you_url Opcional String Available when: type = paypal
paypal_cancel_url Opcional String Available when: type = paypal
upi
upi_payee_id Opcional String Available when: type = upi
upi_payee_name Opcional String Available when: type = upi
upi_currency Opcional String Available when: type = upi
upi_amount Opcional Flotante Available when: type = upi
upi_transaction_id Opcional String Available when: type = upi
upi_transaction_note Opcional String Available when: type = upi
upi_transaction_reference Opcional String Available when: type = upi
upi_thank_you_url Opcional String Available when: type = upi
epc
epc_iban Opcional String Available when: type = epc
epc_payee_name Opcional String Available when: type = epc
epc_currency Opcional String Available when: type = epc
epc_amount Opcional Flotante Available when: type = epc
epc_bic Opcional String Available when: type = epc
epc_remittance_reference Opcional String Available when: type = epc
epc_remittance_text Opcional String Available when: type = epc
information Opcional String Available when: type = epc
pix
pix_payee_key Opcional String Available when: type = pix
pix_payee_name Opcional String Available when: type = pix
pix_currency Opcional String Available when: type = pix
pix_amount Opcional Flotante Available when: type = pix
pix_city Opcional String Available when: type = pix
pix_transaction_id Opcional String Available when: type = pix
pix_description Opcional String Available when: type = pix
Parámetros Details Description
curl --request POST \
--url 'https://sqr.co/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://sqr.co/api/qr-codes/{qr_code_id}
Parámetros Details Description
link_id Opcional Entero -
project_id Opcional String -
name Opcional String -
type Opcional String Valores permitidos: text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
style Opcional String Valores permitidos: square, dot, round, diamond, heart
inner_eye_style Opcional String Valores permitidos: square, dot, rounded, diamond, flower, leaf
outer_eye_style Opcional String Valores permitidos: square, circle, rounded, flower, leaf
foreground_type Opcional String Valores permitidos: color, gradient
foreground_color Opcional String Available when: foreground_type = color
foreground_gradient_style Opcional String Valores permitidos: vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one Opcional String Available when: foreground_type = gradient
foreground_gradient_two Opcional String Available when: foreground_type = gradient
background_color Opcional String
background_color_transparency Opcional Entero 0 - 100
custom_eyes_color Opcional Booleano
eyes_inner_color Opcional String Available when: custom_eyes_color = 1
eyes_outer_color Opcional String Available when: custom_eyes_color = 1
qr_code_logo Opcional Archivo -
qr_code_logo_size Opcional Entero 5-35
qr_code_background Opcional Archivo -
qr_code_background_transparency Opcional Entero 0-100
qr_code_foreground Opcional Archivo -
qr_code_foreground_transparency Opcional Entero 0-100
frame Opcional String Valores permitidos: 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 Opcional String
frame_text_size Opcional Entero -5 -> 5
frame_text_font Opcional String Valores permitidos: times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, monaco, comic_sans_ms, impact, luminari, baskerville, papyrus, brush_script_mt
frame_custom_colors Opcional Booleano
frame_color Opcional String Available when: frame_custom_colors = 1
frame_text_color Opcional String Available when: frame_custom_colors = 1
size Opcional Entero 50-2000
margin Opcional Entero 0-25
ecc Opcional String Valores permitidos: L, M, Q, H
text Opcional String Available when: type = text
url Opcional String Available when: type = url
phone Opcional String Available when: type = phone
sms Opcional String Available when: type = sms
sms_body Opcional String Available when: type = sms
email Opcional String Available when: type = email
whatsapp Opcional String Available when: type = whatsapp
whatsapp_body Opcional String Available when: type = whatsapp
facetime Opcional String Available when: type = facetime
location
location_latitude Opcional Flotante Available when: type = location
location_longitude Opcional Flotante Available when: type = location
wifi
wifi_ssid Opcional String Available when: type = wifi
wifi_encryption Opcional String Valores permitidos: nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password Opcional String Available when: type = wifi
wifi_is_hidden Opcional Booleano Available when: type = wifi
event Opcional String Available when: type = event
event_location Opcional String Available when: type = event
event_url Opcional String Available when: type = event
event_note Opcional String Available when: type = event
event_timezone Opcional String Available when: type = event
event_start_datetime Opcional String Available when: type = event
event_end_datetime Opcional String Available when: type = event
event_first_alert_datetime Opcional String Available when: type = event
event_second_alert_datetime Opcional String Available when: type = event
crypto
crypto_coin Opcional String Available when: type = crypto
crypto_address Opcional String Available when: type = crypto
crypto_amount Opcional String Available when: type = crypto
vcard
vcard_first_name Opcional String Available when: type = vcard
vcard_last_name Opcional String Available when: type = vcard
vcard_company Opcional String Available when: type = vcard
vcard_phone_number_label[index] Opcional String Available when: type = vcard
vcard_phone_number_value[index] Opcional String Available when: type = vcard
vcard_email Opcional String Available when: type = vcard
vcard_url Opcional String Available when: type = vcard
vcard_job_title Opcional String Available when: type = vcard
vcard_birthday Opcional String Available when: type = vcard
vcard_street Opcional String Available when: type = vcard
vcard_city Opcional String Available when: type = vcard
vcard_zip Opcional String Available when: type = vcard
vcard_region Opcional String Available when: type = vcard
vcard_country Opcional String Available when: type = vcard
vcard_note Opcional String Available when: type = vcard
vcard_social_label[index] Opcional String Available when: type = vcard
vcard_social_value[index] Opcional String Available when: type = vcard
paypal
paypal_type Opcional String Valores permitidos: buy_now, add_to_cart, donation (type=paypal)
paypal_email Opcional String Available when: type = paypal
paypal_title Opcional String Available when: type = paypal
paypal_currency Opcional String Available when: type = paypal
paypal_price Opcional Flotante Available when: type = paypal
paypal_thank_you_url Opcional String Available when: type = paypal
paypal_cancel_url Opcional String Available when: type = paypal
upi
upi_payee_id Opcional String Available when: type = upi
upi_payee_name Opcional String Available when: type = upi
upi_currency Opcional String Available when: type = upi
upi_amount Opcional Flotante Available when: type = upi
upi_transaction_id Opcional String Available when: type = upi
upi_transaction_note Opcional String Available when: type = upi
upi_transaction_reference Opcional String Available when: type = upi
upi_thank_you_url Opcional String Available when: type = upi
epc
epc_iban Opcional String Available when: type = epc
epc_payee_name Opcional String Available when: type = epc
epc_currency Opcional String Available when: type = epc
epc_amount Opcional Flotante Available when: type = epc
epc_bic Opcional String Available when: type = epc
epc_remittance_reference Opcional String Available when: type = epc
epc_remittance_text Opcional String Available when: type = epc
information Opcional String Available when: type = epc
pix
pix_payee_key Opcional String Available when: type = pix
pix_payee_name Opcional String Available when: type = pix
pix_currency Opcional String Available when: type = pix
pix_amount Opcional Flotante Available when: type = pix
pix_city Opcional String Available when: type = pix
pix_transaction_id Opcional String Available when: type = pix
pix_description Opcional String Available when: type = pix
curl --request POST \
--url 'https://sqr.co/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://sqr.co/api/qr-codes/{qr_code_id}
curl --request DELETE \
--url 'https://sqr.co/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \