POST https://myprint.beastscan.com/api/prints

ApiPrinterController :: createPrintJob

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\ApiPrinterController::createPrintJob"
_firewall_context
"security.firewall.map.context.main"
_route
"api_prints_create"
_route_params
[]
_security_authenticators
[]
_security_firewall_run
"_security_main"
_security_skipped_authenticators
[
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#555
    -supports: false
    -passport: null
    -duration: null
    -stub: "App\Security\AppCustomAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: App\Security\AppCustomAuthenticator {#508 …}
  }
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#556
    -supports: false
    -passport: null
    -duration: null
    -stub: "Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator {#557 …}
  }
]
_stopwatch_token
"adf207"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, compress, deflate, br"
content-length
"2247"
content-type
"application/json"
host
"myprint.beastscan.com"
user-agent
"axios/1.13.2"
x-forwarded-for
"172.25.0.1"
x-forwarded-host
"myprint.beastscan.com"
x-forwarded-port
"443"
x-forwarded-proto
"https"
x-forwarded-server
"aa9f90ff752f"
x-php-ob-level
"0"
x-real-ip
"172.25.0.1"

Request Content

Pretty

{
    "tradeNo": "JOB_1769171801_SM3M",
    "channel": "sunmi",
    "mode": "template",
    "widthMm": 80,
    "templateId": "receipt-medium",
    "createdAt": "2026-01-23T12:36:42.219Z",
    "data": {
        "sale": {
            "id": 287373,
            "receipt": "2220010284",
            "orderNumber": "6971",
            "uuid": "d969d61c-8e62-48d1-b13a-a10139af2bac",
            "status": "Completed",
            "isRefund": false,
            "isCredited": false,
            "isPrepay": false,
            "totalAmount": 49,
            "totalVat": 9.8,
            "totalChange": 0,
            "totalPayment": 49,
            "currency": "DKK",
            "createdAt": "2026-01-23 13:36:16",
            "paidAt": "2026-01-23 13:36:39",
            "dueAt": "2026-01-23 13:36:39",
            "note": null
        },
        "locationRegister": {
            "id": 1645,
            "name": "Kasse 1",
            "printReceipt": true,
            "emailReceipt": true
        },
        "location": {
            "id": 1650,
            "name": "Democratic Eyewear Odense ApS",
            "street": "Klaregade 7",
            "postcode": "5000",
            "city": "Odense",
            "country": "Danmark",
            "phone": "+4571705000",
            "email": "odense@democraticeyewear.com",
            "website": null,
            "companyRegistration": "41075805"
        },
        "customer": null,
        "seller": {
            "id": 5920,
            "firstname": "Dorthe",
            "lastname": "Skjoldager",
            "fullname": "Dorthe Skjoldager",
            "title": "Optiker",
            "email": "dts@democraticeyewear.com",
            "phone": "4527599525",
            "website": null
        },
        "items": [
            {
                "id": 692147,
                "text": "SeeGreen Brillerens 118ml",
                "quantity": 1,
                "unitPrice": 49,
                "total": 49,
                "vatAmount": 9.8,
                "subtotal": 39.2,
                "type": "product",
                "note": null,
                "product": {
                    "id": 129557,
                    "name": "SeeGreen Brillerens 118ml",
                    "sku": null,
                    "storeLocation": null,
                    "receiptText": null
                },
                "variant": {
                    "id": 116983,
                    "sku": "1001103858",
                    "name": "",
                    "friendlyName": "SeeGreen Brillerens 118ml",
                    "barcode": null,
                    "internalRef": null
                },
                "supplier": null
            }
        ],
        "payments": [
            {
                "id": 147576,
                "amount": 49,
                "changeAmount": null,
                "type": null,
                "method": {
                    "id": 2214,
                    "name": "Kort OD",
                    "type": "verifone-p400"
                }
            }
        ]
    },
    "printer": {
        "sunmi_sn": "N449255G10924",
        "orderType": 1,
        "count": 1,
        "mediaText": "",
        "cycle": 1
    },
    "sunmiResponse": {
        "code": 1,
        "data": {
            "trade_no": "JOB_1769171801_SM3M"
        },
        "msg": "success"
    },
    "electronResponse": null,
    "voiceResponse": null,
    "saleId": "1ec0da0c-67ba-4819-9d18-807cc819363f",
    "url": "https:\/\/print.beastscan.com\/sales\/2026\/01\/23\/1ec0da0c-67ba-4819-9d18-807cc819363f.html",
    "view": {
        "receiptUrl": "https:\/\/print.beastscan.com\/view.html?yyyy=2026&mm=01&dd=23&id=1ec0da0c-67ba-4819-9d18-807cc819363f&type=receipt",
        "invoiceUrl": "https:\/\/print.beastscan.com\/view.html?yyyy=2026&mm=01&dd=23&id=1ec0da0c-67ba-4819-9d18-807cc819363f&type=invoice"
    }
}

Raw

{"tradeNo":"JOB_1769171801_SM3M","channel":"sunmi","mode":"template","widthMm":80,"templateId":"receipt-medium","createdAt":"2026-01-23T12:36:42.219Z","data":{"sale":{"id":287373,"receipt":"2220010284","orderNumber":"6971","uuid":"d969d61c-8e62-48d1-b13a-a10139af2bac","status":"Completed","isRefund":false,"isCredited":false,"isPrepay":false,"totalAmount":49,"totalVat":9.8,"totalChange":0,"totalPayment":49,"currency":"DKK","createdAt":"2026-01-23 13:36:16","paidAt":"2026-01-23 13:36:39","dueAt":"2026-01-23 13:36:39","note":null},"locationRegister":{"id":1645,"name":"Kasse 1","printReceipt":true,"emailReceipt":true},"location":{"id":1650,"name":"Democratic Eyewear Odense ApS","street":"Klaregade 7","postcode":"5000","city":"Odense","country":"Danmark","phone":"+4571705000","email":"odense@democraticeyewear.com","website":null,"companyRegistration":"41075805"},"customer":null,"seller":{"id":5920,"firstname":"Dorthe","lastname":"Skjoldager","fullname":"Dorthe Skjoldager","title":"Optiker","email":"dts@democraticeyewear.com","phone":"4527599525","website":null},"items":[{"id":692147,"text":"SeeGreen Brillerens 118ml","quantity":1,"unitPrice":49,"total":49,"vatAmount":9.8,"subtotal":39.2,"type":"product","note":null,"product":{"id":129557,"name":"SeeGreen Brillerens 118ml","sku":null,"storeLocation":null,"receiptText":null},"variant":{"id":116983,"sku":"1001103858","name":"","friendlyName":"SeeGreen Brillerens 118ml","barcode":null,"internalRef":null},"supplier":null}],"payments":[{"id":147576,"amount":49,"changeAmount":null,"type":null,"method":{"id":2214,"name":"Kort OD","type":"verifone-p400"}}]},"printer":{"sunmi_sn":"N449255G10924","orderType":1,"count":1,"mediaText":"","cycle":1},"sunmiResponse":{"code":1,"data":{"trade_no":"JOB_1769171801_SM3M"},"msg":"success"},"electronResponse":null,"voiceResponse":null,"saleId":"1ec0da0c-67ba-4819-9d18-807cc819363f","url":"https://print.beastscan.com/sales/2026/01/23/1ec0da0c-67ba-4819-9d18-807cc819363f.html","view":{"receiptUrl":"https://print.beastscan.com/view.html?yyyy=2026&mm=01&dd=23&id=1ec0da0c-67ba-4819-9d18-807cc819363f&type=receipt","invoiceUrl":"https://print.beastscan.com/view.html?yyyy=2026&mm=01&dd=23&id=1ec0da0c-67ba-4819-9d18-807cc819363f&type=invoice"}}

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"application/json"
date
"Fri, 23 Jan 2026 12:36:42 GMT"
x-debug-token
"4f9524"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session 1

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

1 Usages
Stateless check enabled
Usage
Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage:39
[
  [
    "file" => "/var/www/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php"
    "line" => 39
    "function" => "getMetadataBag"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-http/Authenticator/RememberMeAuthenticator.php"
    "line" => 79
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticator.php"
    "line" => 67
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-http/Authentication/AuthenticatorManager.php"
    "line" => 120
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-http/Firewall/AuthenticatorManagerListener.php"
    "line" => 32
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authentication\AuthenticatorManager"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticatorManagerListener.php"
    "line" => 35
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-bundle/Debug/WrappedLazyListener.php"
    "line" => 38
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticatorManagerListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-http/Firewall/AbstractListener.php"
    "line" => 25
    "function" => "supports"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-bundle/Security/LazyFirewallContext.php"
    "line" => 61
    "function" => "__invoke"
    "class" => "Symfony\Component\Security\Http\Firewall\AbstractListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php"
    "line" => 91
    "function" => "__invoke"
    "class" => "Symfony\Bundle\SecurityBundle\Security\LazyFirewallContext"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/security-http/Firewall.php"
    "line" => 92
    "function" => "callListeners"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
    "line" => 115
    "function" => "onKernelRequest"
    "class" => "Symfony\Component\Security\Http\Firewall"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 206
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
    "line" => 126
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 159
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/http-kernel/Kernel.php"
    "line" => 182
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/var/www/public/index.php"
    "line" => 5
    "args" => [
      "/var/www/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_SECRET
"aecaae790882dc5658575a5d7b49f475"
CORS_ALLOW_ORIGIN
"^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$"
DEFAULT_URI
"http://localhost"
MAILER_DSN
"null://null"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"
TRUSTED_PROXIES
"0.0.0.0/0"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
APP_ENV
"dev"
CONTENT_LENGTH
"2247"
CONTENT_TYPE
"application/json"
DATABASE_URL
"mysql://app:!ChangeMe!@mariadb:3306/app?serverVersion=11.3.0-MariaDB&charset=utf8mb4"
DOCUMENT_ROOT
"/var/www/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
GPG_KEYS
"39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC"
HOME
"/home/www-data"
HOSTNAME
"d78b0b9be5f9"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, compress, deflate, br"
HTTP_CONTENT_LENGTH
"2247"
HTTP_CONTENT_TYPE
"application/json"
HTTP_HOST
"myprint.beastscan.com"
HTTP_USER_AGENT
"axios/1.13.2"
HTTP_X_FORWARDED_FOR
"172.25.0.1"
HTTP_X_FORWARDED_HOST
"myprint.beastscan.com"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_SERVER
"aa9f90ff752f"
HTTP_X_REAL_IP
"172.25.0.1"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHPIZE_DEPS
"autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c"
PHP_ASC_URL
"https://www.php.net/distributions/php-8.2.29.tar.xz.asc"
PHP_CFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PHP_CPPFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PHP_IDE_CONFIG
"serverName=symfony"
PHP_INI_DIR
"/usr/local/etc/php"
PHP_LDFLAGS
"-Wl,-O1 -pie"
PHP_SELF
"/index.php"
PHP_SHA256
"475f991afd2d5b901fb410be407d929bc00c46285d3f439a02c59e8b6fe3589c"
PHP_URL
"https://www.php.net/distributions/php-8.2.29.tar.xz"
PHP_VERSION
"8.2.29"
PWD
"/var/www"
QUERY_STRING
""
REDIRECT_STATUS
"200"
REMOTE_ADDR
"172.25.0.2"
REMOTE_PORT
"49392"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"http"
REQUEST_TIME
1769171802
REQUEST_TIME_FLOAT
1769171802.2226
REQUEST_URI
"/api/prints"
SCRIPT_FILENAME
"/var/www/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"172.25.0.11"
SERVER_NAME
"_"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"nginx/1.29.2"
SHLVL
"1"
SYMFONY_DOTENV_PATH
"/var/www/.env"
SYMFONY_DOTENV_VARS
"APP_SECRET,DEFAULT_URI,MESSENGER_TRANSPORT_DSN,MAILER_DSN,CORS_ALLOW_ORIGIN,TRUSTED_PROXIES"
USER
"www-data"
argc
0
argv
[]