Discord

Embed
Preview of the card
<a href="https://shippified.net/docs/ref-discord"><img src="https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/pages/19288ac1-af4a-47fe-9be7-f0804de41dcb/social-card.svg?v=4bd9898cfc89" alt="Discord" width="600" height="315"></a>
GET https://shippified.net/api/discord/install

Invite link for the Shippified Discord bot.

Add the bot to your server before setting a digest channel.

Code samples

cURL
curl -X GET "https://shippified.net/api/discord/install"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{
  "url": "string"
}
401 Not authenticated.
503 The Discord integration isn't configured on this deployment.
PATCH https://shippified.net/api/discord/settings

Configure the daily checkout-recap digest.

Partial update — fields that are omitted or invalid keep their current values. The bot posts the digest to channelId at hour in your account timezone (POST /api/account/timezone).

Request body

application/json
enabled
boolean
channelId
string
Discord channel id. The bot must be in that server.
hour
integer
groupBy
string
Group the recap by webhook bot, by retailer, or by source (webhook / email / manual).
{
  "enabled": true,
  "channelId": "string",
  "hour": 0,
  "groupBy": "bots"
}

Code samples

cURL
curl -X PATCH "https://shippified.net/api/discord/settings" \
  -H "Content-Type: application/json" \
  -d '{"enabled":true,"channelId":"string","hour":0,"groupBy":"bots"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Updated.
{
  "digest": {
    "enabled": true,
    "channelId": "string",
    "hour": 0,
    "groupBy": "bots",
    "lastSentDate": "string"
  }
}
401 Not authenticated.
POST https://shippified.net/api/discord/digest

Post the checkout-recap digest to your channel now.

Uses the channel and grouping from PATCH /api/discord/settings (it doesn't need the scheduled digest to be enabled). Doesn't affect the scheduled post.

Parameters

date
string
query
Day to summarise (YYYY-MM-DD). Defaults to today in your account timezone.

Code samples

cURL
curl -X POST "https://shippified.net/api/discord/digest"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Posted.
{
  "ok": true,
  "messageId": "string",
  "channelId": "string"
}
400 No digest channel configured.
{
  "error": "string"
}
401 Not authenticated.
502 Discord rejected the post (e.g. the bot can't see the channel).
{
  "error": "string"
}
503 The Discord integration isn't configured on this deployment.
Updated