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
"b0b52b"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, compress, deflate, br"
content-length
"2113"
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
"31a20da7b9b4"
x-php-ob-level
"0"
x-real-ip
"172.25.0.1"

Request Content

Pretty

{
    "tradeNo": "JOB_1774437912_GW0A",
    "channel": "sunmi",
    "mode": "template",
    "widthMm": 80,
    "templateId": "receipt-medium",
    "createdAt": "2026-03-25T11:25:13.780Z",
    "data": {
        "sale": {
            "id": 296890,
            "receipt": "2220010733",
            "orderNumber": "7322",
            "uuid": "60c80f49-80f6-49c6-be1d-1a3c2713edd0",
            "status": "Processed",
            "isRefund": false,
            "isCredited": false,
            "isPrepay": true,
            "totalAmount": 0,
            "totalVat": 0,
            "totalChange": 0,
            "totalPayment": 0.5,
            "currency": "DKK",
            "createdAt": "2026-03-25 12:24:57",
            "paidAt": "2026-03-25 12:25:11",
            "dueAt": "2026-03-25 12:25:11",
            "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": {
            "id": 400988,
            "firstname": "Charlotte Hasselbalch",
            "lastname": "Kruuse",
            "fullname": "Charlotte Hasselbalch Kruuse",
            "email": "ck.69@live.dk",
            "phone": "22420908",
            "street": "\u00d8stre Stationsvej 6B 2, 2",
            "postcode": "5000",
            "city": "Odense C",
            "country": "Danmark",
            "memberNumber": 122579,
            "website": null
        },
        "seller": {
            "id": 5920,
            "firstname": "Dorthe",
            "lastname": "Skjoldager",
            "fullname": "Dorthe Skjoldager",
            "title": "Optiker",
            "email": "dts@democraticeyewear.com",
            "phone": "4527599525",
            "website": null
        },
        "items": [],
        "payments": [
            {
                "id": 153122,
                "amount": 0.5,
                "changeAmount": null,
                "type": null,
                "method": {
                    "id": 1640,
                    "name": "Kontant",
                    "type": "cash"
                }
            }
        ]
    },
    "printer": {
        "sunmi_sn": "N449255G10924",
        "orderType": 1,
        "count": 1,
        "mediaText": "",
        "cycle": 1
    },
    "sunmiResponse": {
        "code": 1,
        "data": {
            "trade_no": "JOB_1774437912_GW0A"
        },
        "msg": "success"
    },
    "electronResponse": null,
    "voiceResponse": null,
    "saleId": "c437c472-1522-4847-9724-69c014dcc89b",
    "url": "https:\/\/print.beastscan.com\/sales\/2026\/03\/25\/c437c472-1522-4847-9724-69c014dcc89b.html",
    "view": {
        "receiptUrl": "https:\/\/print.beastscan.com\/view.html?yyyy=2026&mm=03&dd=25&id=c437c472-1522-4847-9724-69c014dcc89b&type=receipt",
        "invoiceUrl": "https:\/\/print.beastscan.com\/view.html?yyyy=2026&mm=03&dd=25&id=c437c472-1522-4847-9724-69c014dcc89b&type=invoice"
    }
}

Raw

{"tradeNo":"JOB_1774437912_GW0A","channel":"sunmi","mode":"template","widthMm":80,"templateId":"receipt-medium","createdAt":"2026-03-25T11:25:13.780Z","data":{"sale":{"id":296890,"receipt":"2220010733","orderNumber":"7322","uuid":"60c80f49-80f6-49c6-be1d-1a3c2713edd0","status":"Processed","isRefund":false,"isCredited":false,"isPrepay":true,"totalAmount":0,"totalVat":0,"totalChange":0,"totalPayment":0.5,"currency":"DKK","createdAt":"2026-03-25 12:24:57","paidAt":"2026-03-25 12:25:11","dueAt":"2026-03-25 12:25:11","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":{"id":400988,"firstname":"Charlotte Hasselbalch","lastname":"Kruuse","fullname":"Charlotte Hasselbalch Kruuse","email":"ck.69@live.dk","phone":"22420908","street":"Ă˜stre Stationsvej 6B 2, 2","postcode":"5000","city":"Odense C","country":"Danmark","memberNumber":122579,"website":null},"seller":{"id":5920,"firstname":"Dorthe","lastname":"Skjoldager","fullname":"Dorthe Skjoldager","title":"Optiker","email":"dts@democraticeyewear.com","phone":"4527599525","website":null},"items":[],"payments":[{"id":153122,"amount":0.5,"changeAmount":null,"type":null,"method":{"id":1640,"name":"Kontant","type":"cash"}}]},"printer":{"sunmi_sn":"N449255G10924","orderType":1,"count":1,"mediaText":"","cycle":1},"sunmiResponse":{"code":1,"data":{"trade_no":"JOB_1774437912_GW0A"},"msg":"success"},"electronResponse":null,"voiceResponse":null,"saleId":"c437c472-1522-4847-9724-69c014dcc89b","url":"https://print.beastscan.com/sales/2026/03/25/c437c472-1522-4847-9724-69c014dcc89b.html","view":{"receiptUrl":"https://print.beastscan.com/view.html?yyyy=2026&mm=03&dd=25&id=c437c472-1522-4847-9724-69c014dcc89b&type=receipt","invoiceUrl":"https://print.beastscan.com/view.html?yyyy=2026&mm=03&dd=25&id=c437c472-1522-4847-9724-69c014dcc89b&type=invoice"}}

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"application/json"
date
"Wed, 25 Mar 2026 11:25:13 GMT"
x-debug-token
"e6c0d6"

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
"2113"
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
"3412a41fcb33"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, compress, deflate, br"
HTTP_CONTENT_LENGTH
"2113"
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
"31a20da7b9b4"
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.16"
REMOTE_PORT
"43242"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"http"
REQUEST_TIME
1774437913
REQUEST_TIME_FLOAT
1774437913.7834
REQUEST_URI
"/api/prints"
SCRIPT_FILENAME
"/var/www/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"172.25.0.14"
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
[]