Error 400 Bad Request

POST https://swdev.biotikon.de/api/_action/paypal/webhook/execute?sw-token=iv5ntBrph5nlwwqUnTivfAvXGxBYinqg

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"iv5ntBrph5nlwwqUnTivfAvXGxBYinqg"

POST Parameters

Key Value
create_time
"2025-05-02T08:55:18.320Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-20T87252NH274080Y-3TC87492KY022031M"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-20T87252NH274080Y-3TC87492KY022031M"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-20T87252NH274080Y-3TC87492KY022031M/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "16962999DY5811740"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "89.85"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "89.85"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "2.18"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "87.67"
    ]
  ]
  "invoice_id" => "767070"
  "custom_id" => "{"orderTransactionId":"01969034d9cd71fc8e21e7e5dc66a6ff","pluginVersion":"9.7.4","shopwareVersion":"6.6.9.0"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "4D931207VE493823P"
    ]
  ]
  "payee" => [
    "email_address" => "info@biotikon.de"
    "merchant_id" => "7RGQZVLZ35RU4"
  ]
  "create_time" => "2025-05-02T08:55:13Z"
  "update_time" => "2025-05-02T08:55:13Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/16962999DY5811740"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/16962999DY5811740/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/4D931207VE493823P"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for € 89.85 EUR"

Uploaded Files

No files were uploaded

Request Attributes

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

Request Headers

Header Value
accept
"*/*"
content-length
"1667"
content-type
"application/json"
correlation-id
"38dafa3ab7d8a"
forwarded
"for="173.0.81.140";host="swdev.biotikon.de";proto=https"
host
"swdev.biotikon.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
"2e026734-2733-11f0-b250-cfdafc552120"
paypal-transmission-sig
"g7bkDUkZPUbo2WbOxz1zYslJr9hxmkW/j/z3zc0VrxTGcW+drnVOGtxtVlcgdIfewPXnJH1G0ELnGxh5ut+C4afHMZc5upOKIgoLgJHWw4ZAh3R/L9v3lxxssYts5PsQrUCx8C3atsxhwBKyNkDtqcGVH2Bg9OIlEBDOkm/+fGsUV+YbL4VIwOIhegFcc7CxeYhr24m0qYuUEOD/e0MipBXvRzRCg1sQD6oOsTlOBFAkygfqJ6GlDsoDWIbwSFcUFKFxas1p5wzsBXut449b3cXnTLNcK8sa7+bl3ZVn23++NRc0ec+msUDNJblbXU5ickIkmT5l8W0yvdQ05d+F2A=="
paypal-transmission-time
"2025-05-02T08:55:21Z"
surrogate-capability
"symfony="ESI/1.0""
user-agent
"PayPal/AUHR-214.0-58843836"
x-b3-spanid
"3764d43c7f56a75e"
x-forwarded-for
"173.0.81.140"
x-php-ob-level
"1"

Request Content

Pretty

{
    "id": "WH-20T87252NH274080Y-3TC87492KY022031M",
    "event_version": "1.0",
    "create_time": "2025-05-02T08:55:18.320Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for \u20ac 89.85 EUR",
    "resource": {
        "id": "16962999DY5811740",
        "amount": {
            "currency_code": "EUR",
            "value": "89.85"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "89.85"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "2.18"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "87.67"
            }
        },
        "invoice_id": "767070",
        "custom_id": "{\"orderTransactionId\":\"01969034d9cd71fc8e21e7e5dc66a6ff\",\"pluginVersion\":\"9.7.4\",\"shopwareVersion\":\"6.6.9.0\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "4D931207VE493823P"
            }
        },
        "payee": {
            "email_address": "info@biotikon.de",
            "merchant_id": "7RGQZVLZ35RU4"
        },
        "create_time": "2025-05-02T08:55:13Z",
        "update_time": "2025-05-02T08:55:13Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/16962999DY5811740",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/16962999DY5811740\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/4D931207VE493823P",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-20T87252NH274080Y-3TC87492KY022031M",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-20T87252NH274080Y-3TC87492KY022031M\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-20T87252NH274080Y-3TC87492KY022031M","event_version":"1.0","create_time":"2025-05-02T08:55:18.320Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for € 89.85 EUR","resource":{"id":"16962999DY5811740","amount":{"currency_code":"EUR","value":"89.85"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"89.85"},"paypal_fee":{"currency_code":"EUR","value":"2.18"},"net_amount":{"currency_code":"EUR","value":"87.67"}},"invoice_id":"767070","custom_id":"{\"orderTransactionId\":\"01969034d9cd71fc8e21e7e5dc66a6ff\",\"pluginVersion\":\"9.7.4\",\"shopwareVersion\":\"6.6.9.0\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"4D931207VE493823P"}},"payee":{"email_address":"info@biotikon.de","merchant_id":"7RGQZVLZ35RU4"},"create_time":"2025-05-02T08:55:13Z","update_time":"2025-05-02T08:55:13Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/16962999DY5811740","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/16962999DY5811740/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/4D931207VE493823P","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-20T87252NH274080Y-3TC87492KY022031M","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-20T87252NH274080Y-3TC87492KY022031M/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
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Fri, 02 May 2025 21:12:59 GMT"
server-timing
""
x-debug-token
"853a15"

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
"781266a0827c73a02da14707bcd67142"
APP_URL
"https://swdev.biotikon.de"
BLUE_GREEN_DEPLOYMENT
"0"
COMPOSER_HOME
"/var/www/html/var/cache/composer"
COOL_CAPTCHA_API_KEY
"2G8A11OS-LCTTOQHU-NHT4OCIM-II92Y6HT"
COOL_CAPTCHA_API_URL
"https://magic.cool-captcha.de/api.js?key="
COOL_CAPTCHA_API_URL_VERIFICATION
"https://magic.cool-captcha.de/verify.js?key="
DATABASE_URL
"mysql://biotikon_shopware_swdev:geHC_Mbs9L@localhost:3306/biotikon_shopware_swdev"
INSTANCE_ID
"21738d70e7e5308de4bff7ae5edcceac"
LOCK_DSN
"flock"
MAILER_URL
"smtp://system@shopware.biotikon.com:lS9_62d9c@p210281.irrsinn.de:25"
OPENSEARCH_URL
"http://localhost:9200"
PROXY_URL
"http://localhost"
REDIS_CACHE_DATABASE
"1"
REDIS_CACHE_HOST
"127.0.0.1"
REDIS_CACHE_PORT
"6379"
REDIS_CACHE_SCHEME
"redis"
REDIS_URL
"redis://127.0.0.1:6379/1"
SHOPWARE_ES_ENABLED
"0"
SHOPWARE_ES_INDEXING_ENABLED
"0"
SHOPWARE_ES_INDEX_PREFIX
"sw"
SHOPWARE_ES_THROW_EXCEPTION
"1"
SHOPWARE_HTTP_CACHE_ENABLED
"0"
SHOPWARE_HTTP_DEFAULT_TTL
"86400"
STOREFRONT_PROXY_URL
"http://localhost"
SYMFONY_KERNEL_DEBUG
"1"

Defined as regular env variables

Key Value
CONTENT_LENGTH
"1667"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/var/www/biotikon-shopware/biotikon_260722_swdev/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/biotikon-shopware/biotikon_260722_swdev/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CORRELATION_ID
"38dafa3ab7d8a"
HTTP_FORWARDED
"for="173.0.81.140";host="swdev.biotikon.de";proto=https"
HTTP_HOST
"swdev.biotikon.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
"2e026734-2733-11f0-b250-cfdafc552120"
HTTP_PAYPAL_TRANSMISSION_SIG
"g7bkDUkZPUbo2WbOxz1zYslJr9hxmkW/j/z3zc0VrxTGcW+drnVOGtxtVlcgdIfewPXnJH1G0ELnGxh5ut+C4afHMZc5upOKIgoLgJHWw4ZAh3R/L9v3lxxssYts5PsQrUCx8C3atsxhwBKyNkDtqcGVH2Bg9OIlEBDOkm/+fGsUV+YbL4VIwOIhegFcc7CxeYhr24m0qYuUEOD/e0MipBXvRzRCg1sQD6oOsTlOBFAkygfqJ6GlDsoDWIbwSFcUFKFxas1p5wzsBXut449b3cXnTLNcK8sa7+bl3ZVn23++NRc0ec+msUDNJblbXU5ickIkmT5l8W0yvdQ05d+F2A=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2025-05-02T08:55:21Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58843836"
HTTP_X_B3_SPANID
"3764d43c7f56a75e"
HTTP_X_FORWARDED_FOR
"173.0.81.140"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=iv5ntBrph5nlwwqUnTivfAvXGxBYinqg"
REDIRECT_HTTPS
"on"
REDIRECT_QUERY_STRING
"sw-token=iv5ntBrph5nlwwqUnTivfAvXGxBYinqg"
REDIRECT_SSL_TLS_SNI
"swdev.biotikon.de"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/api/_action/paypal/webhook/execute"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"25477"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1746220379
REQUEST_TIME_FLOAT
1746220379.4842
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=iv5ntBrph5nlwwqUnTivfAvXGxBYinqg"
SCRIPT_FILENAME
"/var/www/biotikon-shopware/biotikon_260722_swdev/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"134.97.35.79"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"swdev.biotikon.de"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache/2.4.41 (Ubuntu) Server at swdev.biotikon.de Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.41 (Ubuntu)"
SSL_TLS_SNI
"swdev.biotikon.de"
SYMFONY_DOTENV_PATH
"/var/www/biotikon-shopware/biotikon_260722_swdev/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_URL,APP_SECRET,INSTANCE_ID,BLUE_GREEN_DEPLOYMENT,DATABASE_URL,MAILER_URL,COMPOSER_HOME,SYMFONY_KERNEL_DEBUG,OPENSEARCH_URL,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_ES_THROW_EXCEPTION,PROXY_URL,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,LOCK_DSN,COOL_CAPTCHA_API_URL,COOL_CAPTCHA_API_KEY,STOREFRONT_PROXY_URL,REDIS_CACHE_SCHEME,REDIS_CACHE_HOST,REDIS_CACHE_PORT,REDIS_CACHE_DATABASE,REDIS_URL,APP_DEBUG,COOL_CAPTCHA_API_URL_VERIFICATION"
USER
"www-data"
proxy-nokeepalive
"1"