Cardevo embedding
A card preview on any website, the card editor on a partner website and card design from the partner's server without a UI. Frames come from app.cardevo.pl, so the host page and Cardevo never share styles or data.
The editor (<cardevo-studio>) and the headless mode require accepting the Cardevo API terms and are enabled by Cardevo. Until then they return 403 embed_disabled. The <cardevo-card> preview works without it.
Customer card operations (POS): POS API documentation.
Availability #
- Preview
<cardevo-card>: for every company, no token, published cards only (active program with an approved design). - Editor
<cardevo-studio>and headless mode: Pro and Enterprise plans, an API token with an explicitly granted scope, acceptance of the API terms with the data processing clause when the token is created, enabled by Cardevo.
Card preview: <cardevo-card> #
The script registers the element; a page may contain several cards. Attributes: program (program id), wallet (apple, google, both). Events on the element: cardevo:ready, cardevo:resize, cardevo:error ({code, message}). A draft or archived program, or one without an approved design, looks the same as an unknown program: not_found. The preview is cached for up to 60 s.
<script src="https://app.cardevo.pl/embed/v1.js"></script>
<!-- Published card preview: no token, any website. -->
<cardevo-card program="PROGRAM_ID" wallet="both"></cardevo-card>
<script>
document.querySelector("cardevo-card").addEventListener("cardevo:error", (e) => {
console.warn(e.detail.code); // invalid_program, invalid_wallet, token_required, not_found
});
</script>Card editor: <cardevo-studio> (coming) #
The editor (<cardevo-studio>) and the headless mode require accepting the Cardevo API terms and are enabled by Cardevo. Until then they return 403 embed_disabled. The <cardevo-card> preview works without it.
The editor runs in an app.cardevo.pl frame: design, images, texts, Apple and Google preview and, with design:approve, publishing. No billing, team, program rules, company settings or AI. The element interface may still change until Cardevo enables it.
- Provide the bootstrap with
setTokenProvider(async () => bootstrap). Atokenattribute also works (removed from the DOM after reading) but cannot renew the session. - Events:
cardevo:ready,cardevo:change,cardevo:save,cardevo:error,cardevo:close. - Options:
include/excludewallets and profiles (exclude wins),initial-profile,layout="fullscreen"oropen({ fullscreen: true })(the whole host viewport, no Fullscreen API).
<script src="https://app.cardevo.pl/embed/v1.js"></script>
<cardevo-studio id="studio" program="PROGRAM_ID" wallet="both"></cardevo-studio>
<script>
const studio = document.getElementById("studio");
// Your backend exchanges the API token for a one-time bootstrap (see below).
// Called on start and before the session expires; never put the API token here.
studio.setTokenProvider(async () => {
const r = await fetch("/cardevo/embed-session", { method: "POST", headers: { "X-CSRF-Token": CSRF_TOKEN } });
if (!r.ok) throw new Error("embed session");
return (await r.json()).bootstrap;
});
studio.addEventListener("cardevo:ready", () => {});
studio.addEventListener("cardevo:save", (e) => console.log("saved draft", e.detail));
studio.addEventListener("cardevo:error", (e) => console.warn(e.detail.code));
</script>API token and embed token #
- The company owner creates an API token in the dashboard (Settings → API kasy) with the
embedscope and adds website origins (e.g.https://shop.example). The API tokencdv_pos_…stays on the partner's server. - On every page view with the editor, the partner's server calls
POST /api/v1/pos/embed/sessionsand gets a one-time bootstrapcdv_emb_…valid for 90 s. The partner endpoint that issues it must require a logged-in user and CSRF protection. - The frame redeems the bootstrap once for a 15-minute session
cdv_ems_…bound to the company, the program and the host page origin. It keeps the session in memory only and renews it throughsetTokenProvider. - Session scopes:
design:read,design:write(default) anddesign:approve(only when the API token has that scope).externalUserId(your user id) is recorded in Cardevo's audit log. - Binding to the origin does not protect against token theft. Short lifetimes, single use, scopes and revocation limit it: revoking the API token or removing the origin ends sessions immediately.
Backend: token exchange (Node, .NET) #
Examples of the partner endpoint that returns only the bootstrap to the browser.
Node.js
// Express: one bootstrap per page view, only for your logged-in user, with CSRF protection.
app.post("/cardevo/embed-session", requireLogin, csrfProtection, async (req, res) => {
const r = await fetch("https://app.cardevo.pl/api/v1/pos/embed/sessions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CARDEVO_API_TOKEN}`, // cdv_pos_… with the "embed" scope
"Content-Type": "application/json",
},
body: JSON.stringify({
programId: process.env.CARDEVO_PROGRAM_ID,
scopes: ["design:read", "design:write"], // add "design:approve" to allow publishing
externalUserId: String(req.user.id), // your user, recorded in Cardevo's audit log
}),
});
const body = await r.json();
if (!r.ok) return res.status(r.status === 429 ? 429 : 502).json({ code: body.code });
res.set("Cache-Control", "no-store").json({ bootstrap: body.bootstrap, expiresAt: body.expiresAt });
});.NET
// ASP.NET Core minimal API: one bootstrap per page view, only for your logged-in user (antiforgery on).
app.MapPost("/cardevo/embed-session", async (ClaimsPrincipal user, IHttpClientFactory http, IConfiguration cfg, HttpResponse res) =>
{
var client = http.CreateClient();
using var req = new HttpRequestMessage(HttpMethod.Post, "https://app.cardevo.pl/api/v1/pos/embed/sessions")
{
Content = JsonContent.Create(new
{
programId = cfg["Cardevo:ProgramId"],
scopes = new[] { "design:read", "design:write" },
externalUserId = user.FindFirstValue(ClaimTypes.NameIdentifier),
}),
};
req.Headers.Authorization = new("Bearer", cfg["Cardevo:ApiToken"]); // cdv_pos_… with the "embed" scope
using var r = await client.SendAsync(req);
var body = await r.Content.ReadFromJsonAsync<JsonElement>();
if (!r.IsSuccessStatusCode) return Results.Problem(statusCode: 502, title: body.GetProperty("code").GetString());
res.Headers.CacheControl = "no-store";
return Results.Ok(new { bootstrap = body.GetProperty("bootstrap").GetString(), expiresAt = body.GetProperty("expiresAt").GetDateTimeOffset() });
}).RequireAuthorization();postMessage flow #
The host script sends the bootstrap only to https://app.cardevo.pl (explicit targetOrigin) and accepts messages only from its own frame on that origin. The frame accepts the token only from its parent and sends events only to the host page origin stored in the session. Tokens are never in a URL or a Referer header.
Host page (your site) Frame (app.cardevo.pl/embed/studio) Cardevo API
1. loader creates <iframe> ──▶ loads, posts {cardevo:1, type:"token-request"} to the host
2. getToken() → your backend ──────────────────────────────────────────▶ POST /api/v1/pos/embed/sessions
3. postMessage({cardevo:1, type:"bootstrap", token}, "https://app.cardevo.pl")
──▶ accepts only event.source === parent, first message,
host origin = event.origin
──────────────────────────────────────────▶ POST /api/v1/embed/sessions/redeem
(origin must be on the company list)
4. ◀── session token kept in frame memory only (15 min)
5. events to the host origin only: ready, change, save, error, resize, close
6. before expiry: "token-request" again → new bootstrap → redeem with replaces (old session revoked)frame-ancestors, origins and X-Frame-Options #
- The editor frame
/embed/studio/…sendsContent-Security-Policy: frame-ancestorswith only the host origin from the company list; anything else gets'none'. The preview/embed/card/…sendsframe-ancestors *. - Origins (up to 20) are managed by the owner in the dashboard: scheme and host only, https, no path, no wildcards. The list is not public.
- Responses under
/embedalso carryX-Frame-Options: SAMEORIGINfrom the server. Modern browsers ignore X-Frame-Options whenframe-ancestorsis present, so CSP decides. Very old browsers block the frame, which fails closed. - The Cardevo dashboard outside
/embedcannot be framed (DENY,frame-ancestors 'none').
Headless mode: card design over the API #
The editor (<cardevo-studio>) and the headless mode require accepting the Cardevo API terms and are enabled by Cardevo. Until then they return 403 embed_disabled. The <cardevo-card> preview works without it.
The partner's server calls the same operations as the editor, without a frame: /api/v1/pos/programs/{programId}/design/… with an API token that has design:read, design:write and (to publish) design:approve. Requires accepting the API terms; enabled by Cardevo. The embed scope does not open these routes. The token's allowed IP addresses apply; card texts may not contain links or HTML; rate limits per token with Retry-After.
export CARDEVO_TOKEN="cdv_pos_…" # scopes design:read + design:write (+ design:approve to publish)
P=https://app.cardevo.pl/api/v1/pos/programs/$PROGRAM_ID/design
curl -s $P -H "Authorization: Bearer $CARDEVO_TOKEN" # state: draft, draftVersion, approved revision
curl -s -X PUT $P/draft -H "Authorization: Bearer $CARDEVO_TOKEN" -H "Content-Type: application/json" \
-d '{"spec": { … }, "baseVersion": 3}' # 409 draft_changed if someone saved in between
curl -s -X POST $P/approve -H "Authorization: Bearer $CARDEVO_TOKEN" -H "Content-Type: application/json" \
-d '{"draftVersion": 4}' # publish (design:approve)Errors #
| Status | code | Meaning |
|---|---|---|
| 403 | embed_disabled | The editor or headless mode is not enabled for the company yet (API terms, enabled by Cardevo) |
| 403 | scope_missing | The API token lacks the scope (embed, design:read, design:write, design:approve) |
| 403 | plan_required | The plan has no embedding or API design (Pro and Enterprise) |
| 403 | ip_not_allowed | Request from outside the token's allowed IP addresses |
| 403 | embed_origin_not_allowed | The host page is not on the company's origin list |
| 401 | embed_token_used / embed_token_expired | Bootstrap used twice (session revoked) or after 90 s |
| 409 | embed_origins_missing | The company has no origins yet |
| 409 | draft_changed | The draft changed since baseVersion |
| 400 | embed_link_not_allowed / embed_html_not_allowed | Links or HTML in card texts |
| 429 | rate_limited | Limit per token, session or IP; retry after Retry-After (seconds) |
Reference #
OpenAPI 3.1 specification: https://app.cardevo.pl/api/openapi/pos.json · Swagger UI · https://app.cardevo.pl
POST /api/v1/pos/embed/sessions
Create embed session – Exchanges the company API token (scope embed) for a one-time bootstrap token for one <cardevo-studio> frame, valid 90 s. Call it from your backend only, per page view; never expose the API token in the browser. Session scopes: design:read, design:write (default) and design:approve (requires the design:approve scope on the API token). externalUserId (optional, up to 128 characters) identifies your user in Cardevo's audit log. The frame redeems the bootstrap once for a 15-minute session bound to the host page origin, which must be on the company's list of embed origins. (createEmbedSession)
Request body: CreateEmbedSessionRequest
programId | string (uuid) |
scopes ? | null | array |
externalUserId ? | null | string |
Response: EmbedBootstrapDto
bootstrap | string |
expiresAt | string (date-time) |
sessionId | string (uuid) |
scopes | array |
GET /api/v1/pos/programs/{programId}/design
Get card design – Design state of the card: draft, approved revision, images and validation. Scope design:read. (getCardDesign)
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
PUT /api/v1/pos/programs/{programId}/design/logo
Upload logo – Logo as base64 (PNG/JPEG/WebP, up to 2 MB, same normalisation as the studio). Scope design:write. (setDesignLogo)
Request body: LogoRequest
dataBase64 | string |
ifUnchanged ? | boolean |
replacesKey ? | null | string |
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
PUT /api/v1/pos/programs/{programId}/design/art/{kind}
Upload background or stamp – kind = background or stamp. Base64 image, same limits as the studio. Scope design:write. (setDesignArt)
Request body: LogoRequest
dataBase64 | string |
ifUnchanged ? | boolean |
replacesKey ? | null | string |
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
DELETE /api/v1/pos/programs/{programId}/design/art/{kind}
Remove background or stamp – kind = background or stamp. Scope design:write. (deleteDesignArt)
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
POST /api/v1/pos/programs/{programId}/design/art/background/none
Card without background photo – Explicitly no background photo. Scope design:write. (removeDesignBackground)
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
POST /api/v1/pos/programs/{programId}/design/manual
Start a draft without AI – Creates a starting design from the industry template when the card has no design yet. Scope design:write. (startDesignDraft)
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
POST /api/v1/pos/programs/{programId}/design/preview
Preview a design – Renders Apple Wallet and Google Wallet fields and images for a design without saving it. Scope design:read. (previewDesign)
Request body: DesignSpec
concept | string |
theme | DesignTheme |
logo | DesignLogo |
stamps ? | null | StampStyle |
gift ? | null | GiftStyle |
art ? | null | CardArt |
texts | DesignTexts |
apple | PlatformDesign |
google | PlatformDesign |
shortName ? | null | string |
barcode ? | null | string |
providers ? | null | JsonObject |
infoLabels ? | null | object |
Response: DesignVersionDto
spec | DesignSpec |
preview | null | DesignPreviewDto |
issues | array |
warnings | array |
fixes ? | null | array |
POST /api/v1/pos/programs/{programId}/design/fix-contrast
Fix contrast – Returns the design with colours adjusted to readable contrast, without saving. Scope design:read. (fixDesignContrast)
Request body: DesignSpec
concept | string |
theme | DesignTheme |
logo | DesignLogo |
stamps ? | null | StampStyle |
gift ? | null | GiftStyle |
art ? | null | CardArt |
texts | DesignTexts |
apple | PlatformDesign |
google | PlatformDesign |
shortName ? | null | string |
barcode ? | null | string |
providers ? | null | JsonObject |
infoLabels ? | null | object |
Response: DesignVersionDto
spec | DesignSpec |
preview | null | DesignPreviewDto |
issues | array |
warnings | array |
fixes ? | null | array |
PUT /api/v1/pos/programs/{programId}/design/draft
Save draft – Saves the draft design. baseVersion must equal the current draftVersion (409 draft_changed otherwise). Texts may not contain links or HTML. Scope design:write. (saveDesignDraft)
Request body: SaveDraftRequest
spec | DesignSpec |
baseVersion | integer (int32) |
studioVersion ? | null | integer (int32) |
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
POST /api/v1/pos/programs/{programId}/design/draft/reset
Reset draft – Draft = the design currently active on customers' cards. Scope design:write. (resetDesignDraft)
Request body: ResetDraftRequest
baseVersion | integer (int32) |
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
GET /api/v1/pos/programs/{programId}/design/images/{key}/{file}
Get design image – Image of the draft or an approved revision (PNG or WebP). Scope design:read. (getDesignImage)
POST /api/v1/pos/programs/{programId}/design/approve
Approve and publish – Publishes the draft to customers' cards (wallet passes are updated). Scope design:approve. (approveDesign)
Request body: ApproveRequest
draftVersion | integer (int32) |
pendingKey ? | null | string |
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
GET /api/v1/pos/programs/{programId}/design/versions
List design versions – History of approved and saved versions. Scope design:read. (listDesignVersions)
Response: DesignHistoryDto
available | boolean |
namedLimit | integer (int32) |
namedUsed | integer (int32) |
items | array |
GET /api/v1/pos/programs/{programId}/design/versions/{versionId}
Get design version – One version with its design. Scope design:read. (getDesignVersion)
Response: DesignVersionDetailDto
version | DesignVersionItemDto |
preview | null | DesignVersionDto |
DELETE /api/v1/pos/programs/{programId}/design/versions/{versionId}
Delete version – Deletes a saved version that is not active. Scope design:approve. (deleteDesignVersion)
POST /api/v1/pos/programs/{programId}/design/versions/{versionId}/restore
Restore version to draft – Copies a saved version into the draft (the previous draft is kept as a version). Scope design:approve. (restoreDesignVersion)
Request body: RestoreVersionRequest
draftVersion | integer (int32) |
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
GET /api/v1/pos/programs/{programId}/design/versions/{versionId}/activation
Check activation – What activating the version would change on customers' cards. Scope design:approve. (getDesignActivation)
Response: DesignActivationDto
active | boolean |
cards | integer (int32) |
minutes | integer (int32) |
render | boolean |
POST /api/v1/pos/programs/{programId}/design/versions/{versionId}/activate
Activate version – Puts a saved version on customers' cards. Scope design:approve. (activateDesignVersion)
Response: DesignStateDto
programId | string (uuid) |
companyName | string |
programName | string |
programRule | string |
programStatus | ProgramStatus |
type | DesignTypeDto |
brief | DesignBrief |
logoKey | null | string |
backgroundKey | null | string |
backgroundColor | null | string |
stampKey | null | string |
proposal | null | DesignVersionDto |
draft | null | DesignVersionDto |
draftVersion | integer (int32) |
approvedRevisionId | null | string (uuid) |
draftApproved | boolean |
generationsLeft | integer (int32) |
generating | boolean |
aiConfigured | boolean |
welcomeStamps | integer (int32) |
industries | array |
draftEditedBy ? | null | string |
backgroundSource ? | null | string |
imagesLeft ? | null | integer (int32) |
proposalBackgroundKey ? | null | string |
draftStudioVersion ? | integer (int32) |
assets ? | null | DesignArtAssetsDto |
pendingCardValues ? | null | CardValuesInput |
pendingKey ? | null | string |
notices ? | null | array |
GET /api/v1/pos/programs/{programId}/design/schedules
List design schedules – Scheduled design changes (Europe/Warsaw). Scope design:approve. (listDesignSchedules)
POST /api/v1/pos/programs/{programId}/design/schedules
Schedule a design – A version shown on cards from–to (Europe/Warsaw), one per card. Scope design:approve. (createDesignSchedule)
Request body: CreateScheduleRequest
versionId | string (uuid) |
startsLocal | null | string |
endsLocal | null | string |
Response: DesignScheduleDto
id | string (uuid) |
versionId | string (uuid) |
versionNumber | integer (int32) |
versionName | null | string |
startsAt | string (date-time) |
endsAt | string (date-time) |
status | string |
note | null | string |
returnNumber | null | integer (int32) |
startedAt | null | string (date-time) |
endedAt | null | string (date-time) |
DELETE /api/v1/pos/programs/{programId}/design/schedules/{scheduleId}
Cancel schedule – Cancels a scheduled design change. Scope design:approve. (cancelDesignSchedule)