Error 400 Bad Request

POST https://testsite.kare.ch/api/_action/paypal/webhook/execute?sw-token=6qs4FKVDYi5fV6w9iJejGdiahX7NJ8me

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"6qs4FKVDYi5fV6w9iJejGdiahX7NJ8me"

POST Parameters

Key Value
create_time
"2026-04-16T06:33:11.445Z"
event_type
"CHECKOUT.ORDER.APPROVED"
event_version
"1.0"
id
"WH-33P93896WV6095225-4J6353899P136581A"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-33P93896WV6095225-4J6353899P136581A"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-33P93896WV6095225-4J6353899P136581A/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "create_time" => "2026-04-16T06:32:30Z"
  "purchase_units" => [
    [
      "reference_id" => "default"
      "amount" => [
        "currency_code" => "CHF"
        "value" => "67.95"
        "breakdown" => [
          "item_total" => [
            "currency_code" => "CHF"
            "value" => "52.95"
          ]
          "shipping" => [
            "currency_code" => "CHF"
            "value" => "15.00"
          ]
          "handling" => [
            "currency_code" => "CHF"
            "value" => "0.00"
          ]
          "tax_total" => [
            "currency_code" => "CHF"
            "value" => "0.00"
          ]
          "discount" => [
            "currency_code" => "CHF"
            "value" => "0.00"
          ]
        ]
      ]
      "payee" => [
        "email_address" => "onlineshop@kare.ch"
        "merchant_id" => "JAEKTDS4FZZ38"
        "display_data" => [
          "brand_name" => "Designlife GmbH - KARE Schweiz"
        ]
      ]
      "custom_id" => "{"orderTransactionId":"019d94fdb67e7283a6f049e8f6a49f66","pluginVersion":"9.11.0","shopwareVersion":"6.6.5.1"}"
      "invoice_id" => "50785"
      "items" => [
        [
          "name" => "Schale Birdie Ø26cm"
          "unit_amount" => [
            "currency_code" => "CHF"
            "value" => "52.95"
          ]
          "tax" => [
            "currency_code" => "CHF"
            "value" => "0.00"
          ]
          "quantity" => "1"
          "sku" => "4025621528647"
          "tax_rate" => "0"
          "category" => "PHYSICAL_GOODS"
        ]
      ]
      "shipping" => [
        "name" => [
          "full_name" => "Viviane Stoffel"
        ]
        "address" => [
          "address_line_1" => "Bifiga 7"
          "admin_area_2" => "Visperterminen"
          "postal_code" => "3932"
          "country_code" => "CH"
        ]
      ]
    ]
  ]
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/7B7315635N969315P"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/7B7315635N969315P"
      "rel" => "update"
      "method" => "PATCH"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/7B7315635N969315P/capture"
      "rel" => "capture"
      "method" => "POST"
    ]
  ]
  "id" => "7B7315635N969315P"
  "payment_source" => [
    "paypal" => [
      "email_address" => "viviane.m@bluewin.ch"
      "account_id" => "3V9TM7ZSTD9W6"
      "account_status" => "VERIFIED"
      "name" => [
        "given_name" => "Viviane"
        "surname" => "Stoffel"
      ]
      "address" => [
        "address_line_1" => "Bifiga 7"
        "admin_area_2" => "Visperterminen"
        "postal_code" => "3932"
        "country_code" => "CH"
      ]
    ]
  ]
  "intent" => "CAPTURE"
  "payer" => [
    "name" => [
      "given_name" => "Viviane"
      "surname" => "Stoffel"
    ]
    "email_address" => "viviane.m@bluewin.ch"
    "payer_id" => "3V9TM7ZSTD9W6"
    "address" => [
      "address_line_1" => "Bifiga 7"
      "admin_area_2" => "Visperterminen"
      "postal_code" => "3932"
      "country_code" => "CH"
    ]
  ]
  "status" => "APPROVED"
]
resource_type
"checkout-order"
resource_version
"2.0"
summary
"An order has been approved by buyer"

Uploaded Files

No files were uploaded

Request Attributes

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

Request Headers

Header Value
accept
"*/*"
connection
"close"
content-length
"2560"
content-type
"application/json"
correlation-id
"f118057a13bb0"
forwarded
"for="66.211.170.66";host="testsite.kare.ch";proto=https"
host
"testsite.kare.ch"
paypal-auth-algo
"SHA256withRSA"
paypal-auth-version
"v2"
paypal-cert-url
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-ba64dfce"
paypal-transmission-id
"23cecb2a-395e-11f1-97b7-bfc3b8ba2d51"
paypal-transmission-sig
"XEb59WQtuOzMkiiPUMiUunH2B2J2/ZcisWrnRFslDMeMwDW+wgmrkxzo65Da1VazB6fQE9BfF27AtSoYQKG/OV+TH/dZBQNAxrr3vGOHmDJHKiNsfaovA/s8mCKlyI4llBlSEyMwL0Q2RRZvZDvW8RNLHeTUook8G08AGmIcqhzMRbGP0Bco2wlw98cxbRtvU6jtK0OrE1fU292ub6yz3M8nljkJcsk2QP1UP581Q0YV06hY+NZ2u8PO46Q5DOylAs5QmbxeKOdIt23vTaJ5zlLJW0S9qy8Xkb26BbzGPp17VPzo8MmPoqPYvdKNeEKkHHYxH/YyMwGfGXBxVqLc9g=="
paypal-transmission-time
"2026-04-16T06:33:11Z"
surrogate-capability
"symfony="ESI/1.0""
user-agent
"PayPal/AUHR-1.0-1"
x-forwarded-for
"66.211.170.66"
x-php-ob-level
"1"

Request Content

Pretty

{
    "id": "WH-33P93896WV6095225-4J6353899P136581A",
    "event_version": "1.0",
    "create_time": "2026-04-16T06:33:11.445Z",
    "resource_type": "checkout-order",
    "resource_version": "2.0",
    "event_type": "CHECKOUT.ORDER.APPROVED",
    "summary": "An order has been approved by buyer",
    "resource": {
        "create_time": "2026-04-16T06:32:30Z",
        "purchase_units": [
            {
                "reference_id": "default",
                "amount": {
                    "currency_code": "CHF",
                    "value": "67.95",
                    "breakdown": {
                        "item_total": {
                            "currency_code": "CHF",
                            "value": "52.95"
                        },
                        "shipping": {
                            "currency_code": "CHF",
                            "value": "15.00"
                        },
                        "handling": {
                            "currency_code": "CHF",
                            "value": "0.00"
                        },
                        "tax_total": {
                            "currency_code": "CHF",
                            "value": "0.00"
                        },
                        "discount": {
                            "currency_code": "CHF",
                            "value": "0.00"
                        }
                    }
                },
                "payee": {
                    "email_address": "onlineshop@kare.ch",
                    "merchant_id": "JAEKTDS4FZZ38",
                    "display_data": {
                        "brand_name": "Designlife GmbH - KARE Schweiz"
                    }
                },
                "custom_id": "{\"orderTransactionId\":\"019d94fdb67e7283a6f049e8f6a49f66\",\"pluginVersion\":\"9.11.0\",\"shopwareVersion\":\"6.6.5.1\"}",
                "invoice_id": "50785",
                "items": [
                    {
                        "name": "Schale Birdie \u00d826cm",
                        "unit_amount": {
                            "currency_code": "CHF",
                            "value": "52.95"
                        },
                        "tax": {
                            "currency_code": "CHF",
                            "value": "0.00"
                        },
                        "quantity": "1",
                        "sku": "4025621528647",
                        "tax_rate": "0",
                        "category": "PHYSICAL_GOODS"
                    }
                ],
                "shipping": {
                    "name": {
                        "full_name": "Viviane Stoffel"
                    },
                    "address": {
                        "address_line_1": "Bifiga 7",
                        "admin_area_2": "Visperterminen",
                        "postal_code": "3932",
                        "country_code": "CH"
                    }
                }
            }
        ],
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/7B7315635N969315P",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/7B7315635N969315P",
                "rel": "update",
                "method": "PATCH"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/7B7315635N969315P\/capture",
                "rel": "capture",
                "method": "POST"
            }
        ],
        "id": "7B7315635N969315P",
        "payment_source": {
            "paypal": {
                "email_address": "viviane.m@bluewin.ch",
                "account_id": "3V9TM7ZSTD9W6",
                "account_status": "VERIFIED",
                "name": {
                    "given_name": "Viviane",
                    "surname": "Stoffel"
                },
                "address": {
                    "address_line_1": "Bifiga 7",
                    "admin_area_2": "Visperterminen",
                    "postal_code": "3932",
                    "country_code": "CH"
                }
            }
        },
        "intent": "CAPTURE",
        "payer": {
            "name": {
                "given_name": "Viviane",
                "surname": "Stoffel"
            },
            "email_address": "viviane.m@bluewin.ch",
            "payer_id": "3V9TM7ZSTD9W6",
            "address": {
                "address_line_1": "Bifiga 7",
                "admin_area_2": "Visperterminen",
                "postal_code": "3932",
                "country_code": "CH"
            }
        },
        "status": "APPROVED"
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-33P93896WV6095225-4J6353899P136581A",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-33P93896WV6095225-4J6353899P136581A\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-33P93896WV6095225-4J6353899P136581A","event_version":"1.0","create_time":"2026-04-16T06:33:11.445Z","resource_type":"checkout-order","resource_version":"2.0","event_type":"CHECKOUT.ORDER.APPROVED","summary":"An order has been approved by buyer","resource":{"create_time":"2026-04-16T06:32:30Z","purchase_units":[{"reference_id":"default","amount":{"currency_code":"CHF","value":"67.95","breakdown":{"item_total":{"currency_code":"CHF","value":"52.95"},"shipping":{"currency_code":"CHF","value":"15.00"},"handling":{"currency_code":"CHF","value":"0.00"},"tax_total":{"currency_code":"CHF","value":"0.00"},"discount":{"currency_code":"CHF","value":"0.00"}}},"payee":{"email_address":"onlineshop@kare.ch","merchant_id":"JAEKTDS4FZZ38","display_data":{"brand_name":"Designlife GmbH - KARE Schweiz"}},"custom_id":"{\"orderTransactionId\":\"019d94fdb67e7283a6f049e8f6a49f66\",\"pluginVersion\":\"9.11.0\",\"shopwareVersion\":\"6.6.5.1\"}","invoice_id":"50785","items":[{"name":"Schale Birdie Ø26cm","unit_amount":{"currency_code":"CHF","value":"52.95"},"tax":{"currency_code":"CHF","value":"0.00"},"quantity":"1","sku":"4025621528647","tax_rate":"0","category":"PHYSICAL_GOODS"}],"shipping":{"name":{"full_name":"Viviane Stoffel"},"address":{"address_line_1":"Bifiga 7","admin_area_2":"Visperterminen","postal_code":"3932","country_code":"CH"}}}],"links":[{"href":"https://api.paypal.com/v2/checkout/orders/7B7315635N969315P","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/checkout/orders/7B7315635N969315P","rel":"update","method":"PATCH"},{"href":"https://api.paypal.com/v2/checkout/orders/7B7315635N969315P/capture","rel":"capture","method":"POST"}],"id":"7B7315635N969315P","payment_source":{"paypal":{"email_address":"viviane.m@bluewin.ch","account_id":"3V9TM7ZSTD9W6","account_status":"VERIFIED","name":{"given_name":"Viviane","surname":"Stoffel"},"address":{"address_line_1":"Bifiga 7","admin_area_2":"Visperterminen","postal_code":"3932","country_code":"CH"}}},"intent":"CAPTURE","payer":{"name":{"given_name":"Viviane","surname":"Stoffel"},"email_address":"viviane.m@bluewin.ch","payer_id":"3V9TM7ZSTD9W6","address":{"address_line_1":"Bifiga 7","admin_area_2":"Visperterminen","postal_code":"3932","country_code":"CH"}},"status":"APPROVED"},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-33P93896WV6095225-4J6353899P136581A","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-33P93896WV6095225-4J6353899P136581A/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
"Fri, 17 Apr 2026 14:43:07 GMT"
server-timing
""
x-debug-token
"772430"

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
ADMIN_OPENSEARCH_URL
"http://localhost:9200"
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"tesztkornyezet-1234567890abcdefg"
APP_TIMEZONE
"Europe/Zurich"
APP_URL
"http://testsite.kare.ch"
AWS_ACCESS_KEY_ID
"C6JZI6WC22M4G5SM7NOH"
AWS_BUCKET
"karesw6"
AWS_ENDPOINT
"https://s3.eu-central-1.wasabisys.com"
AWS_REGION
"eu-central-2"
AWS_SECRET_ACCESS_KEY
"EaiyUIdJZjnglnmDSzAiLCFnm0NhTQoNiGzusiAX"
BLUE_GREEN_DEPLOYMENT
"1"
COMPOSER_HOME
"/home/karrwljk/testenv.kare.ch/shopware/var/cache/composer"
DATABASE_URL
"mysql://karrwljk1:boPKx%2A%3FhO3Sf@localhost:3306/usrdb_karrwljk1"
INSTANCE_ID
"tesztkornyezet-instance-123456"
LOCK_DSN
"flock"
MAILER_URL
"null://null"
OPENSEARCH_URL
"http://localhost:9200"
SHOPWARE_ES_ENABLED
"0"
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"
STOREFRONT_PROXY_URL
"http://localhost"

Defined as regular env variables

Key Value
CONTENT_LENGTH
"2560"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/usr/local/fastcgi-starter/"
CONTEXT_PREFIX
"/fastcgist/"
DOCUMENT_ROOT
"/home/karrwljk/testsite.kare.ch/shopware/public/"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
GROUP
"karrwljk"
HOME
"/home/karrwljk"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_CORRELATION_ID
"f118057a13bb0"
HTTP_FORWARDED
"for="66.211.170.66";host="testsite.kare.ch";proto=https"
HTTP_HOST
"testsite.kare.ch"
HTTP_PAYPAL_AUTH_ALGO
"SHA256withRSA"
HTTP_PAYPAL_AUTH_VERSION
"v2"
HTTP_PAYPAL_CERT_URL
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-ba64dfce"
HTTP_PAYPAL_TRANSMISSION_ID
"23cecb2a-395e-11f1-97b7-bfc3b8ba2d51"
HTTP_PAYPAL_TRANSMISSION_SIG
"XEb59WQtuOzMkiiPUMiUunH2B2J2/ZcisWrnRFslDMeMwDW+wgmrkxzo65Da1VazB6fQE9BfF27AtSoYQKG/OV+TH/dZBQNAxrr3vGOHmDJHKiNsfaovA/s8mCKlyI4llBlSEyMwL0Q2RRZvZDvW8RNLHeTUook8G08AGmIcqhzMRbGP0Bco2wlw98cxbRtvU6jtK0OrE1fU292ub6yz3M8nljkJcsk2QP1UP581Q0YV06hY+NZ2u8PO46Q5DOylAs5QmbxeKOdIt23vTaJ5zlLJW0S9qy8Xkb26BbzGPp17VPzo8MmPoqPYvdKNeEKkHHYxH/YyMwGfGXBxVqLc9g=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2026-04-16T06:33:11Z"
HTTP_USER_AGENT
"PayPal/AUHR-1.0-1"
HTTP_X_FORWARDED_FOR
"66.211.170.66"
ORIG_PATH_INFO
"/index.php"
ORIG_PATH_TRANSLATED
"/home/karrwljk/testsite.kare.ch/shopware/public/index.php"
ORIG_SCRIPT_FILENAME
"/usr/local/fastcgi-starter/php8.3"
ORIG_SCRIPT_NAME
"/fastcgist/php8.3"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_FCGI_MAX_REQUESTS
"0"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=6qs4FKVDYi5fV6w9iJejGdiahX7NJ8me"
REDIRECT_HANDLER
"php-fastcgi8.3"
REDIRECT_HTTPS
"on"
REDIRECT_QUERY_STRING
"sw-token=6qs4FKVDYi5fV6w9iJejGdiahX7NJ8me"
REDIRECT_REDIRECT_HTTPS
"on"
REDIRECT_REDIRECT_SSL_TLS_SNI
"testsite.kare.ch"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"testsite.kare.ch"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/index.php"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"16833"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1776436987
REQUEST_TIME_FLOAT
1776436987.7441
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=6qs4FKVDYi5fV6w9iJejGdiahX7NJ8me"
SCRIPT_FILENAME
"/home/karrwljk/testsite.kare.ch/shopware/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"81.88.33.129"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"testsite.kare.ch"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"testsite.kare.ch"
SYMFONY_DOTENV_PATH
"/home/karrwljk/testsite.kare.ch/shopware/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_DEBUG,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,AWS_BUCKET,AWS_ENDPOINT,AWS_REGION,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,APP_URL,APP_TIMEZONE,COMPOSER_HOME,ADMIN_OPENSEARCH_URL"
USER
"karrwljk"