• Resolved monikacp

    (@monikacp)


    I have been trying to run the below url on the server but I’m getting the Invalid signature error. And the same is working in the local.

    http://example.com/wp-json/wc/v3/webhooks

    1. User has admin access
    2. Created Rest API Key and used the respective key and secret in the API request
    3. Verified site URL configuration on site settings and in the API request.
    4. Deactivated all the installed plugins and checked still the same issue
    5. I’m using Postman to test this API and selected OAuth 1.0 in the Authorization tab.
    6. Verified the timestamp passed in the request whether it is a UNIX timestamp

    Body

    {

    “name”: “order deleted”,

    “topic”: “order.deleted”,

    “delivery_url”: “https://webhook.site/0f6be70a-9c1f-40d9-9ed1-d2ae0db92e30”

    }

    Curl

    curl --location --request POST "http://example.com/wp-json/wc/v3/webhooks?oauth_consumer_key=ck_***&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1737441816&oauth_nonce=xE82M4NVybP&oauth_version=1.0&oauth_signature=72gO6D1r7goG8ZaVRasbzabXpSs" \
    --header "Content-Type: application/json" \
    --data "{
      \"name\": \"order deleted\",
      \"topic\": \"order.deleted\",
      \"delivery_url\": \"https://webhook.site/0f6be70a-9c1f-40d9-9ed1-d2ae0db92e30\"
    }"


    Response:

    {
        "data": {
            "code": "woocommerce_rest_authentication_error",
            "message": "Invalid signature - provided signature does not match.",
            "data": {
                "status": 401
            }
        },
        "headers": [],
        "status": 401
    }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Invalid signature – provided signature does not match’ is closed to new replies.