Error 400 Bad Request

POST https://stage.tools.mitte.co/api/_action/paypal/webhook/execute?sw-token=3fKty3wj653XHsdmJHnYkMeLsU6FxHQQ

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"3fKty3wj653XHsdmJHnYkMeLsU6FxHQQ"

POST Parameters

Key Value
create_time
"2024-04-24T22:41:12.537Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-78A63528G00041948-9153754980191032L"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-78A63528G00041948-9153754980191032L"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-78A63528G00041948-9153754980191032L/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "7LD100951R5544515"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "92.97"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "92.97"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "3.17"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "89.80"
    ]
  ]
  "invoice_id" => "57097"
  "custom_id" => "{"orderTransactionId":"018f1244a13f7330ad12d0c73056fd24","pluginVersion":"7.3.2","shopwareVersion":"6.5.8.2"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "65D05633SX8863801"
    ]
  ]
  "payee" => [
    "email_address" => "accounting@mitte.co"
    "merchant_id" => "8QPU6ZNKA457Q"
  ]
  "create_time" => "2024-04-24T22:41:08Z"
  "update_time" => "2024-04-24T22:41:08Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/7LD100951R5544515"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/7LD100951R5544515/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/65D05633SX8863801"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for EUR 92.97 EUR"

Uploaded Files

No files were uploaded

Request Attributes

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

Request Headers

Header Value
accept
"*/*"
content-length
"1669"
content-type
"application/json"
correlation-id
"6683908f6f4f5"
host
"stage.tools.mitte.co"
paypal-auth-algo
"SHA256withRSA"
paypal-auth-version
"v2"
paypal-cert-url
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-ad47cb8d"
paypal-transmission-id
"c2a33400-028b-11ef-b719-3d5afb6affe3"
paypal-transmission-sig
"JCdZKgL00R/dd6dwdlPEkE4oizwd4sSSDjTvSNmIJdHjv3DOu8xXaa8MaJGjSMoqGdfmAO35oLEcsvfV2Y/jyKnuzcGupNIljcHLxaDp+SrT50XdTE+xFYKQQdpP/atQRgoTz96rRWCxQyWl9ov3J8sR3X5qU+SHDJW93P0CVhncyqAKLOTNHVml7nB1al9kwMQuBMybEbz2re7Nh8PfvW1NqYzsRIjDxydlBXC3NkWMDgEK9mMHXwbozn+TlCWaB2ECwjapzuBZn6OeRQ2TFGk9jhHFgZ6RPd9pq9JrSAoBQK9iRJNo1kbUPGu1yjlEWg5J8nTdu0QvGa2bJ7oi7A=="
paypal-transmission-time
"2024-04-24T22:41:16Z"
user-agent
"PayPal/AUHR-214.0-58391817"
x-amzn-trace-id
"Root=1-662a3745-4a4e8e896ce40e18313e2a26"
x-b3-spanid
"a0537b0f8e96e519"
x-forwarded-for
"173.0.81.65, 176.17.32.150"
x-forwarded-port
"443"
x-forwarded-proto
"https"
x-php-ob-level
"1"

Request Content

Pretty

{
    "id": "WH-78A63528G00041948-9153754980191032L",
    "event_version": "1.0",
    "create_time": "2024-04-24T22:41:12.537Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for EUR 92.97 EUR",
    "resource": {
        "id": "7LD100951R5544515",
        "amount": {
            "currency_code": "EUR",
            "value": "92.97"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "92.97"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "3.17"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "89.80"
            }
        },
        "invoice_id": "57097",
        "custom_id": "{\"orderTransactionId\":\"018f1244a13f7330ad12d0c73056fd24\",\"pluginVersion\":\"7.3.2\",\"shopwareVersion\":\"6.5.8.2\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "65D05633SX8863801"
            }
        },
        "payee": {
            "email_address": "accounting@mitte.co",
            "merchant_id": "8QPU6ZNKA457Q"
        },
        "create_time": "2024-04-24T22:41:08Z",
        "update_time": "2024-04-24T22:41:08Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/7LD100951R5544515",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/7LD100951R5544515\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/65D05633SX8863801",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-78A63528G00041948-9153754980191032L",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-78A63528G00041948-9153754980191032L\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-78A63528G00041948-9153754980191032L","event_version":"1.0","create_time":"2024-04-24T22:41:12.537Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for EUR 92.97 EUR","resource":{"id":"7LD100951R5544515","amount":{"currency_code":"EUR","value":"92.97"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"92.97"},"paypal_fee":{"currency_code":"EUR","value":"3.17"},"net_amount":{"currency_code":"EUR","value":"89.80"}},"invoice_id":"57097","custom_id":"{\"orderTransactionId\":\"018f1244a13f7330ad12d0c73056fd24\",\"pluginVersion\":\"7.3.2\",\"shopwareVersion\":\"6.5.8.2\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"65D05633SX8863801"}},"payee":{"email_address":"accounting@mitte.co","merchant_id":"8QPU6ZNKA457Q"},"create_time":"2024-04-24T22:41:08Z","update_time":"2024-04-24T22:41:08Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/7LD100951R5544515","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/7LD100951R5544515/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/65D05633SX8863801","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-78A63528G00041948-9153754980191032L","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-78A63528G00041948-9153754980191032L/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
"Thu, 25 Apr 2024 10:58:14 GMT"
x-debug-token
"34f934"
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
API_SALES_CHANNEL_ID
"c0953277fd834712ac12f457d36e6ccf"
APP_ENV
"dev"
APP_SECRET
"def00000ee5514f2ee3aebc382503761194bb5c82ad3cbc0a4a8a9a4dc109c33b3bd6355f25588fa1557db8255fbcddf2dde710b1d3dadf16ca52a55ad8951e901d6d8f0"
APP_URL
"https://stage.tools.mitte.co"
BLUE_GREEN_DEPLOYMENT
"1"
COGNITO_AWS_KEY
"AKIAXGUPWT4Z3UJ4PXIY"
COGNITO_AWS_SECRET
"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"
COGNITO_CLIENT_ID
"38cceg3eu3ros5e3flttveerna"
COGNITO_CLIENT_SECRET
"ths7o13qsqvnqaimhl27ni13qs838q4aclb8i9a7cn58de4t4s5"
COGNITO_USER_POOL_ID
"eu-west-1_9BEexvrhx"
COMPOSER_HOME
"/home/mitte/composer/home"
DATABASE_URL
"mysql://webshop:Naf72Bsdq13.4d2-dfRalriqdcBB6yMq@dev-aurora-cluster.cluster-csf3suurjc3z.eu-west-1.rds.amazonaws.com:3306/webshopstage"
FULFILLMENT_API_KEY
"XJMmvdxY6kQlK3iDc23E24N9wGHIEL4lvt0s7O93P"
INSTANCE_ID
"HM1DSEnWokBdQQMO4iPVfuaTGHSly3bk"
LOCK_DSN
"flock:///home/mitte/symfony/lock"
MAILER_URL
"native://default"
SHOPWARE_CDN_STRATEGY_DEFAULT
"id"
SHOPWARE_ES_ENABLED
"0"
SHOPWARE_ES_HOSTS
"elasticsearch:9200"
SHOPWARE_ES_INDEXING_ENABLED
"0"
SHOPWARE_ES_INDEX_PREFIX
"sw"
SHOPWARE_HTTP_CACHE_ENABLED
"1"
SHOPWARE_HTTP_DEFAULT_TTL
"7200"
TRUSTED_PROXIES
"127.0.0.1,REMOTE_ADDR"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
"1669"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/var/www/webshop/current/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/webshop/current/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/home/mitte"
HTTP_ACCEPT
"*/*"
HTTP_CORRELATION_ID
"6683908f6f4f5"
HTTP_HOST
"stage.tools.mitte.co"
HTTP_PAYPAL_AUTH_ALGO
"SHA256withRSA"
HTTP_PAYPAL_AUTH_VERSION
"v2"
HTTP_PAYPAL_CERT_URL
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-ad47cb8d"
HTTP_PAYPAL_TRANSMISSION_ID
"c2a33400-028b-11ef-b719-3d5afb6affe3"
HTTP_PAYPAL_TRANSMISSION_SIG
"JCdZKgL00R/dd6dwdlPEkE4oizwd4sSSDjTvSNmIJdHjv3DOu8xXaa8MaJGjSMoqGdfmAO35oLEcsvfV2Y/jyKnuzcGupNIljcHLxaDp+SrT50XdTE+xFYKQQdpP/atQRgoTz96rRWCxQyWl9ov3J8sR3X5qU+SHDJW93P0CVhncyqAKLOTNHVml7nB1al9kwMQuBMybEbz2re7Nh8PfvW1NqYzsRIjDxydlBXC3NkWMDgEK9mMHXwbozn+TlCWaB2ECwjapzuBZn6OeRQ2TFGk9jhHFgZ6RPd9pq9JrSAoBQK9iRJNo1kbUPGu1yjlEWg5J8nTdu0QvGa2bJ7oi7A=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2024-04-24T22:41:16Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58391817"
HTTP_X_AMZN_TRACE_ID
"Root=1-662a3745-4a4e8e896ce40e18313e2a26"
HTTP_X_B3_SPANID
"a0537b0f8e96e519"
HTTP_X_FORWARDED_FOR
"173.0.81.65, 176.17.32.150"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_PROTO
"https"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=3fKty3wj653XHsdmJHnYkMeLsU6FxHQQ"
REDIRECT_QUERY_STRING
"sw-token=3fKty3wj653XHsdmJHnYkMeLsU6FxHQQ"
REDIRECT_SCRIPT_URI
"http://stage.tools.mitte.co/api/_action/paypal/webhook/execute"
REDIRECT_SCRIPT_URL
"/api/_action/paypal/webhook/execute"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"Zio3RVqB5ynjnA85UoAesQAAAAY"
REDIRECT_URL
"/api/_action/paypal/webhook/execute"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"44046"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"http"
REQUEST_TIME
1714042693
REQUEST_TIME_FLOAT
1714042693.8488
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=3fKty3wj653XHsdmJHnYkMeLsU6FxHQQ"
SCRIPT_FILENAME
"/var/www/webshop/releases/145/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"http://stage.tools.mitte.co/api/_action/paypal/webhook/execute"
SCRIPT_URL
"/api/_action/paypal/webhook/execute"
SERVER_ADDR
"176.17.32.90"
SERVER_ADMIN
"developers@mitte.co"
SERVER_NAME
"stage.tools.mitte.co"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache/2.4.58 (Amazon Linux)"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_URL,DATABASE_URL,SHOPWARE_ES_HOSTS,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,SHOPWARE_CDN_STRATEGY_DEFAULT,BLUE_GREEN_DEPLOYMENT,MAILER_URL,COMPOSER_HOME,APP_SECRET,INSTANCE_ID,COGNITO_AWS_KEY,COGNITO_AWS_SECRET,COGNITO_USER_POOL_ID,COGNITO_CLIENT_ID,COGNITO_CLIENT_SECRET,FULFILLMENT_API_KEY,API_SALES_CHANNEL_ID,LOCK_DSN,TRUSTED_PROXIES"
UNIQUE_ID
"Zio3RVqB5ynjnA85UoAesQAAAAY"
USER
"mitte"
proxy-nokeepalive
"1"