Error 400 Bad Request

POST https://shopware6.eps-dev.com/api/_action/paypal/webhook/execute?sw-token=lhbVU0hpDoDyoBrR60oiJAnPqivwAiLS

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"lhbVU0hpDoDyoBrR60oiJAnPqivwAiLS"

POST Parameters

Key Value
create_time
"2025-01-22T14:33:14.492Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-30R15044LA857025D-10P14749B24806459"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-30R15044LA857025D-10P14749B24806459"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-30R15044LA857025D-10P14749B24806459/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "50440858BV3863818"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "52.41"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "52.41"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "1.96"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "50.45"
    ]
  ]
  "invoice_id" => "74382"
  "custom_id" => "{"orderTransactionId":"01948e6caf527396a534cd7982352358","pluginVersion":"9.2.0","shopwareVersion":"6.6.7.1"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "88801137GF423520K"
    ]
  ]
  "payee" => [
    "email_address" => "buchhaltung@eps-vertrieb.de"
    "merchant_id" => "RYSLL6R853KCN"
  ]
  "create_time" => "2025-01-22T14:33:09Z"
  "update_time" => "2025-01-22T14:33:09Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/50440858BV3863818"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/50440858BV3863818/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/88801137GF423520K"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for EUR 52.41 EUR"

Uploaded Files

No files were uploaded

Request Attributes

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

Request Headers

Header Value
accept
"*/*"
connection
"close"
content-length
"1677"
content-type
"application/json"
correlation-id
"1f8ba9db5376f"
forwarded
"for="173.0.81.140";host="shopware6.eps-dev.com";proto=https"
host
"shopware6.eps-dev.com"
paypal-auth-algo
"SHA256withRSA"
paypal-auth-version
"v2"
paypal-cert-url
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-1a5f47cb"
paypal-transmission-id
"d2f7b905-d8cd-11ef-b309-8543674f5fc3"
paypal-transmission-sig
"mSaHPOzhiU8IJ1v2Z1qfWa6On99JBfQdNOPReETHtdZirjUtzp5cCTvdqy1qMetkYng8XWepVdkP/gUuddhy8Hld8JsZ4OGE198/Ip3o+zj8jixcrSaiG6+5vgR47dD8ogHwnItU5QV2/wJueGokuueZ/B+BCOqBSw8qrI5MfFYwEmXyW7V1nQPyh4HHrK+/HvHCFcd+j+mnIRLkOMyprCRULa+4Twh7oNze0uk0ApU3SM0OyfQQzfPtAQ7CLdW5An57nRxFtAATuE7OSq41Y88ePTaT9IEwcfTREoFRlHAXbQwjkh1ZXB12VSobOienRs4D7l8URQ4zK7rmewq1JQ=="
paypal-transmission-time
"2025-01-22T14:33:19Z"
surrogate-capability
"symfony="ESI/1.0""
user-agent
"PayPal/AUHR-214.0-58816597"
x-accel-internal
"/internal-nginx-static-location"
x-b3-spanid
"7731576ebb9de22"
x-forwarded-for
"173.0.81.140"
x-php-ob-level
"1"
x-real-ip
"173.0.81.140"

Request Content

Pretty

{
    "id": "WH-30R15044LA857025D-10P14749B24806459",
    "event_version": "1.0",
    "create_time": "2025-01-22T14:33:14.492Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for EUR 52.41 EUR",
    "resource": {
        "id": "50440858BV3863818",
        "amount": {
            "currency_code": "EUR",
            "value": "52.41"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "52.41"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "1.96"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "50.45"
            }
        },
        "invoice_id": "74382",
        "custom_id": "{\"orderTransactionId\":\"01948e6caf527396a534cd7982352358\",\"pluginVersion\":\"9.2.0\",\"shopwareVersion\":\"6.6.7.1\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "88801137GF423520K"
            }
        },
        "payee": {
            "email_address": "buchhaltung@eps-vertrieb.de",
            "merchant_id": "RYSLL6R853KCN"
        },
        "create_time": "2025-01-22T14:33:09Z",
        "update_time": "2025-01-22T14:33:09Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/50440858BV3863818",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/50440858BV3863818\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/88801137GF423520K",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-30R15044LA857025D-10P14749B24806459",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-30R15044LA857025D-10P14749B24806459\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-30R15044LA857025D-10P14749B24806459","event_version":"1.0","create_time":"2025-01-22T14:33:14.492Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for EUR 52.41 EUR","resource":{"id":"50440858BV3863818","amount":{"currency_code":"EUR","value":"52.41"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"52.41"},"paypal_fee":{"currency_code":"EUR","value":"1.96"},"net_amount":{"currency_code":"EUR","value":"50.45"}},"invoice_id":"74382","custom_id":"{\"orderTransactionId\":\"01948e6caf527396a534cd7982352358\",\"pluginVersion\":\"9.2.0\",\"shopwareVersion\":\"6.6.7.1\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"88801137GF423520K"}},"payee":{"email_address":"buchhaltung@eps-vertrieb.de","merchant_id":"RYSLL6R853KCN"},"create_time":"2025-01-22T14:33:09Z","update_time":"2025-01-22T14:33:09Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/50440858BV3863818","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/50440858BV3863818/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/88801137GF423520K","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-30R15044LA857025D-10P14749B24806459","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-30R15044LA857025D-10P14749B24806459/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"
b2b-no-login
"1"
cache-control
"no-cache, private"
content-type
"application/json"
date
"Wed, 22 Jan 2025 20:52:05 GMT"
server-timing
""
x-debug-token
"6b0550"

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
"def000001f61b39e6bff1c0b6bb2cc76388da84a01b8fa30bbb881d0d550e4eade0a6608802ec4dbbe06b4c46e8e1a22b17e6eb1c76f33a7e39722a57fc78f1cd1862f95"
APP_URL
"https://shopware6.eps-dev.com"
BLUE_GREEN_DEPLOYMENT
"0"
COMPOSER_HOME
"/var/www/vhosts/eps-dev.com/shopware6.eps-dev.com/var/cache/composer"
DATABASE_URL
"mysql://shopsix:tl8Ol364%23@localhost:3306/shopware6"
ES_MULTILINGUAL_INDEX
"1"
INSTANCE_ID
"8Kdsu4RQ00b9ACr88fP0yBTlBhlFaHJT"
LOCK_DSN
"flock"
MAILER_URL
"null://null"
OPENSEARCH_URL
"http://admin:CS1+2IHnRy34QYO0rr1GgEMXqXPBbw2HAupdZd30q0=@10.20.0.3:9200"
PROXY_URL
"http://localhost"
SHOPWARE_ADMIN_ES_ENABLED
"0"
SHOPWARE_ADMIN_ES_INDEX_PREFIX
"sw6_ad"
SHOPWARE_ADMIN_ES_REFRESH_INDICES
"0"
SHOPWARE_ES_ENABLED
"1"
SHOPWARE_ES_INDEXING_ENABLED
"1"
SHOPWARE_ES_INDEX_PREFIX
"sw_dev"
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"
CONTENT_LENGTH
"1677"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/eps-dev.com/shopware6.eps-dev.com/public/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/vhosts/eps-dev.com/shopware6.eps-dev.com/public/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www/vhosts/eps-dev.com"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_CORRELATION_ID
"1f8ba9db5376f"
HTTP_FORWARDED
"for="173.0.81.140";host="shopware6.eps-dev.com";proto=https"
HTTP_HOST
"shopware6.eps-dev.com"
HTTP_PAYPAL_AUTH_ALGO
"SHA256withRSA"
HTTP_PAYPAL_AUTH_VERSION
"v2"
HTTP_PAYPAL_CERT_URL
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-1a5f47cb"
HTTP_PAYPAL_TRANSMISSION_ID
"d2f7b905-d8cd-11ef-b309-8543674f5fc3"
HTTP_PAYPAL_TRANSMISSION_SIG
"mSaHPOzhiU8IJ1v2Z1qfWa6On99JBfQdNOPReETHtdZirjUtzp5cCTvdqy1qMetkYng8XWepVdkP/gUuddhy8Hld8JsZ4OGE198/Ip3o+zj8jixcrSaiG6+5vgR47dD8ogHwnItU5QV2/wJueGokuueZ/B+BCOqBSw8qrI5MfFYwEmXyW7V1nQPyh4HHrK+/HvHCFcd+j+mnIRLkOMyprCRULa+4Twh7oNze0uk0ApU3SM0OyfQQzfPtAQ7CLdW5An57nRxFtAATuE7OSq41Y88ePTaT9IEwcfTREoFRlHAXbQwjkh1ZXB12VSobOienRs4D7l8URQ4zK7rmewq1JQ=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2025-01-22T14:33:19Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58816597"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_B3_SPANID
"7731576ebb9de22"
HTTP_X_FORWARDED_FOR
"173.0.81.140"
HTTP_X_REAL_IP
"173.0.81.140"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=lhbVU0hpDoDyoBrR60oiJAnPqivwAiLS"
REDIRECT_HTTPS
"on"
REDIRECT_QUERY_STRING
"sw-token=lhbVU0hpDoDyoBrR60oiJAnPqivwAiLS"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"Z5FadKvYvSxVwBrqURG2mAAAAIM"
REDIRECT_URL
"/api/_action/paypal/webhook/execute"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"43896"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1737579124
REQUEST_TIME_FLOAT
1737579124.8232
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=lhbVU0hpDoDyoBrR60oiJAnPqivwAiLS"
SCRIPT_FILENAME
"/var/www/vhosts/eps-dev.com/shopware6.eps-dev.com/public/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"5.1.77.111"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"shopware6.eps-dev.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache Server at shopware6.eps-dev.com Port 443</address>\n"
SERVER_SOFTWARE
"Apache"
SYMFONY_DOTENV_PATH
"/var/www/vhosts/eps-dev.com/shopware6.eps-dev.com/public/.env"
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,PROXY_URL,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,LOCK_DSN,COMPOSER_HOME,ES_MULTILINGUAL_INDEX,SHOPWARE_ADMIN_ES_ENABLED,SHOPWARE_ADMIN_ES_REFRESH_INDICES,SHOPWARE_ADMIN_ES_INDEX_PREFIX"
UNIQUE_ID
"Z5FadKvYvSxVwBrqURG2mAAAAIM"
USER
"eps_dev"
proxy-nokeepalive
"1"