Discord
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
enabledboolean
channelIdstring
Discord channel id. The bot must be in that server.
hourinteger
groupBystring
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
datestring
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