Intake

Embed
Preview of the card
<a href="https://shippified.net/docs/ref-intake"><img src="https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/pages/0e260da8-a235-492d-9f1a-602d7bf73585/social-card.svg?v=4bd9898cfc89" alt="Intake" width="600" height="315"></a>
POST https://shippified.net/api/webhooks/discord/{handle}/{slug}

Post a Discord-format checkout message to a bot.

Point a monitor's Discord webhook at this URL. No auth header — the URL itself identifies the workspace and bot. The body is the standard Discord webhook message (content, embeds, …). It's parsed with the bot's template, turned into an order (or merged into an existing one), logged in the bot's activity log, and then re-posted to the bot's output webhook (or the workspace fallback webhook) if one is set.

Anything that doesn't produce an order is still answered with 202, not an error, so Discord doesn't retry. Check the body (duplicate / ignored / rejected) or GET /api/bots/{id}/logs to see what happened.

Rate limited to 60 requests/min per source IP and 60/min per bot.

Test mode. Send the header x-shippified-test: 1 to dry-run a payload: it's parsed with the bot's template exactly as a real post would be and logged to the bot's activity with outcome test, but no order is created or merged, nothing is stored for re-parsing, and nothing is forwarded or pinged. Answers 200 with what was parsed.

Parameters

handle
string
path
required
Your workspace's webhook handle (user.webhookHandle). Older URLs that use the raw user id still work.
slug
string
path
required
The bot's slug.
x-shippified-test
string
header
Dry run: parse and preview only. See Test mode above.

Request body

application/json
username
string
avatar_url
string
content
string
embeds
object[]
{
  "username": "string",
  "avatar_url": "string",
  "content": "string",
  "embeds": [
    {}
  ]
}

Code samples

cURL
curl -X POST "https://shippified.net/api/webhooks/discord/{handle}/{slug}" \
  -H "x-shippified-test: <value>" \
  -H "Content-Type: application/json" \
  -d '{"username":"string","avatar_url":"string","content":"string","embeds":[{}]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Test mode (x-shippified-test: 1): what the payload parsed to. Nothing was added.
{
  "test": true,
  "created": true,
  "parser": "string",
  "template": null,
  "preview": {
    "store": "string",
    "storeLabel": "string",
    "itemSummary": "string",
    "orderNumber": "string",
    "total": "string",
    "price": "string",
    "quantity": 0,
    "size": "string",
    "sku": "string",
    "trackingNumber": "string",
    "carrier": "string",
    "status": "string",
    "eventType": "string",
    "imageUrl": "string"
  },
  "wouldMerge": true,
  "mergesIntoOrderId": "string"
}
202 Accepted. One of four bodies: an order was created or merged (order, forward, merged); the order is already in the workspace ({ duplicate: true, orderId }); the payload didn't produce an order ({ ignored: true }); or the workspace hit its free-plan monthly cap (rejected: true).
{}
404 Unknown webhook handle (Unknown webhook URL), or no bot with this slug in the workspace (Unknown bot webhook route for this user).
{
  "error": "string"
}
413 Body larger than 2 MiB.
429 Rate limit exceeded (60/min per IP, or 60/min for this bot). See Retry-After.
{
  "error": "string"
}
Updated