Error 400 Bad Request

POST https://shoei-distribution.com/api/_action/paypal/webhook/execute?sw-token=ybEy2MgUYyioPzkVgryhtRPFJs0gYnxk

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"ybEy2MgUYyioPzkVgryhtRPFJs0gYnxk"

POST Parameters

Key Value
create_time
"2024-12-25T12:56:51.046Z"
event_type
"PAYMENT.SALE.COMPLETED"
event_version
"1.0"
id
"WH-80R4591976109815J-4Y334313RY284643J"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-80R4591976109815J-4Y334313RY284643J"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-80R4591976109815J-4Y334313RY284643J/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "15C57237HH1179232"
  "state" => "completed"
  "amount" => [
    "total" => "119.80"
    "currency" => "EUR"
    "details" => [
      "subtotal" => "114.90"
      "shipping" => "4.90"
    ]
  ]
  "payment_mode" => "INSTANT_TRANSFER"
  "protection_eligibility" => "ELIGIBLE"
  "protection_eligibility_type" => "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE"
  "transaction_fee" => [
    "value" => "3.97"
    "currency" => "EUR"
  ]
  "invoice_number" => "108164"
  "parent_payment" => "PAYID-M5WABIY57R78982CF2800804"
  "create_time" => "2024-12-25T12:56:46Z"
  "update_time" => "2024-12-25T12:56:46Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v1/payments/sale/15C57237HH1179232"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v1/payments/sale/15C57237HH1179232/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v1/payments/payment/PAYID-M5WABIY57R78982CF2800804"
      "rel" => "parent_payment"
      "method" => "GET"
    ]
  ]
  "application_context" => [
    "related_qualifiers" => [
      [
        "type" => "CART"
        "id" => "0FH067082J342145W"
      ]
    ]
  ]
]
resource_type
"sale"
summary
"Payment completed for EUR 119.8 EUR"

Uploaded Files

No files were uploaded

Request Attributes

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

Request Headers

Header Value
accept
"*/*"
content-length
"1446"
content-type
"application/json"
correlation-id
"53d8c604090d9"
forwarded
"for="173.0.81.65";host="shoei-distribution.com";proto=https"
host
"shoei-distribution.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
"b762c4b7-c2bf-11ef-a9cd-db76ffff4ee8"
paypal-transmission-sig
"FplY2eKDonG36eIpgI/5lhdgm+xeJE1zUMIPfkjnhXlmz5eHs0XWXJqzFkEglPEtyjYlzKTMJEHOJU1ueMwc6mOGhqJHkpHtQt3g26ue/iD3IfZLYapsOr8bZDN/FdvUw73TumCISVCSjMdsggiZrlCKn4iPFSywy6oc1OaT1Id4BBdy9xKwvPCUrUfCmTxePUMbO6zMiFG/WkP24BSzjZ7TGYmi2+oTsZroXmWc22E3Sd9G9C1HmuEV/ZO77Uj+bn5KMTjpX7G4DqIRqzllmDj8E2zHeqQKz/qBaNH8K0LDnbiodv7F0T8DB78iQPsgC5yssNmPfkSjUXsL/9B1ww=="
paypal-transmission-time
"2024-12-25T12:56:54Z"
surrogate-capability
"symfony="ESI/1.0""
user-agent
"PayPal/AUHR-214.0-58712720"
x-b3-spanid
"f6430b08fa810d0d"
x-forwarded-for
"173.0.81.65"
x-php-ob-level
"1"

Request Content

Pretty

{
    "id": "WH-80R4591976109815J-4Y334313RY284643J",
    "event_version": "1.0",
    "create_time": "2024-12-25T12:56:51.046Z",
    "resource_type": "sale",
    "event_type": "PAYMENT.SALE.COMPLETED",
    "summary": "Payment completed for EUR 119.8 EUR",
    "resource": {
        "id": "15C57237HH1179232",
        "state": "completed",
        "amount": {
            "total": "119.80",
            "currency": "EUR",
            "details": {
                "subtotal": "114.90",
                "shipping": "4.90"
            }
        },
        "payment_mode": "INSTANT_TRANSFER",
        "protection_eligibility": "ELIGIBLE",
        "protection_eligibility_type": "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE",
        "transaction_fee": {
            "value": "3.97",
            "currency": "EUR"
        },
        "invoice_number": "108164",
        "parent_payment": "PAYID-M5WABIY57R78982CF2800804",
        "create_time": "2024-12-25T12:56:46Z",
        "update_time": "2024-12-25T12:56:46Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v1\/payments\/sale\/15C57237HH1179232",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v1\/payments\/sale\/15C57237HH1179232\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v1\/payments\/payment\/PAYID-M5WABIY57R78982CF2800804",
                "rel": "parent_payment",
                "method": "GET"
            }
        ],
        "application_context": {
            "related_qualifiers": [
                {
                    "type": "CART",
                    "id": "0FH067082J342145W"
                }
            ]
        }
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-80R4591976109815J-4Y334313RY284643J",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-80R4591976109815J-4Y334313RY284643J\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-80R4591976109815J-4Y334313RY284643J","event_version":"1.0","create_time":"2024-12-25T12:56:51.046Z","resource_type":"sale","event_type":"PAYMENT.SALE.COMPLETED","summary":"Payment completed for EUR 119.8 EUR","resource":{"id":"15C57237HH1179232","state":"completed","amount":{"total":"119.80","currency":"EUR","details":{"subtotal":"114.90","shipping":"4.90"}},"payment_mode":"INSTANT_TRANSFER","protection_eligibility":"ELIGIBLE","protection_eligibility_type":"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE","transaction_fee":{"value":"3.97","currency":"EUR"},"invoice_number":"108164","parent_payment":"PAYID-M5WABIY57R78982CF2800804","create_time":"2024-12-25T12:56:46Z","update_time":"2024-12-25T12:56:46Z","links":[{"href":"https://api.paypal.com/v1/payments/sale/15C57237HH1179232","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/payments/sale/15C57237HH1179232/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v1/payments/payment/PAYID-M5WABIY57R78982CF2800804","rel":"parent_payment","method":"GET"}],"application_context":{"related_qualifiers":[{"type":"CART","id":"0FH067082J342145W"}]}},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-80R4591976109815J-4Y334313RY284643J","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-80R4591976109815J-4Y334313RY284643J/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
"Wed, 25 Dec 2024 15:12:33 GMT"
server-timing
""
x-debug-token
"9ac9b8"

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
"def00000eb1df0374aac86745abb24d91d5f5c424fbee69769f101870f526e442a5eb9e759f86d2cf76474b8f34dca8039af6440899640059d77dda05546f3caed3814fe"
APP_URL
"https://shoei-distribution.com/"
BLUE_GREEN_DEPLOYMENT
"1"
COMPOSER_HOME
"/var/www/vhosts/shoei-distribution.com/shoei-distribution.com/var/cache/composer"
DATABASE_URL
"mysql://shoei-4922:Xk%4091h6k0@localhost:3306/db_shoei_shopware6"
INSTANCE_ID
"kmK4fBJViYjhq4iPGUjDgioA30UdPURJ"
LOCK_DSN
"flock"
MAILER_URL
"null://localhost"
OPENSEARCH_URL
"http://localhost:9200"
PROXY_URL
"http://localhost"
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"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
"1446"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/shoei-distribution.com/shoei-distribution.com/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/vhosts/shoei-distribution.com/shoei-distribution.com/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www/vhosts/shoei-distribution.com"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CORRELATION_ID
"53d8c604090d9"
HTTP_FORWARDED
"for="173.0.81.65";host="shoei-distribution.com";proto=https"
HTTP_HOST
"shoei-distribution.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
"b762c4b7-c2bf-11ef-a9cd-db76ffff4ee8"
HTTP_PAYPAL_TRANSMISSION_SIG
"FplY2eKDonG36eIpgI/5lhdgm+xeJE1zUMIPfkjnhXlmz5eHs0XWXJqzFkEglPEtyjYlzKTMJEHOJU1ueMwc6mOGhqJHkpHtQt3g26ue/iD3IfZLYapsOr8bZDN/FdvUw73TumCISVCSjMdsggiZrlCKn4iPFSywy6oc1OaT1Id4BBdy9xKwvPCUrUfCmTxePUMbO6zMiFG/WkP24BSzjZ7TGYmi2+oTsZroXmWc22E3Sd9G9C1HmuEV/ZO77Uj+bn5KMTjpX7G4DqIRqzllmDj8E2zHeqQKz/qBaNH8K0LDnbiodv7F0T8DB78iQPsgC5yssNmPfkSjUXsL/9B1ww=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2024-12-25T12:56:54Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58712720"
HTTP_X_B3_SPANID
"f6430b08fa810d0d"
HTTP_X_FORWARDED_FOR
"173.0.81.65"
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=ybEy2MgUYyioPzkVgryhtRPFJs0gYnxk"
REDIRECT_HTTPS
"on"
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_QUERY_STRING
"sw-token=ybEy2MgUYyioPzkVgryhtRPFJs0gYnxk"
REDIRECT_SCRIPT_URI
"https://shoei-distribution.com/api/_action/paypal/webhook/execute"
REDIRECT_SCRIPT_URL
"/api/_action/paypal/webhook/execute"
REDIRECT_SSL_TLS_SNI
"shoei-distribution.com"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"Z2wg4ERNBGYdsKuvtX0QywAAAU4"
REDIRECT_URL
"/api/_action/paypal/webhook/execute"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"56645"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1735139552
REQUEST_TIME_FLOAT
1735139552.9881
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=ybEy2MgUYyioPzkVgryhtRPFJs0gYnxk"
SCRIPT_FILENAME
"/var/www/vhosts/shoei-distribution.com/shoei-distribution.com/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://shoei-distribution.com/api/_action/paypal/webhook/execute"
SCRIPT_URL
"/api/_action/paypal/webhook/execute"
SERVER_ADDR
"81.169.178.48"
SERVER_ADMIN
"root@localhost"
SERVER_NAME
"shoei-distribution.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"shoei-distribution.com"
SYMFONY_DOTENV_PATH
"/var/www/vhosts/shoei-distribution.com/shoei-distribution.com/.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,SHOPWARE_ES_HOSTS,SHOPWARE_CDN_STRATEGY_DEFAULT"
UNIQUE_ID
"Z2wg4ERNBGYdsKuvtX0QywAAAU4"
USER
"shoei-dist"
proxy-nokeepalive
"1"