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-25T10:15:17.342Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-56B71012LT191915G-2B854650NF547593N"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-56B71012LT191915G-2B854650NF547593N"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-56B71012LT191915G-2B854650NF547593N/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "64Y49889BE5902319"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "64.56"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "64.56"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "2.32"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "62.24"
    ]
  ]
  "invoice_id" => "45041"
  "custom_id" => "{"orderTransactionId":"01966c71a9e173ea832d8d3ec7e4c4e1","pluginVersion":"9.7.4","shopwareVersion":"6.6.10.2"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "6SP57408WY514084F"
    ]
  ]
  "payee" => [
    "email_address" => "info@thiemann-shop.de"
    "merchant_id" => "N758N8M7EG3LY"
  ]
  "create_time" => "2025-04-25T10:15:12Z"
  "update_time" => "2025-04-25T10:15:12Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/64Y49889BE5902319"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/64Y49889BE5902319/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/6SP57408WY514084F"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for € 64.56 EUR"

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"Swag\PayPal\Webhook\WebhookController::executeWebhook"
_cspNonce
"oTn23v/J9a8="
_route
"api.action.paypal.webhook.execute"
_routeScope
[
  "api"
]
_route_params
[
  "auth_required" => false
]
_stopwatch_token
"4c7f9b"
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
"a5082ea6b8ac8"
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
"31f1372e-21be-11f0-bf9b-61c75a0bb206"
paypal-transmission-sig
"OPG0Xa8eaYBPZAx5um+WmjspdUa6bBvgYqOY9rfTrNHI+9REaAefoV2vBcp8TVzdowRhUL/QNoe1jXDUqGfqjmQrPZ+EcHtAT05rVV6JgdiiGDOwexmV9nEWK3+QGt49nlj/wzUfrEUeGETTgKMJ/UQGwKq29zFLSTvcQuSZa3aoDLlMZNEtnyDJPmQJXBP+AAKHD1iiPghKRgGo3SOwaxBfqyGAvm1BAp8G2v2lq+bYzFY1qymmoIZZnuKBNLhjnu2/rJLqIrGHnc+ezB1qFF3497rn0Zhjes3R+bFbZLWr49j/9yas7xuhK5cHcub5hBwMDwDrUZAxOVV/TKyKEA=="
paypal-transmission-time
"2025-04-25T10:15:21Z"
user-agent
"PayPal/AUHR-214.0-58843836"
x-accel-internal
"/internal-nginx-static-location"
x-b3-spanid
"6618188207a63e7e"
x-php-ob-level
"1"
x-real-ip
"173.0.81.65"

Request Content

Pretty

{
    "id": "WH-56B71012LT191915G-2B854650NF547593N",
    "event_version": "1.0",
    "create_time": "2025-04-25T10:15:17.342Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for \u20ac 64.56 EUR",
    "resource": {
        "id": "64Y49889BE5902319",
        "amount": {
            "currency_code": "EUR",
            "value": "64.56"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "64.56"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "2.32"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "62.24"
            }
        },
        "invoice_id": "45041",
        "custom_id": "{\"orderTransactionId\":\"01966c71a9e173ea832d8d3ec7e4c4e1\",\"pluginVersion\":\"9.7.4\",\"shopwareVersion\":\"6.6.10.2\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "6SP57408WY514084F"
            }
        },
        "payee": {
            "email_address": "info@thiemann-shop.de",
            "merchant_id": "N758N8M7EG3LY"
        },
        "create_time": "2025-04-25T10:15:12Z",
        "update_time": "2025-04-25T10:15:12Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/64Y49889BE5902319",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/64Y49889BE5902319\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/6SP57408WY514084F",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-56B71012LT191915G-2B854650NF547593N",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-56B71012LT191915G-2B854650NF547593N\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-56B71012LT191915G-2B854650NF547593N","event_version":"1.0","create_time":"2025-04-25T10:15:17.342Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for € 64.56 EUR","resource":{"id":"64Y49889BE5902319","amount":{"currency_code":"EUR","value":"64.56"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"64.56"},"paypal_fee":{"currency_code":"EUR","value":"2.32"},"net_amount":{"currency_code":"EUR","value":"62.24"}},"invoice_id":"45041","custom_id":"{\"orderTransactionId\":\"01966c71a9e173ea832d8d3ec7e4c4e1\",\"pluginVersion\":\"9.7.4\",\"shopwareVersion\":\"6.6.10.2\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"6SP57408WY514084F"}},"payee":{"email_address":"info@thiemann-shop.de","merchant_id":"N758N8M7EG3LY"},"create_time":"2025-04-25T10:15:12Z","update_time":"2025-04-25T10:15:12Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/64Y49889BE5902319","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/64Y49889BE5902319/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/6SP57408WY514084F","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-56B71012LT191915G-2B854650NF547593N","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-56B71012LT191915G-2B854650NF547593N/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 06:34:00 GMT"
x-debug-token
"8d3f7d"
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
"a5082ea6b8ac8"
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
"31f1372e-21be-11f0-bf9b-61c75a0bb206"
HTTP_PAYPAL_TRANSMISSION_SIG
"OPG0Xa8eaYBPZAx5um+WmjspdUa6bBvgYqOY9rfTrNHI+9REaAefoV2vBcp8TVzdowRhUL/QNoe1jXDUqGfqjmQrPZ+EcHtAT05rVV6JgdiiGDOwexmV9nEWK3+QGt49nlj/wzUfrEUeGETTgKMJ/UQGwKq29zFLSTvcQuSZa3aoDLlMZNEtnyDJPmQJXBP+AAKHD1iiPghKRgGo3SOwaxBfqyGAvm1BAp8G2v2lq+bYzFY1qymmoIZZnuKBNLhjnu2/rJLqIrGHnc+ezB1qFF3497rn0Zhjes3R+bFbZLWr49j/9yas7xuhK5cHcub5hBwMDwDrUZAxOVV/TKyKEA=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2025-04-25T10:15:21Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58843836"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_B3_SPANID
"6618188207a63e7e"
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"
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
"aAx-WOoErSH9ENtm6i-pyAAAAFY"
REDIRECT_URL
"/api/_action/paypal/webhook/execute"
REMOTE_ADDR
"173.0.81.65"
REMOTE_PORT
"54272"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1745649240
REQUEST_TIME_FLOAT
1745649240.4696
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
"aAx-WOoErSH9ENtm6i-pyAAAAFY"