Error 400 Bad Request

POST https://staging.xn--hopfenhhle-kcb.de/api/_action/paypal/webhook/execute?sw-token=fxtKhoDQGapi28Hhvq8ISI7X2KQvGlUo

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"fxtKhoDQGapi28Hhvq8ISI7X2KQvGlUo"

POST Parameters

Key Value
create_time
"2025-10-05T08:38:31.904Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-6P169291A7204314B-23R80503SF655090Y"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-6P169291A7204314B-23R80503SF655090Y"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-6P169291A7204314B-23R80503SF655090Y/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "65S47232RX5081624"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "169.99"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "169.99"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "5.47"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "164.52"
    ]
  ]
  "invoice_id" => "14310"
  "custom_id" => "{"orderTransactionId":"0199b3859ccc73da8af71b0f2a1e5a9c","pluginVersion":"10.1.1","shopwareVersion":"6.7.2.0"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "51Y81016EX809904D"
    ]
  ]
  "payee" => [
    "email_address" => "info@hopfenhoehle.de"
    "merchant_id" => "URR22A8H9E26J"
  ]
  "create_time" => "2025-10-05T08:38:28Z"
  "update_time" => "2025-10-05T08:38:28Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/65S47232RX5081624"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/65S47232RX5081624/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/51Y81016EX809904D"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for € 169.99 EUR"

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"Swag\PayPal\Webhook\WebhookController::executeWebhook"
_cspNonce
"6r2Uy2CHHQk="
_route
"api.action.paypal.webhook.execute"
_routeScope
[
  "api"
]
_route_params
[
  "auth_required" => false
]
_stopwatch_token
"73f3ee"
auth_required
false
sw-context
Shopware\Core\Framework\Context {#1883
  #extensions: []
  #languageIdChain: [
    "2fbb5fe2e29a4d70aa5854ce7ce3e20b"
  ]
  #scope: "system"
  #rulesLocked: false
  #source: Shopware\Core\Framework\Api\Context\SystemSource {#1874 …}
  #ruleIds: []
  #currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca"
  #versionId: "0fa91ce3e96a4bc2be4bd9ce752c3425"
  #currencyFactor: 1.0
  #considerInheritance: false
  #taxState: "gross"
  #rounding: Shopware\Core\Framework\DataAbstractionLayer\Pricing\CashRoundingConfig {#1906 …}
  -states: []
}

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip,deflate"
connection
"close"
content-length
"1675"
content-type
"application/json"
correlation-id
"b347d424d46ce"
forwarded
"for="173.0.81.65";host="staging.xn--hopfenhhle-kcb.de";proto=https"
host
"staging.xn--hopfenhhle-kcb.de"
paypal-auth-algo
"SHA256withRSA"
paypal-auth-version
"v2"
paypal-cert-url
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-b0d12406"
paypal-transmission-id
"aeff791e-a1c6-11f0-b672-9fd580f85647"
paypal-transmission-sig
"MXw9QopDbHdc8Xd0iPbho6AJ9cfXZRAAmDvLt35wHanLd5bo14rX5lvkmJH/R3PFLJddkc3KpSt5xFXM6Ps98Tc00zvqbvp18vGj4MfplXqAILGqjcYaOFXURhKLApQTsh8Wsq13QVhN2aLlByHvJMi6pmBUmYOLlyzP5SCMjJeSBAR4iDSOehmeDX4Olqq/fxmDDKD2gOewIv1G3vHno0LiOvN8XRJS66WEAHziymCEO0jXzxSSAXI0OgmdDsH2fgJTf1KdiG/CDuiQI/gzoblRsrtZW85T7vh6yYftxwx82WY19l4zq79LzZoyd5kK0x8zA7ObmiyaxpgAmOpZmA=="
paypal-transmission-time
"2025-10-05T08:38:36Z"
user-agent
"PayPal/AUHR-1.0-1"
x-accel-internal
"/internal-nginx-static-location"
x-forwarded-for
"173.0.81.65"
x-php-ob-level
"1"
x-real-ip
"173.0.81.65"

Request Content

Pretty

{
    "id": "WH-6P169291A7204314B-23R80503SF655090Y",
    "event_version": "1.0",
    "create_time": "2025-10-05T08:38:31.904Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for \u20ac 169.99 EUR",
    "resource": {
        "id": "65S47232RX5081624",
        "amount": {
            "currency_code": "EUR",
            "value": "169.99"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "169.99"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "5.47"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "164.52"
            }
        },
        "invoice_id": "14310",
        "custom_id": "{\"orderTransactionId\":\"0199b3859ccc73da8af71b0f2a1e5a9c\",\"pluginVersion\":\"10.1.1\",\"shopwareVersion\":\"6.7.2.0\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "51Y81016EX809904D"
            }
        },
        "payee": {
            "email_address": "info@hopfenhoehle.de",
            "merchant_id": "URR22A8H9E26J"
        },
        "create_time": "2025-10-05T08:38:28Z",
        "update_time": "2025-10-05T08:38:28Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/65S47232RX5081624",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/65S47232RX5081624\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/51Y81016EX809904D",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-6P169291A7204314B-23R80503SF655090Y",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-6P169291A7204314B-23R80503SF655090Y\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-6P169291A7204314B-23R80503SF655090Y","event_version":"1.0","create_time":"2025-10-05T08:38:31.904Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for € 169.99 EUR","resource":{"id":"65S47232RX5081624","amount":{"currency_code":"EUR","value":"169.99"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"169.99"},"paypal_fee":{"currency_code":"EUR","value":"5.47"},"net_amount":{"currency_code":"EUR","value":"164.52"}},"invoice_id":"14310","custom_id":"{\"orderTransactionId\":\"0199b3859ccc73da8af71b0f2a1e5a9c\",\"pluginVersion\":\"10.1.1\",\"shopwareVersion\":\"6.7.2.0\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"51Y81016EX809904D"}},"payee":{"email_address":"info@hopfenhoehle.de","merchant_id":"URR22A8H9E26J"},"create_time":"2025-10-05T08:38:28Z","update_time":"2025-10-05T08:38:28Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/65S47232RX5081624","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/65S47232RX5081624/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/51Y81016EX809904D","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-6P169291A7204314B-23R80503SF655090Y","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-6P169291A7204314B-23R80503SF655090Y/resend","rel":"resend","method":"POST"}]}

Response

Response Headers

Header Value
access-control-allow-headers
"Content-Type,Authorization,sw-context-token,sw-access-key,sw-language-id,sw-version-id,sw-inheritance,indexing-behavior,sw-include-seo-urls"
access-control-allow-methods
"GET,POST,PUT,PATCH,DELETE"
access-control-allow-origin
"*"
access-control-expose-headers
"Content-Type,Authorization,sw-context-token,sw-access-key,sw-language-id,sw-version-id,sw-inheritance,indexing-behavior,sw-include-seo-urls"
cache-control
"private, must-revalidate"
content-type
"application/json"
date
"Mon, 06 Oct 2025 20:46:50 GMT"
expires
"-1"
pragma
"no-cache"
x-debug-token
"d215de"
x-frame-options
"sameorigin"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"455cd26613a19faa19e9cf932db4f6a9"
APP_URL
"https://xn--hopfenhhle-kcb.de/"
BLUE_GREEN_DEPLOYMENT
"0"
DATABASE_BACKUP_URL
""
DATABASE_HOST
"localhost"
DATABASE_NAME
"stag_hopf_nov"
DATABASE_PASSWORD
"vV8z8f58_"
DATABASE_PORT
"3306"
DATABASE_URL
"mysql://stag_tax:vV8z8f58_@localhost:3306/stag_hopf_nov"
DATABASE_USER
"stag_tax"
INSTANCE_ID
"2d205598c9f23a33e1017e0e31e2d3e4"
LOCK_DSN
"flock"
MAILER_DSN
""
MESSENGER_TRANSPORT_DSN
"doctrine://default"
OPENSEARCH_URL
"http://localhost:9200"
SEMATEXT_LOGGING_ENABLED
"0"
SEMATEXT_LOGGING_ENDPOINT
"https://logsene-receiver.eu.sematext.com"
SEMATEXT_LOGGING_INDEX
""
SEMATEXT_LOGGING_SW_ENVIRONMENT
"production"
SEMATEXT_LOGGING_SW_INSTANCE
"hop"
SHOPWARE_ES_ENABLED
"0"
SHOPWARE_ES_INDEXING_ENABLED
"0"
SHOPWARE_ES_INDEX_PREFIX
"sw"
SHOPWARE_ES_THROW_EXCEPTION
"1"
SHOPWARE_HTTP_CACHE_ENABLED
"1"
SHOPWARE_HTTP_DEFAULT_TTL
"7200"

Defined as regular env variables

Key Value
CONTENT_LENGTH
"1675"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/xn--hopfenhhle-kcb.de/staging.xn--hopfenhhle-kcb.de/production/current/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/vhosts/xn--hopfenhhle-kcb.de/staging.xn--hopfenhhle-kcb.de/production/current/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www/vhosts/xn--hopfenhhle-kcb.de"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip,deflate"
HTTP_CONNECTION
"close"
HTTP_CORRELATION_ID
"b347d424d46ce"
HTTP_FORWARDED
"for="173.0.81.65";host="staging.xn--hopfenhhle-kcb.de";proto=https"
HTTP_HOST
"staging.xn--hopfenhhle-kcb.de"
HTTP_PAYPAL_AUTH_ALGO
"SHA256withRSA"
HTTP_PAYPAL_AUTH_VERSION
"v2"
HTTP_PAYPAL_CERT_URL
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-b0d12406"
HTTP_PAYPAL_TRANSMISSION_ID
"aeff791e-a1c6-11f0-b672-9fd580f85647"
HTTP_PAYPAL_TRANSMISSION_SIG
"MXw9QopDbHdc8Xd0iPbho6AJ9cfXZRAAmDvLt35wHanLd5bo14rX5lvkmJH/R3PFLJddkc3KpSt5xFXM6Ps98Tc00zvqbvp18vGj4MfplXqAILGqjcYaOFXURhKLApQTsh8Wsq13QVhN2aLlByHvJMi6pmBUmYOLlyzP5SCMjJeSBAR4iDSOehmeDX4Olqq/fxmDDKD2gOewIv1G3vHno0LiOvN8XRJS66WEAHziymCEO0jXzxSSAXI0OgmdDsH2fgJTf1KdiG/CDuiQI/gzoblRsrtZW85T7vh6yYftxwx82WY19l4zq79LzZoyd5kK0x8zA7ObmiyaxpgAmOpZmA=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2025-10-05T08:38:36Z"
HTTP_USER_AGENT
"PayPal/AUHR-1.0-1"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_FORWARDED_FOR
"173.0.81.65"
HTTP_X_REAL_IP
"173.0.81.65"
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=fxtKhoDQGapi28Hhvq8ISI7X2KQvGlUo"
REDIRECT_HTTPS
"on"
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_QUERY_STRING
"sw-token=fxtKhoDQGapi28Hhvq8ISI7X2KQvGlUo"
REDIRECT_SCRIPT_URI
"https://staging.xn--hopfenhhle-kcb.de/api/_action/paypal/webhook/execute"
REDIRECT_SCRIPT_URL
"/api/_action/paypal/webhook/execute"
REDIRECT_SSL_TLS_SNI
"staging.xn--hopfenhhle-kcb.de"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"aOQquhXMAasBNiQfVItl9wAAAEs"
REDIRECT_URL
"/api/_action/paypal/webhook/execute"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"55880"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1759783610
REQUEST_TIME_FLOAT
1759783610.7187
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=fxtKhoDQGapi28Hhvq8ISI7X2KQvGlUo"
SCRIPT_FILENAME
"/var/www/vhosts/xn--hopfenhhle-kcb.de/staging.xn--hopfenhhle-kcb.de/production/releases/20231129125041/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://staging.xn--hopfenhhle-kcb.de/api/_action/paypal/webhook/execute"
SCRIPT_URL
"/api/_action/paypal/webhook/execute"
SERVER_ADDR
"5.199.135.148"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"staging.xn--hopfenhhle-kcb.de"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.0"
SERVER_SIGNATURE
"<address>Apache Server at staging.xn--hopfenhhle-kcb.de Port 443</address>\n"
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"staging.xn--hopfenhhle-kcb.de"
SYMFONY_DOTENV_VARS
"LOCK_DSN,MESSENGER_TRANSPORT_DSN,MAILER_DSN,APP_ENV,APP_DEBUG,APP_URL,APP_SECRET,INSTANCE_ID,BLUE_GREEN_DEPLOYMENT,DATABASE_HOST,DATABASE_PORT,DATABASE_USER,DATABASE_PASSWORD,DATABASE_NAME,DATABASE_URL,DATABASE_BACKUP_URL,OPENSEARCH_URL,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_ES_THROW_EXCEPTION,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,SEMATEXT_LOGGING_ENABLED,SEMATEXT_LOGGING_ENDPOINT,SEMATEXT_LOGGING_INDEX,SEMATEXT_LOGGING_SW_ENVIRONMENT,SEMATEXT_LOGGING_SW_INSTANCE"
UNIQUE_ID
"aOQquhXMAasBNiQfVItl9wAAAEs"
USER
"hhsysuser_b"
proxy-nokeepalive
"1"