Error 400 Bad Request

POST https://testshop.online-forum.net/api/_action/paypal/webhook/execute?sw-token=gPBv8PbajLvqc2GVbTkawqAkxZEKJgyt

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"gPBv8PbajLvqc2GVbTkawqAkxZEKJgyt"

POST Parameters

Key Value
create_time
"2025-06-16T09:55:08.155Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-7KR98809X1024474V-08W22416N17614346"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-7KR98809X1024474V-08W22416N17614346"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-7KR98809X1024474V-08W22416N17614346/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "09G25387E23973900"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "120.38"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "120.38"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "3.99"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "116.39"
    ]
  ]
  "invoice_id" => "AB-400515"
  "custom_id" => "70f6765376ff4e4290f7301400034330"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "0R17611427598140B"
    ]
  ]
  "payee" => [
    "email_address" => "service@schutzkleidung.de"
    "merchant_id" => "2DHAELSGHFGBS"
  ]
  "create_time" => "2025-06-16T09:55:03Z"
  "update_time" => "2025-06-16T09:55:03Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/09G25387E23973900"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/09G25387E23973900/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/0R17611427598140B"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for € 120.38 EUR"

Uploaded Files

No files were uploaded

Request Attributes

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

Request Headers

Header Value
accept
"*/*"
content-length
"1594"
content-type
"application/json"
correlation-id
"5d3cb62b95c02"
forwarded
"for="173.0.81.65";host="testshop.online-forum.net";proto=https"
host
"testshop.online-forum.net"
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
"fee3954c-4a97-11f0-9b1e-09b50c14bc8b"
paypal-transmission-sig
"hi+CfcQlJUegWcC30sc4pYGcL9ZCExA2R++9FcpfMoUNAQVi95fVX6kiUW7Z51MqGDVbYYmu/OoFNnjoCa0vSqvohJstD0TyxQsfEt2ImNxBc2MJGZWF+/Z7T8f+5AU3T0l9/blFgEchHZB0hCmOgzl48DQFU1PoNX3Nh5WN1ZEar0Wfab38BpAKna0GIHs4iHLL2Ds93TE+EE5fAlwrrGbihwcttXnVuVlSgM4Xnt5Q6U+ERCeSjvH+1vy6UunM7CC47efDzF0FODW60+q1yKgEfyxOabHARjDrJmezQoSqmlDOo1wds5yB11iCh7Anw0V2aiaRl0KGRHiFhFjJEQ=="
paypal-transmission-time
"2025-06-16T09:55:12Z"
user-agent
"PayPal/AUHR-1.0-1"
x-forwarded-for
"173.0.81.65"
x-php-ob-level
"1"

Request Content

Pretty

{
    "id": "WH-7KR98809X1024474V-08W22416N17614346",
    "event_version": "1.0",
    "create_time": "2025-06-16T09:55:08.155Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for \u20ac 120.38 EUR",
    "resource": {
        "id": "09G25387E23973900",
        "amount": {
            "currency_code": "EUR",
            "value": "120.38"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "120.38"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "3.99"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "116.39"
            }
        },
        "invoice_id": "AB-400515",
        "custom_id": "70f6765376ff4e4290f7301400034330",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "0R17611427598140B"
            }
        },
        "payee": {
            "email_address": "service@schutzkleidung.de",
            "merchant_id": "2DHAELSGHFGBS"
        },
        "create_time": "2025-06-16T09:55:03Z",
        "update_time": "2025-06-16T09:55:03Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/09G25387E23973900",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/09G25387E23973900\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/0R17611427598140B",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-7KR98809X1024474V-08W22416N17614346",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-7KR98809X1024474V-08W22416N17614346\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-7KR98809X1024474V-08W22416N17614346","event_version":"1.0","create_time":"2025-06-16T09:55:08.155Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for € 120.38 EUR","resource":{"id":"09G25387E23973900","amount":{"currency_code":"EUR","value":"120.38"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"120.38"},"paypal_fee":{"currency_code":"EUR","value":"3.99"},"net_amount":{"currency_code":"EUR","value":"116.39"}},"invoice_id":"AB-400515","custom_id":"70f6765376ff4e4290f7301400034330","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"0R17611427598140B"}},"payee":{"email_address":"service@schutzkleidung.de","merchant_id":"2DHAELSGHFGBS"},"create_time":"2025-06-16T09:55:03Z","update_time":"2025-06-16T09:55:03Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/09G25387E23973900","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/09G25387E23973900/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/0R17611427598140B","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-7KR98809X1024474V-08W22416N17614346","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-7KR98809X1024474V-08W22416N17614346/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
"Mon, 16 Jun 2025 12:02:21 GMT"
x-debug-token
"e318d3"
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
"def00000eb298eb94f6c02fc132863af5664adf2743eaed44bfb753d66d476f8d8cc8cdfc38fe785b0170a866a41dce951b8942091d5e4c61d902d9174e69ca5870dde55"
APP_URL
"https://testshop.online-forum.net/"
BLUE_GREEN_DEPLOYMENT
"1"
COMPOSER_HOME
"/var/www/shopware/var/cache/composer"
DATABASE_URL
"mysql://shopware:delan@localhost:3306/shopwaretest"
ENQUEUE_DSN
"amqp://guest:guest@localhost:5672/%2f"
INSTANCE_ID
"HggV19Bdso4rCkY1MY0HRlXFjGn4KRq0"
PLACEHOLDER_DATABASE_URL
"mysql://shopware:delan@localhost:3306/shopwaretest"
SHOPWARE_CDN_STRATEGY_DEFAULT
"id"
SHOPWARE_ES_ENABLED
"0"
SHOPWARE_ES_HOSTS
""
SHOPWARE_ES_INDEXING_ENABLED
"0"
SHOPWARE_ES_INDEX_PREFIX
"sw"
SHOPWARE_HTTP_CACHE_ENABLED
"1"
SHOPWARE_HTTP_DEFAULT_TTL
"7200"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
"1594"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/var/www/shopware/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/shopware/public"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CORRELATION_ID
"5d3cb62b95c02"
HTTP_FORWARDED
"for="173.0.81.65";host="testshop.online-forum.net";proto=https"
HTTP_HOST
"testshop.online-forum.net"
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
"fee3954c-4a97-11f0-9b1e-09b50c14bc8b"
HTTP_PAYPAL_TRANSMISSION_SIG
"hi+CfcQlJUegWcC30sc4pYGcL9ZCExA2R++9FcpfMoUNAQVi95fVX6kiUW7Z51MqGDVbYYmu/OoFNnjoCa0vSqvohJstD0TyxQsfEt2ImNxBc2MJGZWF+/Z7T8f+5AU3T0l9/blFgEchHZB0hCmOgzl48DQFU1PoNX3Nh5WN1ZEar0Wfab38BpAKna0GIHs4iHLL2Ds93TE+EE5fAlwrrGbihwcttXnVuVlSgM4Xnt5Q6U+ERCeSjvH+1vy6UunM7CC47efDzF0FODW60+q1yKgEfyxOabHARjDrJmezQoSqmlDOo1wds5yB11iCh7Anw0V2aiaRl0KGRHiFhFjJEQ=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2025-06-16T09:55:12Z"
HTTP_USER_AGENT
"PayPal/AUHR-1.0-1"
HTTP_X_FORWARDED_FOR
"173.0.81.65"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=gPBv8PbajLvqc2GVbTkawqAkxZEKJgyt"
REDIRECT_HTTPS
"on"
REDIRECT_QUERY_STRING
"sw-token=gPBv8PbajLvqc2GVbTkawqAkxZEKJgyt"
REDIRECT_SSL_TLS_SNI
"testshop.online-forum.net"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/api/_action/paypal/webhook/execute"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"45773"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1750075341
REQUEST_TIME_FLOAT
1750075341.639
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=gPBv8PbajLvqc2GVbTkawqAkxZEKJgyt"
SCRIPT_FILENAME
"/var/www/shopware/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"149.202.18.153"
SERVER_ADMIN
"webmaster@localhost"
SERVER_NAME
"testshop.online-forum.net"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache/2.4.52 (Ubuntu) Server at testshop.online-forum.net Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.52 (Ubuntu)"
SSL_TLS_SNI
"testshop.online-forum.net"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,APP_URL,DATABASE_URL,PLACEHOLDER_DATABASE_URL,COMPOSER_HOME,INSTANCE_ID,BLUE_GREEN_DEPLOYMENT,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,SHOPWARE_ES_HOSTS,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_CDN_STRATEGY_DEFAULT,ENQUEUE_DSN"