Error 400 Bad Request

POST https://stage2.dev.asus-tester.de/api/_action/paypal/webhook/execute?sw-token=lkRMC3egxBuaYeZo0CKQ6cHxgHNJms7g

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"lkRMC3egxBuaYeZo0CKQ6cHxgHNJms7g"

POST Parameters

Key Value
create_time
"2025-09-09T15:40:52.262Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-8PV290294V7760435-13A05244L58376148"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-8PV290294V7760435-13A05244L58376148"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-8PV290294V7760435-13A05244L58376148/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "67898863EB904503T"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "188.10"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "188.10"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "3.15"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "184.95"
    ]
  ]
  "invoice_id" => "NL6002968"
  "custom_id" => "{"orderTransactionId":"01992f22eb6871559a8e56c262ad776c","pluginVersion":"9.8.2-c","shopwareVersion":"6.6.9.0"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "5KD55064J55303545"
    ]
  ]
  "payee" => [
    "email_address" => "paypal@asus-shop.de"
    "merchant_id" => "42JKJK7YGPXSS"
  ]
  "create_time" => "2025-09-09T15:40:48Z"
  "update_time" => "2025-09-09T15:40:53Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/67898863EB904503T"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/67898863EB904503T/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/5KD55064J55303545"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for € 188.1 EUR"

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"Swag\PayPal\Webhook\WebhookController::executeWebhook"
_cspNonce
"ZfmDspFLnOE="
_route
"api.action.paypal.webhook.execute"
_routeScope
[
  "api"
]
_route_params
[
  "auth_required" => false
]
_stopwatch_token
"211eb9"
auth_required
false
kielcoding-current-url
"https://stage2.dev.asus-tester.de/api/_action/paypal/webhook/execute"
sw-context
Shopware\Core\Framework\Context {#2985
  #extensions: []
  #languageIdChain: [
    "2fbb5fe2e29a4d70aa5854ce7ce3e20b"
  ]
  #scope: "system"
  #rulesLocked: false
  #source: Shopware\Core\Framework\Api\Context\SystemSource {#2994 …}
  #ruleIds: []
  #currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca"
  #versionId: "0fa91ce3e96a4bc2be4bd9ce752c3425"
  #currencyFactor: 1.0
  #considerInheritance: false
  #taxState: "gross"
  #rounding: Shopware\Core\Framework\DataAbstractionLayer\Pricing\CashRoundingConfig {#2983 …}
  #states: []
}

Request Headers

Header Value
accept
"*/*"
authorization
""
content-length
"1678"
content-type
"application/json"
correlation-id
"11a74dfcabdec"
forwarded
"for="173.0.81.65";host="stage2.dev.asus-tester.de";proto=https"
host
"stage2.dev.asus-tester.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
"601e9014-8d93-11f0-b553-1d8514be0aa4"
paypal-transmission-sig
"J1qpzBtfw0mx7uLtJRVb97bWUJuC9nnZnCRXMwcAmXwwGYk0WbvpiM8QSJudVJpZk2sf4Q61xcSCpazQAN5Lrt+6R1hW4+PtVp9BDItuK3w13KADF0FfUiKxe4fEqiipnE+VZF8yk68nodkvOlAT6pJdbrOQqvfP+dE05eyOdEzdfQUsqhAl9v0ruf86xR/GkVv8Hs3ZE/gXv7r2HuX2viXQetZ4rzFeAOQh/jbqUpZp9k+6DTv8EGvwwQ/CvJWZP9hxLa4XuwcoXdyc46UEgWRenThWVngoUBQLVli+c8iFQTC61gDc3xDtzRPOVbb9LfU/P88jkIBkMHBb6rg4OQ=="
paypal-transmission-time
"2025-09-09T15:40:56Z"
surrogate-capability
"symfony="ESI/1.0""
user-agent
"PayPal/AUHR-1.0-1"
x-forwarded-for
"173.0.81.65"
x-php-ob-level
"1"

Request Content

Pretty

{
    "id": "WH-8PV290294V7760435-13A05244L58376148",
    "event_version": "1.0",
    "create_time": "2025-09-09T15:40:52.262Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for \u20ac 188.1 EUR",
    "resource": {
        "id": "67898863EB904503T",
        "amount": {
            "currency_code": "EUR",
            "value": "188.10"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "188.10"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "3.15"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "184.95"
            }
        },
        "invoice_id": "NL6002968",
        "custom_id": "{\"orderTransactionId\":\"01992f22eb6871559a8e56c262ad776c\",\"pluginVersion\":\"9.8.2-c\",\"shopwareVersion\":\"6.6.9.0\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "5KD55064J55303545"
            }
        },
        "payee": {
            "email_address": "paypal@asus-shop.de",
            "merchant_id": "42JKJK7YGPXSS"
        },
        "create_time": "2025-09-09T15:40:48Z",
        "update_time": "2025-09-09T15:40:53Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/67898863EB904503T",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/67898863EB904503T\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/5KD55064J55303545",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-8PV290294V7760435-13A05244L58376148",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-8PV290294V7760435-13A05244L58376148\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-8PV290294V7760435-13A05244L58376148","event_version":"1.0","create_time":"2025-09-09T15:40:52.262Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for € 188.1 EUR","resource":{"id":"67898863EB904503T","amount":{"currency_code":"EUR","value":"188.10"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"188.10"},"paypal_fee":{"currency_code":"EUR","value":"3.15"},"net_amount":{"currency_code":"EUR","value":"184.95"}},"invoice_id":"NL6002968","custom_id":"{\"orderTransactionId\":\"01992f22eb6871559a8e56c262ad776c\",\"pluginVersion\":\"9.8.2-c\",\"shopwareVersion\":\"6.6.9.0\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"5KD55064J55303545"}},"payee":{"email_address":"paypal@asus-shop.de","merchant_id":"42JKJK7YGPXSS"},"create_time":"2025-09-09T15:40:48Z","update_time":"2025-09-09T15:40:53Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/67898863EB904503T","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/67898863EB904503T/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/5KD55064J55303545","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-8PV290294V7760435-13A05244L58376148","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-8PV290294V7760435-13A05244L58376148/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
"Wed, 10 Sep 2025 21:49:13 GMT"
server-timing
""
x-debug-token
"8f654e"

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
AMQP_URL
"amqp://web-user:oUaHMrWYLSfEqeNz@localhost:5672/%2F?connection_timeout=50&heartbeat=0"
APP_ENV
"dev"
APP_SECRET
"def0000036ac71747ba46fc0e91634c1afa03b7a47efa51c397af215163e11806ac39905e680ac49175499642d572ae6a1a33c36534d4c27eb90abeca24dbbf4b1df8ae4"
APP_URL
"https://webshop.asus.com"
BLUE_GREEN_DEPLOYMENT
"1"
COMPOSER_HOME
"/var/www/share/webshop.asus.com/staging/releases/stage_sw6.6.9/var/cache/composer"
DATABASE_URL
"mysql://db-user-7:vY0EkxeWCTSBcea2vxk9@194.6.211.112:3306/db-7"
ES_MULTILINGUAL_INDEX
"1"
INSTANCE_ID
"UncCZr2JShSFoupK7MNLbZL2PnDGGcby"
LOG_ROTATION_DAYS
"7"
MAILER_URL
"null://localhost"
MY_DEBUG_VAR
"hello123"
OPENSEARCH_URL
"http://127.0.0.1:9200"
REDIS_SESSION_HOST
"127.0.0.1"
REDIS_SESSION_PORT
"6380"
SHOPWARE_CDN_STRATEGY_DEFAULT
"id"
SHOPWARE_ES_ENABLED
"0"
SHOPWARE_ES_HOSTS
"127.0.0.1:9500"
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
APP_DEBUG
"1"
APP_RUNTIME_OPTIONS
[
  "prod_envs" => [
    "prod"
    "e2e"
  ]
]
CONTENT_LENGTH
"1678"
CONTENT_TYPE
"application/json"
DOCUMENT_ROOT
"/var/www/share/stage2.dev.asus-tester.de/htdocs/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www/share"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_AUTHORIZATION
""
HTTP_CONTENT_LENGTH
"1678"
HTTP_CONTENT_TYPE
"application/json"
HTTP_CORRELATION_ID
"11a74dfcabdec"
HTTP_FORWARDED
"for="173.0.81.65";host="stage2.dev.asus-tester.de";proto=https"
HTTP_HOST
"stage2.dev.asus-tester.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
"601e9014-8d93-11f0-b553-1d8514be0aa4"
HTTP_PAYPAL_TRANSMISSION_SIG
"J1qpzBtfw0mx7uLtJRVb97bWUJuC9nnZnCRXMwcAmXwwGYk0WbvpiM8QSJudVJpZk2sf4Q61xcSCpazQAN5Lrt+6R1hW4+PtVp9BDItuK3w13KADF0FfUiKxe4fEqiipnE+VZF8yk68nodkvOlAT6pJdbrOQqvfP+dE05eyOdEzdfQUsqhAl9v0ruf86xR/GkVv8Hs3ZE/gXv7r2HuX2viXQetZ4rzFeAOQh/jbqUpZp9k+6DTv8EGvwwQ/CvJWZP9hxLa4XuwcoXdyc46UEgWRenThWVngoUBQLVli+c8iFQTC61gDc3xDtzRPOVbb9LfU/P88jkIBkMHBb6rg4OQ=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2025-09-09T15:40:56Z"
HTTP_USER_AGENT
"PayPal/AUHR-1.0-1"
HTTP_X_FORWARDED_FOR
"173.0.81.65"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=lkRMC3egxBuaYeZo0CKQ6cHxgHNJms7g"
REDIRECT_STATUS
"200"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"45192"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1757540952
REQUEST_TIME_FLOAT
1757540952.9018
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=lkRMC3egxBuaYeZo0CKQ6cHxgHNJms7g"
SCRIPT_FILENAME
"/var/www/share/webshop.asus.com/staging/releases/stage_sw6.6.9/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"194.6.211.111"
SERVER_NAME
"stage2.dev.asus-tester.de"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"nginx/1.28.0"
SYMFONY_DOTENV_PATH
"/var/www/share/webshop.asus.com/staging/releases/stage_sw6.6.9/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,APP_URL,MAILER_URL,DATABASE_URL,COMPOSER_HOME,INSTANCE_ID,BLUE_GREEN_DEPLOYMENT,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,SHOPWARE_ES_HOSTS,OPENSEARCH_URL,ES_MULTILINGUAL_INDEX,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_ES_THROW_EXCEPTION,SHOPWARE_CDN_STRATEGY_DEFAULT,REDIS_SESSION_HOST,REDIS_SESSION_PORT,AMQP_URL,LOG_ROTATION_DAYS,MY_DEBUG_VAR"
USER
"web-user"