Error 400 Bad Request

POST https://herbadirect.eu/api/_action/paypal/webhook/execute?sw-token=kguKtwwaSy4y3AHLERffNs6dMO1Pnhx4

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"kguKtwwaSy4y3AHLERffNs6dMO1Pnhx4"

POST Parameters

Key Value
create_time
"2024-12-22T21:11:10.092Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-7HM25552B7667715E-4FX42328M3058483Y"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-7HM25552B7667715E-4FX42328M3058483Y"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-7HM25552B7667715E-4FX42328M3058483Y/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "42F91253NP792121N"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "88.54"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "88.54"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "3.35"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "85.19"
    ]
  ]
  "invoice_id" => "3633672"
  "custom_id" => "{"orderTransactionId":"0193f034e77272bfa046c1078cbe1eb4","pluginVersion":"9.4.0","shopwareVersion":"6.6.4.1"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "58N48719UH094671E"
    ]
  ]
  "payee" => [
    "email_address" => "paypal@fairvital.com"
    "merchant_id" => "8A22YLAPV7W56"
  ]
  "create_time" => "2024-12-22T21:11:06Z"
  "update_time" => "2024-12-22T21:11:06Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/42F91253NP792121N"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/42F91253NP792121N/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/58N48719UH094671E"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for EUR 88.54 EUR"

Uploaded Files

No files were uploaded

Request Attributes

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

Request Headers

Header Value
accept
"*/*"
connection
"close"
content-length
"1672"
content-type
"application/json"
correlation-id
"757f234208d0e"
forwarded
"for="173.0.81.65";host="herbadirect.eu";proto=https"
host
"herbadirect.eu"
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
"4725a492-c0a9-11ef-b792-39d60929b191"
paypal-transmission-sig
"tD4dZswlrLjXgpuOGNd4J9SYTxjpYKZuh4h5oKNOU2LNK1FXLNw29uicA0q6DswfnKUZ8Gw6YHDjb/qbsiWU9diQxRS1zZKtKRBRLQKUSoaM3WxJjbBqZpXgebnfgmtv6Ekmp8SSh7RSdXSvZEDJ8LPGCawj5wtKiGLho6/h/PWR/546xbiyLOUoLCZ2c4Ef7jp1tDfzyU2u0SxJ81lXpPJaio9l6cbwgLE3Qf1aoUxs6uV02XKBo4R8bYtf0o70sCaj7g420S1gAHnKdshImgAXNXQIKoKhk3XKyvnPDwLjSlnifKYtD5YwaAhIEt8VUNUAfdh9E7H8V057zfbWvg=="
paypal-transmission-time
"2024-12-22T21:11:14Z"
surrogate-capability
"symfony="ESI/1.0""
user-agent
"PayPal/AUHR-214.0-58712720"
x-b3-spanid
"18eef0f8285dd722"
x-forwarded-for
"173.0.81.65"
x-php-ob-level
"1"

Request Content

Pretty

{
    "id": "WH-7HM25552B7667715E-4FX42328M3058483Y",
    "event_version": "1.0",
    "create_time": "2024-12-22T21:11:10.092Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for EUR 88.54 EUR",
    "resource": {
        "id": "42F91253NP792121N",
        "amount": {
            "currency_code": "EUR",
            "value": "88.54"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "88.54"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "3.35"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "85.19"
            }
        },
        "invoice_id": "3633672",
        "custom_id": "{\"orderTransactionId\":\"0193f034e77272bfa046c1078cbe1eb4\",\"pluginVersion\":\"9.4.0\",\"shopwareVersion\":\"6.6.4.1\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "58N48719UH094671E"
            }
        },
        "payee": {
            "email_address": "paypal@fairvital.com",
            "merchant_id": "8A22YLAPV7W56"
        },
        "create_time": "2024-12-22T21:11:06Z",
        "update_time": "2024-12-22T21:11:06Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/42F91253NP792121N",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/42F91253NP792121N\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/58N48719UH094671E",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-7HM25552B7667715E-4FX42328M3058483Y",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-7HM25552B7667715E-4FX42328M3058483Y\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-7HM25552B7667715E-4FX42328M3058483Y","event_version":"1.0","create_time":"2024-12-22T21:11:10.092Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for EUR 88.54 EUR","resource":{"id":"42F91253NP792121N","amount":{"currency_code":"EUR","value":"88.54"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"88.54"},"paypal_fee":{"currency_code":"EUR","value":"3.35"},"net_amount":{"currency_code":"EUR","value":"85.19"}},"invoice_id":"3633672","custom_id":"{\"orderTransactionId\":\"0193f034e77272bfa046c1078cbe1eb4\",\"pluginVersion\":\"9.4.0\",\"shopwareVersion\":\"6.6.4.1\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"58N48719UH094671E"}},"payee":{"email_address":"paypal@fairvital.com","merchant_id":"8A22YLAPV7W56"},"create_time":"2024-12-22T21:11:06Z","update_time":"2024-12-22T21:11:06Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/42F91253NP792121N","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/42F91253NP792121N/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/58N48719UH094671E","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-7HM25552B7667715E-4FX42328M3058483Y","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-7HM25552B7667715E-4FX42328M3058483Y/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
"Tue, 24 Dec 2024 03:38:28 GMT"
x-debug-token
"1c1536"

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
"def00000185123d604d37a417df09f155fe12a22d8270deaa0c6d0251efbe2e09cd76636eebe0585b8f8dec4b7c83bd0495b5f35367a69aad35415f45c92cad44a6baa94"
APP_URL
"https://herbadirect.eu"
BLUE_GREEN_DEPLOYMENT
"1"
COMPOSER_HOME
"/home/vetbwkqc/www.vetipur.de/var/cache/composer"
DATABASE_URL
"mysql://vetbwkqc2:llOU8l%@54oc@127.0.0.1:3306/usrdb_vetbwkqc2"
INSTANCE_ID
"WHrhH1usLw8HVl78WwQ6riz4JwSVHza4"
LOCK_DSN
"flock"
MAILER_URL
"null://localhost"
OPENSEARCH_URL
"http://localhost:9200"
SHOPWARE_CDN_STRATEGY_DEFAULT
"id"
SHOPWARE_ES_ENABLED
"0"
SHOPWARE_ES_HOSTS
""
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
APP_DEBUG
"1"
CONTENT_LENGTH
"1672"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/usr/local/fastcgi-starter/"
CONTEXT_PREFIX
"/fastcgist/"
DOCUMENT_ROOT
"/home/vetbwkqc/www.vetipur.de/public/"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
GROUP
"vetbwkqc"
HOME
"/home/vetbwkqc"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_CORRELATION_ID
"757f234208d0e"
HTTP_FORWARDED
"for="173.0.81.65";host="herbadirect.eu";proto=https"
HTTP_HOST
"herbadirect.eu"
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
"4725a492-c0a9-11ef-b792-39d60929b191"
HTTP_PAYPAL_TRANSMISSION_SIG
"tD4dZswlrLjXgpuOGNd4J9SYTxjpYKZuh4h5oKNOU2LNK1FXLNw29uicA0q6DswfnKUZ8Gw6YHDjb/qbsiWU9diQxRS1zZKtKRBRLQKUSoaM3WxJjbBqZpXgebnfgmtv6Ekmp8SSh7RSdXSvZEDJ8LPGCawj5wtKiGLho6/h/PWR/546xbiyLOUoLCZ2c4Ef7jp1tDfzyU2u0SxJ81lXpPJaio9l6cbwgLE3Qf1aoUxs6uV02XKBo4R8bYtf0o70sCaj7g420S1gAHnKdshImgAXNXQIKoKhk3XKyvnPDwLjSlnifKYtD5YwaAhIEt8VUNUAfdh9E7H8V057zfbWvg=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2024-12-22T21:11:14Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58712720"
HTTP_X_B3_SPANID
"18eef0f8285dd722"
HTTP_X_FORWARDED_FOR
"173.0.81.65"
ORIG_PATH_INFO
"/index.php"
ORIG_PATH_TRANSLATED
"/home/vetbwkqc/www.vetipur.de/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=kguKtwwaSy4y3AHLERffNs6dMO1Pnhx4"
REDIRECT_HANDLER
"php-fastcgi8.3"
REDIRECT_HTTPS
"on"
REDIRECT_QUERY_STRING
"sw-token=kguKtwwaSy4y3AHLERffNs6dMO1Pnhx4"
REDIRECT_REDIRECT_HTTPS
"on"
REDIRECT_REDIRECT_SSL_TLS_SNI
"herbadirect.eu"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"herbadirect.eu"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/index.php"
REMOTE_ADDR
"127.0.0.1"
REMOTE_HOST
"notify.paypal.com"
REMOTE_PORT
"40498"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1735011508
REQUEST_TIME_FLOAT
1735011508.6267
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=kguKtwwaSy4y3AHLERffNs6dMO1Pnhx4"
SCRIPT_FILENAME
"/home/vetbwkqc/www.vetipur.de/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"77.75.249.151"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"herbadirect.eu"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"herbadirect.eu"
SYMFONY_DOTENV_PATH
"/home/vetbwkqc/www.vetipur.de/.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,STOREFRONT_PROXY_URL,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,LOCK_DSN,COMPOSER_HOME,SHOPWARE_ES_HOSTS,SHOPWARE_CDN_STRATEGY_DEFAULT"
USER
"vetbwkqc"