Get the access token using your account email & password, once issued, you must save it in your application to use it in subsequent requests.
Login payload
password | string <password> (Password) Minimum 6 charachters |
string <email> (Email) User email address |
{- "email": "admin@example.invalid",
- "password": "password"
}
{- "token": "772|ayiFNgEqnzhij9QUK3mONbzi4xIv7hhWzCsRZUjZ",
- "user": {
- "id": 1,
- "name": "Evans Casper",
- "email": "admin@example.invalid",
- "email_verified_at": "2022-06-01T05:43:47.000000Z",
- "created_at": "2022-06-01T05:43:47.000000Z",
- "updated_at": "2022-06-01T05:43:47.000000Z",
- "roles": [
- {
- "id": 1,
- "name": "Admin",
- "home_page": "/dashboard/qrcodes",
- "super_admin": true,
- "is_default_role_for_new_signup": false,
- "created_at": "2022-06-01T05:44:41.000000Z",
- "updated_at": "2022-06-01T05:44:41.000000Z",
- "pivot": {
- "user_id": 1,
- "role_id": 1
}, - "permissions": [ ]
}
], - "subscriptions": [
- {
- "id": 210,
- "user_id": 1,
- "subscription_plan_id": 3,
- "paypal_id": null,
- "paypal_order_id": null,
- "created_at": "2022-07-26T15:06:53.000000Z",
- "updated_at": "2022-07-26T15:06:53.000000Z",
- "stripe_id": null,
- "subscription_plan": {
- "id": 3,
- "name": "LITE",
- "monthly_price": "1.50",
- "is_popular": false,
- "is_trial": false,
- "is_hidden": false,
- "number_of_dynamic_qrcodes": 15,
- "number_of_scans": 15000,
- "paypal_plan_id": "P-1FK80022JU161732SMLSWYHY",
- "paypal_product_id": "PROD-11N48626RL662104Y",
- "trial_days": null,
- "deleted_at": null,
- "created_at": "2022-06-01T05:43:47.000000Z",
- "updated_at": "2022-07-30T17:36:31.000000Z",
- "stripe_product_id": "prod_M7MFtfu10eMyvi",
- "stripe_price_id": "price_1LP7WWG4oe8WBqVcyCE5Fp0O",
- "yearly_price": "18.0"
}, - "statuses": [
- {
- "id": 215,
- "subscription_id": 210,
- "status": "pending_payment",
- "created_at": "2022-07-26 15:06:53"
}
]
}, - {
- "id": 190,
- "user_id": 1,
- "subscription_plan_id": 2,
- "paypal_id": null,
- "paypal_order_id": null,
- "created_at": "2022-07-24T15:14:52.000000Z",
- "updated_at": "2022-07-24T15:14:52.000000Z",
- "stripe_id": null,
- "subscription_plan": {
- "id": 2,
- "name": "STARTER",
- "monthly_price": "1.00",
- "is_popular": false,
- "is_trial": false,
- "is_hidden": false,
- "number_of_dynamic_qrcodes": 10,
- "number_of_scans": 10000,
- "paypal_plan_id": "P-0F065059NR084952PMLSWYHQ",
- "paypal_product_id": "PROD-9X746516HE924121Y",
- "trial_days": null,
- "deleted_at": null,
- "created_at": "2022-06-01T05:43:47.000000Z",
- "updated_at": "2022-07-30T17:36:30.000000Z",
- "stripe_product_id": "prod_M7MEVAeiljw6Fx",
- "stripe_price_id": "price_1LP7WVG4oe8WBqVcEKxhntRb",
- "yearly_price": "12.0"
}, - "statuses": [ ]
}, - {
- "id": 189,
- "user_id": 1,
- "subscription_plan_id": 4,
- "paypal_id": null,
- "paypal_order_id": null,
- "created_at": "2022-07-22T03:46:49.000000Z",
- "updated_at": "2022-07-22T03:46:49.000000Z",
- "stripe_id": null,
- "subscription_plan": {
- "id": 4,
- "name": "PRO",
- "monthly_price": "2.00",
- "is_popular": true,
- "is_trial": false,
- "is_hidden": false,
- "number_of_dynamic_qrcodes": 17,
- "number_of_scans": 1500,
- "paypal_plan_id": "P-17K79982CR6399202MLSWYIA",
- "paypal_product_id": "PROD-3L6485664T330941Y",
- "trial_days": null,
- "deleted_at": null,
- "created_at": "2022-06-01T05:43:47.000000Z",
- "updated_at": "2022-07-30T17:36:32.000000Z",
- "stripe_product_id": "prod_M7MFt3Q2De6sJf",
- "stripe_price_id": "price_1LP7WXG4oe8WBqVcaMskBvWK",
- "yearly_price": "24.0"
}, - "statuses": [ ]
}, - {
- "id": 1,
- "user_id": 1,
- "subscription_plan_id": 1,
- "paypal_id": null,
- "paypal_order_id": null,
- "created_at": "2022-06-01T05:43:47.000000Z",
- "updated_at": "2022-06-01T05:43:47.000000Z",
- "stripe_id": null,
- "subscription_plan": {
- "id": 1,
- "name": "TRIAL",
- "monthly_price": "0.00",
- "is_popular": false,
- "is_trial": true,
- "is_hidden": true,
- "number_of_dynamic_qrcodes": 2,
- "number_of_scans": 50,
- "paypal_plan_id": null,
- "paypal_product_id": null,
- "trial_days": 15,
- "deleted_at": null,
- "created_at": "2022-06-01T05:43:47.000000Z",
- "updated_at": "2022-07-25T09:56:28.000000Z",
- "stripe_product_id": null,
- "stripe_price_id": null,
- "yearly_price": "0.0"
}, - "statuses": [
- {
- "id": 1,
- "subscription_id": 1,
- "status": "active",
- "created_at": "2022-06-01 05:43:47"
}
]
}
]
}
}
This API generates QR code in SVG format, the result QR code svg file can be downloaded from /qrcode_files/[qrcode.file_name].svg
it is possible to convert svg to png by utilizing browser canvas.
object Data supplied as QR code content. Fields should be provided in accordance to | |
object | |
name | string Searchable and meaningful name, e.g. Summer Offer. |
type | string Enum: "URL" "VCard" "Text" "Email" "SMS" "WIFI" QR Code data type. |
{- "type": "url",
- "design": {
- "fillType": "solid",
- "foregroundColor": "#1361bb",
- "eyeInternalColor": "#000000",
- "eyeExternalColor": "#000000",
- "gradientStartColor": "#b965ab",
- "gradientEndColor": "#2e755b",
- "gradientType": "RADIAL",
- "module": "triangle",
- "shape": "none",
- "frameColor": "#000000",
- "logoScale": 0.2,
- "logoPositionX": 0.5,
- "logoPositionY": 0.5,
- "logoRotate": 0,
- "logoBackground": true,
- "logoBackgroundFill": "#fff",
- "logoUrl": null,
- "logoType": "preset",
- "logoBackgroundScale": 1.3,
- "logoBackgroundShape": "circle",
- "backgroundEnabled": true,
- "backgroundColor": "#ffffff",
- "finder": "default",
- "finderDot": "default",
- "fontFamily": "Nova Slim",
- "text": "FREE WIFI",
- "textColor": "#ffffff",
- "textBackgroundColor": "#e22400"
},
}
{- "data": {
- "url": "string",
- "firstName": "string",
- "lastName": "string",
- "mobile": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "text": "string",
- "subject": "string",
- "message": "string",
- "ssid": "string",
- "password": "string",
- "type": "string"
}, - "design": {
- "eyeInternalColor": "string",
- "gradientStartColor": "string",
- "logoBackgroundFill": "string",
- "logoBackgroundShape": "square",
- "logoScale": 1,
- "fontFamily": "string",
- "fillType": "solid",
- "logoBackground": true,
- "gradientType": "RADIAL",
- "text": "string",
- "logoType": "preset",
- "backgroundColor": "string",
- "shape": "string",
- "frameColor": "string",
- "module": "square",
- "foregroundColor": "string",
- "textColor": "string",
- "textBackgroundColor": "string",
- "logoUrl": "string",
- "finder": "default",
- "logoBackgroundScale": 0.3,
- "logoRotate": 360,
- "gradientEndColor": "string",
- "finderDot": "default",
- "logoPositionX": 1,
- "logoPositionY": 1,
- "eyeExternalColor": "string",
- "backgroundEnabled": true
}, - "name": "string",
- "type": "URL"
}
qrcode_id | string The ID of QR code to be modified. |
object Data supplied as QR code content. Fields should be provided in accordance to | |
object | |
name | string Searchable and meaningful name, e.g. Summer Offer. |
type | string Enum: "URL" "VCard" "Text" "Email" "SMS" "WIFI" QR Code data type. |
{- "type": "url",
- "design": {
- "fillType": "solid",
- "foregroundColor": "#1361bb",
- "eyeInternalColor": "#000000",
- "eyeExternalColor": "#000000",
- "gradientStartColor": "#b965ab",
- "gradientEndColor": "#2e755b",
- "gradientType": "RADIAL",
- "module": "triangle",
- "shape": "none",
- "frameColor": "#000000",
- "logoScale": 0.2,
- "logoPositionX": 0.5,
- "logoPositionY": 0.5,
- "logoRotate": 0,
- "logoBackground": true,
- "logoBackgroundFill": "#fff",
- "logoUrl": null,
- "logoType": "preset",
- "logoBackgroundScale": 1.3,
- "logoBackgroundShape": "circle",
- "backgroundEnabled": true,
- "backgroundColor": "#ffffff",
- "finder": "default",
- "finderDot": "default",
- "fontFamily": "Nova Slim",
- "text": "FREE WIFI",
- "textColor": "#ffffff",
- "textBackgroundColor": "#e22400"
},
}
{- "data": {
- "url": "string",
- "firstName": "string",
- "lastName": "string",
- "mobile": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "text": "string",
- "subject": "string",
- "message": "string",
- "ssid": "string",
- "password": "string",
- "type": "string"
}, - "design": {
- "eyeInternalColor": "string",
- "gradientStartColor": "string",
- "logoBackgroundFill": "string",
- "logoBackgroundShape": "square",
- "logoScale": 1,
- "fontFamily": "string",
- "fillType": "solid",
- "logoBackground": true,
- "gradientType": "RADIAL",
- "text": "string",
- "logoType": "preset",
- "backgroundColor": "string",
- "shape": "string",
- "frameColor": "string",
- "module": "square",
- "foregroundColor": "string",
- "textColor": "string",
- "textBackgroundColor": "string",
- "logoUrl": "string",
- "finder": "default",
- "logoBackgroundScale": 0.3,
- "logoRotate": 360,
- "gradientEndColor": "string",
- "finderDot": "default",
- "logoPositionX": 1,
- "logoPositionY": 1,
- "eyeExternalColor": "string",
- "backgroundEnabled": true
}, - "name": "string",
- "type": "URL"
}