Skip to content

WooCommerce handing over the key it made

POST
/shops/woocommerce/callback
curl --request POST \
--url https://example.com/shops/woocommerce/callback \
--header 'Content-Type: application/json' \
--data '{ "key_id": 1, "user_id": "example", "consumer_key": "example", "consumer_secret": "example", "key_permissions": "example" }'

Not for calling by hand. WooCommerce posts the key pair here once the shop owner approves; the sealed state it carries says which business and shop. Answers 200 when the shop is connected and 400 for anything else, without saying what.

Media typeapplication/json
object
key_id
Any of:
number
user_id
string
consumer_key
string
consumer_secret
string
key_permissions
string
Examplegenerated
{
"key_id": 1,
"user_id": "example",
"consumer_key": "example",
"consumer_secret": "example",
"key_permissions": "example"
}

Connected

Not an approval Bottle asked for

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Too many calls from one address

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}