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-24T23:08:09.733Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-6PM80496PN671712M-27759205A2314915C"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-6PM80496PN671712M-27759205A2314915C"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-6PM80496PN671712M-27759205A2314915C/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "1JV60819SL5040258"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "62.95"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "62.95"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "2.27"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "60.68"
    ]
  ]
  "invoice_id" => "45023"
  "custom_id" => "{"orderTransactionId":"01966a0ee58872879a9348e6908be226","pluginVersion":"9.7.4","shopwareVersion":"6.6.10.2"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "6DR21537H76968444"
    ]
  ]
  "payee" => [
    "email_address" => "info@thiemann-shop.de"
    "merchant_id" => "N758N8M7EG3LY"
  ]
  "create_time" => "2025-04-24T23:08:05Z"
  "update_time" => "2025-04-24T23:08:05Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/1JV60819SL5040258"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/1JV60819SL5040258/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/6DR21537H76968444"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for € 62.95 EUR"

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"Swag\PayPal\Webhook\WebhookController::executeWebhook"
_cspNonce
"PitaOvk8MSQ="
_route
"api.action.paypal.webhook.execute"
_routeScope
[
  "api"
]
_route_params
[
  "auth_required" => false
]
_stopwatch_token
"a0aafd"
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
"53f2867c79480"
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
"ffaa67e5-2160-11f0-b56e-55909ce0208a"
paypal-transmission-sig
"HRfabfItw5RifQXYoSnRhmb5wTm+ZvVzFROekNpDobl0QxN+F81EJUSgLPMc5HEa42aL2O6RnJs8FF0Vk6py9MTmUSsZVvfhYostU+0NlMDylR/3EOeTwtJyKpNFQWl4CAZ41c01vHXOk/w3+MgpW/eHkAW+QRlKbOSHrVgFR4a4nXx1ujfheWPYIdq2eMicBbfpZOWHyShkjarkbpQL7y1ShEqnU55vLlsqBd1pRVg65brRr+TleukfSUAGqYJyyLvkG8UuSWu/LYV4rj/4DvvS3UjCunpjC12JBJLnRDg6h/Ce0gj2QYxasOS9viKeI/ZTnI+Dk24oPrpofaMuRg=="
paypal-transmission-time
"2025-04-24T23:08:13Z"
user-agent
"PayPal/AUHR-214.0-58843836"
x-accel-internal
"/internal-nginx-static-location"
x-b3-spanid
"e470d25adf770f02"
x-php-ob-level
"1"
x-real-ip
"173.0.81.65"

Request Content

Pretty

{
    "id": "WH-6PM80496PN671712M-27759205A2314915C",
    "event_version": "1.0",
    "create_time": "2025-04-24T23:08:09.733Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for \u20ac 62.95 EUR",
    "resource": {
        "id": "1JV60819SL5040258",
        "amount": {
            "currency_code": "EUR",
            "value": "62.95"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "62.95"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "2.27"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "60.68"
            }
        },
        "invoice_id": "45023",
        "custom_id": "{\"orderTransactionId\":\"01966a0ee58872879a9348e6908be226\",\"pluginVersion\":\"9.7.4\",\"shopwareVersion\":\"6.6.10.2\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "6DR21537H76968444"
            }
        },
        "payee": {
            "email_address": "info@thiemann-shop.de",
            "merchant_id": "N758N8M7EG3LY"
        },
        "create_time": "2025-04-24T23:08:05Z",
        "update_time": "2025-04-24T23:08:05Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/1JV60819SL5040258",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/1JV60819SL5040258\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/6DR21537H76968444",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-6PM80496PN671712M-27759205A2314915C",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-6PM80496PN671712M-27759205A2314915C\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-6PM80496PN671712M-27759205A2314915C","event_version":"1.0","create_time":"2025-04-24T23:08:09.733Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for € 62.95 EUR","resource":{"id":"1JV60819SL5040258","amount":{"currency_code":"EUR","value":"62.95"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"62.95"},"paypal_fee":{"currency_code":"EUR","value":"2.27"},"net_amount":{"currency_code":"EUR","value":"60.68"}},"invoice_id":"45023","custom_id":"{\"orderTransactionId\":\"01966a0ee58872879a9348e6908be226\",\"pluginVersion\":\"9.7.4\",\"shopwareVersion\":\"6.6.10.2\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"6DR21537H76968444"}},"payee":{"email_address":"info@thiemann-shop.de","merchant_id":"N758N8M7EG3LY"},"create_time":"2025-04-24T23:08:05Z","update_time":"2025-04-24T23:08:05Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/1JV60819SL5040258","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/1JV60819SL5040258/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/6DR21537H76968444","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-6PM80496PN671712M-27759205A2314915C","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-6PM80496PN671712M-27759205A2314915C/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 11:42:42 GMT"
x-debug-token
"bd003e"
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
"53f2867c79480"
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
"ffaa67e5-2160-11f0-b56e-55909ce0208a"
HTTP_PAYPAL_TRANSMISSION_SIG
"HRfabfItw5RifQXYoSnRhmb5wTm+ZvVzFROekNpDobl0QxN+F81EJUSgLPMc5HEa42aL2O6RnJs8FF0Vk6py9MTmUSsZVvfhYostU+0NlMDylR/3EOeTwtJyKpNFQWl4CAZ41c01vHXOk/w3+MgpW/eHkAW+QRlKbOSHrVgFR4a4nXx1ujfheWPYIdq2eMicBbfpZOWHyShkjarkbpQL7y1ShEqnU55vLlsqBd1pRVg65brRr+TleukfSUAGqYJyyLvkG8UuSWu/LYV4rj/4DvvS3UjCunpjC12JBJLnRDg6h/Ce0gj2QYxasOS9viKeI/ZTnI+Dk24oPrpofaMuRg=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2025-04-24T23:08:13Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58843836"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_B3_SPANID
"e470d25adf770f02"
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
"aAzGsd_tzox_TVAD9AiraQAAABM"
REDIRECT_URL
"/api/_action/paypal/webhook/execute"
REMOTE_ADDR
"173.0.81.65"
REMOTE_PORT
"46728"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1745667761
REQUEST_TIME_FLOAT
1745667761.9658
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
"aAzGsd_tzox_TVAD9AiraQAAABM"