Log in
For integrators

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). A token attribute 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 / exclude wallets and profiles (exclude wins), initial-profile, layout="fullscreen" or open({ 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 #

  1. The company owner creates an API token in the dashboard (Settings → API kasy) with the embed scope and adds website origins (e.g. https://shop.example). The API token cdv_pos_… stays on the partner's server.
  2. On every page view with the editor, the partner's server calls POST /api/v1/pos/embed/sessions and gets a one-time bootstrap cdv_emb_… valid for 90 s. The partner endpoint that issues it must require a logged-in user and CSRF protection.
  3. 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 through setTokenProvider.
  4. Session scopes: design:read, design:write (default) and design:approve (only when the API token has that scope). externalUserId (your user id) is recorded in Cardevo's audit log.
  5. 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/… sends Content-Security-Policy: frame-ancestors with only the host origin from the company list; anything else gets 'none'. The preview /embed/card/… sends frame-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 /embed also carry X-Frame-Options: SAMEORIGIN from the server. Modern browsers ignore X-Frame-Options when frame-ancestors is present, so CSP decides. Very old browsers block the frame, which fails closed.
  • The Cardevo dashboard outside /embed cannot 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 #

StatuscodeMeaning
403embed_disabledThe editor or headless mode is not enabled for the company yet (API terms, enabled by Cardevo)
403scope_missingThe API token lacks the scope (embed, design:read, design:write, design:approve)
403plan_requiredThe plan has no embedding or API design (Pro and Enterprise)
403ip_not_allowedRequest from outside the token's allowed IP addresses
403embed_origin_not_allowedThe host page is not on the company's origin list
401embed_token_used / embed_token_expiredBootstrap used twice (session revoked) or after 90 s
409embed_origins_missingThe company has no origins yet
409draft_changedThe draft changed since baseVersion
400embed_link_not_allowed / embed_html_not_allowedLinks or HTML in card texts
429rate_limitedLimit 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
programIdstring (uuid)
scopes ?null | array
externalUserId ?null | string
Response: EmbedBootstrapDto
bootstrapstring
expiresAtstring (date-time)
sessionIdstring (uuid)
scopesarray

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
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
dataBase64string
ifUnchanged ?boolean
replacesKey ?null | string
Response: DesignStateDto
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
conceptstring
themeDesignTheme
logoDesignLogo
stamps ?null | StampStyle
gift ?null | GiftStyle
art ?null | CardArt
textsDesignTexts
applePlatformDesign
googlePlatformDesign
shortName ?null | string
barcode ?null | string
providers ?null | JsonObject
infoLabels ?null | object
Response: DesignVersionDto
specDesignSpec
previewnull | DesignPreviewDto
issuesarray
warningsarray
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
conceptstring
themeDesignTheme
logoDesignLogo
stamps ?null | StampStyle
gift ?null | GiftStyle
art ?null | CardArt
textsDesignTexts
applePlatformDesign
googlePlatformDesign
shortName ?null | string
barcode ?null | string
providers ?null | JsonObject
infoLabels ?null | object
Response: DesignVersionDto
specDesignSpec
previewnull | DesignPreviewDto
issuesarray
warningsarray
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
specDesignSpec
baseVersioninteger (int32)
studioVersion ?null | integer (int32)
Response: DesignStateDto
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
baseVersioninteger (int32)
Response: DesignStateDto
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
draftVersioninteger (int32)
pendingKey ?null | string
Response: DesignStateDto
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
availableboolean
namedLimitinteger (int32)
namedUsedinteger (int32)
itemsarray

GET /api/v1/pos/programs/{programId}/design/versions/{versionId}

Get design version – One version with its design. Scope design:read. (getDesignVersion)

Response: DesignVersionDetailDto
versionDesignVersionItemDto
previewnull | 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
draftVersioninteger (int32)
Response: DesignStateDto
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
activeboolean
cardsinteger (int32)
minutesinteger (int32)
renderboolean

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
programIdstring (uuid)
companyNamestring
programNamestring
programRulestring
programStatusProgramStatus
typeDesignTypeDto
briefDesignBrief
logoKeynull | string
backgroundKeynull | string
backgroundColornull | string
stampKeynull | string
proposalnull | DesignVersionDto
draftnull | DesignVersionDto
draftVersioninteger (int32)
approvedRevisionIdnull | string (uuid)
draftApprovedboolean
generationsLeftinteger (int32)
generatingboolean
aiConfiguredboolean
welcomeStampsinteger (int32)
industriesarray
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
versionIdstring (uuid)
startsLocalnull | string
endsLocalnull | string
Response: DesignScheduleDto
idstring (uuid)
versionIdstring (uuid)
versionNumberinteger (int32)
versionNamenull | string
startsAtstring (date-time)
endsAtstring (date-time)
statusstring
notenull | string
returnNumbernull | integer (int32)
startedAtnull | string (date-time)
endedAtnull | string (date-time)

DELETE /api/v1/pos/programs/{programId}/design/schedules/{scheduleId}

Cancel schedule – Cancels a scheduled design change. Scope design:approve. (cancelDesignSchedule)