API Documentation

Webhooks CREATE

This request is for creating a new webhook.

URL

POST /seller_api/webhooks

Payload Example

<webhook>
  <trigger>order_created</trigger>
  <url>http://example.org/hook</url>
</webhook>

cURL Example

curl https://dawanda.com/seller_api/webhooks \
  -X POST \
  -d "@webhook_create.xml" \
  -H "X-Dawanda-Auth: YOUR_API_KEY"

Success Response(s)

Example response:

<?xml version="1.0" encoding="UTF-8"?>
<dawanda>
  <success>true</success>
</dawanda>

Failure Responses

When an error has occurred, the API will respond with an appropriate HTTP Status code. The response body will contain an XML document containing a human readable error message and additional details (if any).

See also: Error Codes.

Related Requests/Pages