Error 400 Bad Request

POST https://testenv.thiemann.shop/api/_action/paypal/webhook/execute?sw-token=Bp4YFQ4ake9yksjQjQo9v73ryhLWZcfN

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"Bp4YFQ4ake9yksjQjQo9v73ryhLWZcfN"

POST Parameters

Key Value
create_time
"2025-04-24T16:41:35.052Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-38376605H23050705-45742076SG086081A"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-38376605H23050705-45742076SG086081A"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-38376605H23050705-45742076SG086081A/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "1JW73870FJ683852B"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "20.36"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "20.36"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "1.00"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "19.36"
    ]
  ]
  "invoice_id" => "45013"
  "custom_id" => "{"orderTransactionId":"019668acf8a47004bbd874b0afd7a0f1","pluginVersion":"9.7.4","shopwareVersion":"6.6.10.2"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "4D348281KJ587624P"
    ]
  ]
  "payee" => [
    "email_address" => "info@thiemann-shop.de"
    "merchant_id" => "N758N8M7EG3LY"
  ]
  "create_time" => "2025-04-24T16:41:30Z"
  "update_time" => "2025-04-24T16:41:30Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/1JW73870FJ683852B"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/1JW73870FJ683852B/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/4D348281KJ587624P"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for € 20.36 EUR"

Uploaded Files

No files were uploaded

Request Attributes

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

Request Headers

Header Value
accept
"*/*"
connection
"close"
content-length
"1672"
content-type
"application/json"
correlation-id
"b75064a3ea23a"
host
"testenv.thiemann.shop"
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
"fead52f3-212a-11f0-95cf-795da56fbdd8"
paypal-transmission-sig
"StWUkPRM22Td9sBAGuwVV7INuJA38MT8nfD/Pj4u17gPGfdTBwOfVL41sVdDhao/nq/jQMl3t5+8E16QnJE7GXCZMStBG0b1sQNyIGHI0Ng9JML5qcXNkjcJKcnXJik6YvTkmJrz5+jUAiX6asClfmEL3lSPr17Hc8pSgiJL6MKZ40dNL5k9p87UdImyzR3ag8yfo4lbCR+rOc5ODwNob52tXHk/RAt4PDGCPdWPuW0Ul1LJvZAYHYKiytXXJ3ltRoH7t12I+gGqSyCEFGu1kmDj9/2+5W/zu6kFUDTwGfUsFvqm5n81kDTmtdtEHm6jeVs9mzT4eEK7qOxDcb49Bg=="
paypal-transmission-time
"2025-04-24T16:41:39Z"
user-agent
"PayPal/AUHR-214.0-58843836"
x-accel-internal
"/internal-nginx-static-location"
x-b3-spanid
"439c681f63d78347"
x-php-ob-level
"1"
x-real-ip
"173.0.81.140"

Request Content

Pretty

{
    "id": "WH-38376605H23050705-45742076SG086081A",
    "event_version": "1.0",
    "create_time": "2025-04-24T16:41:35.052Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for \u20ac 20.36 EUR",
    "resource": {
        "id": "1JW73870FJ683852B",
        "amount": {
            "currency_code": "EUR",
            "value": "20.36"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "20.36"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "1.00"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "19.36"
            }
        },
        "invoice_id": "45013",
        "custom_id": "{\"orderTransactionId\":\"019668acf8a47004bbd874b0afd7a0f1\",\"pluginVersion\":\"9.7.4\",\"shopwareVersion\":\"6.6.10.2\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "4D348281KJ587624P"
            }
        },
        "payee": {
            "email_address": "info@thiemann-shop.de",
            "merchant_id": "N758N8M7EG3LY"
        },
        "create_time": "2025-04-24T16:41:30Z",
        "update_time": "2025-04-24T16:41:30Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/1JW73870FJ683852B",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/1JW73870FJ683852B\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/4D348281KJ587624P",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-38376605H23050705-45742076SG086081A",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-38376605H23050705-45742076SG086081A\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-38376605H23050705-45742076SG086081A","event_version":"1.0","create_time":"2025-04-24T16:41:35.052Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for € 20.36 EUR","resource":{"id":"1JW73870FJ683852B","amount":{"currency_code":"EUR","value":"20.36"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"20.36"},"paypal_fee":{"currency_code":"EUR","value":"1.00"},"net_amount":{"currency_code":"EUR","value":"19.36"}},"invoice_id":"45013","custom_id":"{\"orderTransactionId\":\"019668acf8a47004bbd874b0afd7a0f1\",\"pluginVersion\":\"9.7.4\",\"shopwareVersion\":\"6.6.10.2\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"4D348281KJ587624P"}},"payee":{"email_address":"info@thiemann-shop.de","merchant_id":"N758N8M7EG3LY"},"create_time":"2025-04-24T16:41:30Z","update_time":"2025-04-24T16:41:30Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/1JW73870FJ683852B","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/1JW73870FJ683852B/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/4D348281KJ587624P","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-38376605H23050705-45742076SG086081A","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-38376605H23050705-45742076SG086081A/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
"application/json"
date
"Sat, 26 Apr 2025 07:12:48 GMT"
x-debug-token
"fd7d30"
x-frame-options
"deny"

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_ENV
"dev"
APP_SECRET
"def000005321bf91cc395f46dcc614f74f873a83a186df5f1300f86106edf75c4641ed00e6a7140bb1454763673201a6745a2f13f4e0dc69822d0690047c9f43addd5c39"
APP_URL
"https://testenv.thiemann.shop"
BLUE_GREEN_DEPLOYMENT
"1"
COMPOSER_HOME
"/var/www/vhosts/testenv/httpdocs/var/cache/composer"
DATABASE_URL
"mysql://testsw6:ez99I44n_@localhost:3306/testenv"
INSTANCE_ID
"LzCXZ9VAspGQ0DBTKbzyUDW9jYI2G1H4"
LOCK_DSN
"flock"
MAILER_URL
"smtp://service@thiemann-shop.de:.!dgt$21@mail.de2.hostedoffice.ag:587"
OPENSEARCH_URL
"http://admin:s+vcKdYTNXLDYHfhLUqNJlDku3Jpt0ZyGmz8K1d16NA=@10.20.0.2:9200"
SHOPWARE_CDN_STRATEGY_DEFAULT
"id"
SHOPWARE_ES_ENABLED
"1"
SHOPWARE_ES_INDEXING_ENABLED
"1"
SHOPWARE_ES_INDEX_PREFIX
"sw6"
SHOPWARE_ES_THROW_EXCEPTION
"1"
SHOPWARE_ES_THROW_EXEPTION
"1"
SHOPWARE_HTTP_CACHE_ENABLED
"0"
SHOPWARE_HTTP_DEFAULT_TTL
"7200"
STOREFRONT_PROXY_URL
"http://localhost"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
"1672"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/s10762.creoline.cloud/testenv/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/vhosts/s10762.creoline.cloud/testenv/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_CORRELATION_ID
"b75064a3ea23a"
HTTP_HOST
"testenv.thiemann.shop"
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
"fead52f3-212a-11f0-95cf-795da56fbdd8"
HTTP_PAYPAL_TRANSMISSION_SIG
"StWUkPRM22Td9sBAGuwVV7INuJA38MT8nfD/Pj4u17gPGfdTBwOfVL41sVdDhao/nq/jQMl3t5+8E16QnJE7GXCZMStBG0b1sQNyIGHI0Ng9JML5qcXNkjcJKcnXJik6YvTkmJrz5+jUAiX6asClfmEL3lSPr17Hc8pSgiJL6MKZ40dNL5k9p87UdImyzR3ag8yfo4lbCR+rOc5ODwNob52tXHk/RAt4PDGCPdWPuW0Ul1LJvZAYHYKiytXXJ3ltRoH7t12I+gGqSyCEFGu1kmDj9/2+5W/zu6kFUDTwGfUsFvqm5n81kDTmtdtEHm6jeVs9mzT4eEK7qOxDcb49Bg=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2025-04-24T16:41:39Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58843836"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_B3_SPANID
"439c681f63d78347"
HTTP_X_REAL_IP
"173.0.81.140"
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"
PHP_SELF
"/index.php"
PP_CUSTOM_PHP_CGI_INDEX
"plesk-php82-fastcgi"
PP_CUSTOM_PHP_INI
"/var/www/vhosts/system/testenv.thiemann.shop/etc/php.ini"
QUERY_STRING
"sw-token=Bp4YFQ4ake9yksjQjQo9v73ryhLWZcfN"
REDIRECT_HTTPS
"on"
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_QUERY_STRING
"sw-token=Bp4YFQ4ake9yksjQjQo9v73ryhLWZcfN"
REDIRECT_SCRIPT_URI
"https://testenv.thiemann.shop/api/_action/paypal/webhook/execute"
REDIRECT_SCRIPT_URL
"/api/_action/paypal/webhook/execute"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"aAyHb-oErSH9ENtm6i-s5wAAAE8"
REDIRECT_URL
"/api/_action/paypal/webhook/execute"
REMOTE_ADDR
"173.0.81.140"
REMOTE_PORT
"34400"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1745651567
REQUEST_TIME_FLOAT
1745651567.384
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=Bp4YFQ4ake9yksjQjQo9v73ryhLWZcfN"
SCRIPT_FILENAME
"/var/www/vhosts/s10762.creoline.cloud/testenv/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://testenv.thiemann.shop/api/_action/paypal/webhook/execute"
SCRIPT_URL
"/api/_action/paypal/webhook/execute"
SERVER_ADDR
"5.1.77.199"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"testenv.thiemann.shop"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache Server at testenv.thiemann.shop Port 443</address>\n"
SERVER_SOFTWARE
"Apache"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_URL,APP_SECRET,INSTANCE_ID,BLUE_GREEN_DEPLOYMENT,DATABASE_URL,MAILER_URL,OPENSEARCH_URL,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_ES_THROW_EXCEPTION,STOREFRONT_PROXY_URL,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,LOCK_DSN,COMPOSER_HOME,SHOPWARE_ES_THROW_EXEPTION,SHOPWARE_CDN_STRATEGY_DEFAULT"
UNIQUE_ID
"aAyHb-oErSH9ENtm6i-s5wAAAE8"